Current Path : /home/church/public_html/IgotdaJuice501.org/wp-content/plugins/essential-blocks/dist/ |
Current File : /home/church/public_html/IgotdaJuice501.org/wp-content/plugins/essential-blocks/dist/controls.js |
(()=>{var e={862:(e,t,a)=>{var n,i,s,r,o;window,e.exports=(n=a(697),i=a(196),s=a(184),r=a(604),o=a(850),function(e){var t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=7)}([function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,t){e.exports=r},function(e,t){e.exports=o},,,function(e,t,a){"use strict";a.r(t);var n=a(1),i=a.n(n),s=a(0),r=a.n(s),o=a(2),l=a.n(o),c=a(3);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(a,i.a.PureComponent);var t=function(e){var t=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(e){return!1}}();return function(){var a,n=p(e);if(t){var i=p(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}(this,a)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return m(d(e=t.call.apply(t,[this].concat(s))),"handleClick",(function(){e.props.onClick()})),m(d(e),"handleKeyDown",(function(t){32!==t.keyCode&&13!==t.keyCode||e.props.onClick()})),m(d(e),"handleDelete",(function(t,a){t.stopPropagation(),e.props.handleDeleteValue(a)})),m(d(e),"handleDeleteKeyboard",(function(t,a){32!==t.keyCode&&13!==t.keyCode||e.props.handleDeleteValue(a)})),m(d(e),"renderEmptyIcon",(function(){return i.a.createElement("span",{className:"rfipbtn__icon--empty"},e.props.noSelectedPlaceholder)})),e}return function(e,t,a){t&&function(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t)}(a,[{key:"renderIcon",value:function(e){var t=this;return""===e||null==e?this.renderEmptyIcon():i.a.createElement("span",{className:"rfipbtn__icon",key:e},i.a.createElement("span",{className:"rfipbtn__elm"},this.props.renderIcon(e)),i.a.createElement("span",{className:"rfipbtn__del",onClick:function(a){return t.handleDelete(a,e)},onKeyDown:function(a){return t.handleDeleteKeyboard(a,e)},tabIndex:0,role:"button"},"×"))}},{key:"renderCurrentIcons",value:function(){var e=this;return this.props.isMulti?this.props.value.length?this.props.value.map((function(t){return e.renderIcon(t)})):this.renderEmptyIcon():this.renderIcon(this.props.value)}},{key:"render",value:function(){var e={onClick:this.handleClick,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,tabIndex:0},t=l()("rfipbtn__button","rfipbtn__button--".concat(this.props.isOpen?"open":"close")),a=l()(this.props.className);return i.a.createElement("div",f({className:a,ref:this.props.domRef},e),i.a.createElement("div",{className:"rfipbtn__current"},this.renderCurrentIcons()),i.a.createElement("div",{className:t},i.a.createElement("i",{className:"fipicon-angle-down",role:"presentation","aria-label":"Open"})))}}]),a}();m(g,"propTypes",{className:r.a.string.isRequired,isOpen:r.a.bool.isRequired,onClick:r.a.func.isRequired,domRef:r.a.object.isRequired,isMulti:r.a.bool.isRequired,value:r.a.oneOfType([r.a.number,r.a.string,r.a.arrayOf(r.a.oneOfType([r.a.number,r.a.string]))]).isRequired,renderIcon:r.a.func.isRequired,handleDeleteValue:r.a.func.isRequired,noSelectedPlaceholder:r.a.string.isRequired});var b=g;function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(a,i.a.PureComponent);var t=function(e){var t=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(e){return!1}}();return function(){var a,n=x(e);if(t){var i=x(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,a)}}(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t.apply(this,arguments)}return function(e,t,a){t&&function(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t)}(a,[{key:"render",value:function(){return i.a.createElement("div",{className:"rfipcategory"},i.a.createElement("select",{className:"rfipcategory__select",onChange:this.props.handleCategory,value:this.props.value},this.props.categories.map((function(e,t){return i.a.createElement("option",{className:"rfipcategory__select__option",key:e,value:t},e)}))),i.a.createElement("i",{className:"fipicon-angle-down",role:"presentation","aria-label":"Open"}))}}]),a}();!function(e,t,a){t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}(C,"propTypes",{handleCategory:r.a.func.isRequired,value:r.a.number.isRequired,categories:r.a.arrayOf(r.a.string).isRequired});var S=C,w=function(e){return i.a.createElement("div",{className:"rfipsearch"},i.a.createElement("input",{type:"text",className:"rfipsearch__input",value:e.value,onChange:e.handleSearch,placeholder:e.placeholder}))};w.propTypes={handleSearch:r.a.func.isRequired,value:r.a.string.isRequired,placeholder:r.a.string.isRequired};var k=w;function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function E(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function M(e){return function(e){if(Array.isArray(e))return $(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?$(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function P(e){var t=e.getBoundingClientRect(),a=window.pageXOffset||document.documentElement.scrollLeft,n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n,left:t.left+a}}function T(e,t){this.givenType=e,this.requiredType=t,this.message="Expected of type: ".concat(this.requiredType,", found: ").concat(this.givenType),this.toString=function(){return"Invalid Source Exception: ".concat(this.message)}}function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?R(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function I(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function F(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(a,i.a.PureComponent);var t=function(e){var t=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(e){return!1}}();return function(){var a,n=L(e);if(t){var i=L(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return function(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return N(e)}(this,a)}}(a);function a(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),F(N(n=t.call(this,e)),"handleChangePage",(function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=n.props.currentPage,s=n.state.totalPage;null!==a?"next"===a?i+=1:i-=1:i=parseInt(e.target.value,10)-1,i<0&&(i=0),i>s-1&&(i=s-1),t=i+1,null===a&&Number.isNaN(i)&&(i=0,t=""),n.setState({viewPage:t}),n.props.handleChangePage(i)})),F(N(n),"handlePageKeyBoard",(function(e,t){13!==e.keyCode&&32!==e.keyCode||n.handleChangePage({},t)})),F(N(n),"handleChangeValue",(function(e){n.props.handleChangeValue(e)})),F(N(n),"handleValueKeyboard",(function(e,t){13!==e.keyCode&&32!==e.keyCode||n.handleChangeValue(t)})),n.state={viewPage:n.props.currentPage+1},n}return function(e,t,a){t&&I(e.prototype,t),a&&I(e,a)}(a,[{key:"renderPager",value:function(){var e=this;if(this.state.totalPage<1)return null;var t=this.props.currentPage>0?i.a.createElement("span",{className:"rfipicons__left",role:"button",tabIndex:0,onKeyDown:function(t){return e.handlePageKeyBoard(t,"prev")},onClick:function(t){return e.handleChangePage(t,"prev")}},i.a.createElement("span",{role:"presentation",className:"rfipicons__label","aria-label":"Left"},i.a.createElement("i",{className:"fipicon-angle-left"}))):null,a=this.props.currentPage<this.state.totalPage-1?i.a.createElement("span",{className:"rfipicons__right",role:"button",tabIndex:0,onKeyDown:function(t){return e.handlePageKeyBoard(t,"next")},onClick:function(t){return e.handleChangePage(t,"next")}},i.a.createElement("span",{role:"presentation",className:"rfipicons__label","aria-label":"Right"},i.a.createElement("i",{className:"fipicon-angle-right"}))):null;return i.a.createElement("div",{className:"rfipicons__pager"},i.a.createElement("div",{className:"rfipicons__num"},i.a.createElement("input",{value:this.state.viewPage,onChange:this.handleChangePage,className:"rfipicons__cp",type:"tel",min:1}),i.a.createElement("span",{className:"rfipicons__sp"},"/"),i.a.createElement("span",{className:"rfipicons__tp"},this.state.totalPage)),i.a.createElement("div",{className:"rfipicons__arrow"},t,a))}},{key:"renderIconView",value:function(){var e=this;return this.state.totalPage>0?this.state.iconView.map((function(t,a){var n=l()("rfipicons__icon",{"rfipicons__icon--selected":e.props.value===t||Array.isArray(e.props.value)&&e.props.value.includes(t)});return i.a.createElement("span",{className:n,key:t,title:e.state.titleView[a]},i.a.createElement("span",{className:"rfipicons__ibox",tabIndex:0,role:"button",onClick:function(){return e.handleChangeValue(t)},onKeyDown:function(a){return e.handleValueKeyboard(a,t)}},e.props.renderIcon(t)))})):i.a.createElement("span",{className:"rfipicons__icon--error"},i.a.createElement("span",{className:"rfipicons__ibox--error"},this.props.noIconPlaceholder))}},{key:"render",value:function(){return i.a.createElement("div",{className:"rfipicons"},this.renderPager(),i.a.createElement("div",{className:"rfipicons__selector"},this.renderIconView()))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=a.getCategoryFilteredState(e.currentCategory,e.categories,e.icons),i=a.getCategoryFilteredState(e.currentCategory,e.categories,null===e.search?e.icons:e.search),s=a.getActiveIcons(n,i,e.currentSearch),r=s.activeIcons,o=s.activeTitles,l=e.currentPage,c=e.iconsPerPage,u={iconView:a.getCurrentViewIcons(r,c,l),titleView:a.getCurrentViewIcons(o,c,l),totalPage:Math.ceil(r.length/c)};return""!==t.viewPage&&(u.viewPage=e.currentPage+1),u}},{key:"getActiveIcons",value:function(e,t,a){var n=B(e),i=B(t);if(""===a||null===a)return{activeIcons:n,activeTitles:i};var s=[],r=[];return n.forEach((function(e,n){(function(e,t){e=e.toLowerCase();var a=(t=t.toLowerCase()).length,n=e.length;if(n>a)return!1;if(n===a)return e===t;e:for(var i=0,s=0;i<n;i++){for(var r=e.codePointAt(i);s<a;)if(t.codePointAt(s++)===r)continue e;return!1}return!0})(a,t[n])&&(s.includes(e)||s.push(e),r.includes(t[n])||r.push(t[n]))})),{activeIcons:s,activeTitles:r}}},{key:"getCategoryFilteredState",value:function(e,t,a){var n=null,i=function(e){return null===e?"null":"object"!==_(e)||Array.isArray(e)?Array.isArray(e)?"array":_(e):"object"}(a);if(Array.isArray(t)){if("object"!==i)throw new T(i,"object")}else if("array"!==i)throw new T(i,"array");return 0!==e&&Array.isArray(t)&&(n=t[e]||null),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Array.isArray(e))return M(e);if(null!==t)return void 0!==e[t]?M(e[t]):[];var a=[],n=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?O(Object(a),!0).forEach((function(t){E(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):O(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},e);return Object.keys(n).forEach((function(e){a=[].concat(M(a),M(n[e]))})),a}(a,n)}},{key:"getCurrentViewIcons",value:function(e,t,a){var n=a*t,i=(a+1)*t;return e.slice(n,i)}}]),a}();F(z,"propTypes",{categories:r.a.arrayOf(r.a.string),currentCategory:r.a.number,isMulti:r.a.bool.isRequired,icons:r.a.oneOfType([r.a.arrayOf(r.a.string),r.a.arrayOf(r.a.number),r.a.objectOf(r.a.oneOfType([r.a.arrayOf(r.a.number),r.a.arrayOf(r.a.string)]))]).isRequired,search:r.a.oneOfType([r.a.objectOf(r.a.arrayOf(r.a.string)),r.a.arrayOf(r.a.string)]),value:r.a.oneOfType([r.a.number,r.a.string,r.a.arrayOf(r.a.oneOfType([r.a.number,r.a.string]))]).isRequired,currentSearch:r.a.string.isRequired,handleChangeValue:r.a.func.isRequired,currentPage:r.a.number.isRequired,iconsPerPage:r.a.number.isRequired,handleChangePage:r.a.func.isRequired,renderIcon:r.a.func.isRequired,noIconPlaceholder:r.a.string.isRequired}),F(z,"defaultProps",{categories:null,currentCategory:null,search:null});var V=z;function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function G(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Z(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var Q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(a,i.a.PureComponent);var t=function(e){var t=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(e){return!1}}();return function(){var a,n=q(e);if(t){var i=q(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return function(e,t){if(t&&("object"===U(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return W(e)}(this,a)}}(a);function a(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Z(W(n=t.call(this,e)),"handleCategory",(function(e){var t=parseInt(e.target.value,10);Number.isNaN(t)&&(t=0),n.props.handleChangeCategory(t),n.props.handleChangePage(0)})),Z(W(n),"handleSearch",(function(e){var t=e.target.value;n.props.handleChangeSearch(t)})),n.state={},n}return function(e,t,a){t&&G(e.prototype,t),a&&G(e,a)}(a,[{key:"render",value:function(){return i.a.createElement("div",{className:"rfipdropdown__selector"},this.props.showSearch?i.a.createElement(k,{handleSearch:this.handleSearch,value:this.state.searchString,placeholder:this.props.searchPlaceholder}):null,this.props.showCategory&&this.state.categories&&this.state.categories.length?i.a.createElement(S,{handleCategory:this.handleCategory,value:this.props.currentCategory,categories:this.state.categories}):null,i.a.createElement(V,{categories:this.state.categories,currentCategory:this.props.currentCategory,isMulti:this.props.isMulti,icons:this.props.icons,search:this.props.search,value:this.props.value,currentSearch:this.props.currentSearch,handleChangeValue:this.props.handleChangeValue,currentPage:this.props.currentPage,iconsPerPage:this.props.iconsPerPage,handleChangePage:this.props.handleChangePage,renderIcon:this.props.renderIcon,noIconPlaceholder:this.props.noIconPlaceholder}))}}],[{key:"getDerivedStateFromProps",value:function(e){var t=function(e){return Array.isArray(e)?null:Object.keys(e)}(e.icons);return null!==t&&(t=[e.allCatPlaceholder].concat(function(e){return function(e){if(Array.isArray(e))return H(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return H(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?H(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t))),{categories:t,searchString:e.currentSearch}}}]),a}();Z(Q,"propTypes",{isMulti:r.a.bool.isRequired,value:r.a.oneOfType([r.a.number,r.a.string,r.a.arrayOf(r.a.any)]).isRequired,currentCategory:r.a.number.isRequired,currentPage:r.a.number.isRequired,currentSearch:r.a.string.isRequired,icons:r.a.oneOfType([r.a.arrayOf(r.a.number),r.a.arrayOf(r.a.string),r.a.objectOf(r.a.oneOfType([r.a.arrayOf(r.a.number),r.a.arrayOf(r.a.string)]))]).isRequired,search:r.a.oneOfType([r.a.object,r.a.arrayOf(r.a.string)]),showCategory:r.a.bool.isRequired,showSearch:r.a.bool.isRequired,iconsPerPage:r.a.number.isRequired,allCatPlaceholder:r.a.string.isRequired,searchPlaceholder:r.a.string.isRequired,noIconPlaceholder:r.a.string.isRequired,renderIcon:r.a.func.isRequired,handleChangeValue:r.a.func.isRequired,handleChangeCategory:r.a.func.isRequired,handleChangePage:r.a.func.isRequired,handleChangeSearch:r.a.func.isRequired}),Z(Q,"defaultProps",{search:null});var X=Q,K=a(4);function Y(e){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function J(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ne(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ee(e,t)}(a,i.a.PureComponent);var t=function(e){var t=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(e){return!1}}();return function(){var a,n=ae(e);if(t){var i=ae(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return function(e,t){if(t&&("object"===Y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return te(e)}(this,a)}}(a);function a(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),ne(te(n=t.call(this,e)),"syncPortalPosition",(function(){n.resetPortalPosition(),n.fixWindowOverflow()})),ne(te(n),"fixWindowOverflow",(function(){var e=n.props.domRef.current.offsetWidth,t=n.props.domRef.current.offsetHeight,a=window,i=a.innerWidth,s=a.pageYOffset,r=document.documentElement.clientHeight,o=P(n.props.domRef.current),l=o.left,c=o.top,u=P("self"===n.state.appendRoot?n.props.domRef.current:n.state.appendRoot),f=n.props.btnRef.current,h=n.props.domRef.current,d=P(f),p=getComputedStyle(f),m=(parseInt(p.borderTop,10)||0)+(parseInt(p.borderBottom,10)||0);if(l+e>i-20){var g=d.left+n.props.btnRef.current.offsetWidth-(e+u.left);g+u.left<0&&(g=10-u.left),h.style.left="".concat(g,"px")}t+c-s>r&&d.top-t>0&&("self"===n.state.appendRoot?h.style.top="-".concat(t-m,"px"):h.style.top="".concat(d.top+m-t,"px"))})),n.state={},n.debouncedSyncPortalPosition=function(e,t){var a;return function(){var t=this,n=arguments;clearTimeout(a),a=setTimeout((function(){return e.apply(t,n)}),250)}}(n.syncPortalPosition),n}return function(e,t,a){t&&J(e.prototype,t),a&&J(e,a)}(a,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.debouncedSyncPortalPosition),window.addEventListener("scroll",this.debouncedSyncPortalPosition),this.syncPortalPosition()}},{key:"componentDidUpdate",value:function(){this.syncPortalPosition()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.debouncedSyncPortalPosition),window.removeEventListener("scroll",this.debouncedSyncPortalPosition)}},{key:"positionPortal",value:function(){var e=this.props.domRef.current.style.display;this.props.domRef.current.style.display="none";var t=this.props.btnRef.current,a=P(t),n=P(this.state.appendRoot),i=t.offsetHeight;this.props.domRef.current.style.left="".concat(a.left-n.left,"px"),this.props.domRef.current.style.top="".concat(a.top+i,"px"),this.props.domRef.current.style.display=e}},{key:"resetPortalPosition",value:function(){var e=this.props.domRef.current;"self"===this.state.appendRoot?e.style.top="":this.positionPortal()}},{key:"render",value:function(){var e=l()(this.props.className,this.state.portalClasses),t=i.a.createElement("div",{className:e,ref:this.props.domRef},this.props.children);return"self"===this.state.appendRoot?t:Object(K.createPortal)(t,this.state.appendRoot)}}],[{key:"getDerivedStateFromProps",value:function(e){var t=a.calculateAppendAndClass(e.appendRoot);return{appendRoot:t.appendRoot,portalClasses:t.portalClasses}}},{key:"calculateAppendAndClass",value:function(e){var t="self",a=l()({"rfipdropdown--portal":!1!==e});return!1!==e&&(t=document.querySelector(e)),{portalClasses:a,appendRoot:t}}}]),a}();ne(ie,"propTypes",{appendRoot:r.a.oneOfType([r.a.bool,r.a.string]),children:r.a.node.isRequired,domRef:r.a.object.isRequired,btnRef:r.a.object.isRequired,className:r.a.string.isRequired}),ne(ie,"defaultProps",{appendRoot:!1});var se=ie;function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(e){return function(e){if(Array.isArray(e))return le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return le(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?le(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function ce(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ue(e,t){return(ue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function he(e){return(he=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function de(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var pe=[],me=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ue(e,t)}(a,i.a.PureComponent);var t=function(e){var t=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(e){return!1}}();return function(){var a,n=he(e);if(t){var i=he(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return function(e,t){if(t&&("object"===re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fe(e)}(this,a)}}(a);function a(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),de(fe(n=t.call(this,e)),"handleOuterClick",(function(e){var t=e.target;n.isClickWithin(t)||n.closeDropdown()})),de(fe(n),"handleEscapeKeyboard",(function(e){27===e.keyCode&&n.closeDropdown()})),de(fe(n),"isClickWithin",(function(e){return"fipicon-angle-left"===e.className||"fipicon-angle-right"===e.className||"rfipicons__label"===e.className||n.fipButtonRef.current.contains(e)||n.fipDropDownRef.current&&n.fipDropDownRef.current.contains(e)})),de(fe(n),"handleToggle",(function(){n.setState((function(e){return n.handleDropDown(!e.isOpen,!1)}))})),de(fe(n),"closeDropdown",(function(){n.handleDropDown(!1)})),de(fe(n),"handleDropDown",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i={isOpen:e};return i.elemClass=a.getDerivedClassName("rfip",n.props.theme,n.props.isMulti,e),i.btnClass=a.getDerivedClassName("rfipbtn",n.props.theme,n.props.isMulti,e),i.ddClass=a.getDerivedClassName("rfipdropdown",n.props.theme,n.props.isMulti,e),t&&n.setState(i),i})),de(fe(n),"handleChangeValue",(function(e){var t;n.props.isMulti?(t=oe(n.state.value)).includes(e)?(t=t.filter((function(t){return t!==e}))).length||(t=pe):t.push(e):t=e===n.state.value?"":e,n.setState({value:t,isOpen:!n.props.closeOnSelect}),n.props.onChange(t)})),de(fe(n),"handleDeleteValue",(function(e){var t;t=n.props.isMulti?n.state.value.filter((function(t){return t!==e})):a.getDerivedValue(t,n.props.isMulti),n.setState({value:t}),n.props.onChange(t)})),de(fe(n),"handleChangePage",(function(e){n.setState({currentPage:e})})),de(fe(n),"handleChangeCategory",(function(e){n.setState({currentCategory:e,currentPage:0})})),de(fe(n),"handleChangeSearch",(function(e){n.setState({currentSearch:e,currentPage:0})})),de(fe(n),"resetPortalStyle",(function(e){["maxHeight","paddingTop","paddingBottom"].forEach((function(t){e.style[t]=null}))})),de(fe(n),"handlePortalEnter",(function(e){var t=e.childNodes[0];n.resetPortalStyle(t);var a=getComputedStyle(t);n.fipPortalComputedStyle={height:a.height,paddingTop:a.paddingTop,paddingBottom:a.paddingBottom},["maxHeight","paddingTop","paddingBottom"].forEach((function(e){t.style[e]="0px"}))})),de(fe(n),"handlePortalEntering",(function(e){var t=e.childNodes[0];t.style.maxHeight=n.fipPortalComputedStyle.height,t.style.paddingTop=n.fipPortalComputedStyle.paddingTop,t.style.paddingBottom=n.fipPortalComputedStyle.paddingBottom})),de(fe(n),"handlePortalEntered",(function(e){var t=e.childNodes[0];n.resetPortalStyle(t),n.props.showSearch&&void 0===window.orientation&&-1===navigator.userAgent.indexOf("IEMobile")&&t.querySelector(".rfipsearch__input").focus()})),de(fe(n),"handlePortalExit",(function(e){var t=e.childNodes[0];n.resetPortalStyle(t);var a=getComputedStyle(t).height;t.style.maxHeight=a})),de(fe(n),"handlePortalExiting",(function(e){var t=e.childNodes[0];t.style.maxHeight="0px",t.style.paddingTop="0px",t.style.paddingBottom="0px"})),de(fe(n),"renderIcon",(function(e){if("function"==typeof n.props.renderFunc)return n.props.renderFunc(e);if("class"===n.props.renderUsing)return i.a.createElement("i",{className:e});var t=de({},n.props.renderUsing,n.props.convertHex?function(e){return String.fromCodePoint(parseInt(e,10))}(e):e);return i.a.createElement("i",t)})),n.fipButtonRef=i.a.createRef(),n.fipDropDownRef=i.a.createRef(),n.state={currentCategory:0,currentPage:0,isOpen:!1,currentSearch:""},n.fipPortalComputedStyle=null,n}return function(e,t,a){t&&ce(e.prototype,t),a&&ce(e,a)}(a,[{key:"componentDidMount",value:function(){var e=this;["click"].forEach((function(t){document.addEventListener(t,e.handleOuterClick,!1)})),document.addEventListener("keydown",this.handleEscapeKeyboard,!1),this.props.onChange(this.state.value)}},{key:"componentWillUnmount",value:function(){var e=this;["click"].forEach((function(t){document.removeEventListener(t,e.handleOuterClick,!1)})),document.removeEventListener("keydown",this.handleEscapeKeyboard,!1)}},{key:"render",value:function(){var e={currentCategory:this.state.currentCategory,currentPage:this.state.currentPage,currentSearch:this.state.currentSearch,value:this.state.value,isMulti:this.props.isMulti,icons:this.props.icons,search:this.props.search,showCategory:this.props.showCategory,showSearch:this.props.showSearch,iconsPerPage:this.props.iconsPerPage,allCatPlaceholder:this.props.allCatPlaceholder,searchPlaceholder:this.props.searchPlaceholder,noIconPlaceholder:this.props.noIconPlaceholder,renderIcon:this.renderIcon,handleChangeValue:this.handleChangeValue,handleChangeCategory:this.handleChangeCategory,handleChangePage:this.handleChangePage,handleChangeSearch:this.handleChangeSearch};return i.a.createElement("div",{className:this.state.elemClass,ref:this.fipRef},i.a.createElement(b,{className:this.state.btnClass,isOpen:this.state.isOpen,onClick:this.handleToggle,domRef:this.fipButtonRef,isMulti:this.props.isMulti,value:this.state.value,renderIcon:this.renderIcon,handleDeleteValue:this.handleDeleteValue,noSelectedPlaceholder:this.props.noSelectedPlaceholder}),i.a.createElement(c.CSSTransition,{classNames:"fipappear",timeout:300,in:this.state.isOpen,unmountOnExit:!0,onEnter:this.handlePortalEnter,onEntering:this.handlePortalEntering,onEntered:this.handlePortalEntered,onExit:this.handlePortalExit,onExiting:this.handlePortalExiting},i.a.createElement(se,{appendRoot:this.props.appendTo,domRef:this.fipDropDownRef,btnRef:this.fipButtonRef,className:this.state.ddClass},i.a.createElement(X,e))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};return n.elemClass=a.getDerivedClassName("rfip",e.theme,e.isMulti,t.isOpen),n.btnClass=a.getDerivedClassName("rfipbtn",e.theme,e.isMulti,t.isOpen),n.ddClass=a.getDerivedClassName("rfipdropdown",e.theme,e.isMulti,t.isOpen),n.value=a.getDerivedValue(e.value,e.isMulti),e.showCategory||0===t.currentCategory||(n.currentCategory=0,n.currentPage=0),e.showSearch||""===t.currentSearch||(n.currentSearch="",n.currentPage=0),n}},{key:"getDerivedClassName",value:function(e,t,a,n){return l()(e,"".concat(e,"--").concat(t),de({},"".concat(e,"--multi"),a),"".concat(e,"--").concat(n?"open":"close"))}},{key:"getDerivedValue",value:function(e,t){var a=e;return t?a=Array.isArray(e)?oe(e):pe:"number"!=typeof e&&"string"!=typeof e&&(a=""),a}}]),a}();de(me,"propTypes",{icons:r.a.oneOfType([r.a.arrayOf(r.a.string),r.a.arrayOf(r.a.number),r.a.objectOf(r.a.oneOfType([r.a.arrayOf(r.a.number),r.a.arrayOf(r.a.string)]))]).isRequired,search:r.a.oneOfType([r.a.objectOf(r.a.arrayOf(r.a.string)),r.a.arrayOf(r.a.string)]),iconsPerPage:r.a.number,theme:r.a.string,onChange:r.a.func.isRequired,showCategory:r.a.bool,showSearch:r.a.bool,value:r.a.oneOfType([r.a.arrayOf(r.a.string),r.a.arrayOf(r.a.number),r.a.number,r.a.string]),isMulti:r.a.bool,renderUsing:r.a.string,convertHex:r.a.bool,renderFunc:r.a.func,appendTo:r.a.oneOfType([r.a.bool,r.a.string]),allCatPlaceholder:r.a.string,searchPlaceholder:r.a.string,noIconPlaceholder:r.a.string,noSelectedPlaceholder:r.a.string,closeOnSelect:r.a.bool}),de(me,"defaultProps",{search:null,iconsPerPage:20,theme:"default",showCategory:!0,showSearch:!0,value:null,isMulti:!1,renderUsing:"class",convertHex:!0,renderFunc:null,appendTo:!1,allCatPlaceholder:"Show from all",searchPlaceholder:"Search Icons",noIconPlaceholder:"No icons found",noSelectedPlaceholder:"Select icon",closeOnSelect:!1}),de(me,"displayName","FontIconPicker");var ge=me;t.default=ge}]).default)},454:e=>{"use strict";const t=(e,t,a)=>{const n=t<0?e.length+t:t;if(n>=0&&n<e.length){const n=a<0?e.length+a:a,[i]=e.splice(t,1);e.splice(n,0,i)}};e.exports=(e,a,n)=>(e=[...e],t(e,a,n),e),e.exports.mutate=t},184:(e,t)=>{var a;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var s=typeof a;if("string"===s||"number"===s)e.push(a);else if(Array.isArray(a)){if(a.length){var r=i.apply(null,a);r&&e.push(r)}}else if("object"===s){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){e.push(a.toString());continue}for(var o in a)n.call(a,o)&&a[o]&&e.push(o)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(a=function(){return i}.apply(t,[]))||(e.exports=a)}()},679:(e,t,a)=>{"use strict";var n=a(864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return n.isMemo(e)?r:o[e.$$typeof]||i}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=r;var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,a,n){if("string"!=typeof a){if(p){var i=d(a);i&&i!==p&&e(t,i,n)}var r=u(a);f&&(r=r.concat(f(a)));for(var o=l(t),m=l(a),g=0;g<r.length;++g){var b=r[g];if(!(s[b]||n&&n[b]||m&&m[b]||o&&o[b])){var y=h(a,b);try{c(t,b,y)}catch(e){}}}}return t}},143:e=>{"use strict";e.exports=function(e,t,a,n,i,s,r,o){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[a,n,i,s,r,o],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},703:(e,t,a)=>{"use strict";var n=a(414);function i(){}function s(){}s.resetWarningCache=i,e.exports=function(){function e(e,t,a,i,s,r){if(r!==n){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:i};return a.PropTypes=a,a}},697:(e,t,a)=>{e.exports=a(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},921:(e,t)=>{"use strict";var a="function"==typeof Symbol&&Symbol.for,n=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,s=a?Symbol.for("react.fragment"):60107,r=a?Symbol.for("react.strict_mode"):60108,o=a?Symbol.for("react.profiler"):60114,l=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,f=a?Symbol.for("react.concurrent_mode"):60111,h=a?Symbol.for("react.forward_ref"):60112,d=a?Symbol.for("react.suspense"):60113,p=a?Symbol.for("react.suspense_list"):60120,m=a?Symbol.for("react.memo"):60115,g=a?Symbol.for("react.lazy"):60116,b=a?Symbol.for("react.block"):60121,y=a?Symbol.for("react.fundamental"):60117,v=a?Symbol.for("react.responder"):60118,x=a?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case f:case s:case o:case r:case d:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return C(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=s,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=o,t.StrictMode=r,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||C(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return C(e)===c},t.isContextProvider=function(e){return C(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return C(e)===h},t.isFragment=function(e){return C(e)===s},t.isLazy=function(e){return C(e)===g},t.isMemo=function(e){return C(e)===m},t.isPortal=function(e){return C(e)===i},t.isProfiler=function(e){return C(e)===o},t.isStrictMode=function(e){return C(e)===r},t.isSuspense=function(e){return C(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===f||e===o||e===r||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===v||e.$$typeof===x||e.$$typeof===b)},t.typeOf=C},864:(e,t,a)=>{"use strict";e.exports=a(921)},604:(e,t,a)=>{"use strict";a.r(t),a.d(t,{CSSTransition:()=>_,ReplaceTransition:()=>R,SwitchTransition:()=>H,Transition:()=>S,TransitionGroup:()=>A,config:()=>h});var n=a(462),i=a(366),s=a(611);function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,s.Z)(e,t)}function o(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var l=a(196),c=a.n(l),u=a(850),f=a.n(u);const h={disabled:!1},d=c().createContext(null);var p=function(e){return e.scrollTop},m="unmounted",g="exited",b="entering",y="entered",v="exiting",x=function(e){function t(t,a){var n;n=e.call(this,t,a)||this;var i,s=a&&!a.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?s?(i=g,n.appearStatus=b):i=y:i=t.unmountOnExit||t.mountOnEnter?m:g,n.state={status:i},n.nextCallback=null,n}r(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===m?{status:g}:null};var a=t.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var a=this.state.status;this.props.in?a!==b&&a!==y&&(t=b):a!==b&&a!==y||(t=v)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,a,n=this.props.timeout;return e=t=a=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,a=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:a}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===b){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:f().findDOMNode(this);a&&p(a)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===g&&this.setState({status:m})},a.performEnter=function(e){var t=this,a=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[f().findDOMNode(this),n],s=i[0],r=i[1],o=this.getTimeouts(),l=n?o.appear:o.enter;!e&&!a||h.disabled?this.safeSetState({status:y},(function(){t.props.onEntered(s)})):(this.props.onEnter(s,r),this.safeSetState({status:b},(function(){t.props.onEntering(s,r),t.onTransitionEnd(l,(function(){t.safeSetState({status:y},(function(){t.props.onEntered(s,r)}))}))})))},a.performExit=function(){var e=this,t=this.props.exit,a=this.getTimeouts(),n=this.props.nodeRef?void 0:f().findDOMNode(this);t&&!h.disabled?(this.props.onExit(n),this.safeSetState({status:v},(function(){e.props.onExiting(n),e.onTransitionEnd(a.exit,(function(){e.safeSetState({status:g},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:g},(function(){e.props.onExited(n)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,a=!0;return this.nextCallback=function(n){a&&(a=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},a.onTransitionEnd=function(e,t){this.setNextCallback(t);var a=this.props.nodeRef?this.props.nodeRef.current:f().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(a&&!n){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],s=i[0],r=i[1];this.props.addEndListener(s,r)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===m)return null;var t=this.props,a=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,i.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return c().createElement(d.Provider,{value:null},"function"==typeof a?a(e,n):c().cloneElement(c().Children.only(a),n))},t}(c().Component);function C(){}x.contextType=d,x.propTypes={},x.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:C,onEntering:C,onEntered:C,onExit:C,onExiting:C,onExited:C},x.UNMOUNTED=m,x.EXITED=g,x.ENTERING=b,x.ENTERED=y,x.EXITING=v;const S=x;var w=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return n=t,void((a=e).classList?a.classList.remove(n):"string"==typeof a.className?a.className=o(a.className,n):a.setAttribute("class",o(a.className&&a.className.baseVal||"",n)));var a,n}))},k=function(e){function t(){for(var t,a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,a){var n=t.resolveArguments(e,a),i=n[0],s=n[1];t.removeClasses(i,"exit"),t.addClass(i,s?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,a)},t.onEntering=function(e,a){var n=t.resolveArguments(e,a),i=n[0],s=n[1]?"appear":"enter";t.addClass(i,s,"active"),t.props.onEntering&&t.props.onEntering(e,a)},t.onEntered=function(e,a){var n=t.resolveArguments(e,a),i=n[0],s=n[1]?"appear":"enter";t.removeClasses(i,s),t.addClass(i,s,"done"),t.props.onEntered&&t.props.onEntered(e,a)},t.onExit=function(e){var a=t.resolveArguments(e)[0];t.removeClasses(a,"appear"),t.removeClasses(a,"enter"),t.addClass(a,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var a=t.resolveArguments(e)[0];t.addClass(a,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var a=t.resolveArguments(e)[0];t.removeClasses(a,"exit"),t.addClass(a,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,a){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,a]},t.getClassNames=function(e){var a=t.props.classNames,n="string"==typeof a,i=n?(n&&a?a+"-":"")+e:a[e];return{baseClassName:i,activeClassName:n?i+"-active":a[e+"Active"],doneClassName:n?i+"-done":a[e+"Done"]}},t}r(t,e);var a=t.prototype;return a.addClass=function(e,t,a){var n=this.getClassNames(t)[a+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===a&&i&&(n+=" "+i),"active"===a&&e&&p(e),n&&(this.appliedClasses[t][a]=n,function(e,t){e&&t&&t.split(" ").forEach((function(t){return n=t,void((a=e).classList?a.classList.add(n):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(a,n)||("string"==typeof a.className?a.className=a.className+" "+n:a.setAttribute("class",(a.className&&a.className.baseVal||"")+" "+n)));var a,n}))}(e,n))},a.removeClasses=function(e,t){var a=this.appliedClasses[t],n=a.base,i=a.active,s=a.done;this.appliedClasses[t]={},n&&w(e,n),i&&w(e,i),s&&w(e,s)},a.render=function(){var e=this.props,t=(e.classNames,(0,i.Z)(e,["classNames"]));return c().createElement(S,(0,n.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(c().Component);k.defaultProps={classNames:""},k.propTypes={};const _=k;var O=a(326);function E(e,t){var a=Object.create(null);return e&&l.Children.map(e,(function(e){return e})).forEach((function(e){a[e.key]=function(e){return t&&(0,l.isValidElement)(e)?t(e):e}(e)})),a}function M(e,t,a){return null!=a[t]?a[t]:e.props[t]}function $(e,t,a){var n=E(e.children),i=function(e,t){function a(a){return a in t?t[a]:e[a]}e=e||{},t=t||{};var n,i=Object.create(null),s=[];for(var r in e)r in t?s.length&&(i[r]=s,s=[]):s.push(r);var o={};for(var l in t){if(i[l])for(n=0;n<i[l].length;n++){var c=i[l][n];o[i[l][n]]=a(c)}o[l]=a(l)}for(n=0;n<s.length;n++)o[s[n]]=a(s[n]);return o}(t,n);return Object.keys(i).forEach((function(s){var r=i[s];if((0,l.isValidElement)(r)){var o=s in t,c=s in n,u=t[s],f=(0,l.isValidElement)(u)&&!u.props.in;!c||o&&!f?c||!o||f?c&&o&&(0,l.isValidElement)(u)&&(i[s]=(0,l.cloneElement)(r,{onExited:a.bind(null,r),in:u.props.in,exit:M(r,"exit",e),enter:M(r,"enter",e)})):i[s]=(0,l.cloneElement)(r,{in:!1}):i[s]=(0,l.cloneElement)(r,{onExited:a.bind(null,r),in:!0,exit:M(r,"exit",e),enter:M(r,"enter",e)})}})),i}var P=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},T=function(e){function t(t,a){var n,i=(n=e.call(this,t,a)||this).handleExited.bind((0,O.Z)(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}r(t,e);var a=t.prototype;return a.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},a.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var a,n,i=t.children,s=t.handleExited;return{children:t.firstRender?(a=e,n=s,E(a.children,(function(e){return(0,l.cloneElement)(e,{onExited:n.bind(null,e),in:!0,appear:M(e,"appear",a),enter:M(e,"enter",a),exit:M(e,"exit",a)})}))):$(e,i,s),firstRender:!1}},a.handleExited=function(e,t){var a=E(this.props.children);e.key in a||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var a=(0,n.Z)({},t.children);return delete a[e.key],{children:a}})))},a.render=function(){var e=this.props,t=e.component,a=e.childFactory,n=(0,i.Z)(e,["component","childFactory"]),s=this.state.contextValue,r=P(this.state.children).map(a);return delete n.appear,delete n.enter,delete n.exit,null===t?c().createElement(d.Provider,{value:s},r):c().createElement(d.Provider,{value:s},c().createElement(t,n,r))},t}(c().Component);T.propTypes={},T.defaultProps={component:"div",childFactory:function(e){return e}};const A=T;var B=function(e){function t(){for(var t,a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).handleEnter=function(){for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return t.handleLifecycle("onEnter",0,a)},t.handleEntering=function(){for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return t.handleLifecycle("onEntering",0,a)},t.handleEntered=function(){for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return t.handleLifecycle("onEntered",0,a)},t.handleExit=function(){for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return t.handleLifecycle("onExit",1,a)},t.handleExiting=function(){for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return t.handleLifecycle("onExiting",1,a)},t.handleExited=function(){for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return t.handleLifecycle("onExited",1,a)},t}r(t,e);var a=t.prototype;return a.handleLifecycle=function(e,t,a){var n,i=this.props.children,s=c().Children.toArray(i)[t];if(s.props[e]&&(n=s.props)[e].apply(n,a),this.props[e]){var r=s.props.nodeRef?void 0:f().findDOMNode(this);this.props[e](r)}},a.render=function(){var e=this.props,t=e.children,a=e.in,n=(0,i.Z)(e,["children","in"]),s=c().Children.toArray(t),r=s[0],o=s[1];return delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,c().createElement(A,n,a?c().cloneElement(r,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):c().cloneElement(o,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(c().Component);B.propTypes={};const R=B;var I,D,N="out-in",L="in-out",F=function(e,t,a){return function(){var n;e.props[t]&&(n=e.props)[t].apply(n,arguments),a()}},z=((I={})[N]=function(e){var t=e.current,a=e.changeState;return c().cloneElement(t,{in:!1,onExited:F(t,"onExited",(function(){a(b,null)}))})},I[L]=function(e){var t=e.current,a=e.changeState,n=e.children;return[t,c().cloneElement(n,{in:!0,onEntered:F(n,"onEntered",(function(){a(b)}))})]},I),V=((D={})[N]=function(e){var t=e.children,a=e.changeState;return c().cloneElement(t,{in:!0,onEntered:F(t,"onEntered",(function(){a(y,c().cloneElement(t,{in:!0}))}))})},D[L]=function(e){var t=e.current,a=e.children,n=e.changeState;return[c().cloneElement(t,{in:!1,onExited:F(t,"onExited",(function(){n(y,c().cloneElement(a,{in:!0}))}))}),c().cloneElement(a,{in:!0})]},D),U=function(e){function t(){for(var t,a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).state={status:y,current:null},t.appeared=!1,t.changeState=function(e,a){void 0===a&&(a=t.state.current),t.setState({status:e,current:a})},t}r(t,e);var a=t.prototype;return a.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===b&&e.mode===L?{status:b}:!t.current||((a=t.current)===(n=e.children)||c().isValidElement(a)&&c().isValidElement(n)&&null!=a.key&&a.key===n.key)?{current:c().cloneElement(e.children,{in:!0})}:{status:v};var a,n},a.render=function(){var e,t=this.props,a=t.children,n=t.mode,i=this.state,s=i.status,r=i.current,o={children:a,current:r,changeState:this.changeState,status:s};switch(s){case b:e=V[n](o);break;case v:e=z[n](o);break;case y:e=r}return c().createElement(d.Provider,{value:{isMounting:!this.appeared}},e)},t}(c().Component);U.propTypes={},U.defaultProps={mode:N};const H=U},251:(e,t,a)=>{"use strict";var n=a(196),i=Symbol.for("react.element"),s=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),r=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,a){var n,l={},c=null,u=null;for(n in void 0!==a&&(c=""+a),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,n)&&!o.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===l[n]&&(l[n]=t[n]);return{$$typeof:i,type:e,key:c,ref:u,props:l,_owner:r.current}}},893:(e,t,a)=>{"use strict";e.exports=a(251)},933:(e,t,a)=>{var n;!function(){function i(e,t,a){return e.call.apply(e.bind,arguments)}function s(e,t,a){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var a=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(a,n),e.apply(t,a)}}return function(){return e.apply(t,arguments)}}function r(e,t,a){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?i:s).apply(null,arguments)}var o=Date.now||function(){return+new Date};function l(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var c=!!window.FontFace;function u(e,t,a,n){if(t=e.c.createElement(t),a)for(var i in a)a.hasOwnProperty(i)&&("style"==i?t.style.cssText=a[i]:t.setAttribute(i,a[i]));return n&&t.appendChild(e.c.createTextNode(n)),t}function f(e,t,a){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(a,e.lastChild)}function h(e){e.parentNode&&e.parentNode.removeChild(e)}function d(e,t,a){t=t||[],a=a||[];for(var n=e.className.split(/\s+/),i=0;i<t.length;i+=1){for(var s=!1,r=0;r<n.length;r+=1)if(t[i]===n[r]){s=!0;break}s||n.push(t[i])}for(t=[],i=0;i<n.length;i+=1){for(s=!1,r=0;r<a.length;r+=1)if(n[i]===a[r]){s=!0;break}s||t.push(n[i])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function p(e,t){for(var a=e.className.split(/\s+/),n=0,i=a.length;n<i;n++)if(a[n]==t)return!0;return!1}function m(e,t,a){function n(){o&&i&&s&&(o(r),o=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var i=!1,s=!0,r=null,o=a||null;c?(t.onload=function(){i=!0,n()},t.onerror=function(){i=!0,r=Error("Stylesheet failed to load"),n()}):setTimeout((function(){i=!0,n()}),0),f(e,"head",t)}function g(e,t,a,n){var i=e.c.getElementsByTagName("head")[0];if(i){var s=u(e,"script",{src:t}),r=!1;return s.onload=s.onreadystatechange=function(){r||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(r=!0,a&&a(null),s.onload=s.onreadystatechange=null,"HEAD"==s.parentNode.tagName&&i.removeChild(s))},i.appendChild(s),setTimeout((function(){r||(r=!0,a&&a(Error("Script load timeout")))}),n||5e3),s}return null}function b(){this.a=0,this.c=null}function y(e){return e.a++,function(){e.a--,x(e)}}function v(e,t){e.c=t,x(e)}function x(e){0==e.a&&e.c&&(e.c(),e.c=null)}function C(e){this.a=e||"-"}function S(e,t){this.c=e,this.f=4,this.a="n";var a=(t||"n4").match(/^([nio])([1-9])$/i);a&&(this.a=a[1],this.f=parseInt(a[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var a=0;a<e.length;a++){var n=e[a].replace(/['"]/g,"");-1!=n.indexOf(" ")||/^\d/.test(n)?t.push("'"+n+"'"):t.push(n)}return t.join(",")}function k(e){return e.a+e.f}function _(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function O(e){var t=4,a="n",n=null;return e&&((n=e.match(/(normal|oblique|italic)/i))&&n[1]&&(a=n[1].substr(0,1).toLowerCase()),(n=e.match(/([1-9]00|normal|bold)/i))&&n[1]&&(/bold/i.test(n[1])?t=7:/[1-9]00/.test(n[1])&&(t=parseInt(n[1].substr(0,1),10)))),a+t}function E(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new C("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function M(e){if(e.g){var t=p(e.f,e.a.c("wf","active")),a=[],n=[e.a.c("wf","loading")];t||a.push(e.a.c("wf","inactive")),d(e.f,a,n)}$(e,"inactive")}function $(e,t,a){e.j&&e.h[t]&&(a?e.h[t](a.c,k(a)):e.h[t]())}function P(){this.c={}}function T(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function A(e){f(e.c,"body",e.a)}function B(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+_(e)+";font-weight:"+e.f+"00;"}function R(e,t,a,n,i,s){this.g=e,this.j=t,this.a=n,this.c=a,this.f=i||3e3,this.h=s||void 0}function I(e,t,a,n,i,s,r){this.v=e,this.B=t,this.c=a,this.a=n,this.s=r||"BESbswy",this.f={},this.w=i||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new T(this.c,this.s),this.h=new T(this.c,this.s),this.j=new T(this.c,this.s),this.m=new T(this.c,this.s),e=B(e=new S(this.a.c+",serif",k(this.a))),this.g.a.style.cssText=e,e=B(e=new S(this.a.c+",sans-serif",k(this.a))),this.h.a.style.cssText=e,e=B(e=new S("serif",k(this.a))),this.j.a.style.cssText=e,e=B(e=new S("sans-serif",k(this.a))),this.m.a.style.cssText=e,A(this.g),A(this.h),A(this.j),A(this.m)}C.prototype.c=function(e){for(var t=[],a=0;a<arguments.length;a++)t.push(arguments[a].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},R.prototype.start=function(){var e=this.c.o.document,t=this,a=o(),n=new Promise((function(n,i){!function s(){o()-a>=t.f?i():e.fonts.load(function(e){return _(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?n():setTimeout(s,25)}),(function(){i()}))}()})),i=null,s=new Promise((function(e,a){i=setTimeout(a,t.f)}));Promise.race([s,n]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var D={D:"serif",C:"sans-serif"},N=null;function L(){if(null===N){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);N=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return N}function F(e,t,a){for(var n in D)if(D.hasOwnProperty(n)&&t===e.f[D[n]]&&a===e.f[D[n]])return!0;return!1}function z(e){var t,a=e.g.a.offsetWidth,n=e.h.a.offsetWidth;(t=a===e.f.serif&&n===e.f["sans-serif"])||(t=L()&&F(e,a,n)),t?o()-e.A>=e.w?L()&&F(e,a,n)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?V(e,e.v):V(e,e.B):function(e){setTimeout(r((function(){z(this)}),e),50)}(e):V(e,e.v)}function V(e,t){setTimeout(r((function(){h(this.g.a),h(this.h.a),h(this.j.a),h(this.m.a),t(this.a)}),e),0)}function U(e,t,a){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=a}I.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),z(this)};var H=null;function G(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&d(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),$(e,"active")):M(e.a))}function j(e){this.j=e,this.a=new P,this.h=0,this.f=this.g=!0}function W(e,t,a,n,i){var s=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,o=n||{};if(0===a.length&&s)M(t.a);else{t.f+=a.length,s&&(t.j=s);var l,c=[];for(l=0;l<a.length;l++){var u=a[l],f=o[u.c],h=t.a,p=u;if(h.g&&d(h.f,[h.a.c("wf",p.c,k(p).toString(),"loading")]),$(h,"fontloading",p),h=null,null===H)if(window.FontFace){p=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var m=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);H=p?42<parseInt(p[1],10):!m}else H=!1;h=H?new R(r(t.g,t),r(t.h,t),t.c,u,t.s,f):new I(r(t.g,t),r(t.h,t),t.c,u,t.s,e,f),c.push(h)}for(l=0;l<c.length;l++)c[l].start()}}),0)}function q(e,t){this.c=e,this.a=t}function Z(e,t){this.c=e,this.a=t}function Q(e,t){this.c=e||X,this.a=[],this.f=[],this.g=t||""}U.prototype.g=function(e){var t=this.a;t.g&&d(t.f,[t.a.c("wf",e.c,k(e).toString(),"active")],[t.a.c("wf",e.c,k(e).toString(),"loading"),t.a.c("wf",e.c,k(e).toString(),"inactive")]),$(t,"fontactive",e),this.m=!0,G(this)},U.prototype.h=function(e){var t=this.a;if(t.g){var a=p(t.f,t.a.c("wf",e.c,k(e).toString(),"active")),n=[],i=[t.a.c("wf",e.c,k(e).toString(),"loading")];a||n.push(t.a.c("wf",e.c,k(e).toString(),"inactive")),d(t.f,n,i)}$(t,"fontinactive",e),G(this)},j.prototype.load=function(e){this.c=new l(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,a){var n=[],i=a.timeout;!function(e){e.g&&d(e.f,[e.a.c("wf","loading")]),$(e,"loading")}(t),n=function(e,t,a){var n,i=[];for(n in t)if(t.hasOwnProperty(n)){var s=e.c[n];s&&i.push(s(t[n],a))}return i}(e.a,a,e.c);var s=new U(e.c,t,i);for(e.h=n.length,t=0,a=n.length;t<a;t++)n[t].load((function(t,a,n){W(e,s,t,a,n)}))}(this,new E(this.c,e),e)},q.prototype.load=function(e){function t(){if(s["__mti_fntLst"+n]){var a,i=s["__mti_fntLst"+n](),r=[];if(i)for(var o=0;o<i.length;o++){var l=i[o].fontfamily;null!=i[o].fontStyle&&null!=i[o].fontWeight?(a=i[o].fontStyle+i[o].fontWeight,r.push(new S(l,a))):r.push(new S(l))}e(r)}else setTimeout((function(){t()}),50)}var a=this,n=a.a.projectId,i=a.a.version;if(n){var s=a.c.o;g(this.c,(a.a.api||"https://fast.fonts.net/jsapi")+"/"+n+".js"+(i?"?v="+i:""),(function(i){i?e([]):(s["__MonotypeConfiguration__"+n]=function(){return a.a},t())})).id="__MonotypeAPIScript__"+n}else e([])},Z.prototype.load=function(e){var t,a,n=this.a.urls||[],i=this.a.families||[],s=this.a.testStrings||{},r=new b;for(t=0,a=n.length;t<a;t++)m(this.c,n[t],y(r));var o=[];for(t=0,a=i.length;t<a;t++)if((n=i[t].split(":"))[1])for(var l=n[1].split(","),c=0;c<l.length;c+=1)o.push(new S(n[0],l[c]));else o.push(new S(n[0]));v(r,(function(){e(o,s)}))};var X="https://fonts.googleapis.com/css";function K(e){this.f=e,this.a=[],this.c={}}var Y={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},J={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function ae(e,t){this.c=e,this.a=t}var ne={Arimo:!0,Cousine:!0,Tinos:!0};function ie(e,t){this.c=e,this.a=t}function se(e,t){this.c=e,this.f=t,this.a=[]}ae.prototype.load=function(e){var t=new b,a=this.c,n=new Q(this.a.api,this.a.text),i=this.a.families;!function(e,t){for(var a=t.length,n=0;n<a;n++){var i=t[n].split(":");3==i.length&&e.f.push(i.pop());var s="";2==i.length&&""!=i[1]&&(s=":"),e.a.push(i.join(s))}}(n,i);var s=new K(i);!function(e){for(var t=e.f.length,a=0;a<t;a++){var n=e.f[a].split(":"),i=n[0].replace(/\+/g," "),s=["n4"];if(2<=n.length){var r;if(r=[],o=n[1])for(var o,l=(o=o.split(",")).length,c=0;c<l;c++){var u;if((u=o[c]).match(/^[\w-]+$/))if(null==(f=te.exec(u.toLowerCase())))u="";else{if(u=null==(u=f[2])||""==u?"n":ee[u],null==(f=f[1])||""==f)f="4";else var f=J[f]||(isNaN(f)?"4":f.substr(0,1));u=[u,f].join("")}else u="";u&&r.push(u)}0<r.length&&(s=r),3==n.length&&(r=[],0<(n=(n=n[2])?n.split(","):r).length&&(n=Y[n[0]])&&(e.c[i]=n))}for(e.c[i]||(n=Y[i])&&(e.c[i]=n),n=0;n<s.length;n+=1)e.a.push(new S(i,s[n]))}}(s),m(a,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,a=[],n=0;n<t;n++)a.push(e.a[n].replace(/ /g,"+"));return t=e.c+"?family="+a.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(n),y(t)),v(t,(function(){e(s.a,s.c,ne)}))},ie.prototype.load=function(e){var t=this.a.id,a=this.c.o;t?g(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(a.Typekit&&a.Typekit.config&&a.Typekit.config.fn){t=a.Typekit.config.fn;for(var n=[],i=0;i<t.length;i+=2)for(var s=t[i],r=t[i+1],o=0;o<r.length;o++)n.push(new S(s,r[o]));try{a.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(n)}}),2e3):e([])},se.prototype.load=function(e){var t=this.f.id,a=this.c.o,n=this;t?(a.__webfontfontdeckmodule__||(a.__webfontfontdeckmodule__={}),a.__webfontfontdeckmodule__[t]=function(t,a){for(var i=0,s=a.fonts.length;i<s;++i){var r=a.fonts[i];n.a.push(new S(r.name,O("font-weight:"+r.weight+";font-style:"+r.style)))}e(n.a)},g(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new j(window);re.a.c.custom=function(e,t){return new Z(t,e)},re.a.c.fontdeck=function(e,t){return new se(t,e)},re.a.c.monotype=function(e,t){return new q(t,e)},re.a.c.typekit=function(e,t){return new ie(t,e)},re.a.c.google=function(e,t){return new ae(t,e)};var oe={load:r(re.load,re)};void 0===(n=function(){return oe}.call(t,a,t,e))||(e.exports=n)}()},196:e=>{"use strict";e.exports=window.React},850:e=>{"use strict";e.exports=window.ReactDOM},326:(e,t,a)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}a.d(t,{Z:()=>n})},462:(e,t,a)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},n.apply(this,arguments)}a.d(t,{Z:()=>n})},366:(e,t,a)=>{"use strict";function n(e,t){if(null==e)return{};var a,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)a=s[n],t.indexOf(a)>=0||(i[a]=e[a]);return i}a.d(t,{Z:()=>n})},611:(e,t,a)=>{"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}a.d(t,{Z:()=>n})}},t={};function a(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,a),s.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";a.r(n),a.d(n,{AccordionIcon:()=>we,AdvancedControls:()=>_S,AnimationControls:()=>to,BackgroundControl:()=>xe,BorderShadowControl:()=>bt,ButtonIcon:()=>ke,CallToActionIcon:()=>Ee,CategoryIcon:()=>Ze,CenterAlignIcon:()=>et,ColorControl:()=>m,ColumnIcon:()=>at,CountdownIcon:()=>_e,CounterIcon:()=>Oe,CustomQuery:()=>Vs,DealSocialProfiles:()=>Gr,DynamicInputControl:()=>ao,DynamicInputValueHandler:()=>no,EbImageSizeSelector:()=>j,FlipboxIcon:()=>Me,GradientColorControl:()=>f,HeadingIcon:()=>Ue,Icon01z1x100:()=>it,Icon02z2x50:()=>st,Icon03z3x33_33:()=>rt,Icon04z4x25:()=>ot,Icon05z34y66:()=>lt,Icon06z66y34:()=>ct,Icon07z25y25y50:()=>ut,Icon08z50y25y25:()=>ft,Icon09z25y50y25:()=>ht,Icon10z5x20:()=>dt,Icon11z6x16_66:()=>pt,Icon12z16y66y16:()=>mt,ImageAvatar:()=>g,ImageComparisonIcon:()=>Ne,ImageGalleryIcon:()=>Ve,InfoboxIcon:()=>$e,InstagramIcon:()=>ze,InstagramOriginalIcon:()=>je,InteractivePromoIcon:()=>Be,JustifyAlignIcon:()=>tt,LeftAlignIcon:()=>Ye,MorePosts:()=>Us,NoticeIcon:()=>Pe,ParallaxSliderIcon:()=>qe,PricingTableIcon:()=>Te,ProSelectControl:()=>zs,ProgressbarIcon:()=>Ae,ResetControl:()=>be,ResponsiveAlignControl:()=>yo,ResponsiveDimensionsControl:()=>Se,ResponsiveRangeController:()=>Ys,ResponsiveSelectController:()=>er,RightAlignIcon:()=>Je,RowIcon:()=>nt,SaveIcon:()=>We,ShapeDividerContent:()=>ce,ShapeDividerControl:()=>io,SliderIcon:()=>He,SocialIcon:()=>Re,SortableControl:()=>po,StyleComponent:()=>K,TOC_Icon:()=>gt,TeamMembersIcon:()=>Ie,TestIcon:()=>Le,TestimonialIcon:()=>De,ToggleButton:()=>r,ToggleContentIcon:()=>Qe,TypingTextIcon:()=>Ge,TypographyDropdown:()=>Jr,TypographyIcon:()=>Xe,UnitControl:()=>h,UserIcon:()=>Ke,WithResBtns:()=>Ks,WoocommerceQuery:()=>Xs,WrapperIcon:()=>Fe,duplicateBlockIdFix:()=>H,ebConditionalRegisterBlockType:()=>me,ebImageSizes:()=>G,ebJsonStringCheck:()=>fe,ebStringToComponentName:()=>he,faArrowIcons:()=>go,faIcons:()=>mo,fetchEBSettingsData:()=>ae,fetchOptionsData:()=>ee,filterBlocksByName:()=>de,generateBackgroundAttributes:()=>v,generateBackgroundControlStyles:()=>x,generateBorderShadowAttributes:()=>E,generateBorderShadowStyles:()=>M,generateDimensionsAttributes:()=>_,generateDimensionsControlStyles:()=>O,generateResponsiveAlignAttributes:()=>B,generateResponsiveAlignStyles:()=>R,generateResponsiveRangeAttributes:()=>$,generateResponsiveRangeStyles:()=>P,generateResponsiveSelectControlAttributes:()=>T,generateResponsiveSelectControlStyles:()=>A,generateShapeDividerAttributes:()=>Y,generateShapeDividerStyles:()=>J,generateTypographyAttributes:()=>w,generateTypographyStyles:()=>k,getBlockParentClientId:()=>pe,getButtonClasses:()=>Q,getFlipTransform:()=>Z,isValidHtml:()=>q,mimmikCssForPreviewBtnClick:()=>V,mimmikCssForResBtns:()=>z,mimmikCssOnPreviewBtnClickWhileBlockSelected:()=>U,saveEBSettingsData:()=>ne,saveOptionsData:()=>te,softMinifyCssStrings:()=>D,stripHtmlTags:()=>W,textInsideForEdit:()=>I});const e=window.wp.element,t=window.wp.i18n,i=window.wp.components,s=window.wp.blockEditor,r=t=>{let{options:a,onChange:n,defaultSelected:i}=t;const[s,r]=(0,e.useState)(i||a[0]);return(0,e.useEffect)((()=>{n(s.value)}),[s]),(0,e.useEffect)((()=>{i&&r(i)}),[i]),(0,e.createElement)("div",{id:"switch",className:"eb-switch-control"},a.map(((t,a)=>(0,e.createElement)("label",{key:a},(0,e.createElement)("input",{type:"radio",name:"gh",placeholder:"name",onChange:()=>r(t)}),(0,e.createElement)("span",{style:{color:s.value===t.value?"white":"black"}},t.label)))),(0,e.createElement)("span",{className:"slideBg",style:{backgroundColor:"#551ef7",transform:s==a[0]?"translateX(0)":"translateX(100%)"}}))},o=[{label:"Linear",value:"linear"},{label:"Radial",value:"radial"}],l=[{label:"Ellipse",value:"ellipse"},{label:"Circle",value:"circle"}],c={padding:2,borderRadius:0,background:"white",border:"1px solid #ebebeb"},u={height:16,width:16,borderRadius:"0%",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)"},f=a=>{let{gradientColor:n="linear-gradient(45deg,rgba(0,0,0,0.8),rgba(0,0,0,0.4))",onChange:s}=a;const[f,h]=(0,e.useState)("linear"),[d,p]=(0,e.useState)("transparent"),[m,g]=(0,e.useState)(0),[b,y]=(0,e.useState)("transparent"),[v,x]=(0,e.useState)(100),[C,S]=(0,e.useState)(0),[w,k]=(0,e.useState)("ellipse"),[_,O]=(0,e.useState)(50),[E,M]=(0,e.useState)(50);(0,e.useEffect)((()=>{let{gradientType:e,angle:t,colorOne:a,colorTwo:i,colorOnePosition:s,colorTwoPosition:r,radialShape:o,radialX:l,radialY:c}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"linear-gradient(45deg,#7967ff,#c277f2)",t=45,a=0,n=100,i="ellipse",s=50,r=50;const[o,l]=e.match(/\#[a-f\d]{3,8}|rgba?\([\d\,\.]{3,16}\)/gi)||["rgba(0,0,0,0)","rgba(0,0,0,0)"],[c]=e.match(/\w{6}(?=-)/i)||["linear"];if("linear"==c)t=e.match(/\d{1,3}(?=deg)/i)[0],[a,n]=e.match(/\d{1,3}(?=\%)/gi)||["0","100"];else{i=(e.match(/\w+(?= at)/i)||["circle"])[0];const t=e.match(/\d{1,3}(?=\%)/gi)||["50","50","18","82"];s=t[0],r=t[1],a=t[2],n=t[3]}return{gradientType:c,angle:parseInt(t),colorOne:o,colorTwo:l,colorOnePosition:parseInt(a),colorTwoPosition:parseInt(n),radialShape:i,radialX:parseInt(s),radialY:parseInt(r)}}(n);h(e),S(t),p(a),y(i),g(s),x(r),k(o),O(l),M(c)}),[]),(0,e.useEffect)((()=>{s("linear"===f?T():P())}),[f,d,m,b,v,C,w,_,E]);const $=()=>`${d} ${m}% , ${b} ${v}%`,P=()=>`radial-gradient(${w} at ${_}% ${E}%, ${$()})`,T=()=>`linear-gradient(${C}deg, ${$()})`;return(0,e.createElement)("div",{className:"eb-gradient-control"},(0,e.createElement)(i.BaseControl,{label:(0,t.__)("Gradient Type","essential-blocks"),className:"eb-gradient-toggle-label"},(0,e.createElement)(r,{defaultSelected:"linear"===f?o[0]:o[1],options:o,onChange:e=>h(e)})),"radial"===f&&(0,e.createElement)(i.BaseControl,{label:(0,t.__)("Radial Type","essential-blocks"),className:"eb-gradient-toggle-label"},(0,e.createElement)(r,{defaultSelected:"ellipse"===w?l[0]:l[1],options:l,onChange:e=>k(e)})),(0,e.createElement)(i.BaseControl,{label:"First Color",className:"eb-color-base"},(0,e.createElement)(i.Dropdown,{renderToggle:t=>{let{isOpen:a,onToggle:n}=t;return(0,e.createElement)(i.Tooltip,{text:d||"default"},(0,e.createElement)("div",{className:"eb-color-ball",style:d&&c},(0,e.createElement)("div",{style:{...u,backgroundColor:d},"aria-expanded":a,onClick:n,"aria-label":d||"default"})))},renderContent:()=>(0,e.createElement)(i.ColorPicker,{color:d,onChangeComplete:e=>{let{rgb:t}=e;p(`rgba(${t.r},${t.g},${t.b},${t.a})`)}})})),(0,e.createElement)(i.BaseControl,{label:"Second Color",className:"eb-color-base"},(0,e.createElement)(i.Dropdown,{renderToggle:t=>{let{isOpen:a,onToggle:n}=t;return(0,e.createElement)(i.Tooltip,{text:b||"default"},(0,e.createElement)("div",{className:"eb-color-ball",style:b&&c},(0,e.createElement)("div",{style:{...u,backgroundColor:b},"aria-expanded":a,onClick:n,"aria-label":b||"default"})))},renderContent:()=>(0,e.createElement)(i.ColorPicker,{color:b,onChangeComplete:e=>{let{rgb:t}=e;y(`rgba(${t.r},${t.g},${t.b},${t.a})`)}})})),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("First Color Position","essential-blocks"),value:m,onChange:e=>g(e),min:0,max:100}),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Second Color Position","essential-blocks"),value:v,onChange:e=>x(e),min:0,max:100}),"linear"===f&&(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Angle","essential-blocks"),value:C,onChange:e=>S(e),min:0,max:360}),"radial"===f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Center X Position","essential-blocks"),value:_,onChange:e=>O(e),min:0,max:100}),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Center Y Position","essential-blocks"),value:E,onChange:e=>M(e),min:0,max:100})))},h=t=>{let{selectedUnit:a,unitTypes:n,onClick:s}=t;return(0,e.createElement)(i.ButtonGroup,{className:"eb-unit-control-btn-group"},n.map(((t,n)=>(0,e.createElement)(i.Button,{key:n,className:`eb-unit-control-btn ${t.value===a&&"eb-unit-active"}`,isSmall:!0,isPrimary:t.value===a,onClick:()=>s(t.value)},t.label))))},d={padding:2,borderRadius:0,background:"white",border:"1px solid #ebebeb"},p={height:16,width:16,borderRadius:"0%",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)"},m=t=>{let{label:a,color:n,onChange:s,defaultColor:r}=t;const[o,l]=(0,e.useState)(null);return(0,e.useEffect)((()=>{s(o)}),[o]),(0,e.useEffect)((()=>{l(n||r)}),[]),(0,e.createElement)(i.BaseControl,{label:a||"",className:"eb-color-base"},(0,e.createElement)(i.Dropdown,{renderToggle:t=>{let{isOpen:a,onToggle:n}=t;return(0,e.createElement)(i.Tooltip,{text:o||"default"},(0,e.createElement)("div",{className:"eb-color-ball",style:o&&d},(0,e.createElement)("div",{style:{...p,backgroundColor:o},"aria-expanded":a,onClick:n,"aria-label":o||"default"})))},renderContent:()=>(0,e.createElement)(i.ColorPicker,{color:o,onChangeComplete:e=>{let{rgb:t}=e;l(`rgba(${t.r},${t.g},${t.b},${t.a})`)}})}),o&&(0,e.createElement)(i.Button,{isSmall:!0,className:"eb-color-undo",icon:"image-rotate",style:{transform:"scaleX(-1) rotate(90deg)"},onClick:()=>{l(r)}}))},g=t=>{let{imageUrl:a,onDeleteImage:n}=t;const[i,s]=(0,e.useState)(!1),[r,o]=(0,e.useState)(!1),l={visibility:i?"visible":"hidden",backgroundColor:r?"white":"#64666a",color:"#b4b5b7",position:"absolute",right:34,fontSize:16,alignSelf:"center",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:3,cursor:"pointer"};return(0,e.createElement)("div",{className:"image-avatar",style:{backgroundImage:`url(${a})`},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},(0,e.createElement)("span",{className:"image-avatar-delete dashicons dashicons-trash",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),style:l,onClick:()=>n()}))},b=window.wp.data,y=window.wp.blocks,v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{isBgDefaultGradient:a,defaultFillColor:n,defaultBgGradient:i="linear-gradient(45deg,#00000000,#00000000)",defaultHovBgGradient:s,noOverlay:r=!1,noMainBgi:o=!1,noOverlayBgi:l=!1,noTransition:c=!1,forButton:u=!1}=t,f={[`${e}bg_hoverType`]:{type:"string",default:"normal"},...c?{}:{[`${e}bg_transition`]:{type:"number",default:.5}},[`${e}backgroundType`]:{type:"string",default:!0===a?"gradient":"classic"},...n?{[`${e}backgroundColor`]:{type:"string",default:n}}:{[`${e}backgroundColor`]:{type:"string"}},[`${e}gradientColor`]:{type:"string",default:i},[`hov_${e}backgroundType`]:{type:"string",default:"classic"},[`hov_${e}backgroundColor`]:{type:"string"},...s?{[`hov_${e}gradientColor`]:{type:"string",default:s}}:{[`hov_${e}gradientColor`]:{type:"string"}}},h={[`${e}bgImageURL`]:{type:"string"},[`${e}bgImageID`]:{type:"string"},[`${e}bgImgAttachment`]:{type:"string"},[`${e}backgroundSize`]:{type:"string"},[`${e}bgImgCustomSize`]:{type:"number",default:100},[`${e}bgImgCustomSizeUnit`]:{type:"string",default:"%"},[`${e}bgImgPos`]:{type:"string"},[`${e}bgImgcustomPosX`]:{type:"number",default:0},[`${e}bgImgcustomPosXUnit`]:{type:"string",default:"px"},[`${e}bgImgcustomPosY`]:{type:"number",default:0},[`${e}bgImgcustomPosYUnit`]:{type:"string",default:"px"},[`${e}bgImgRepeat`]:{type:"string"},[`TAB${e}backgroundSize`]:{type:"string"},[`TAB${e}bgImgCustomSize`]:{type:"number",default:100},[`TAB${e}bgImgCustomSizeUnit`]:{type:"string",default:"%"},[`TAB${e}bgImgPos`]:{type:"string"},[`TAB${e}bgImgcustomPosX`]:{type:"number",default:0},[`TAB${e}bgImgcustomPosXUnit`]:{type:"string",default:"px"},[`TAB${e}bgImgcustomPosY`]:{type:"number",default:0},[`TAB${e}bgImgcustomPosYUnit`]:{type:"string",default:"px"},[`TAB${e}bgImgRepeat`]:{type:"string"},[`MOB${e}backgroundSize`]:{type:"string"},[`MOB${e}bgImgCustomSize`]:{type:"number",default:100},[`MOB${e}bgImgCustomSizeUnit`]:{type:"string",default:"%"},[`MOB${e}bgImgPos`]:{type:"string"},[`MOB${e}bgImgcustomPosX`]:{type:"number",default:0},[`MOB${e}bgImgcustomPosXUnit`]:{type:"string",default:"px"},[`MOB${e}bgImgcustomPosY`]:{type:"number",default:0},[`MOB${e}bgImgcustomPosYUnit`]:{type:"string",default:"px"},[`MOB${e}bgImgRepeat`]:{type:"string"},[`hov_${e}bgImageURL`]:{type:"string"},[`hov_${e}bgImageID`]:{type:"string"},[`hov_${e}bgImgAttachment`]:{type:"string"},[`hov_${e}backgroundSize`]:{type:"string"},[`hov_${e}bgImgCustomSize`]:{type:"number",default:100},[`hov_${e}bgImgCustomSizeUnit`]:{type:"string",default:"%"},[`hov_${e}bgImgPos`]:{type:"string"},[`hov_${e}bgImgcustomPosX`]:{type:"number",default:0},[`hov_${e}bgImgcustomPosXUnit`]:{type:"string",default:"px"},[`hov_${e}bgImgcustomPosY`]:{type:"number",default:0},[`hov_${e}bgImgcustomPosYUnit`]:{type:"string",default:"px"},[`hov_${e}bgImgRepeat`]:{type:"string"},[`hov_TAB${e}backgroundSize`]:{type:"string"},[`hov_TAB${e}bgImgCustomSize`]:{type:"number"},[`hov_TAB${e}bgImgCustomSizeUnit`]:{type:"string",default:"%"},[`hov_TAB${e}bgImgPos`]:{type:"string"},[`hov_TAB${e}bgImgcustomPosX`]:{type:"number"},[`hov_TAB${e}bgImgcustomPosXUnit`]:{type:"string",default:"px"},[`hov_TAB${e}bgImgcustomPosY`]:{type:"number"},[`hov_TAB${e}bgImgcustomPosYUnit`]:{type:"string",default:"px"},[`hov_TAB${e}bgImgRepeat`]:{type:"string"},[`hov_MOB${e}backgroundSize`]:{type:"string"},[`hov_MOB${e}bgImgCustomSize`]:{type:"number"},[`hov_MOB${e}bgImgCustomSizeUnit`]:{type:"string",default:"%"},[`hov_MOB${e}bgImgPos`]:{type:"string"},[`hov_MOB${e}bgImgcustomPosX`]:{type:"number"},[`hov_MOB${e}bgImgcustomPosXUnit`]:{type:"string",default:"px"},[`hov_MOB${e}bgImgcustomPosY`]:{type:"number"},[`hov_MOB${e}bgImgcustomPosYUnit`]:{type:"string",default:"px"},[`hov_MOB${e}bgImgRepeat`]:{type:"string"}},d={[`${e}isBgOverlay`]:{type:"boolean",default:!1},...c?{}:{[`${e}ovl_bg_transition`]:{type:"number",default:.5},[`${e}ovl_filtersTransition`]:{type:"number",default:.5},[`${e}ovl_opacityTransition`]:{type:"number",default:.5}},[`${e}ovl_hoverType`]:{type:"string",default:"normal"},[`${e}overlayType`]:{type:"string",default:"classic"},[`${e}overlayColor`]:{type:"string"},[`${e}overlayGradient`]:{type:"string",default:"linear-gradient(45deg,#000000cc,#00000099)"},[`${e}ovl_opacity`]:{type:"number",default:.5},[`${e}ovl_blendMode`]:{type:"string"},[`${e}ovl_allowFilters`]:{type:"boolean",default:!1},[`${e}ovl_fltrBrightness`]:{type:"number",default:100},[`${e}ovl_fltrContrast`]:{type:"number",default:100},[`${e}ovl_fltrSaturation`]:{type:"number",default:100},[`${e}ovl_fltrBlur`]:{type:"number",default:0},[`${e}ovl_fltrHue`]:{type:"number",default:0},[`hov_${e}overlayType`]:{type:"string",default:"classic"},[`hov_${e}overlayColor`]:{type:"string"},[`hov_${e}overlayGradient`]:{type:"string"},[`hov_${e}ovl_bgImageURL`]:{type:"string"},[`hov_${e}ovl_bgImageID`]:{type:"string"},[`hov_${e}ovl_bgImgAttachment`]:{type:"string"},[`hov_${e}ovl_opacity`]:{type:"number"},[`hov_${e}ovl_blendMode`]:{type:"string"},[`hov_${e}ovl_allowFilters`]:{type:"boolean",default:!1},[`hov_${e}ovl_fltrBrightness`]:{type:"number"},[`hov_${e}ovl_fltrContrast`]:{type:"number"},[`hov_${e}ovl_fltrSaturation`]:{type:"number"},[`hov_${e}ovl_fltrBlur`]:{type:"number"},[`hov_${e}ovl_fltrHue`]:{type:"number"}},p={[`${e}ovl_bgImageURL`]:{type:"string"},[`${e}ovl_bgImageID`]:{type:"string"},[`${e}ovl_bgImgAttachment`]:{type:"string"},[`${e}ovl_backgroundSize`]:{type:"string"},[`${e}ovl_bgImgCustomSize`]:{type:"number",default:100},[`${e}ovl_bgImgCustomSizeUnit`]:{type:"string",default:"%"},[`${e}ovl_bgImgPos`]:{type:"string"},[`${e}ovl_bgImgcustomPosX`]:{type:"number",default:0},[`${e}ovl_bgImgcustomPosXUnit`]:{type:"string",default:"px"},[`${e}ovl_bgImgcustomPosY`]:{type:"number",default:0},[`${e}ovl_bgImgcustomPosYUnit`]:{type:"string",default:"px"},[`${e}ovl_bgImgRepeat`]:{type:"string"},[`TAB${e}ovl_backgroundSize`]:{type:"string"},[`TAB${e}ovl_bgImgCustomSize`]:{type:"number",default:100},[`TAB${e}ovl_bgImgCustomSizeUnit`]:{type:"string",default:"%"},[`TAB${e}ovl_bgImgPos`]:{type:"string"},[`TAB${e}ovl_bgImgcustomPosX`]:{type:"number",default:0},[`TAB${e}ovl_bgImgcustomPosXUnit`]:{type:"string",default:"px"},[`TAB${e}ovl_bgImgcustomPosY`]:{type:"number",default:0},[`TAB${e}ovl_bgImgcustomPosYUnit`]:{type:"string",default:"px"},[`TAB${e}ovl_bgImgRepeat`]:{type:"string"},[`MOB${e}ovl_backgroundSize`]:{type:"string"},[`MOB${e}ovl_bgImgCustomSize`]:{type:"number",default:100},[`MOB${e}ovl_bgImgCustomSizeUnit`]:{type:"string",default:"%"},[`MOB${e}ovl_bgImgPos`]:{type:"string"},[`MOB${e}ovl_bgImgcustomPosX`]:{type:"number",default:0},[`MOB${e}ovl_bgImgcustomPosXUnit`]:{type:"string",default:"px"},[`MOB${e}ovl_bgImgcustomPosY`]:{type:"number",default:0},[`MOB${e}ovl_bgImgcustomPosYUnit`]:{type:"string",default:"px"},[`MOB${e}ovl_bgImgRepeat`]:{type:"string"},[`hov_${e}ovl_backgroundSize`]:{type:"string"},[`hov_${e}ovl_bgImgCustomSize`]:{type:"number",default:100},[`hov_${e}ovl_bgImgCustomSizeUnit`]:{type:"string",default:"%"},[`hov_${e}ovl_bgImgPos`]:{type:"string"},[`hov_${e}ovl_bgImgcustomPosX`]:{type:"number",default:0},[`hov_${e}ovl_bgImgcustomPosXUnit`]:{type:"string",default:"px"},[`hov_${e}ovl_bgImgcustomPosY`]:{type:"number",default:0},[`hov_${e}ovl_bgImgcustomPosYUnit`]:{type:"string",default:"px"},[`hov_${e}ovl_bgImgRepeat`]:{type:"string"},[`hov_TAB${e}ovl_backgroundSize`]:{type:"string"},[`hov_TAB${e}ovl_bgImgCustomSize`]:{type:"number"},[`hov_TAB${e}ovl_bgImgCustomSizeUnit`]:{type:"string",default:"%"},[`hov_TAB${e}ovl_bgImgPos`]:{type:"string"},[`hov_TAB${e}ovl_bgImgcustomPosX`]:{type:"number"},[`hov_TAB${e}ovl_bgImgcustomPosXUnit`]:{type:"string",default:"px"},[`hov_TAB${e}ovl_bgImgcustomPosY`]:{type:"number"},[`hov_TAB${e}ovl_bgImgcustomPosYUnit`]:{type:"string",default:"px"},[`hov_TAB${e}ovl_bgImgRepeat`]:{type:"string"},[`hov_MOB${e}ovl_backgroundSize`]:{type:"string"},[`hov_MOB${e}ovl_bgImgCustomSize`]:{type:"number"},[`hov_MOB${e}ovl_bgImgCustomSizeUnit`]:{type:"string",default:"%"},[`hov_MOB${e}ovl_bgImgPos`]:{type:"string"},[`hov_MOB${e}ovl_bgImgcustomPosX`]:{type:"number"},[`hov_MOB${e}ovl_bgImgcustomPosXUnit`]:{type:"string",default:"px"},[`hov_MOB${e}ovl_bgImgcustomPosY`]:{type:"number"},[`hov_MOB${e}ovl_bgImgcustomPosYUnit`]:{type:"string",default:"px"},[`hov_MOB${e}ovl_bgImgRepeat`]:{type:"string"}};let m={};return m=!0===u?{...f}:!0===r?!0===o?{...f}:{...f,...h}:!0===l&&!0===o?{...f,...d}:!0===l&&!1===o?{...f,...h,...d}:!1===l&&!0===o?{...f,...d,...p}:{...f,...h,...d,...p},m},x=e=>{let{controlName:t,attributes:a,noOverlay:n=!1,noMainBgi:i=!1,noOverlayBgi:s=!1,noTransition:r=!1,forButton:o=!1}=e,l=n,c=i,u=s;!0===o&&(l=!0,c=!0,u=!0);const{[`${t}bg_transition`]:f,[`${t}backgroundType`]:h,[`${t}backgroundColor`]:d,[`${t}gradientColor`]:p,[`${t}bgImageURL`]:m,[`${t}backgroundSize`]:g,[`${t}bgImgCustomSize`]:b,[`${t}bgImgCustomSizeUnit`]:y,[`${t}bgImgPos`]:v,[`${t}bgImgcustomPosX`]:x,[`${t}bgImgcustomPosXUnit`]:C,[`${t}bgImgcustomPosY`]:S,[`${t}bgImgcustomPosYUnit`]:w,[`${t}bgImgAttachment`]:k,[`${t}bgImgRepeat`]:_,[`TAB${t}backgroundSize`]:O,[`TAB${t}bgImgCustomSize`]:E,[`TAB${t}bgImgCustomSizeUnit`]:M,[`TAB${t}bgImgPos`]:$,[`TAB${t}bgImgcustomPosX`]:P,[`TAB${t}bgImgcustomPosXUnit`]:T,[`TAB${t}bgImgcustomPosY`]:A,[`TAB${t}bgImgcustomPosYUnit`]:B,[`TAB${t}bgImgRepeat`]:R,[`MOB${t}backgroundSize`]:I,[`MOB${t}bgImgCustomSize`]:D,[`MOB${t}bgImgCustomSizeUnit`]:N,[`MOB${t}bgImgPos`]:L,[`MOB${t}bgImgcustomPosX`]:F,[`MOB${t}bgImgcustomPosXUnit`]:z,[`MOB${t}bgImgcustomPosY`]:V,[`MOB${t}bgImgcustomPosYUnit`]:U,[`MOB${t}bgImgRepeat`]:H,[`hov_${t}backgroundType`]:G,[`hov_${t}backgroundColor`]:j,[`hov_${t}gradientColor`]:W,[`hov_${t}bgImageURL`]:q,[`hov_${t}bgImgAttachment`]:Z,[`hov_${t}backgroundSize`]:Q,[`hov_${t}bgImgCustomSize`]:X,[`hov_${t}bgImgCustomSizeUnit`]:K,[`hov_${t}bgImgPos`]:Y,[`hov_${t}bgImgcustomPosX`]:J,[`hov_${t}bgImgcustomPosXUnit`]:ee,[`hov_${t}bgImgcustomPosY`]:te,[`hov_${t}bgImgcustomPosYUnit`]:ae,[`hov_${t}bgImgRepeat`]:ne,[`hov_TAB${t}backgroundSize`]:ie,[`hov_TAB${t}bgImgCustomSize`]:se,[`hov_TAB${t}bgImgCustomSizeUnit`]:re,[`hov_TAB${t}bgImgPos`]:oe,[`hov_TAB${t}bgImgcustomPosX`]:le,[`hov_TAB${t}bgImgcustomPosXUnit`]:ce,[`hov_TAB${t}bgImgcustomPosY`]:ue,[`hov_TAB${t}bgImgcustomPosYUnit`]:fe,[`hov_TAB${t}bgImgRepeat`]:he,[`hov_MOB${t}backgroundSize`]:de,[`hov_MOB${t}bgImgCustomSize`]:pe,[`hov_MOB${t}bgImgCustomSizeUnit`]:me,[`hov_MOB${t}bgImgPos`]:ge,[`hov_MOB${t}bgImgcustomPosX`]:be,[`hov_MOB${t}bgImgcustomPosXUnit`]:ye,[`hov_MOB${t}bgImgcustomPosY`]:ve,[`hov_MOB${t}bgImgcustomPosYUnit`]:xe,[`hov_MOB${t}bgImgRepeat`]:Ce,[`${t}isBgOverlay`]:Se,[`${t}ovl_bg_transition`]:we,[`${t}ovl_filtersTransition`]:ke,[`${t}ovl_opacityTransition`]:_e,[`${t}overlayType`]:Oe,[`${t}overlayColor`]:Ee,[`${t}overlayGradient`]:Me,[`${t}ovl_bgImageURL`]:$e,[`${t}ovl_bgImgAttachment`]:Pe,[`${t}ovl_opacity`]:Te,[`${t}ovl_blendMode`]:Ae,[`${t}ovl_allowFilters`]:Be,[`${t}ovl_fltrBrightness`]:Re,[`${t}ovl_fltrContrast`]:Ie,[`${t}ovl_fltrSaturation`]:De,[`${t}ovl_fltrBlur`]:Ne,[`${t}ovl_fltrHue`]:Le,[`${t}ovl_backgroundSize`]:Fe,[`${t}ovl_bgImgCustomSize`]:ze,[`${t}ovl_bgImgCustomSizeUnit`]:Ve,[`${t}ovl_bgImgPos`]:Ue,[`${t}ovl_bgImgcustomPosX`]:He,[`${t}ovl_bgImgcustomPosXUnit`]:Ge,[`${t}ovl_bgImgcustomPosY`]:je,[`${t}ovl_bgImgcustomPosYUnit`]:We,[`${t}ovl_bgImgRepeat`]:qe,[`TAB${t}ovl_backgroundSize`]:Ze,[`TAB${t}ovl_bgImgCustomSize`]:Qe,[`TAB${t}ovl_bgImgCustomSizeUnit`]:Xe,[`TAB${t}ovl_bgImgPos`]:Ke,[`TAB${t}ovl_bgImgcustomPosX`]:Ye,[`TAB${t}ovl_bgImgcustomPosXUnit`]:Je,[`TAB${t}ovl_bgImgcustomPosY`]:et,[`TAB${t}ovl_bgImgcustomPosYUnit`]:tt,[`TAB${t}ovl_bgImgRepeat`]:at,[`MOB${t}ovl_backgroundSize`]:nt,[`MOB${t}ovl_bgImgCustomSize`]:it,[`MOB${t}ovl_bgImgCustomSizeUnit`]:st,[`MOB${t}ovl_bgImgPos`]:rt,[`MOB${t}ovl_bgImgcustomPosX`]:ot,[`MOB${t}ovl_bgImgcustomPosXUnit`]:lt,[`MOB${t}ovl_bgImgcustomPosY`]:ct,[`MOB${t}ovl_bgImgcustomPosYUnit`]:ut,[`MOB${t}ovl_bgImgRepeat`]:ft,[`hov_${t}overlayType`]:ht,[`hov_${t}overlayColor`]:dt,[`hov_${t}overlayGradient`]:pt,[`hov_${t}ovl_bgImageURL`]:mt,[`hov_${t}ovl_bgImgAttachment`]:gt,[`hov_${t}ovl_opacity`]:bt,[`hov_${t}ovl_blendMode`]:yt,[`hov_${t}ovl_allowFilters`]:vt,[`hov_${t}ovl_fltrBrightness`]:xt,[`hov_${t}ovl_fltrContrast`]:Ct,[`hov_${t}ovl_fltrSaturation`]:St,[`hov_${t}ovl_fltrBlur`]:wt,[`hov_${t}ovl_fltrHue`]:kt,[`hov_${t}ovl_backgroundSize`]:_t,[`hov_${t}ovl_bgImgCustomSize`]:Ot,[`hov_${t}ovl_bgImgCustomSizeUnit`]:Et,[`hov_${t}ovl_bgImgPos`]:Mt,[`hov_${t}ovl_bgImgcustomPosX`]:$t,[`hov_${t}ovl_bgImgcustomPosXUnit`]:Pt,[`hov_${t}ovl_bgImgcustomPosY`]:Tt,[`hov_${t}ovl_bgImgcustomPosYUnit`]:At,[`hov_${t}ovl_bgImgRepeat`]:Bt,[`hov_TAB${t}ovl_backgroundSize`]:Rt,[`hov_TAB${t}ovl_bgImgCustomSize`]:It,[`hov_TAB${t}ovl_bgImgCustomSizeUnit`]:Dt,[`hov_TAB${t}ovl_bgImgPos`]:Nt,[`hov_TAB${t}ovl_bgImgcustomPosX`]:Lt,[`hov_TAB${t}ovl_bgImgcustomPosXUnit`]:Ft,[`hov_TAB${t}ovl_bgImgcustomPosY`]:zt,[`hov_TAB${t}ovl_bgImgcustomPosYUnit`]:Vt,[`hov_TAB${t}ovl_bgImgRepeat`]:Ut,[`hov_MOB${t}ovl_backgroundSize`]:Ht,[`hov_MOB${t}ovl_bgImgCustomSize`]:Gt,[`hov_MOB${t}ovl_bgImgCustomSizeUnit`]:jt,[`hov_MOB${t}ovl_bgImgPos`]:Wt,[`hov_MOB${t}ovl_bgImgcustomPosX`]:qt,[`hov_MOB${t}ovl_bgImgcustomPosXUnit`]:Zt,[`hov_MOB${t}ovl_bgImgcustomPosY`]:Qt,[`hov_MOB${t}ovl_bgImgcustomPosYUnit`]:Xt,[`hov_MOB${t}ovl_bgImgRepeat`]:Kt}=a;return{backgroundStylesDesktop:`\n ${!1===c&&"classic"===h&&m||"gradient"===h&&p?`\n background-image: ${"classic"===h?`url("${m}")`:"gradient"===h?p:"none"};\n `:" "}\n \n ${!1===c&&"classic"===h&&m?`\n ${g&&"custom"!==g?`background-size: ${g};`:"custom"===g?`background-size: ${b}${y} auto;`:" "}\n\n ${v&&"custom"!==v?`background-position: ${v};`:"custom"===v?`background-position: ${x}${C} ${S}${w};`:" "}\n\n ${k?`background-attachment: ${k};`:" "}\n\n ${_?`background-repeat: ${_};`:" "}\n \n \n `:" "}\n\n ${Se?"\n z-index: 2;\n position: relative;\n ":" "}\t\n\n ${d?`background-color: ${d};`:" "}\n \n ${!0===o?"\n position: relative;\n overflow: hidden;\n z-index:1;\n \n ":""}\n `,hoverBackgroundStylesDesktop:`\n\n ${!0===o?`\n content: " ";\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: -1;\n opacity: 0;\n transition: all ${f||0}s;\n\n `:""}\n\n ${!1===c&&"classic"===G&&q||"gradient"===G&&W?`\n background-image: ${"classic"===G?`url("${q}")`:"gradient"===G?W:"none"}; \n `:" "}\n \n ${!1===c&&"classic"===G&&q?`\n ${Q&&"custom"!==Q?`background-size: ${Q};`:"custom"===Q?`background-size: ${X}${K} auto;`:" "}\n \n ${Y&&"custom"!==Y?`background-position: ${Y};`:"custom"===Y?`background-position: ${J}${ee} ${te}${ae};`:" "}\n \n ${Z?`background-attachment: ${Z};`:" "}\n \n ${ne?`background-repeat: ${ne};`:" "}\n \n `:" "}\n \n ${j?`background-color: ${j};`:" "}\n \n `,backgroundStylesTab:`\n ${!1===c&&"classic"===h&&m?`\n ${O&&"custom"!==O?`background-size: ${O};`:"custom"===O?`background-size: ${E}${M} auto;`:" "}\n \n ${$&&"custom"!==$?`background-position: ${$};`:"custom"===$?`background-position: ${P}${T} ${A}${B};`:" "}\n \n ${R?`background-repeat: ${R};`:" "}\n background-attachment: scroll;\n `:" "}\n \n `,hoverBackgroundStylesTab:`\n ${!1===c&&"classic"===G&&q?`\n ${ie&&"custom"!==ie?`background-size: ${ie};`:"custom"===ie?`background-size: ${se}${re} auto;`:" "}\n \n ${oe&&"custom"!==oe?`background-position: ${oe};`:"custom"===oe?`background-position: ${le}${ce} ${ue}${fe};`:" "}\n \n ${he?`background-repeat: ${he};`:" "}\n background-attachment: scroll;\n `:" "}\n \n `,backgroundStylesMobile:`\n ${!1===c&&"classic"===h&&m?`\n ${I&&"custom"!==I?`background-size: ${I};`:"custom"===I?`background-size: ${D}${N} auto;`:" "}\n \n ${L&&"custom"!==L?`background-position: ${L};`:"custom"===L?`background-position: ${F}${z} ${V}${U};`:" "}\n \n ${H?`background-repeat: ${H};`:" "}\n \n `:" "}\n \n `,hoverBackgroundStylesMobile:`\n ${!1===c&&"classic"===G&&q?`\n ${de&&"custom"!==de?`background-size: ${de};`:"custom"===de?`background-size: ${pe}${me} auto;`:" "}\n \n ${ge&&"custom"!==ge?`background-position: ${ge};`:"custom"===ge?`background-position: ${be}${ye} ${ve}${xe};`:" "}\n \n ${Ce?`background-repeat: ${Ce};`:" "}\n \n `:" "}\n \n `,overlayStylesDesktop:`\n \n ${!1===l&&Se?`\n content: "";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n z-index: 0;\n ${!1===u&&"classic"===Oe&&$e||"gradient"===Oe&&Me?`\n background-image: ${"classic"===Oe?`url("${$e}")`:"gradient"===Oe?Me:"none"}; \n `:" "}\n \n ${Ee?`background-color: ${Ee};`:" "}\n ${Te||0===Te?`opacity: ${Te};`:" "}\n ${Ae?`mix-blend-mode: ${Ae};`:" "}\n ${Be?`filter: brightness( ${Re}% ) contrast( ${Ie}% ) saturate( ${De}% ) blur( ${Ne}px ) hue-rotate( \n ${Le}deg );`:" "}\n \n ${!1===u&&"classic"===Oe&&$e?`\n ${Fe&&"custom"!==Fe?`background-size: ${Fe};`:"custom"===Fe?`background-size: ${ze}${Ve} auto;`:" "}\n \n ${Ue&&"custom"!==Ue?`background-position: ${Ue};`:"custom"===Ue?`background-position: ${He}${Ge} ${je}${We};`:" "}\n \n ${Pe?`background-attachment: ${Pe};`:" "}\n \n ${qe?`background-repeat: ${qe};`:" "}\n \n `:" "}\n \n `:" "}\n \n \n `,hoverOverlayStylesDesktop:`\n \n ${!1===l&&Se?`\n ${!1===u&&"classic"===ht&&mt||"gradient"===ht&&pt?`\n background-image: ${"classic"===ht?`url("${mt}")`:"gradient"===ht?pt:"none"};\n `:" "}\n \n ${dt?`background-color: ${dt};`:" "}\n ${bt||0===bt?`opacity: ${bt};`:" "}\n ${yt?`mix-blend-mode: ${yt};`:" "}\n ${vt?`filter: brightness( ${xt}% ) contrast( ${Ct}% ) saturate( ${St}% ) blur( ${wt}px ) hue-rotate( \n ${kt}deg );`:" "}\n \n ${!1===u&&"classic"===ht&&mt?`\n ${_t&&"custom"!==_t?`background-size: ${_t};`:"custom"===_t?`background-size: ${Ot}${Et} auto;`:" "}\n \n ${Mt&&"custom"!==Mt?`background-position: ${Mt};`:"custom"===Mt?`background-position: ${$t}${Pt} ${Tt}${At};`:" "}\n \n ${gt?`background-attachment: ${gt};`:" "}\n \n ${Bt?`background-repeat: ${Bt};`:" "}\n \n `:" "}\n \n `:" "}\n \n \n `,overlayStylesTab:`\n ${!1===l&&!1===u&&Se&&"classic"===Oe&&$e?`\n ${Ze&&"custom"!==Ze?`background-size: ${Ze};`:"custom"===Ze?`background-size: ${Qe}${Xe} auto;`:" "}\n \n ${Ke&&"custom"!==Ke?`background-position: ${Ke};`:"custom"===Ke?`background-position: ${Ye}${Je} ${et}${tt};`:" "}\n \n ${at?`background-repeat: ${at};`:" "}\n background-attachment: scroll;\n `:" "}\n \n `,hoverOverlayStylesTab:`\n ${!1===l&&!1===u&&Se&&"classic"===ht&&mt?`\n ${Rt&&"custom"!==Rt?`background-size: ${Rt};`:"custom"===Rt?`background-size: ${It}${Dt} auto;`:" "}\n \n ${Nt&&"custom"!==Nt?`background-position: ${Nt};`:"custom"===Nt?`background-position: ${Lt}${Ft} ${zt}${Vt};`:" "}\n \n ${Ut?`background-repeat: ${Ut};`:" "}\n background-attachment: scroll;\n `:" "}\n \n `,overlayStylesMobile:`\n ${!1===l&&!1===u&&Se&&"classic"===Oe&&$e?`\n ${nt&&"custom"!==nt?`background-size: ${nt};`:"custom"===nt?`background-size: ${it}${st} auto;`:" "}\n \n ${rt&&"custom"!==rt?`background-position: ${rt};`:"custom"===rt?`background-position: ${ot}${lt} ${ct}${ut};`:" "}\n \n ${ft?`background-repeat: ${ft};`:" "}\n `:" "}\n \n `,hoverOverlayStylesMobile:`\n ${!1===l&&!1===u&&Se&&"classic"===ht&&mt?`\n ${Ht&&"custom"!==Ht?`background-size: ${Ht};`:"custom"===Ht?`background-size: ${Gt}${jt} auto;`:" "}\n \n ${Wt&&"custom"!==Wt?`background-position: ${Wt};`:"custom"===Wt?`background-position: ${qt}${Zt} ${Qt}${Xt};`:" "}\n \n ${Kt?`background-repeat: ${Kt};`:" "}\n `:" "}\n \n `,bgTransitionStyle:r?" ":`background ${f||0}s`,ovlTransitionStyle:r?" ":`background ${we||0}s, opacity ${_e||0}s, filter ${ke||0}s`}},C=e=>e||0===e,S={ABeeZee:{family:"ABeeZee",category:"sans-serif",variants:["400"],subsets:["latin"]},Abel:{family:"Abel",category:"sans-serif",variants:["400"],subsets:["latin"]},"Abhaya-Libre":{family:"Abhaya Libre",category:"serif",variants:["400","500","600","700","800"],subsets:["latin","latin-ext","sinhala"]},"Abril-Fatface":{family:"Abril Fatface",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Aclonica:{family:"Aclonica",category:"sans-serif",variants:["400"],subsets:["latin"]},Acme:{family:"Acme",category:"sans-serif",variants:["400"],subsets:["latin"]},Actor:{family:"Actor",category:"sans-serif",variants:["400"],subsets:["latin"]},Adamina:{family:"Adamina",category:"serif",variants:["400"],subsets:["latin"]},"Advent-Pro":{family:"Advent Pro",category:"sans-serif",variants:["100","200","300","400","500","600","700"],subsets:["greek","latin","latin-ext"]},"Aguafina-Script":{family:"Aguafina Script",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"Akaya-Kanadaka":{family:"Akaya Kanadaka",category:"display",variants:["400"],subsets:["kannada","latin","latin-ext"]},"Akaya-Telivigala":{family:"Akaya Telivigala",category:"display",variants:["400"],subsets:["latin","latin-ext","telugu"]},Akronim:{family:"Akronim",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Aladin:{family:"Aladin",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Alata:{family:"Alata",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Alatsi:{family:"Alatsi",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Aldrich:{family:"Aldrich",category:"sans-serif",variants:["400"],subsets:["latin"]},Alef:{family:"Alef",category:"sans-serif",variants:["400","700"],subsets:["hebrew","latin"]},Alegreya:{family:"Alegreya",category:"serif",variants:["400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Alegreya-SC":{family:"Alegreya SC",category:"serif",variants:["400","500","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Alegreya-Sans":{family:"Alegreya Sans",category:"sans-serif",variants:["100","300","400","500","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Alegreya-Sans-SC":{family:"Alegreya Sans SC",category:"sans-serif",variants:["100","300","400","500","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},Aleo:{family:"Aleo",category:"serif",variants:["300","400","700"],subsets:["latin","latin-ext"]},"Alex-Brush":{family:"Alex Brush",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Alfa-Slab-One":{family:"Alfa Slab One",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Alice:{family:"Alice",category:"serif",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext"]},Alike:{family:"Alike",category:"serif",variants:["400"],subsets:["latin"]},"Alike-Angular":{family:"Alike Angular",category:"serif",variants:["400"],subsets:["latin"]},Allan:{family:"Allan",category:"display",variants:["400","700"],subsets:["latin","latin-ext"]},Allerta:{family:"Allerta",category:"sans-serif",variants:["400"],subsets:["latin"]},"Allerta-Stencil":{family:"Allerta Stencil",category:"sans-serif",variants:["400"],subsets:["latin"]},Allison:{family:"Allison",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Allura:{family:"Allura",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Almarai:{family:"Almarai",category:"sans-serif",variants:["300","400","700","800"],subsets:["arabic"]},Almendra:{family:"Almendra",category:"serif",variants:["400","700"],subsets:["latin","latin-ext"]},"Almendra-Display":{family:"Almendra Display",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Almendra-SC":{family:"Almendra SC",category:"serif",variants:["400"],subsets:["latin"]},"Alumni-Sans":{family:"Alumni Sans",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},Amarante:{family:"Amarante",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Amaranth:{family:"Amaranth",category:"sans-serif",variants:["400","700"],subsets:["latin"]},"Amatic-SC":{family:"Amatic SC",category:"handwriting",variants:["400","700"],subsets:["cyrillic","hebrew","latin","latin-ext","vietnamese"]},Amethysta:{family:"Amethysta",category:"serif",variants:["400"],subsets:["latin"]},Amiko:{family:"Amiko",category:"sans-serif",variants:["400","600","700"],subsets:["devanagari","latin","latin-ext"]},Amiri:{family:"Amiri",category:"serif",variants:["400","700"],subsets:["arabic","latin","latin-ext"]},Amita:{family:"Amita",category:"handwriting",variants:["400","700"],subsets:["devanagari","latin","latin-ext"]},Anaheim:{family:"Anaheim",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},"Andada-Pro":{family:"Andada Pro",category:"serif",variants:["400","500","600","700","800"],subsets:["latin","latin-ext","vietnamese"]},Andika:{family:"Andika",category:"sans-serif",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Andika-New-Basic":{family:"Andika New Basic",category:"sans-serif",variants:["400","700"],subsets:["latin","latin-ext","vietnamese"]},Angkor:{family:"Angkor",category:"display",variants:["400"],subsets:["khmer","latin"]},"Annie-Use-Your-Telescope":{family:"Annie Use Your Telescope",category:"handwriting",variants:["400"],subsets:["latin"]},"Anonymous-Pro":{family:"Anonymous Pro",category:"monospace",variants:["400","700"],subsets:["cyrillic","greek","latin","latin-ext"]},Antic:{family:"Antic",category:"sans-serif",variants:["400"],subsets:["latin"]},"Antic-Didone":{family:"Antic Didone",category:"serif",variants:["400"],subsets:["latin"]},"Antic-Slab":{family:"Antic Slab",category:"serif",variants:["400"],subsets:["latin"]},Anton:{family:"Anton",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Antonio:{family:"Antonio",category:"sans-serif",variants:["100","200","300","400","500","600","700"],subsets:["latin","latin-ext"]},Arapey:{family:"Arapey",category:"serif",variants:["400"],subsets:["latin"]},Arbutus:{family:"Arbutus",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Arbutus-Slab":{family:"Arbutus Slab",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"Architects-Daughter":{family:"Architects Daughter",category:"handwriting",variants:["400"],subsets:["latin"]},Archivo:{family:"Archivo",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Archivo-Black":{family:"Archivo Black",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},"Archivo-Narrow":{family:"Archivo Narrow",category:"sans-serif",variants:["400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},"Are-You-Serious":{family:"Are You Serious",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Aref-Ruqaa":{family:"Aref Ruqaa",category:"serif",variants:["400","700"],subsets:["arabic","latin","latin-ext"]},"Arima-Madurai":{family:"Arima Madurai",category:"display",variants:["100","200","300","400","500","700","800","900"],subsets:["latin","latin-ext","tamil","vietnamese"]},Arimo:{family:"Arimo",category:"sans-serif",variants:["400","500","600","700"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","hebrew","latin","latin-ext","vietnamese"]},Arizonia:{family:"Arizonia",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Armata:{family:"Armata",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Arsenal:{family:"Arsenal",category:"sans-serif",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},Artifika:{family:"Artifika",category:"serif",variants:["400"],subsets:["latin"]},Arvo:{family:"Arvo",category:"serif",variants:["400","700"],subsets:["latin"]},Arya:{family:"Arya",category:"sans-serif",variants:["400","700"],subsets:["devanagari","latin","latin-ext"]},Asap:{family:"Asap",category:"sans-serif",variants:["400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},"Asap-Condensed":{family:"Asap Condensed",category:"sans-serif",variants:["400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},Asar:{family:"Asar",category:"serif",variants:["400"],subsets:["devanagari","latin","latin-ext"]},Asset:{family:"Asset",category:"display",variants:["400"],subsets:["latin"]},Assistant:{family:"Assistant",category:"sans-serif",variants:["200","300","400","500","600","700","800"],subsets:["hebrew","latin","latin-ext"]},Astloch:{family:"Astloch",category:"display",variants:["400","700"],subsets:["latin"]},Asul:{family:"Asul",category:"sans-serif",variants:["400","700"],subsets:["latin"]},Athiti:{family:"Athiti",category:"sans-serif",variants:["200","300","400","500","600","700"],subsets:["latin","latin-ext","thai","vietnamese"]},"Atkinson-Hyperlegible":{family:"Atkinson Hyperlegible",category:"sans-serif",variants:["400","700"],subsets:["latin","latin-ext"]},Atma:{family:"Atma",category:"display",variants:["300","400","500","600","700"],subsets:["bengali","latin","latin-ext"]},"Atomic-Age":{family:"Atomic Age",category:"display",variants:["400"],subsets:["latin"]},Aubrey:{family:"Aubrey",category:"display",variants:["400"],subsets:["latin"]},Audiowide:{family:"Audiowide",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Autour-One":{family:"Autour One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Average:{family:"Average",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"Average-Sans":{family:"Average Sans",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},"Averia-Gruesa-Libre":{family:"Averia Gruesa Libre",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Averia-Libre":{family:"Averia Libre",category:"display",variants:["300","400","700"],subsets:["latin"]},"Averia-Sans-Libre":{family:"Averia Sans Libre",category:"display",variants:["300","400","700"],subsets:["latin"]},"Averia-Serif-Libre":{family:"Averia Serif Libre",category:"display",variants:["300","400","700"],subsets:["latin"]},"Azeret-Mono":{family:"Azeret Mono",category:"monospace",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext"]},B612:{family:"B612",category:"sans-serif",variants:["400","700"],subsets:["latin"]},"B612-Mono":{family:"B612 Mono",category:"monospace",variants:["400","700"],subsets:["latin"]},"Bad-Script":{family:"Bad Script",category:"handwriting",variants:["400"],subsets:["cyrillic","latin"]},Bahiana:{family:"Bahiana",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Bahianita:{family:"Bahianita",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Bai-Jamjuree":{family:"Bai Jamjuree",category:"sans-serif",variants:["200","300","400","500","600","700"],subsets:["latin","latin-ext","thai","vietnamese"]},"Bakbak-One":{family:"Bakbak One",category:"display",variants:["400"],subsets:["devanagari","latin","latin-ext"]},Ballet:{family:"Ballet",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Baloo-2":{family:"Baloo 2",category:"display",variants:["400","500","600","700","800"],subsets:["devanagari","latin","latin-ext","vietnamese"]},"Baloo-Bhai-2":{family:"Baloo Bhai 2",category:"display",variants:["400","500","600","700","800"],subsets:["gujarati","latin","latin-ext","vietnamese"]},"Baloo-Bhaijaan-2":{family:"Baloo Bhaijaan 2",category:"display",variants:["400","500","600","700","800"],subsets:["arabic","latin","latin-ext","vietnamese"]},"Baloo-Bhaina-2":{family:"Baloo Bhaina 2",category:"display",variants:["400","500","600","700","800"],subsets:["latin","latin-ext","oriya","vietnamese"]},"Baloo-Chettan-2":{family:"Baloo Chettan 2",category:"display",variants:["400","500","600","700","800"],subsets:["latin","latin-ext","malayalam","vietnamese"]},"Baloo-Da-2":{family:"Baloo Da 2",category:"display",variants:["400","500","600","700","800"],subsets:["bengali","latin","latin-ext","vietnamese"]},"Baloo-Paaji-2":{family:"Baloo Paaji 2",category:"display",variants:["400","500","600","700","800"],subsets:["gurmukhi","latin","latin-ext","vietnamese"]},"Baloo-Tamma-2":{family:"Baloo Tamma 2",category:"display",variants:["400","500","600","700","800"],subsets:["kannada","latin","latin-ext","vietnamese"]},"Baloo-Tammudu-2":{family:"Baloo Tammudu 2",category:"display",variants:["400","500","600","700","800"],subsets:["latin","latin-ext","telugu","vietnamese"]},"Baloo-Thambi-2":{family:"Baloo Thambi 2",category:"display",variants:["400","500","600","700","800"],subsets:["latin","latin-ext","tamil","vietnamese"]},"Balsamiq-Sans":{family:"Balsamiq Sans",category:"display",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext"]},Balthazar:{family:"Balthazar",category:"serif",variants:["400"],subsets:["latin"]},Bangers:{family:"Bangers",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Barlow:{family:"Barlow",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Barlow-Condensed":{family:"Barlow Condensed",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Barlow-Semi-Condensed":{family:"Barlow Semi Condensed",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},Barriecito:{family:"Barriecito",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Barrio:{family:"Barrio",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Basic:{family:"Basic",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Baskervville:{family:"Baskervville",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},Battambang:{family:"Battambang",category:"display",variants:["100","300","400","700","900"],subsets:["khmer","latin"]},Baumans:{family:"Baumans",category:"display",variants:["400"],subsets:["latin"]},Bayon:{family:"Bayon",category:"sans-serif",variants:["400"],subsets:["khmer","latin"]},"Be-Vietnam-Pro":{family:"Be Vietnam Pro",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Bebas-Neue":{family:"Bebas Neue",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Belgrano:{family:"Belgrano",category:"serif",variants:["400"],subsets:["latin"]},Bellefair:{family:"Bellefair",category:"serif",variants:["400"],subsets:["hebrew","latin","latin-ext"]},Belleza:{family:"Belleza",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Bellota:{family:"Bellota",category:"display",variants:["300","400","700"],subsets:["cyrillic","latin","latin-ext","vietnamese"]},"Bellota-Text":{family:"Bellota Text",category:"display",variants:["300","400","700"],subsets:["cyrillic","latin","latin-ext","vietnamese"]},BenchNine:{family:"BenchNine",category:"sans-serif",variants:["300","400","700"],subsets:["latin","latin-ext"]},Benne:{family:"Benne",category:"serif",variants:["400"],subsets:["kannada","latin","latin-ext"]},Bentham:{family:"Bentham",category:"serif",variants:["400"],subsets:["latin"]},"Berkshire-Swash":{family:"Berkshire Swash",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Besley:{family:"Besley",category:"serif",variants:["400","500","600","700","800","900"],subsets:["latin","latin-ext"]},"Beth-Ellen":{family:"Beth Ellen",category:"handwriting",variants:["400"],subsets:["latin"]},Bevan:{family:"Bevan",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"BhuTuka-Expanded-One":{family:"BhuTuka Expanded One",category:"display",variants:["400"],subsets:["gurmukhi","latin","latin-ext"]},"Big-Shoulders-Display":{family:"Big Shoulders Display",category:"display",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Big-Shoulders-Inline-Display":{family:"Big Shoulders Inline Display",category:"display",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Big-Shoulders-Inline-Text":{family:"Big Shoulders Inline Text",category:"display",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Big-Shoulders-Stencil-Display":{family:"Big Shoulders Stencil Display",category:"display",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Big-Shoulders-Stencil-Text":{family:"Big Shoulders Stencil Text",category:"display",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Big-Shoulders-Text":{family:"Big Shoulders Text",category:"display",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Bigelow-Rules":{family:"Bigelow Rules",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Bigshot-One":{family:"Bigshot One",category:"display",variants:["400"],subsets:["latin"]},Bilbo:{family:"Bilbo",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Bilbo-Swash-Caps":{family:"Bilbo Swash Caps",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},BioRhyme:{family:"BioRhyme",category:"serif",variants:["200","300","400","700","800"],subsets:["latin","latin-ext"]},"BioRhyme-Expanded":{family:"BioRhyme Expanded",category:"serif",variants:["200","300","400","700","800"],subsets:["latin","latin-ext"]},Birthstone:{family:"Birthstone",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Birthstone-Bounce":{family:"Birthstone Bounce",category:"handwriting",variants:["400","500"],subsets:["latin","latin-ext","vietnamese"]},Biryani:{family:"Biryani",category:"sans-serif",variants:["200","300","400","600","700","800","900"],subsets:["devanagari","latin","latin-ext"]},Bitter:{family:"Bitter",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Black-And-White-Picture":{family:"Black And White Picture",category:"sans-serif",variants:["400"],subsets:["korean","latin"]},"Black-Han-Sans":{family:"Black Han Sans",category:"sans-serif",variants:["400"],subsets:["korean","latin"]},"Black-Ops-One":{family:"Black Ops One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Blinker:{family:"Blinker",category:"sans-serif",variants:["100","200","300","400","600","700","800","900"],subsets:["latin","latin-ext"]},"Bodoni-Moda":{family:"Bodoni Moda",category:"serif",variants:["400","500","600","700","800","900"],subsets:["latin","latin-ext"]},Bokor:{family:"Bokor",category:"display",variants:["400"],subsets:["khmer","latin"]},"Bona-Nova":{family:"Bona Nova",category:"serif",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","greek","hebrew","latin","latin-ext","vietnamese"]},Bonbon:{family:"Bonbon",category:"handwriting",variants:["400"],subsets:["latin"]},"Bonheur-Royale":{family:"Bonheur Royale",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Boogaloo:{family:"Boogaloo",category:"display",variants:["400"],subsets:["latin"]},"Bowlby-One":{family:"Bowlby One",category:"display",variants:["400"],subsets:["latin"]},"Bowlby-One-SC":{family:"Bowlby One SC",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Brawler:{family:"Brawler",category:"serif",variants:["400","700"],subsets:["latin"]},"Bree-Serif":{family:"Bree Serif",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"Brygada-1918":{family:"Brygada 1918",category:"serif",variants:["400","500","600","700"],subsets:["cyrillic","cyrillic-ext","greek","latin","latin-ext","vietnamese"]},"Bubblegum-Sans":{family:"Bubblegum Sans",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Bubbler-One":{family:"Bubbler One",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Buda:{family:"Buda",category:"display",variants:["300"],subsets:["latin"]},Buenard:{family:"Buenard",category:"serif",variants:["400","700"],subsets:["latin","latin-ext"]},Bungee:{family:"Bungee",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Bungee-Hairline":{family:"Bungee Hairline",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Bungee-Inline":{family:"Bungee Inline",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Bungee-Outline":{family:"Bungee Outline",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Bungee-Shade":{family:"Bungee Shade",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Butcherman:{family:"Butcherman",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Butterfly-Kids":{family:"Butterfly Kids",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Cabin:{family:"Cabin",category:"sans-serif",variants:["400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},"Cabin-Condensed":{family:"Cabin Condensed",category:"sans-serif",variants:["400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},"Cabin-Sketch":{family:"Cabin Sketch",category:"display",variants:["400","700"],subsets:["latin"]},"Caesar-Dressing":{family:"Caesar Dressing",category:"display",variants:["400"],subsets:["latin"]},Cagliostro:{family:"Cagliostro",category:"sans-serif",variants:["400"],subsets:["latin"]},Cairo:{family:"Cairo",category:"sans-serif",variants:["200","300","400","500","600","700","800","900"],subsets:["arabic","latin","latin-ext"]},Caladea:{family:"Caladea",category:"serif",variants:["400","700"],subsets:["latin","latin-ext"]},Calistoga:{family:"Calistoga",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Calligraffitti:{family:"Calligraffitti",category:"handwriting",variants:["400"],subsets:["latin"]},Cambay:{family:"Cambay",category:"sans-serif",variants:["400","700"],subsets:["devanagari","latin","latin-ext"]},Cambo:{family:"Cambo",category:"serif",variants:["400"],subsets:["latin"]},Candal:{family:"Candal",category:"sans-serif",variants:["400"],subsets:["latin"]},Cantarell:{family:"Cantarell",category:"sans-serif",variants:["400","700"],subsets:["latin"]},"Cantata-One":{family:"Cantata One",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"Cantora-One":{family:"Cantora One",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Capriola:{family:"Capriola",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Caramel:{family:"Caramel",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Carattere:{family:"Carattere",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Cardo:{family:"Cardo",category:"serif",variants:["400","700"],subsets:["greek","greek-ext","latin","latin-ext"]},Carme:{family:"Carme",category:"sans-serif",variants:["400"],subsets:["latin"]},"Carrois-Gothic":{family:"Carrois Gothic",category:"sans-serif",variants:["400"],subsets:["latin"]},"Carrois-Gothic-SC":{family:"Carrois Gothic SC",category:"sans-serif",variants:["400"],subsets:["latin"]},"Carter-One":{family:"Carter One",category:"display",variants:["400"],subsets:["latin"]},Castoro:{family:"Castoro",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},Catamaran:{family:"Catamaran",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","tamil"]},Caudex:{family:"Caudex",category:"serif",variants:["400","700"],subsets:["greek","greek-ext","latin","latin-ext"]},Caveat:{family:"Caveat",category:"handwriting",variants:["400","500","600","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext"]},"Caveat-Brush":{family:"Caveat Brush",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"Cedarville-Cursive":{family:"Cedarville Cursive",category:"handwriting",variants:["400"],subsets:["latin"]},"Ceviche-One":{family:"Ceviche One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Chakra-Petch":{family:"Chakra Petch",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext","thai","vietnamese"]},Changa:{family:"Changa",category:"sans-serif",variants:["200","300","400","500","600","700","800"],subsets:["arabic","latin","latin-ext"]},"Changa-One":{family:"Changa One",category:"display",variants:["400"],subsets:["latin"]},Chango:{family:"Chango",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Charm:{family:"Charm",category:"handwriting",variants:["400","700"],subsets:["latin","latin-ext","thai","vietnamese"]},Charmonman:{family:"Charmonman",category:"handwriting",variants:["400","700"],subsets:["latin","latin-ext","thai","vietnamese"]},Chathura:{family:"Chathura",category:"sans-serif",variants:["100","300","400","700","800"],subsets:["latin","telugu"]},"Chau-Philomene-One":{family:"Chau Philomene One",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},"Chela-One":{family:"Chela One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Chelsea-Market":{family:"Chelsea Market",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Chenla:{family:"Chenla",category:"display",variants:["400"],subsets:["khmer"]},Cherish:{family:"Cherish",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Cherry-Cream-Soda":{family:"Cherry Cream Soda",category:"display",variants:["400"],subsets:["latin"]},"Cherry-Swash":{family:"Cherry Swash",category:"display",variants:["400","700"],subsets:["latin","latin-ext"]},Chewy:{family:"Chewy",category:"display",variants:["400"],subsets:["latin"]},Chicle:{family:"Chicle",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Chilanka:{family:"Chilanka",category:"handwriting",variants:["400"],subsets:["latin","malayalam"]},Chivo:{family:"Chivo",category:"sans-serif",variants:["300","400","700","900"],subsets:["latin","latin-ext"]},Chonburi:{family:"Chonburi",category:"display",variants:["400"],subsets:["latin","latin-ext","thai","vietnamese"]},Cinzel:{family:"Cinzel",category:"serif",variants:["400","500","600","700","800","900"],subsets:["latin","latin-ext"]},"Cinzel-Decorative":{family:"Cinzel Decorative",category:"display",variants:["400","700","900"],subsets:["latin"]},"Clicker-Script":{family:"Clicker Script",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Coda:{family:"Coda",category:"display",variants:["400","800"],subsets:["latin","latin-ext"]},"Coda-Caption":{family:"Coda Caption",category:"sans-serif",variants:["800"],subsets:["latin","latin-ext"]},Codystar:{family:"Codystar",category:"display",variants:["300","400"],subsets:["latin","latin-ext"]},Coiny:{family:"Coiny",category:"display",variants:["400"],subsets:["latin","latin-ext","tamil","vietnamese"]},Combo:{family:"Combo",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Comfortaa:{family:"Comfortaa",category:"display",variants:["300","400","500","600","700"],subsets:["cyrillic","cyrillic-ext","greek","latin","latin-ext","vietnamese"]},Comforter:{family:"Comforter",category:"handwriting",variants:["400"],subsets:["cyrillic","latin","latin-ext","vietnamese"]},"Comforter-Brush":{family:"Comforter Brush",category:"handwriting",variants:["400"],subsets:["cyrillic","latin","latin-ext","vietnamese"]},"Comic-Neue":{family:"Comic Neue",category:"handwriting",variants:["300","400","700"],subsets:["latin"]},"Coming-Soon":{family:"Coming Soon",category:"handwriting",variants:["400"],subsets:["latin"]},Commissioner:{family:"Commissioner",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","latin","latin-ext","vietnamese"]},"Concert-One":{family:"Concert One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Condiment:{family:"Condiment",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Content:{family:"Content",category:"display",variants:["400","700"],subsets:["khmer"]},"Contrail-One":{family:"Contrail One",category:"display",variants:["400"],subsets:["latin"]},Convergence:{family:"Convergence",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Cookie:{family:"Cookie",category:"handwriting",variants:["400"],subsets:["latin"]},Copse:{family:"Copse",category:"serif",variants:["400"],subsets:["latin"]},Corben:{family:"Corben",category:"display",variants:["400","700"],subsets:["latin","latin-ext"]},Corinthia:{family:"Corinthia",category:"handwriting",variants:["400","700"],subsets:["latin","latin-ext","vietnamese"]},Cormorant:{family:"Cormorant",category:"serif",variants:["300","400","500","600","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Cormorant-Garamond":{family:"Cormorant Garamond",category:"serif",variants:["300","400","500","600","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Cormorant-Infant":{family:"Cormorant Infant",category:"serif",variants:["300","400","500","600","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Cormorant-SC":{family:"Cormorant SC",category:"serif",variants:["300","400","500","600","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Cormorant-Unicase":{family:"Cormorant Unicase",category:"serif",variants:["300","400","500","600","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Cormorant-Upright":{family:"Cormorant Upright",category:"serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},Courgette:{family:"Courgette",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"Courier-Prime":{family:"Courier Prime",category:"monospace",variants:["400","700"],subsets:["latin","latin-ext"]},Cousine:{family:"Cousine",category:"monospace",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","hebrew","latin","latin-ext","vietnamese"]},Coustard:{family:"Coustard",category:"serif",variants:["400","900"],subsets:["latin"]},"Covered-By-Your-Grace":{family:"Covered By Your Grace",category:"handwriting",variants:["400"],subsets:["latin"]},"Crafty-Girls":{family:"Crafty Girls",category:"handwriting",variants:["400"],subsets:["latin"]},Creepster:{family:"Creepster",category:"display",variants:["400"],subsets:["latin"]},"Crete-Round":{family:"Crete Round",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"Crimson-Pro":{family:"Crimson Pro",category:"serif",variants:["200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Croissant-One":{family:"Croissant One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Crushed:{family:"Crushed",category:"display",variants:["400"],subsets:["latin"]},Cuprum:{family:"Cuprum",category:"sans-serif",variants:["400","500","600","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Cute-Font":{family:"Cute Font",category:"display",variants:["400"],subsets:["korean","latin"]},Cutive:{family:"Cutive",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"Cutive-Mono":{family:"Cutive Mono",category:"monospace",variants:["400"],subsets:["latin","latin-ext"]},"DM-Mono":{family:"DM Mono",category:"monospace",variants:["300","400","500"],subsets:["latin","latin-ext"]},"DM-Sans":{family:"DM Sans",category:"sans-serif",variants:["400","500","700"],subsets:["latin","latin-ext"]},"DM-Serif-Display":{family:"DM Serif Display",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"DM-Serif-Text":{family:"DM Serif Text",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},Damion:{family:"Damion",category:"handwriting",variants:["400"],subsets:["latin"]},"Dancing-Script":{family:"Dancing Script",category:"handwriting",variants:["400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},Dangrek:{family:"Dangrek",category:"display",variants:["400"],subsets:["khmer","latin"]},"Darker-Grotesque":{family:"Darker Grotesque",category:"sans-serif",variants:["300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"David-Libre":{family:"David Libre",category:"serif",variants:["400","500","700"],subsets:["hebrew","latin","latin-ext","vietnamese"]},"Dawning-of-a-New-Day":{family:"Dawning of a New Day",category:"handwriting",variants:["400"],subsets:["latin"]},"Days-One":{family:"Days One",category:"sans-serif",variants:["400"],subsets:["latin"]},Dekko:{family:"Dekko",category:"handwriting",variants:["400"],subsets:["devanagari","latin","latin-ext"]},"Dela-Gothic-One":{family:"Dela Gothic One",category:"display",variants:["400"],subsets:["cyrillic","greek","japanese","latin","latin-ext","vietnamese"]},Delius:{family:"Delius",category:"handwriting",variants:["400"],subsets:["latin"]},"Delius-Swash-Caps":{family:"Delius Swash Caps",category:"handwriting",variants:["400"],subsets:["latin"]},"Delius-Unicase":{family:"Delius Unicase",category:"handwriting",variants:["400","700"],subsets:["latin"]},"Della-Respira":{family:"Della Respira",category:"serif",variants:["400"],subsets:["latin"]},"Denk-One":{family:"Denk One",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Devonshire:{family:"Devonshire",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Dhurjati:{family:"Dhurjati",category:"sans-serif",variants:["400"],subsets:["latin","telugu"]},"Didact-Gothic":{family:"Didact Gothic",category:"sans-serif",variants:["400"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext"]},Diplomata:{family:"Diplomata",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Diplomata-SC":{family:"Diplomata SC",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Do-Hyeon":{family:"Do Hyeon",category:"sans-serif",variants:["400"],subsets:["korean","latin"]},Dokdo:{family:"Dokdo",category:"handwriting",variants:["400"],subsets:["korean","latin"]},Domine:{family:"Domine",category:"serif",variants:["400","500","600","700"],subsets:["latin","latin-ext"]},"Donegal-One":{family:"Donegal One",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},Dongle:{family:"Dongle",category:"sans-serif",variants:["300","400","700"],subsets:["korean","latin","latin-ext","vietnamese"]},"Doppio-One":{family:"Doppio One",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Dorsa:{family:"Dorsa",category:"sans-serif",variants:["400"],subsets:["latin"]},Dosis:{family:"Dosis",category:"sans-serif",variants:["200","300","400","500","600","700","800"],subsets:["latin","latin-ext","vietnamese"]},DotGothic16:{family:"DotGothic16",category:"sans-serif",variants:["400"],subsets:["cyrillic","japanese","latin","latin-ext"]},"Dr-Sugiyama":{family:"Dr Sugiyama",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"Duru-Sans":{family:"Duru Sans",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Dynalight:{family:"Dynalight",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"EB-Garamond":{family:"EB Garamond",category:"serif",variants:["400","500","600","700","800"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Eagle-Lake":{family:"Eagle Lake",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"East-Sea-Dokdo":{family:"East Sea Dokdo",category:"handwriting",variants:["400"],subsets:["korean","latin"]},Eater:{family:"Eater",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Economica:{family:"Economica",category:"sans-serif",variants:["400","700"],subsets:["latin","latin-ext"]},Eczar:{family:"Eczar",category:"serif",variants:["400","500","600","700","800"],subsets:["devanagari","latin","latin-ext"]},"El-Messiri":{family:"El Messiri",category:"sans-serif",variants:["400","500","600","700"],subsets:["arabic","cyrillic","latin","latin-ext"]},Electrolize:{family:"Electrolize",category:"sans-serif",variants:["400"],subsets:["latin"]},Elsie:{family:"Elsie",category:"display",variants:["400","900"],subsets:["latin","latin-ext"]},"Elsie-Swash-Caps":{family:"Elsie Swash Caps",category:"display",variants:["400","900"],subsets:["latin","latin-ext"]},"Emblema-One":{family:"Emblema One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Emilys-Candy":{family:"Emilys Candy",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Encode-Sans":{family:"Encode Sans",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Encode-Sans-Condensed":{family:"Encode Sans Condensed",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Encode-Sans-Expanded":{family:"Encode Sans Expanded",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Encode-Sans-SC":{family:"Encode Sans SC",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Encode-Sans-Semi-Condensed":{family:"Encode Sans Semi Condensed",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Encode-Sans-Semi-Expanded":{family:"Encode Sans Semi Expanded",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},Engagement:{family:"Engagement",category:"handwriting",variants:["400"],subsets:["latin"]},Englebert:{family:"Englebert",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Enriqueta:{family:"Enriqueta",category:"serif",variants:["400","500","600","700"],subsets:["latin","latin-ext"]},Ephesis:{family:"Ephesis",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Epilogue:{family:"Epilogue",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Erica-One":{family:"Erica One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Esteban:{family:"Esteban",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},Estonia:{family:"Estonia",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Euphoria-Script":{family:"Euphoria Script",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Ewert:{family:"Ewert",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Exo:{family:"Exo",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Exo-2":{family:"Exo 2",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Expletus-Sans":{family:"Expletus Sans",category:"display",variants:["400","500","600","700"],subsets:["latin","latin-ext"]},Explora:{family:"Explora",category:"handwriting",variants:["400"],subsets:["cherokee","latin","latin-ext","vietnamese"]},Fahkwang:{family:"Fahkwang",category:"sans-serif",variants:["200","300","400","500","600","700"],subsets:["latin","latin-ext","thai","vietnamese"]},"Fanwood-Text":{family:"Fanwood Text",category:"serif",variants:["400"],subsets:["latin"]},Farro:{family:"Farro",category:"sans-serif",variants:["300","400","500","700"],subsets:["latin","latin-ext"]},Farsan:{family:"Farsan",category:"display",variants:["400"],subsets:["gujarati","latin","latin-ext","vietnamese"]},Fascinate:{family:"Fascinate",category:"display",variants:["400"],subsets:["latin"]},"Fascinate-Inline":{family:"Fascinate Inline",category:"display",variants:["400"],subsets:["latin"]},"Faster-One":{family:"Faster One",category:"display",variants:["400"],subsets:["latin"]},Fasthand:{family:"Fasthand",category:"display",variants:["400"],subsets:["khmer","latin"]},"Fauna-One":{family:"Fauna One",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},Faustina:{family:"Faustina",category:"serif",variants:["300","400","500","600","700","800"],subsets:["latin","latin-ext","vietnamese"]},Federant:{family:"Federant",category:"display",variants:["400"],subsets:["latin"]},Federo:{family:"Federo",category:"sans-serif",variants:["400"],subsets:["latin"]},Felipa:{family:"Felipa",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Fenix:{family:"Fenix",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},Festive:{family:"Festive",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Finger-Paint":{family:"Finger Paint",category:"display",variants:["400"],subsets:["latin"]},"Fira-Code":{family:"Fira Code",category:"monospace",variants:["300","400","500","600","700"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext"]},"Fira-Mono":{family:"Fira Mono",category:"monospace",variants:["400","500","700"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext"]},"Fira-Sans":{family:"Fira Sans",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Fira-Sans-Condensed":{family:"Fira Sans Condensed",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Fira-Sans-Extra-Condensed":{family:"Fira Sans Extra Condensed",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Fjalla-One":{family:"Fjalla One",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},"Fjord-One":{family:"Fjord One",category:"serif",variants:["400"],subsets:["latin"]},Flamenco:{family:"Flamenco",category:"display",variants:["300","400"],subsets:["latin"]},Flavors:{family:"Flavors",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Fleur-De-Leah":{family:"Fleur De Leah",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Flow-Block":{family:"Flow Block",category:"display",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Flow-Circular":{family:"Flow Circular",category:"display",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Flow-Rounded":{family:"Flow Rounded",category:"display",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},Fondamento:{family:"Fondamento",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"Fontdiner-Swanky":{family:"Fontdiner Swanky",category:"display",variants:["400"],subsets:["latin"]},Forum:{family:"Forum",category:"display",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext"]},"Francois-One":{family:"Francois One",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Frank-Ruhl-Libre":{family:"Frank Ruhl Libre",category:"serif",variants:["300","400","500","700","900"],subsets:["hebrew","latin","latin-ext"]},Fraunces:{family:"Fraunces",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Freckle-Face":{family:"Freckle Face",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Fredericka-the-Great":{family:"Fredericka the Great",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Fredoka:{family:"Fredoka",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["hebrew","latin","latin-ext"]},"Fredoka-One":{family:"Fredoka One",category:"display",variants:["400"],subsets:["latin"]},Freehand:{family:"Freehand",category:"display",variants:["400"],subsets:["khmer","latin"]},Fresca:{family:"Fresca",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Frijole:{family:"Frijole",category:"display",variants:["400"],subsets:["latin"]},Fruktur:{family:"Fruktur",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Fugaz-One":{family:"Fugaz One",category:"display",variants:["400"],subsets:["latin"]},Fuggles:{family:"Fuggles",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Fuzzy-Bubbles":{family:"Fuzzy Bubbles",category:"handwriting",variants:["400","700"],subsets:["latin","latin-ext","vietnamese"]},"GFS-Didot":{family:"GFS Didot",category:"serif",variants:["400"],subsets:["greek"]},"GFS-Neohellenic":{family:"GFS Neohellenic",category:"sans-serif",variants:["400","700"],subsets:["greek"]},Gabriela:{family:"Gabriela",category:"serif",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin"]},Gaegu:{family:"Gaegu",category:"handwriting",variants:["300","400","700"],subsets:["korean","latin"]},Gafata:{family:"Gafata",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Galada:{family:"Galada",category:"display",variants:["400"],subsets:["bengali","latin"]},Galdeano:{family:"Galdeano",category:"sans-serif",variants:["400"],subsets:["latin"]},Galindo:{family:"Galindo",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Gamja-Flower":{family:"Gamja Flower",category:"handwriting",variants:["400"],subsets:["korean","latin"]},Gayathri:{family:"Gayathri",category:"sans-serif",variants:["100","400","700"],subsets:["latin","malayalam"]},Gelasio:{family:"Gelasio",category:"serif",variants:["400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},"Gemunu-Libre":{family:"Gemunu Libre",category:"sans-serif",variants:["200","300","400","500","600","700","800"],subsets:["latin","latin-ext","sinhala"]},Genos:{family:"Genos",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cherokee","latin","latin-ext","vietnamese"]},"Gentium-Basic":{family:"Gentium Basic",category:"serif",variants:["400","700"],subsets:["latin","latin-ext"]},"Gentium-Book-Basic":{family:"Gentium Book Basic",category:"serif",variants:["400","700"],subsets:["latin","latin-ext"]},Geo:{family:"Geo",category:"sans-serif",variants:["400"],subsets:["latin"]},Georama:{family:"Georama",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},Geostar:{family:"Geostar",category:"display",variants:["400"],subsets:["latin"]},"Geostar-Fill":{family:"Geostar Fill",category:"display",variants:["400"],subsets:["latin"]},"Germania-One":{family:"Germania One",category:"display",variants:["400"],subsets:["latin"]},"Gideon-Roman":{family:"Gideon Roman",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Gidugu:{family:"Gidugu",category:"sans-serif",variants:["400"],subsets:["latin","telugu"]},"Gilda-Display":{family:"Gilda Display",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},Girassol:{family:"Girassol",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Give-You-Glory":{family:"Give You Glory",category:"handwriting",variants:["400"],subsets:["latin"]},"Glass-Antiqua":{family:"Glass Antiqua",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Glegoo:{family:"Glegoo",category:"serif",variants:["400","700"],subsets:["devanagari","latin","latin-ext"]},"Gloria-Hallelujah":{family:"Gloria Hallelujah",category:"handwriting",variants:["400"],subsets:["latin"]},Glory:{family:"Glory",category:"sans-serif",variants:["100","200","300","400","500","600","700","800"],subsets:["latin","latin-ext","vietnamese"]},Gluten:{family:"Gluten",category:"display",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Goblin-One":{family:"Goblin One",category:"display",variants:["400"],subsets:["latin"]},"Gochi-Hand":{family:"Gochi Hand",category:"handwriting",variants:["400"],subsets:["latin"]},Goldman:{family:"Goldman",category:"display",variants:["400","700"],subsets:["latin","latin-ext","vietnamese"]},Gorditas:{family:"Gorditas",category:"display",variants:["400","700"],subsets:["latin"]},"Gothic-A1":{family:"Gothic A1",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["korean","latin"]},Gotu:{family:"Gotu",category:"sans-serif",variants:["400"],subsets:["devanagari","latin","latin-ext","vietnamese"]},"Goudy-Bookletter-1911":{family:"Goudy Bookletter 1911",category:"serif",variants:["400"],subsets:["latin"]},"Gowun-Batang":{family:"Gowun Batang",category:"serif",variants:["400","700"],subsets:["korean","latin","latin-ext","vietnamese"]},"Gowun-Dodum":{family:"Gowun Dodum",category:"sans-serif",variants:["400"],subsets:["korean","latin","latin-ext","vietnamese"]},Graduate:{family:"Graduate",category:"display",variants:["400"],subsets:["latin"]},"Grand-Hotel":{family:"Grand Hotel",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Grandstander:{family:"Grandstander",category:"display",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Gravitas-One":{family:"Gravitas One",category:"display",variants:["400"],subsets:["latin"]},"Great-Vibes":{family:"Great Vibes",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Grechen-Fuemen":{family:"Grechen Fuemen",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Grenze:{family:"Grenze",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Grenze-Gotisch":{family:"Grenze Gotisch",category:"display",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Grey-Qo":{family:"Grey Qo",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Griffy:{family:"Griffy",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Gruppo:{family:"Gruppo",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Gudea:{family:"Gudea",category:"sans-serif",variants:["400","700"],subsets:["latin","latin-ext"]},Gugi:{family:"Gugi",category:"display",variants:["400"],subsets:["korean","latin"]},Gupter:{family:"Gupter",category:"serif",variants:["400","500","700"],subsets:["latin"]},Gurajada:{family:"Gurajada",category:"serif",variants:["400"],subsets:["latin","telugu"]},Gwendolyn:{family:"Gwendolyn",category:"handwriting",variants:["400","700"],subsets:["latin","latin-ext","vietnamese"]},Habibi:{family:"Habibi",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"Hachi-Maru-Pop":{family:"Hachi Maru Pop",category:"handwriting",variants:["400"],subsets:["cyrillic","japanese","latin","latin-ext"]},Hahmlet:{family:"Hahmlet",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["korean","latin","latin-ext","vietnamese"]},Halant:{family:"Halant",category:"serif",variants:["300","400","500","600","700"],subsets:["devanagari","latin","latin-ext"]},"Hammersmith-One":{family:"Hammersmith One",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Hanalei:{family:"Hanalei",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Hanalei-Fill":{family:"Hanalei Fill",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Handlee:{family:"Handlee",category:"handwriting",variants:["400"],subsets:["latin"]},Hanuman:{family:"Hanuman",category:"serif",variants:["100","300","400","700","900"],subsets:["khmer","latin"]},"Happy-Monkey":{family:"Happy Monkey",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Harmattan:{family:"Harmattan",category:"sans-serif",variants:["400","700"],subsets:["arabic","latin","latin-ext"]},"Headland-One":{family:"Headland One",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},Heebo:{family:"Heebo",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["hebrew","latin"]},"Henny-Penny":{family:"Henny Penny",category:"display",variants:["400"],subsets:["latin"]},"Hepta-Slab":{family:"Hepta Slab",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Herr-Von-Muellerhoff":{family:"Herr Von Muellerhoff",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"Hi-Melody":{family:"Hi Melody",category:"handwriting",variants:["400"],subsets:["korean","latin"]},"Hina-Mincho":{family:"Hina Mincho",category:"serif",variants:["400"],subsets:["cyrillic","japanese","latin","latin-ext","vietnamese"]},Hind:{family:"Hind",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["devanagari","latin","latin-ext"]},"Hind-Guntur":{family:"Hind Guntur",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext","telugu"]},"Hind-Madurai":{family:"Hind Madurai",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext","tamil"]},"Hind-Siliguri":{family:"Hind Siliguri",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["bengali","latin","latin-ext"]},"Hind-Vadodara":{family:"Hind Vadodara",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["gujarati","latin","latin-ext"]},"Holtwood-One-SC":{family:"Holtwood One SC",category:"serif",variants:["400"],subsets:["latin"]},"Homemade-Apple":{family:"Homemade Apple",category:"handwriting",variants:["400"],subsets:["latin"]},Homenaje:{family:"Homenaje",category:"sans-serif",variants:["400"],subsets:["latin"]},Hubballi:{family:"Hubballi",category:"display",variants:["400"],subsets:["kannada","latin","latin-ext"]},Hurricane:{family:"Hurricane",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"IBM-Plex-Mono":{family:"IBM Plex Mono",category:"monospace",variants:["100","200","300","400","500","600","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"IBM-Plex-Sans":{family:"IBM Plex Sans",category:"sans-serif",variants:["100","200","300","400","500","600","700"],subsets:["cyrillic","cyrillic-ext","greek","latin","latin-ext","vietnamese"]},"IBM-Plex-Sans-Arabic":{family:"IBM Plex Sans Arabic",category:"sans-serif",variants:["100","200","300","400","500","600","700"],subsets:["arabic","cyrillic-ext","latin","latin-ext"]},"IBM-Plex-Sans-Condensed":{family:"IBM Plex Sans Condensed",category:"sans-serif",variants:["100","200","300","400","500","600","700"],subsets:["cyrillic-ext","latin","latin-ext","vietnamese"]},"IBM-Plex-Sans-Devanagari":{family:"IBM Plex Sans Devanagari",category:"sans-serif",variants:["100","200","300","400","500","600","700"],subsets:["cyrillic-ext","devanagari","latin","latin-ext"]},"IBM-Plex-Sans-Hebrew":{family:"IBM Plex Sans Hebrew",category:"sans-serif",variants:["100","200","300","400","500","600","700"],subsets:["cyrillic-ext","hebrew","latin","latin-ext"]},"IBM-Plex-Sans-KR":{family:"IBM Plex Sans KR",category:"sans-serif",variants:["100","200","300","400","500","600","700"],subsets:["korean","latin","latin-ext"]},"IBM-Plex-Sans-Thai":{family:"IBM Plex Sans Thai",category:"sans-serif",variants:["100","200","300","400","500","600","700"],subsets:["cyrillic-ext","latin","latin-ext","thai"]},"IBM-Plex-Sans-Thai-Looped":{family:"IBM Plex Sans Thai Looped",category:"sans-serif",variants:["100","200","300","400","500","600","700"],subsets:["cyrillic-ext","latin","latin-ext","thai"]},"IBM-Plex-Serif":{family:"IBM Plex Serif",category:"serif",variants:["100","200","300","400","500","600","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"IM-Fell-DW-Pica":{family:"IM Fell DW Pica",category:"serif",variants:["400"],subsets:["latin"]},"IM-Fell-DW-Pica-SC":{family:"IM Fell DW Pica SC",category:"serif",variants:["400"],subsets:["latin"]},"IM-Fell-Double-Pica":{family:"IM Fell Double Pica",category:"serif",variants:["400"],subsets:["latin"]},"IM-Fell-Double-Pica-SC":{family:"IM Fell Double Pica SC",category:"serif",variants:["400"],subsets:["latin"]},"IM-Fell-English":{family:"IM Fell English",category:"serif",variants:["400"],subsets:["latin"]},"IM-Fell-English-SC":{family:"IM Fell English SC",category:"serif",variants:["400"],subsets:["latin"]},"IM-Fell-French-Canon":{family:"IM Fell French Canon",category:"serif",variants:["400"],subsets:["latin"]},"IM-Fell-French-Canon-SC":{family:"IM Fell French Canon SC",category:"serif",variants:["400"],subsets:["latin"]},"IM-Fell-Great-Primer":{family:"IM Fell Great Primer",category:"serif",variants:["400"],subsets:["latin"]},"IM-Fell-Great-Primer-SC":{family:"IM Fell Great Primer SC",category:"serif",variants:["400"],subsets:["latin"]},"Ibarra-Real-Nova":{family:"Ibarra Real Nova",category:"serif",variants:["400","500","600","700"],subsets:["latin","latin-ext"]},Iceberg:{family:"Iceberg",category:"display",variants:["400"],subsets:["latin"]},Iceland:{family:"Iceland",category:"display",variants:["400"],subsets:["latin"]},Imbue:{family:"Imbue",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Imperial-Script":{family:"Imperial Script",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Imprima:{family:"Imprima",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Inconsolata:{family:"Inconsolata",category:"monospace",variants:["200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},Inder:{family:"Inder",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},"Indie-Flower":{family:"Indie Flower",category:"handwriting",variants:["400"],subsets:["latin"]},Inika:{family:"Inika",category:"serif",variants:["400","700"],subsets:["latin","latin-ext"]},"Inknut-Antiqua":{family:"Inknut Antiqua",category:"serif",variants:["300","400","500","600","700","800","900"],subsets:["devanagari","latin","latin-ext"]},"Inria-Sans":{family:"Inria Sans",category:"sans-serif",variants:["300","400","700"],subsets:["latin","latin-ext"]},"Inria-Serif":{family:"Inria Serif",category:"serif",variants:["300","400","700"],subsets:["latin","latin-ext"]},Inspiration:{family:"Inspiration",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Inter:{family:"Inter",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Irish-Grover":{family:"Irish Grover",category:"display",variants:["400"],subsets:["latin"]},"Island-Moments":{family:"Island Moments",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Istok-Web":{family:"Istok Web",category:"sans-serif",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext"]},Italiana:{family:"Italiana",category:"serif",variants:["400"],subsets:["latin"]},Italianno:{family:"Italianno",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Itim:{family:"Itim",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","thai","vietnamese"]},"Jacques-Francois":{family:"Jacques Francois",category:"serif",variants:["400"],subsets:["latin"]},"Jacques-Francois-Shadow":{family:"Jacques Francois Shadow",category:"display",variants:["400"],subsets:["latin"]},Jaldi:{family:"Jaldi",category:"sans-serif",variants:["400","700"],subsets:["devanagari","latin","latin-ext"]},"JetBrains-Mono":{family:"JetBrains Mono",category:"monospace",variants:["100","200","300","400","500","600","700","800"],subsets:["cyrillic","cyrillic-ext","greek","latin","latin-ext","vietnamese"]},"Jim-Nightshade":{family:"Jim Nightshade",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"Jockey-One":{family:"Jockey One",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},"Jolly-Lodger":{family:"Jolly Lodger",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Jomhuria:{family:"Jomhuria",category:"display",variants:["400"],subsets:["arabic","latin","latin-ext"]},Jomolhari:{family:"Jomolhari",category:"serif",variants:["400"],subsets:["latin","tibetan"]},"Josefin-Sans":{family:"Josefin Sans",category:"sans-serif",variants:["100","200","300","400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},"Josefin-Slab":{family:"Josefin Slab",category:"serif",variants:["100","200","300","400","500","600","700"],subsets:["latin"]},Jost:{family:"Jost",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","latin","latin-ext"]},"Joti-One":{family:"Joti One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Jua:{family:"Jua",category:"sans-serif",variants:["400"],subsets:["korean","latin"]},Judson:{family:"Judson",category:"serif",variants:["400","700"],subsets:["latin","latin-ext","vietnamese"]},Julee:{family:"Julee",category:"handwriting",variants:["400"],subsets:["latin"]},"Julius-Sans-One":{family:"Julius Sans One",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Junge:{family:"Junge",category:"serif",variants:["400"],subsets:["latin"]},Jura:{family:"Jura",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","kayah-li","latin","latin-ext","vietnamese"]},"Just-Another-Hand":{family:"Just Another Hand",category:"handwriting",variants:["400"],subsets:["latin"]},"Just-Me-Again-Down-Here":{family:"Just Me Again Down Here",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},K2D:{family:"K2D",category:"sans-serif",variants:["100","200","300","400","500","600","700","800"],subsets:["latin","latin-ext","thai","vietnamese"]},Kadwa:{family:"Kadwa",category:"serif",variants:["400","700"],subsets:["devanagari","latin"]},"Kaisei-Decol":{family:"Kaisei Decol",category:"serif",variants:["400","500","700"],subsets:["cyrillic","japanese","latin","latin-ext"]},"Kaisei-HarunoUmi":{family:"Kaisei HarunoUmi",category:"serif",variants:["400","500","700"],subsets:["cyrillic","japanese","latin","latin-ext"]},"Kaisei-Opti":{family:"Kaisei Opti",category:"serif",variants:["400","500","700"],subsets:["cyrillic","japanese","latin","latin-ext"]},"Kaisei-Tokumin":{family:"Kaisei Tokumin",category:"serif",variants:["400","500","700","800"],subsets:["cyrillic","japanese","latin","latin-ext"]},Kalam:{family:"Kalam",category:"handwriting",variants:["300","400","700"],subsets:["devanagari","latin","latin-ext"]},Kameron:{family:"Kameron",category:"serif",variants:["400","700"],subsets:["latin"]},Kanit:{family:"Kanit",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","thai","vietnamese"]},Kantumruy:{family:"Kantumruy",category:"sans-serif",variants:["300","400","700"],subsets:["khmer"]},Karantina:{family:"Karantina",category:"display",variants:["300","400","700"],subsets:["hebrew","latin","latin-ext"]},Karla:{family:"Karla",category:"sans-serif",variants:["200","300","400","500","600","700","800"],subsets:["latin","latin-ext"]},Karma:{family:"Karma",category:"serif",variants:["300","400","500","600","700"],subsets:["devanagari","latin","latin-ext"]},Katibeh:{family:"Katibeh",category:"display",variants:["400"],subsets:["arabic","latin","latin-ext"]},"Kaushan-Script":{family:"Kaushan Script",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Kavivanar:{family:"Kavivanar",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","tamil"]},Kavoon:{family:"Kavoon",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Kdam-Thmor":{family:"Kdam Thmor",category:"display",variants:["400"],subsets:["khmer"]},"Keania-One":{family:"Keania One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Kelly-Slab":{family:"Kelly Slab",category:"display",variants:["400"],subsets:["cyrillic","latin","latin-ext"]},Kenia:{family:"Kenia",category:"display",variants:["400"],subsets:["latin"]},Khand:{family:"Khand",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["devanagari","latin","latin-ext"]},Khmer:{family:"Khmer",category:"display",variants:["400"],subsets:["khmer"]},Khula:{family:"Khula",category:"sans-serif",variants:["300","400","600","700","800"],subsets:["devanagari","latin","latin-ext"]},Kings:{family:"Kings",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Kirang-Haerang":{family:"Kirang Haerang",category:"display",variants:["400"],subsets:["korean","latin"]},"Kite-One":{family:"Kite One",category:"sans-serif",variants:["400"],subsets:["latin"]},"Kiwi-Maru":{family:"Kiwi Maru",category:"serif",variants:["300","400","500"],subsets:["cyrillic","japanese","latin","latin-ext"]},"Klee-One":{family:"Klee One",category:"handwriting",variants:["400","600"],subsets:["cyrillic","greek-ext","japanese","latin","latin-ext"]},Knewave:{family:"Knewave",category:"display",variants:["400"],subsets:["latin","latin-ext"]},KoHo:{family:"KoHo",category:"sans-serif",variants:["200","300","400","500","600","700"],subsets:["latin","latin-ext","thai","vietnamese"]},Kodchasan:{family:"Kodchasan",category:"sans-serif",variants:["200","300","400","500","600","700"],subsets:["latin","latin-ext","thai","vietnamese"]},"Koh-Santepheap":{family:"Koh Santepheap",category:"display",variants:["100","300","400","700","900"],subsets:["khmer","latin"]},"Kolker-Brush":{family:"Kolker Brush",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Kosugi:{family:"Kosugi",category:"sans-serif",variants:["400"],subsets:["cyrillic","japanese","latin","latin-ext"]},"Kosugi-Maru":{family:"Kosugi Maru",category:"sans-serif",variants:["400"],subsets:["cyrillic","japanese","latin","latin-ext"]},"Kotta-One":{family:"Kotta One",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},Koulen:{family:"Koulen",category:"display",variants:["400"],subsets:["khmer","latin"]},Kranky:{family:"Kranky",category:"display",variants:["400"],subsets:["latin"]},Kreon:{family:"Kreon",category:"serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext"]},Kristi:{family:"Kristi",category:"handwriting",variants:["400"],subsets:["latin"]},"Krona-One":{family:"Krona One",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Krub:{family:"Krub",category:"sans-serif",variants:["200","300","400","500","600","700"],subsets:["latin","latin-ext","thai","vietnamese"]},Kufam:{family:"Kufam",category:"sans-serif",variants:["400","500","600","700","800","900"],subsets:["arabic","latin","latin-ext","vietnamese"]},"Kulim-Park":{family:"Kulim Park",category:"sans-serif",variants:["200","300","400","600","700"],subsets:["latin","latin-ext"]},"Kumar-One":{family:"Kumar One",category:"display",variants:["400"],subsets:["gujarati","latin","latin-ext"]},"Kumar-One-Outline":{family:"Kumar One Outline",category:"display",variants:["400"],subsets:["gujarati","latin","latin-ext"]},"Kumbh-Sans":{family:"Kumbh Sans",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext"]},Kurale:{family:"Kurale",category:"serif",variants:["400"],subsets:["cyrillic","cyrillic-ext","devanagari","latin","latin-ext"]},"La-Belle-Aurore":{family:"La Belle Aurore",category:"handwriting",variants:["400"],subsets:["latin"]},Lacquer:{family:"Lacquer",category:"display",variants:["400"],subsets:["latin"]},Laila:{family:"Laila",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["devanagari","latin","latin-ext"]},"Lakki-Reddy":{family:"Lakki Reddy",category:"handwriting",variants:["400"],subsets:["latin","telugu"]},Lalezar:{family:"Lalezar",category:"display",variants:["400"],subsets:["arabic","latin","latin-ext","vietnamese"]},Lancelot:{family:"Lancelot",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Langar:{family:"Langar",category:"display",variants:["400"],subsets:["gurmukhi","latin","latin-ext"]},Lateef:{family:"Lateef",category:"handwriting",variants:["400"],subsets:["arabic","latin"]},Lato:{family:"Lato",category:"sans-serif",variants:["100","300","400","700","900"],subsets:["latin","latin-ext"]},"League-Gothic":{family:"League Gothic",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"League-Script":{family:"League Script",category:"handwriting",variants:["400"],subsets:["latin"]},"League-Spartan":{family:"League Spartan",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Leckerli-One":{family:"Leckerli One",category:"handwriting",variants:["400"],subsets:["latin"]},Ledger:{family:"Ledger",category:"serif",variants:["400"],subsets:["cyrillic","latin","latin-ext"]},Lekton:{family:"Lekton",category:"sans-serif",variants:["400","700"],subsets:["latin","latin-ext"]},Lemon:{family:"Lemon",category:"display",variants:["400"],subsets:["latin"]},Lemonada:{family:"Lemonada",category:"display",variants:["300","400","500","600","700"],subsets:["arabic","latin","latin-ext","vietnamese"]},Lexend:{family:"Lexend",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Lexend-Deca":{family:"Lexend Deca",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Lexend-Exa":{family:"Lexend Exa",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Lexend-Giga":{family:"Lexend Giga",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Lexend-Mega":{family:"Lexend Mega",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Lexend-Peta":{family:"Lexend Peta",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Lexend-Tera":{family:"Lexend Tera",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Lexend-Zetta":{family:"Lexend Zetta",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Libre-Barcode-128":{family:"Libre Barcode 128",category:"display",variants:["400"],subsets:["latin"]},"Libre-Barcode-128-Text":{family:"Libre Barcode 128 Text",category:"display",variants:["400"],subsets:["latin"]},"Libre-Barcode-39":{family:"Libre Barcode 39",category:"display",variants:["400"],subsets:["latin"]},"Libre-Barcode-39-Extended":{family:"Libre Barcode 39 Extended",category:"display",variants:["400"],subsets:["latin"]},"Libre-Barcode-39-Extended-Text":{family:"Libre Barcode 39 Extended Text",category:"display",variants:["400"],subsets:["latin"]},"Libre-Barcode-39-Text":{family:"Libre Barcode 39 Text",category:"display",variants:["400"],subsets:["latin"]},"Libre-Barcode-EAN13-Text":{family:"Libre Barcode EAN13 Text",category:"display",variants:["400"],subsets:["latin"]},"Libre-Baskerville":{family:"Libre Baskerville",category:"serif",variants:["400","700"],subsets:["latin","latin-ext"]},"Libre-Caslon-Display":{family:"Libre Caslon Display",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"Libre-Caslon-Text":{family:"Libre Caslon Text",category:"serif",variants:["400","700"],subsets:["latin","latin-ext"]},"Libre-Franklin":{family:"Libre Franklin",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},Licorice:{family:"Licorice",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Life-Savers":{family:"Life Savers",category:"display",variants:["400","700","800"],subsets:["latin","latin-ext"]},"Lilita-One":{family:"Lilita One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Lily-Script-One":{family:"Lily Script One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Limelight:{family:"Limelight",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Linden-Hill":{family:"Linden Hill",category:"serif",variants:["400"],subsets:["latin"]},Literata:{family:"Literata",category:"serif",variants:["200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Liu-Jian-Mao-Cao":{family:"Liu Jian Mao Cao",category:"handwriting",variants:["400"],subsets:["chinese-simplified","latin"]},Livvic:{family:"Livvic",category:"sans-serif",variants:["100","200","300","400","500","600","700","900"],subsets:["latin","latin-ext","vietnamese"]},Lobster:{family:"Lobster",category:"display",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Lobster-Two":{family:"Lobster Two",category:"display",variants:["400","700"],subsets:["latin"]},"Londrina-Outline":{family:"Londrina Outline",category:"display",variants:["400"],subsets:["latin"]},"Londrina-Shadow":{family:"Londrina Shadow",category:"display",variants:["400"],subsets:["latin"]},"Londrina-Sketch":{family:"Londrina Sketch",category:"display",variants:["400"],subsets:["latin"]},"Londrina-Solid":{family:"Londrina Solid",category:"display",variants:["100","300","400","900"],subsets:["latin"]},"Long-Cang":{family:"Long Cang",category:"handwriting",variants:["400"],subsets:["chinese-simplified","latin"]},Lora:{family:"Lora",category:"serif",variants:["400","500","600","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Love-Light":{family:"Love Light",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Love-Ya-Like-A-Sister":{family:"Love Ya Like A Sister",category:"display",variants:["400"],subsets:["latin"]},"Loved-by-the-King":{family:"Loved by the King",category:"handwriting",variants:["400"],subsets:["latin"]},"Lovers-Quarrel":{family:"Lovers Quarrel",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Luckiest-Guy":{family:"Luckiest Guy",category:"display",variants:["400"],subsets:["latin"]},Lusitana:{family:"Lusitana",category:"serif",variants:["400","700"],subsets:["latin"]},Lustria:{family:"Lustria",category:"serif",variants:["400"],subsets:["latin"]},"Luxurious-Roman":{family:"Luxurious Roman",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Luxurious-Script":{family:"Luxurious Script",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"M-PLUS-1":{family:"M PLUS 1",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["japanese","latin","latin-ext","vietnamese"]},"M-PLUS-1-Code":{family:"M PLUS 1 Code",category:"sans-serif",variants:["100","200","300","400","500","600","700"],subsets:["japanese","latin","latin-ext","vietnamese"]},"M-PLUS-1p":{family:"M PLUS 1p",category:"sans-serif",variants:["100","300","400","500","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","hebrew","japanese","latin","latin-ext","vietnamese"]},"M-PLUS-2":{family:"M PLUS 2",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["japanese","latin","latin-ext","vietnamese"]},"M-PLUS-Code-Latin":{family:"M PLUS Code Latin",category:"sans-serif",variants:["100","200","300","400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},"M-PLUS-Rounded-1c":{family:"M PLUS Rounded 1c",category:"sans-serif",variants:["100","300","400","500","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","hebrew","japanese","latin","latin-ext","vietnamese"]},"Ma-Shan-Zheng":{family:"Ma Shan Zheng",category:"handwriting",variants:["400"],subsets:["chinese-simplified","latin"]},Macondo:{family:"Macondo",category:"display",variants:["400"],subsets:["latin"]},"Macondo-Swash-Caps":{family:"Macondo Swash Caps",category:"display",variants:["400"],subsets:["latin"]},Mada:{family:"Mada",category:"sans-serif",variants:["200","300","400","500","600","700","900"],subsets:["arabic","latin"]},Magra:{family:"Magra",category:"sans-serif",variants:["400","700"],subsets:["latin","latin-ext"]},"Maiden-Orange":{family:"Maiden Orange",category:"display",variants:["400"],subsets:["latin"]},Maitree:{family:"Maitree",category:"serif",variants:["200","300","400","500","600","700"],subsets:["latin","latin-ext","thai","vietnamese"]},"Major-Mono-Display":{family:"Major Mono Display",category:"monospace",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Mako:{family:"Mako",category:"sans-serif",variants:["400"],subsets:["latin"]},Mali:{family:"Mali",category:"handwriting",variants:["200","300","400","500","600","700"],subsets:["latin","latin-ext","thai","vietnamese"]},Mallanna:{family:"Mallanna",category:"sans-serif",variants:["400"],subsets:["latin","telugu"]},Mandali:{family:"Mandali",category:"sans-serif",variants:["400"],subsets:["latin","telugu"]},Manjari:{family:"Manjari",category:"sans-serif",variants:["100","400","700"],subsets:["latin","latin-ext","malayalam"]},Manrope:{family:"Manrope",category:"sans-serif",variants:["200","300","400","500","600","700","800"],subsets:["cyrillic","cyrillic-ext","greek","latin","latin-ext","vietnamese"]},Mansalva:{family:"Mansalva",category:"handwriting",variants:["400"],subsets:["latin"]},Manuale:{family:"Manuale",category:"serif",variants:["300","400","500","600","700","800"],subsets:["latin","latin-ext","vietnamese"]},Marcellus:{family:"Marcellus",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"Marcellus-SC":{family:"Marcellus SC",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"Marck-Script":{family:"Marck Script",category:"handwriting",variants:["400"],subsets:["cyrillic","latin","latin-ext"]},Margarine:{family:"Margarine",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Markazi-Text":{family:"Markazi Text",category:"serif",variants:["400","500","600","700"],subsets:["arabic","latin","latin-ext","vietnamese"]},"Marko-One":{family:"Marko One",category:"serif",variants:["400"],subsets:["latin"]},Marmelad:{family:"Marmelad",category:"sans-serif",variants:["400"],subsets:["cyrillic","latin","latin-ext"]},Martel:{family:"Martel",category:"serif",variants:["200","300","400","600","700","800","900"],subsets:["devanagari","latin","latin-ext"]},"Martel-Sans":{family:"Martel Sans",category:"sans-serif",variants:["200","300","400","600","700","800","900"],subsets:["devanagari","latin","latin-ext"]},Marvel:{family:"Marvel",category:"sans-serif",variants:["400","700"],subsets:["latin"]},Mate:{family:"Mate",category:"serif",variants:["400"],subsets:["latin"]},"Mate-SC":{family:"Mate SC",category:"serif",variants:["400"],subsets:["latin"]},"Maven-Pro":{family:"Maven Pro",category:"sans-serif",variants:["400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},McLaren:{family:"McLaren",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Mea-Culpa":{family:"Mea Culpa",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Meddon:{family:"Meddon",category:"handwriting",variants:["400"],subsets:["latin"]},MedievalSharp:{family:"MedievalSharp",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Medula-One":{family:"Medula One",category:"display",variants:["400"],subsets:["latin"]},"Meera-Inimai":{family:"Meera Inimai",category:"sans-serif",variants:["400"],subsets:["latin","tamil"]},Megrim:{family:"Megrim",category:"display",variants:["400"],subsets:["latin"]},"Meie-Script":{family:"Meie Script",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"Meow-Script":{family:"Meow Script",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Merienda:{family:"Merienda",category:"handwriting",variants:["400","700"],subsets:["latin","latin-ext"]},"Merienda-One":{family:"Merienda One",category:"handwriting",variants:["400"],subsets:["latin"]},Merriweather:{family:"Merriweather",category:"serif",variants:["300","400","700","900"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Merriweather-Sans":{family:"Merriweather Sans",category:"sans-serif",variants:["300","400","500","600","700","800"],subsets:["cyrillic-ext","latin","latin-ext","vietnamese"]},Metal:{family:"Metal",category:"display",variants:["400"],subsets:["khmer","latin"]},"Metal-Mania":{family:"Metal Mania",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Metamorphous:{family:"Metamorphous",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Metrophobic:{family:"Metrophobic",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Michroma:{family:"Michroma",category:"sans-serif",variants:["400"],subsets:["latin"]},Milonga:{family:"Milonga",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Miltonian:{family:"Miltonian",category:"display",variants:["400"],subsets:["latin"]},"Miltonian-Tattoo":{family:"Miltonian Tattoo",category:"display",variants:["400"],subsets:["latin"]},Mina:{family:"Mina",category:"sans-serif",variants:["400","700"],subsets:["bengali","latin","latin-ext"]},Miniver:{family:"Miniver",category:"display",variants:["400"],subsets:["latin"]},"Miriam-Libre":{family:"Miriam Libre",category:"sans-serif",variants:["400","700"],subsets:["hebrew","latin","latin-ext"]},Mirza:{family:"Mirza",category:"display",variants:["400","500","600","700"],subsets:["arabic","latin","latin-ext"]},"Miss-Fajardose":{family:"Miss Fajardose",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Mitr:{family:"Mitr",category:"sans-serif",variants:["200","300","400","500","600","700"],subsets:["latin","latin-ext","thai","vietnamese"]},"Mochiy-Pop-One":{family:"Mochiy Pop One",category:"sans-serif",variants:["400"],subsets:["japanese","latin"]},"Mochiy-Pop-P-One":{family:"Mochiy Pop P One",category:"sans-serif",variants:["400"],subsets:["japanese","latin"]},Modak:{family:"Modak",category:"display",variants:["400"],subsets:["devanagari","latin","latin-ext"]},"Modern-Antiqua":{family:"Modern Antiqua",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Mogra:{family:"Mogra",category:"display",variants:["400"],subsets:["gujarati","latin","latin-ext"]},Mohave:{family:"Mohave",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext"]},Molengo:{family:"Molengo",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Molle:{family:"Molle",category:"handwriting",variants:[],subsets:["latin","latin-ext"]},Monda:{family:"Monda",category:"sans-serif",variants:["400","700"],subsets:["latin","latin-ext","vietnamese"]},Monofett:{family:"Monofett",category:"display",variants:["400"],subsets:["latin"]},Monoton:{family:"Monoton",category:"display",variants:["400"],subsets:["latin"]},"Monsieur-La-Doulaise":{family:"Monsieur La Doulaise",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Montaga:{family:"Montaga",category:"serif",variants:["400"],subsets:["latin"]},"Montagu-Slab":{family:"Montagu Slab",category:"serif",variants:["100","200","300","400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},MonteCarlo:{family:"MonteCarlo",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Montez:{family:"Montez",category:"handwriting",variants:["400"],subsets:["latin"]},Montserrat:{family:"Montserrat",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Montserrat-Alternates":{family:"Montserrat Alternates",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Montserrat-Subrayada":{family:"Montserrat Subrayada",category:"sans-serif",variants:["400","700"],subsets:["latin"]},"Moo-Lah-Lah":{family:"Moo Lah Lah",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Moon-Dance":{family:"Moon Dance",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Moul:{family:"Moul",category:"display",variants:["400"],subsets:["khmer","latin"]},Moulpali:{family:"Moulpali",category:"display",variants:["400"],subsets:["khmer","latin"]},"Mountains-of-Christmas":{family:"Mountains of Christmas",category:"display",variants:["400","700"],subsets:["latin"]},"Mouse-Memoirs":{family:"Mouse Memoirs",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},"Mr-Bedfort":{family:"Mr Bedfort",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"Mr-Dafoe":{family:"Mr Dafoe",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"Mr-De-Haviland":{family:"Mr De Haviland",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"Mrs-Saint-Delafield":{family:"Mrs Saint Delafield",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"Mrs-Sheppards":{family:"Mrs Sheppards",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Mukta:{family:"Mukta",category:"sans-serif",variants:["200","300","400","500","600","700","800"],subsets:["devanagari","latin","latin-ext"]},"Mukta-Mahee":{family:"Mukta Mahee",category:"sans-serif",variants:["200","300","400","500","600","700","800"],subsets:["gurmukhi","latin","latin-ext"]},"Mukta-Malar":{family:"Mukta Malar",category:"sans-serif",variants:["200","300","400","500","600","700","800"],subsets:["latin","latin-ext","tamil"]},"Mukta-Vaani":{family:"Mukta Vaani",category:"sans-serif",variants:["200","300","400","500","600","700","800"],subsets:["gujarati","latin","latin-ext"]},Mulish:{family:"Mulish",category:"sans-serif",variants:["200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},Murecho:{family:"Murecho",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","japanese","latin","latin-ext"]},MuseoModerno:{family:"MuseoModerno",category:"display",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Mystery-Quest":{family:"Mystery Quest",category:"display",variants:["400"],subsets:["latin","latin-ext"]},NTR:{family:"NTR",category:"sans-serif",variants:["400"],subsets:["latin","telugu"]},"Nanum-Brush-Script":{family:"Nanum Brush Script",category:"handwriting",variants:["400"],subsets:["korean","latin"]},"Nanum-Gothic":{family:"Nanum Gothic",category:"sans-serif",variants:["400","700","800"],subsets:["korean","latin"]},"Nanum-Gothic-Coding":{family:"Nanum Gothic Coding",category:"monospace",variants:["400","700"],subsets:["korean","latin"]},"Nanum-Myeongjo":{family:"Nanum Myeongjo",category:"serif",variants:["400","700","800"],subsets:["korean","latin"]},"Nanum-Pen-Script":{family:"Nanum Pen Script",category:"handwriting",variants:["400"],subsets:["korean","latin"]},Neonderthaw:{family:"Neonderthaw",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Nerko-One":{family:"Nerko One",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Neucha:{family:"Neucha",category:"handwriting",variants:["400"],subsets:["cyrillic","latin"]},Neuton:{family:"Neuton",category:"serif",variants:["200","300","400","700","800"],subsets:["latin","latin-ext"]},"New-Rocker":{family:"New Rocker",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"New-Tegomin":{family:"New Tegomin",category:"serif",variants:["400"],subsets:["japanese","latin","latin-ext"]},"News-Cycle":{family:"News Cycle",category:"sans-serif",variants:["400","700"],subsets:["latin","latin-ext"]},Newsreader:{family:"Newsreader",category:"serif",variants:["200","300","400","500","600","700","800"],subsets:["latin","latin-ext","vietnamese"]},Niconne:{family:"Niconne",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Niramit:{family:"Niramit",category:"sans-serif",variants:["200","300","400","500","600","700"],subsets:["latin","latin-ext","thai","vietnamese"]},"Nixie-One":{family:"Nixie One",category:"display",variants:["400"],subsets:["latin"]},Nobile:{family:"Nobile",category:"sans-serif",variants:["400","500","700"],subsets:["latin","latin-ext"]},Nokora:{family:"Nokora",category:"sans-serif",variants:["100","300","400","700","900"],subsets:["khmer","latin"]},Norican:{family:"Norican",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Nosifer:{family:"Nosifer",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Notable:{family:"Notable",category:"sans-serif",variants:["400"],subsets:["latin"]},"Nothing-You-Could-Do":{family:"Nothing You Could Do",category:"handwriting",variants:["400"],subsets:["latin"]},"Noticia-Text":{family:"Noticia Text",category:"serif",variants:["400","700"],subsets:["latin","latin-ext","vietnamese"]},"Noto-Kufi-Arabic":{family:"Noto Kufi Arabic",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["arabic"]},"Noto-Music":{family:"Noto Music",category:"sans-serif",variants:["400"],subsets:["music"]},"Noto-Naskh-Arabic":{family:"Noto Naskh Arabic",category:"serif",variants:["400","500","600","700"],subsets:["arabic"]},"Noto-Nastaliq-Urdu":{family:"Noto Nastaliq Urdu",category:"serif",variants:["400","700"],subsets:["arabic"]},"Noto-Rashi-Hebrew":{family:"Noto Rashi Hebrew",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["hebrew"]},"Noto-Sans":{family:"Noto Sans",category:"sans-serif",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","devanagari","greek","greek-ext","latin","latin-ext","vietnamese"]},"Noto-Sans-Adlam":{family:"Noto Sans Adlam",category:"sans-serif",variants:["400","500","600","700"],subsets:["adlam"]},"Noto-Sans-Adlam-Unjoined":{family:"Noto Sans Adlam Unjoined",category:"sans-serif",variants:["400","500","600","700"],subsets:["adlam"]},"Noto-Sans-Anatolian-Hieroglyphs":{family:"Noto Sans Anatolian Hieroglyphs",category:"sans-serif",variants:["400"],subsets:["anatolian-hieroglyphs"]},"Noto-Sans-Arabic":{family:"Noto Sans Arabic",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["arabic"]},"Noto-Sans-Armenian":{family:"Noto Sans Armenian",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["armenian"]},"Noto-Sans-Avestan":{family:"Noto Sans Avestan",category:"sans-serif",variants:["400"],subsets:["avestan"]},"Noto-Sans-Balinese":{family:"Noto Sans Balinese",category:"sans-serif",variants:["400","500","600","700"],subsets:["balinese"]},"Noto-Sans-Bamum":{family:"Noto Sans Bamum",category:"sans-serif",variants:["400","500","600","700"],subsets:["bamum"]},"Noto-Sans-Bassa-Vah":{family:"Noto Sans Bassa Vah",category:"sans-serif",variants:["400"],subsets:["bassa-vah"]},"Noto-Sans-Batak":{family:"Noto Sans Batak",category:"sans-serif",variants:["400"],subsets:["batak"]},"Noto-Sans-Bengali":{family:"Noto Sans Bengali",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["bengali"]},"Noto-Sans-Bhaiksuki":{family:"Noto Sans Bhaiksuki",category:"sans-serif",variants:["400"],subsets:["bhaiksuki"]},"Noto-Sans-Brahmi":{family:"Noto Sans Brahmi",category:"sans-serif",variants:["400"],subsets:["brahmi"]},"Noto-Sans-Buginese":{family:"Noto Sans Buginese",category:"sans-serif",variants:["400"],subsets:["buginese"]},"Noto-Sans-Buhid":{family:"Noto Sans Buhid",category:"sans-serif",variants:["400"],subsets:["buhid"]},"Noto-Sans-Canadian-Aboriginal":{family:"Noto Sans Canadian Aboriginal",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["canadian-aboriginal"]},"Noto-Sans-Carian":{family:"Noto Sans Carian",category:"sans-serif",variants:["400"],subsets:["carian"]},"Noto-Sans-Caucasian-Albanian":{family:"Noto Sans Caucasian Albanian",category:"sans-serif",variants:["400"],subsets:["caucasian-albanian"]},"Noto-Sans-Chakma":{family:"Noto Sans Chakma",category:"sans-serif",variants:["400"],subsets:["chakma"]},"Noto-Sans-Cham":{family:"Noto Sans Cham",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cham"]},"Noto-Sans-Cherokee":{family:"Noto Sans Cherokee",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cherokee"]},"Noto-Sans-Coptic":{family:"Noto Sans Coptic",category:"sans-serif",variants:["400"],subsets:["coptic"]},"Noto-Sans-Cuneiform":{family:"Noto Sans Cuneiform",category:"sans-serif",variants:["400"],subsets:["cuneiform"]},"Noto-Sans-Cypriot":{family:"Noto Sans Cypriot",category:"sans-serif",variants:["400"],subsets:["cypriot"]},"Noto-Sans-Deseret":{family:"Noto Sans Deseret",category:"sans-serif",variants:["400"],subsets:["deseret"]},"Noto-Sans-Devanagari":{family:"Noto Sans Devanagari",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["devanagari"]},"Noto-Sans-Display":{family:"Noto Sans Display",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Noto-Sans-Duployan":{family:"Noto Sans Duployan",category:"sans-serif",variants:["400"],subsets:["duployan"]},"Noto-Sans-Egyptian-Hieroglyphs":{family:"Noto Sans Egyptian Hieroglyphs",category:"sans-serif",variants:["400"],subsets:["egyptian-hieroglyphs"]},"Noto-Sans-Elbasan":{family:"Noto Sans Elbasan",category:"sans-serif",variants:["400"],subsets:["elbasan"]},"Noto-Sans-Elymaic":{family:"Noto Sans Elymaic",category:"sans-serif",variants:["400"],subsets:["elymaic"]},"Noto-Sans-Georgian":{family:"Noto Sans Georgian",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["georgian"]},"Noto-Sans-Glagolitic":{family:"Noto Sans Glagolitic",category:"sans-serif",variants:["400"],subsets:["glagolitic"]},"Noto-Sans-Gothic":{family:"Noto Sans Gothic",category:"sans-serif",variants:["400"],subsets:["gothic"]},"Noto-Sans-Grantha":{family:"Noto Sans Grantha",category:"sans-serif",variants:["400"],subsets:["grantha"]},"Noto-Sans-Gujarati":{family:"Noto Sans Gujarati",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["gujarati"]},"Noto-Sans-Gunjala-Gondi":{family:"Noto Sans Gunjala Gondi",category:"sans-serif",variants:["400"],subsets:["gunjala-gondi"]},"Noto-Sans-Gurmukhi":{family:"Noto Sans Gurmukhi",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["gurmukhi"]},"Noto-Sans-HK":{family:"Noto Sans HK",category:"sans-serif",variants:["100","300","400","500","700","900"],subsets:["chinese-hongkong","latin"]},"Noto-Sans-Hanifi-Rohingya":{family:"Noto Sans Hanifi Rohingya",category:"sans-serif",variants:["400","500","600","700"],subsets:["hanifi-rohingya"]},"Noto-Sans-Hanunoo":{family:"Noto Sans Hanunoo",category:"sans-serif",variants:["400"],subsets:["hanunoo"]},"Noto-Sans-Hatran":{family:"Noto Sans Hatran",category:"sans-serif",variants:["400"],subsets:["hatran"]},"Noto-Sans-Hebrew":{family:"Noto Sans Hebrew",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["hebrew"]},"Noto-Sans-Imperial-Aramaic":{family:"Noto Sans Imperial Aramaic",category:"sans-serif",variants:["400"],subsets:["imperial-aramaic"]},"Noto-Sans-Indic-Siyaq-Numbers":{family:"Noto Sans Indic Siyaq Numbers",category:"sans-serif",variants:["400"],subsets:["indic-siyaq-numbers"]},"Noto-Sans-Inscriptional-Pahlavi":{family:"Noto Sans Inscriptional Pahlavi",category:"sans-serif",variants:["400"],subsets:["inscriptional-pahlavi"]},"Noto-Sans-Inscriptional-Parthian":{family:"Noto Sans Inscriptional Parthian",category:"sans-serif",variants:["400"],subsets:["inscriptional-parthian"]},"Noto-Sans-JP":{family:"Noto Sans JP",category:"sans-serif",variants:["100","300","400","500","700","900"],subsets:["japanese","latin"]},"Noto-Sans-Javanese":{family:"Noto Sans Javanese",category:"sans-serif",variants:["400","700"],subsets:["javanese"]},"Noto-Sans-KR":{family:"Noto Sans KR",category:"sans-serif",variants:["100","300","400","500","700","900"],subsets:["korean","latin"]},"Noto-Sans-Kaithi":{family:"Noto Sans Kaithi",category:"sans-serif",variants:["400"],subsets:["kaithi"]},"Noto-Sans-Kannada":{family:"Noto Sans Kannada",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["kannada"]},"Noto-Sans-Kayah-Li":{family:"Noto Sans Kayah Li",category:"sans-serif",variants:["400","500","600","700"],subsets:["kayah-li"]},"Noto-Sans-Kharoshthi":{family:"Noto Sans Kharoshthi",category:"sans-serif",variants:["400"],subsets:["kharoshthi"]},"Noto-Sans-Khmer":{family:"Noto Sans Khmer",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["khmer"]},"Noto-Sans-Khojki":{family:"Noto Sans Khojki",category:"sans-serif",variants:["400"],subsets:["khojki"]},"Noto-Sans-Khudawadi":{family:"Noto Sans Khudawadi",category:"sans-serif",variants:["400"],subsets:["khudawadi"]},"Noto-Sans-Lao":{family:"Noto Sans Lao",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["lao"]},"Noto-Sans-Lepcha":{family:"Noto Sans Lepcha",category:"sans-serif",variants:["400"],subsets:["lepcha"]},"Noto-Sans-Limbu":{family:"Noto Sans Limbu",category:"sans-serif",variants:["400"],subsets:["limbu"]},"Noto-Sans-Linear-A":{family:"Noto Sans Linear A",category:"sans-serif",variants:["400"],subsets:["linear-a"]},"Noto-Sans-Linear-B":{family:"Noto Sans Linear B",category:"sans-serif",variants:["400"],subsets:["linear-b"]},"Noto-Sans-Lisu":{family:"Noto Sans Lisu",category:"sans-serif",variants:["400","500","600","700"],subsets:["lisu"]},"Noto-Sans-Lycian":{family:"Noto Sans Lycian",category:"sans-serif",variants:["400"],subsets:["lycian"]},"Noto-Sans-Lydian":{family:"Noto Sans Lydian",category:"sans-serif",variants:["400"],subsets:["lydian"]},"Noto-Sans-Mahajani":{family:"Noto Sans Mahajani",category:"sans-serif",variants:["400"],subsets:["mahajani"]},"Noto-Sans-Malayalam":{family:"Noto Sans Malayalam",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["malayalam"]},"Noto-Sans-Mandaic":{family:"Noto Sans Mandaic",category:"sans-serif",variants:["400"],subsets:["mandaic"]},"Noto-Sans-Manichaean":{family:"Noto Sans Manichaean",category:"sans-serif",variants:["400"],subsets:["manichaean"]},"Noto-Sans-Marchen":{family:"Noto Sans Marchen",category:"sans-serif",variants:["400"],subsets:["marchen"]},"Noto-Sans-Masaram-Gondi":{family:"Noto Sans Masaram Gondi",category:"sans-serif",variants:["400"],subsets:["masaram-gondi"]},"Noto-Sans-Math":{family:"Noto Sans Math",category:"sans-serif",variants:["400"],subsets:["math"]},"Noto-Sans-Mayan-Numerals":{family:"Noto Sans Mayan Numerals",category:"sans-serif",variants:["400"],subsets:["mayan-numerals"]},"Noto-Sans-Medefaidrin":{family:"Noto Sans Medefaidrin",category:"sans-serif",variants:["400","500","600","700"],subsets:["medefaidrin"]},"Noto-Sans-Meetei-Mayek":{family:"Noto Sans Meetei Mayek",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["meetei-mayek"]},"Noto-Sans-Meroitic":{family:"Noto Sans Meroitic",category:"sans-serif",variants:["400"],subsets:["meroitic"]},"Noto-Sans-Miao":{family:"Noto Sans Miao",category:"sans-serif",variants:["400"],subsets:["miao"]},"Noto-Sans-Modi":{family:"Noto Sans Modi",category:"sans-serif",variants:["400"],subsets:["modi"]},"Noto-Sans-Mongolian":{family:"Noto Sans Mongolian",category:"sans-serif",variants:["400"],subsets:["mongolian"]},"Noto-Sans-Mono":{family:"Noto Sans Mono",category:"monospace",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Noto-Sans-Mro":{family:"Noto Sans Mro",category:"sans-serif",variants:["400"],subsets:["mro"]},"Noto-Sans-Multani":{family:"Noto Sans Multani",category:"sans-serif",variants:["400"],subsets:["multani"]},"Noto-Sans-Myanmar":{family:"Noto Sans Myanmar",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["myanmar"]},"Noto-Sans-N-Ko":{family:"Noto Sans N Ko",category:"sans-serif",variants:["400"],subsets:["nko"]},"Noto-Sans-Nabataean":{family:"Noto Sans Nabataean",category:"sans-serif",variants:["400"],subsets:["nabataean"]},"Noto-Sans-New-Tai-Lue":{family:"Noto Sans New Tai Lue",category:"sans-serif",variants:["400"],subsets:["new-tai-lue"]},"Noto-Sans-Newa":{family:"Noto Sans Newa",category:"sans-serif",variants:["400"],subsets:["newa"]},"Noto-Sans-Nushu":{family:"Noto Sans Nushu",category:"sans-serif",variants:["400"],subsets:["nushu"]},"Noto-Sans-Ogham":{family:"Noto Sans Ogham",category:"sans-serif",variants:["400"],subsets:["ogham"]},"Noto-Sans-Ol-Chiki":{family:"Noto Sans Ol Chiki",category:"sans-serif",variants:["400","500","600","700"],subsets:["ol-chiki"]},"Noto-Sans-Old-Hungarian":{family:"Noto Sans Old Hungarian",category:"sans-serif",variants:["400"],subsets:["old-hungarian"]},"Noto-Sans-Old-Italic":{family:"Noto Sans Old Italic",category:"sans-serif",variants:["400"],subsets:["old-italic"]},"Noto-Sans-Old-North-Arabian":{family:"Noto Sans Old North Arabian",category:"sans-serif",variants:["400"],subsets:["old-north-arabian"]},"Noto-Sans-Old-Permic":{family:"Noto Sans Old Permic",category:"sans-serif",variants:["400"],subsets:["old-permic"]},"Noto-Sans-Old-Persian":{family:"Noto Sans Old Persian",category:"sans-serif",variants:["400"],subsets:["old-persian"]},"Noto-Sans-Old-Sogdian":{family:"Noto Sans Old Sogdian",category:"sans-serif",variants:["400"],subsets:["old-sogdian"]},"Noto-Sans-Old-South-Arabian":{family:"Noto Sans Old South Arabian",category:"sans-serif",variants:["400"],subsets:["old-south-arabian"]},"Noto-Sans-Old-Turkic":{family:"Noto Sans Old Turkic",category:"sans-serif",variants:["400"],subsets:["old-turkic"]},"Noto-Sans-Oriya":{family:"Noto Sans Oriya",category:"sans-serif",variants:["100","400","700","900"],subsets:["oriya"]},"Noto-Sans-Osage":{family:"Noto Sans Osage",category:"sans-serif",variants:["400"],subsets:["osage"]},"Noto-Sans-Osmanya":{family:"Noto Sans Osmanya",category:"sans-serif",variants:["400"],subsets:["osmanya"]},"Noto-Sans-Pahawh-Hmong":{family:"Noto Sans Pahawh Hmong",category:"sans-serif",variants:["400"],subsets:["pahawh-hmong"]},"Noto-Sans-Palmyrene":{family:"Noto Sans Palmyrene",category:"sans-serif",variants:["400"],subsets:["palmyrene"]},"Noto-Sans-Pau-Cin-Hau":{family:"Noto Sans Pau Cin Hau",category:"sans-serif",variants:["400"],subsets:["pau-cin-hau"]},"Noto-Sans-Phags-Pa":{family:"Noto Sans Phags Pa",category:"sans-serif",variants:["400"],subsets:["phags-pa"]},"Noto-Sans-Phoenician":{family:"Noto Sans Phoenician",category:"sans-serif",variants:["400"],subsets:["phoenician"]},"Noto-Sans-Psalter-Pahlavi":{family:"Noto Sans Psalter Pahlavi",category:"sans-serif",variants:["400"],subsets:["psalter-pahlavi"]},"Noto-Sans-Rejang":{family:"Noto Sans Rejang",category:"sans-serif",variants:["400"],subsets:["rejang"]},"Noto-Sans-Runic":{family:"Noto Sans Runic",category:"sans-serif",variants:["400"],subsets:["runic"]},"Noto-Sans-SC":{family:"Noto Sans SC",category:"sans-serif",variants:["100","300","400","500","700","900"],subsets:["chinese-simplified","latin"]},"Noto-Sans-Samaritan":{family:"Noto Sans Samaritan",category:"sans-serif",variants:["400"],subsets:["samaritan"]},"Noto-Sans-Saurashtra":{family:"Noto Sans Saurashtra",category:"sans-serif",variants:["400"],subsets:["saurashtra"]},"Noto-Sans-Sharada":{family:"Noto Sans Sharada",category:"sans-serif",variants:["400"],subsets:["sharada"]},"Noto-Sans-Shavian":{family:"Noto Sans Shavian",category:"sans-serif",variants:["400"],subsets:["shavian"]},"Noto-Sans-Siddham":{family:"Noto Sans Siddham",category:"sans-serif",variants:["400"],subsets:["siddham"]},"Noto-Sans-Sinhala":{family:"Noto Sans Sinhala",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["sinhala"]},"Noto-Sans-Sogdian":{family:"Noto Sans Sogdian",category:"sans-serif",variants:["400"],subsets:["sogdian"]},"Noto-Sans-Sora-Sompeng":{family:"Noto Sans Sora Sompeng",category:"sans-serif",variants:["400","500","600","700"],subsets:["sora-sompeng"]},"Noto-Sans-Soyombo":{family:"Noto Sans Soyombo",category:"sans-serif",variants:["400"],subsets:["soyombo"]},"Noto-Sans-Sundanese":{family:"Noto Sans Sundanese",category:"sans-serif",variants:["400","500","600","700"],subsets:["sundanese"]},"Noto-Sans-Syloti-Nagri":{family:"Noto Sans Syloti Nagri",category:"sans-serif",variants:["400"],subsets:["syloti-nagri"]},"Noto-Sans-Symbols":{family:"Noto Sans Symbols",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["symbols"]},"Noto-Sans-Symbols-2":{family:"Noto Sans Symbols 2",category:"sans-serif",variants:["400"],subsets:["symbols"]},"Noto-Sans-Syriac":{family:"Noto Sans Syriac",category:"sans-serif",variants:["100","400","900"],subsets:["syriac"]},"Noto-Sans-TC":{family:"Noto Sans TC",category:"sans-serif",variants:["100","300","400","500","700","900"],subsets:["chinese-traditional","latin"]},"Noto-Sans-Tagalog":{family:"Noto Sans Tagalog",category:"sans-serif",variants:["400"],subsets:["tagalog"]},"Noto-Sans-Tagbanwa":{family:"Noto Sans Tagbanwa",category:"sans-serif",variants:["400"],subsets:["tagbanwa"]},"Noto-Sans-Tai-Le":{family:"Noto Sans Tai Le",category:"sans-serif",variants:["400"],subsets:["tai-le"]},"Noto-Sans-Tai-Tham":{family:"Noto Sans Tai Tham",category:"sans-serif",variants:["400","500","600","700"],subsets:["tai-tham"]},"Noto-Sans-Tai-Viet":{family:"Noto Sans Tai Viet",category:"sans-serif",variants:["400"],subsets:["tai-viet"]},"Noto-Sans-Takri":{family:"Noto Sans Takri",category:"sans-serif",variants:["400"],subsets:["takri"]},"Noto-Sans-Tamil":{family:"Noto Sans Tamil",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["tamil"]},"Noto-Sans-Tamil-Supplement":{family:"Noto Sans Tamil Supplement",category:"sans-serif",variants:["400"],subsets:["tamil-supplement"]},"Noto-Sans-Telugu":{family:"Noto Sans Telugu",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["telugu"]},"Noto-Sans-Thaana":{family:"Noto Sans Thaana",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["thaana"]},"Noto-Sans-Thai":{family:"Noto Sans Thai",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["thai"]},"Noto-Sans-Thai-Looped":{family:"Noto Sans Thai Looped",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["thai"]},"Noto-Sans-Tifinagh":{family:"Noto Sans Tifinagh",category:"sans-serif",variants:["400"],subsets:["tifinagh"]},"Noto-Sans-Tirhuta":{family:"Noto Sans Tirhuta",category:"sans-serif",variants:["400"],subsets:["tirhuta"]},"Noto-Sans-Ugaritic":{family:"Noto Sans Ugaritic",category:"sans-serif",variants:["400"],subsets:["ugaritic"]},"Noto-Sans-Vai":{family:"Noto Sans Vai",category:"sans-serif",variants:["400"],subsets:["vai"]},"Noto-Sans-Wancho":{family:"Noto Sans Wancho",category:"sans-serif",variants:["400"],subsets:["wancho"]},"Noto-Sans-Warang-Citi":{family:"Noto Sans Warang Citi",category:"sans-serif",variants:["400"],subsets:["warang-citi"]},"Noto-Sans-Yi":{family:"Noto Sans Yi",category:"sans-serif",variants:["400"],subsets:["yi"]},"Noto-Sans-Zanabazar-Square":{family:"Noto Sans Zanabazar Square",category:"sans-serif",variants:["400"],subsets:["zanabazar-square"]},"Noto-Serif":{family:"Noto Serif",category:"serif",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Noto-Serif-Ahom":{family:"Noto Serif Ahom",category:"serif",variants:["400"],subsets:["ahom"]},"Noto-Serif-Armenian":{family:"Noto Serif Armenian",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["armenian"]},"Noto-Serif-Balinese":{family:"Noto Serif Balinese",category:"serif",variants:["400"],subsets:["balinese"]},"Noto-Serif-Bengali":{family:"Noto Serif Bengali",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["bengali"]},"Noto-Serif-Devanagari":{family:"Noto Serif Devanagari",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["devanagari"]},"Noto-Serif-Display":{family:"Noto Serif Display",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Noto-Serif-Dogra":{family:"Noto Serif Dogra",category:"serif",variants:["400"],subsets:["dogra"]},"Noto-Serif-Ethiopic":{family:"Noto Serif Ethiopic",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["ethiopic"]},"Noto-Serif-Georgian":{family:"Noto Serif Georgian",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["georgian"]},"Noto-Serif-Grantha":{family:"Noto Serif Grantha",category:"serif",variants:["400"],subsets:["grantha"]},"Noto-Serif-Gujarati":{family:"Noto Serif Gujarati",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["gujarati"]},"Noto-Serif-Gurmukhi":{family:"Noto Serif Gurmukhi",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["gurmukhi"]},"Noto-Serif-Hebrew":{family:"Noto Serif Hebrew",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["hebrew"]},"Noto-Serif-JP":{family:"Noto Serif JP",category:"serif",variants:["200","300","400","500","600","700","900"],subsets:["japanese","latin"]},"Noto-Serif-KR":{family:"Noto Serif KR",category:"serif",variants:["200","300","400","500","600","700","900"],subsets:["korean","latin"]},"Noto-Serif-Kannada":{family:"Noto Serif Kannada",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["kannada"]},"Noto-Serif-Khmer":{family:"Noto Serif Khmer",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["khmer"]},"Noto-Serif-Lao":{family:"Noto Serif Lao",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["lao"]},"Noto-Serif-Malayalam":{family:"Noto Serif Malayalam",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["malayalam"]},"Noto-Serif-Myanmar":{family:"Noto Serif Myanmar",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["myanmar"]},"Noto-Serif-Nyiakeng-Puachue-Hmong":{family:"Noto Serif Nyiakeng Puachue Hmong",category:"serif",variants:["400","500","600","700"],subsets:["nyiakeng-puachue-hmong"]},"Noto-Serif-SC":{family:"Noto Serif SC",category:"serif",variants:["200","300","400","500","600","700","900"],subsets:["chinese-simplified","latin"]},"Noto-Serif-Sinhala":{family:"Noto Serif Sinhala",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["sinhala"]},"Noto-Serif-TC":{family:"Noto Serif TC",category:"serif",variants:["200","300","400","500","600","700","900"],subsets:["chinese-traditional","latin"]},"Noto-Serif-Tamil":{family:"Noto Serif Tamil",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["tamil"]},"Noto-Serif-Tangut":{family:"Noto Serif Tangut",category:"serif",variants:["400"],subsets:["tangut"]},"Noto-Serif-Telugu":{family:"Noto Serif Telugu",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["telugu"]},"Noto-Serif-Thai":{family:"Noto Serif Thai",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["thai"]},"Noto-Serif-Tibetan":{family:"Noto Serif Tibetan",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["tibetan"]},"Noto-Serif-Yezidi":{family:"Noto Serif Yezidi",category:"serif",variants:["400","500","600","700"],subsets:["yezidi"]},"Noto-Traditional-Nushu":{family:"Noto Traditional Nushu",category:"sans-serif",variants:["400"],subsets:["nushu"]},"Nova-Cut":{family:"Nova Cut",category:"display",variants:["400"],subsets:["latin"]},"Nova-Flat":{family:"Nova Flat",category:"display",variants:["400"],subsets:["latin"]},"Nova-Mono":{family:"Nova Mono",category:"monospace",variants:["400"],subsets:["greek","latin"]},"Nova-Oval":{family:"Nova Oval",category:"display",variants:["400"],subsets:["latin"]},"Nova-Round":{family:"Nova Round",category:"display",variants:["400"],subsets:["latin"]},"Nova-Script":{family:"Nova Script",category:"display",variants:["400"],subsets:["latin"]},"Nova-Slim":{family:"Nova Slim",category:"display",variants:["400"],subsets:["latin"]},"Nova-Square":{family:"Nova Square",category:"display",variants:["400"],subsets:["latin"]},Numans:{family:"Numans",category:"sans-serif",variants:["400"],subsets:["latin"]},Nunito:{family:"Nunito",category:"sans-serif",variants:["200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Nunito-Sans":{family:"Nunito Sans",category:"sans-serif",variants:["200","300","400","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Odibee-Sans":{family:"Odibee Sans",category:"display",variants:["400"],subsets:["latin"]},"Odor-Mean-Chey":{family:"Odor Mean Chey",category:"serif",variants:["400"],subsets:["khmer","latin"]},Offside:{family:"Offside",category:"display",variants:["400"],subsets:["latin"]},Oi:{family:"Oi",category:"display",variants:["400"],subsets:["cyrillic","cyrillic-ext","greek","latin","latin-ext","tamil","vietnamese"]},"Old-Standard-TT":{family:"Old Standard TT",category:"serif",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},Oldenburg:{family:"Oldenburg",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Ole:{family:"Ole",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Oleo-Script":{family:"Oleo Script",category:"display",variants:["400","700"],subsets:["latin","latin-ext"]},"Oleo-Script-Swash-Caps":{family:"Oleo Script Swash Caps",category:"display",variants:["400","700"],subsets:["latin","latin-ext"]},"Oooh-Baby":{family:"Oooh Baby",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Open-Sans":{family:"Open Sans",category:"sans-serif",variants:["300","400","500","600","700","800"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","hebrew","latin","latin-ext","vietnamese"]},"Open-Sans-Condensed":{family:"Open Sans Condensed",category:"sans-serif",variants:["300","700"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},Oranienbaum:{family:"Oranienbaum",category:"serif",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext"]},Orbitron:{family:"Orbitron",category:"sans-serif",variants:["400","500","600","700","800","900"],subsets:["latin"]},Oregano:{family:"Oregano",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Orelega-One":{family:"Orelega One",category:"display",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext"]},Orienta:{family:"Orienta",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},"Original-Surfer":{family:"Original Surfer",category:"display",variants:["400"],subsets:["latin"]},Oswald:{family:"Oswald",category:"sans-serif",variants:["200","300","400","500","600","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Otomanopee-One":{family:"Otomanopee One",category:"sans-serif",variants:["400"],subsets:["japanese","latin","latin-ext"]},Outfit:{family:"Outfit",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin"]},"Over-the-Rainbow":{family:"Over the Rainbow",category:"handwriting",variants:["400"],subsets:["latin"]},Overlock:{family:"Overlock",category:"display",variants:["400","700","900"],subsets:["latin","latin-ext"]},"Overlock-SC":{family:"Overlock SC",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Overpass:{family:"Overpass",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Overpass-Mono":{family:"Overpass Mono",category:"monospace",variants:["300","400","500","600","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},Ovo:{family:"Ovo",category:"serif",variants:["400"],subsets:["latin"]},Oxanium:{family:"Oxanium",category:"display",variants:["200","300","400","500","600","700","800"],subsets:["latin","latin-ext"]},Oxygen:{family:"Oxygen",category:"sans-serif",variants:["300","400","700"],subsets:["latin","latin-ext"]},"Oxygen-Mono":{family:"Oxygen Mono",category:"monospace",variants:["400"],subsets:["latin","latin-ext"]},"PT-Mono":{family:"PT Mono",category:"monospace",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext"]},"PT-Sans":{family:"PT Sans",category:"sans-serif",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext"]},"PT-Sans-Caption":{family:"PT Sans Caption",category:"sans-serif",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext"]},"PT-Sans-Narrow":{family:"PT Sans Narrow",category:"sans-serif",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext"]},"PT-Serif":{family:"PT Serif",category:"serif",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext"]},"PT-Serif-Caption":{family:"PT Serif Caption",category:"serif",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext"]},Pacifico:{family:"Pacifico",category:"handwriting",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},Padauk:{family:"Padauk",category:"sans-serif",variants:["400","700"],subsets:["latin","myanmar"]},Palanquin:{family:"Palanquin",category:"sans-serif",variants:["100","200","300","400","500","600","700"],subsets:["devanagari","latin","latin-ext"]},"Palanquin-Dark":{family:"Palanquin Dark",category:"sans-serif",variants:["400","500","600","700"],subsets:["devanagari","latin","latin-ext"]},"Palette-Mosaic":{family:"Palette Mosaic",category:"display",variants:["400"],subsets:["japanese","latin"]},Pangolin:{family:"Pangolin",category:"handwriting",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},Paprika:{family:"Paprika",category:"display",variants:["400"],subsets:["latin"]},Parisienne:{family:"Parisienne",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"Passero-One":{family:"Passero One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Passion-One":{family:"Passion One",category:"display",variants:["400","700","900"],subsets:["latin","latin-ext"]},"Passions-Conflict":{family:"Passions Conflict",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Pathway-Gothic-One":{family:"Pathway Gothic One",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},"Patrick-Hand":{family:"Patrick Hand",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Patrick-Hand-SC":{family:"Patrick Hand SC",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Pattaya:{family:"Pattaya",category:"sans-serif",variants:["400"],subsets:["cyrillic","latin","latin-ext","thai","vietnamese"]},"Patua-One":{family:"Patua One",category:"display",variants:["400"],subsets:["latin"]},Pavanam:{family:"Pavanam",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext","tamil"]},"Paytone-One":{family:"Paytone One",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Peddana:{family:"Peddana",category:"serif",variants:["400"],subsets:["latin","telugu"]},Peralta:{family:"Peralta",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Permanent-Marker":{family:"Permanent Marker",category:"handwriting",variants:["400"],subsets:["latin"]},Petemoss:{family:"Petemoss",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Petit-Formal-Script":{family:"Petit Formal Script",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Petrona:{family:"Petrona",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},Philosopher:{family:"Philosopher",category:"sans-serif",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","latin","vietnamese"]},Piazzolla:{family:"Piazzolla",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},Piedra:{family:"Piedra",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Pinyon-Script":{family:"Pinyon Script",category:"handwriting",variants:["400"],subsets:["latin"]},"Pirata-One":{family:"Pirata One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Plaster:{family:"Plaster",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Play:{family:"Play",category:"sans-serif",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","greek","latin","latin-ext","vietnamese"]},Playball:{family:"Playball",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Playfair-Display":{family:"Playfair Display",category:"serif",variants:["400","500","600","700","800","900"],subsets:["cyrillic","latin","latin-ext","vietnamese"]},"Playfair-Display-SC":{family:"Playfair Display SC",category:"serif",variants:["400","700","900"],subsets:["cyrillic","latin","latin-ext","vietnamese"]},Podkova:{family:"Podkova",category:"serif",variants:["400","500","600","700","800"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Poiret-One":{family:"Poiret One",category:"display",variants:["400"],subsets:["cyrillic","latin","latin-ext"]},"Poller-One":{family:"Poller One",category:"display",variants:["400"],subsets:["latin"]},Poly:{family:"Poly",category:"serif",variants:["400"],subsets:["latin"]},Pompiere:{family:"Pompiere",category:"display",variants:["400"],subsets:["latin"]},"Pontano-Sans":{family:"Pontano Sans",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},"Poor-Story":{family:"Poor Story",category:"display",variants:["400"],subsets:["korean","latin"]},Poppins:{family:"Poppins",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["devanagari","latin","latin-ext"]},"Port-Lligat-Sans":{family:"Port Lligat Sans",category:"sans-serif",variants:["400"],subsets:["latin"]},"Port-Lligat-Slab":{family:"Port Lligat Slab",category:"serif",variants:["400"],subsets:["latin"]},"Potta-One":{family:"Potta One",category:"display",variants:["400"],subsets:["japanese","latin","latin-ext","vietnamese"]},"Pragati-Narrow":{family:"Pragati Narrow",category:"sans-serif",variants:["400","700"],subsets:["devanagari","latin","latin-ext"]},Praise:{family:"Praise",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Prata:{family:"Prata",category:"serif",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","vietnamese"]},Preahvihear:{family:"Preahvihear",category:"sans-serif",variants:["400"],subsets:["khmer","latin"]},"Press-Start-2P":{family:"Press Start 2P",category:"display",variants:["400"],subsets:["cyrillic","cyrillic-ext","greek","latin","latin-ext"]},Pridi:{family:"Pridi",category:"serif",variants:["200","300","400","500","600","700"],subsets:["latin","latin-ext","thai","vietnamese"]},"Princess-Sofia":{family:"Princess Sofia",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Prociono:{family:"Prociono",category:"serif",variants:["400"],subsets:["latin"]},Prompt:{family:"Prompt",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","thai","vietnamese"]},"Prosto-One":{family:"Prosto One",category:"display",variants:["400"],subsets:["cyrillic","latin","latin-ext"]},"Proza-Libre":{family:"Proza Libre",category:"sans-serif",variants:["400","500","600","700","800"],subsets:["latin","latin-ext"]},"Public-Sans":{family:"Public Sans",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext"]},"Puppies-Play":{family:"Puppies Play",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Puritan:{family:"Puritan",category:"sans-serif",variants:["400","700"],subsets:["latin"]},"Purple-Purse":{family:"Purple Purse",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Qahiri:{family:"Qahiri",category:"sans-serif",variants:["400"],subsets:["arabic","latin"]},Quando:{family:"Quando",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},Quantico:{family:"Quantico",category:"sans-serif",variants:["400","700"],subsets:["latin"]},Quattrocento:{family:"Quattrocento",category:"serif",variants:["400","700"],subsets:["latin","latin-ext"]},"Quattrocento-Sans":{family:"Quattrocento Sans",category:"sans-serif",variants:["400","700"],subsets:["latin","latin-ext"]},Questrial:{family:"Questrial",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Quicksand:{family:"Quicksand",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},Quintessential:{family:"Quintessential",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Qwigley:{family:"Qwigley",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Qwitcher-Grypen":{family:"Qwitcher Grypen",category:"handwriting",variants:["400","700"],subsets:["latin","latin-ext","vietnamese"]},"Racing-Sans-One":{family:"Racing Sans One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Radley:{family:"Radley",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},Rajdhani:{family:"Rajdhani",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["devanagari","latin","latin-ext"]},Rakkas:{family:"Rakkas",category:"display",variants:["400"],subsets:["arabic","latin","latin-ext"]},Raleway:{family:"Raleway",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},"Raleway-Dots":{family:"Raleway Dots",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Ramabhadra:{family:"Ramabhadra",category:"sans-serif",variants:["400"],subsets:["latin","telugu"]},Ramaraja:{family:"Ramaraja",category:"serif",variants:["400"],subsets:["latin","telugu"]},Rambla:{family:"Rambla",category:"sans-serif",variants:["400","700"],subsets:["latin","latin-ext"]},"Rammetto-One":{family:"Rammetto One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Rampart-One":{family:"Rampart One",category:"display",variants:["400"],subsets:["cyrillic","japanese","latin","latin-ext"]},Ranchers:{family:"Ranchers",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Rancho:{family:"Rancho",category:"handwriting",variants:["400"],subsets:["latin"]},Ranga:{family:"Ranga",category:"display",variants:["400","700"],subsets:["devanagari","latin","latin-ext"]},Rasa:{family:"Rasa",category:"serif",variants:["300","400","500","600","700"],subsets:["gujarati","latin","latin-ext","vietnamese"]},Rationale:{family:"Rationale",category:"sans-serif",variants:["400"],subsets:["latin"]},"Ravi-Prakash":{family:"Ravi Prakash",category:"display",variants:["400"],subsets:["latin","telugu"]},"Readex-Pro":{family:"Readex Pro",category:"sans-serif",variants:["200","300","400","500","600","700"],subsets:["arabic","latin","latin-ext","vietnamese"]},Recursive:{family:"Recursive",category:"sans-serif",variants:["300","400","500","600","700","800","900"],subsets:["cyrillic-ext","latin","latin-ext","vietnamese"]},"Red-Hat-Display":{family:"Red Hat Display",category:"sans-serif",variants:["300","400","500","600","700","800","900"],subsets:["latin","latin-ext"]},"Red-Hat-Mono":{family:"Red Hat Mono",category:"monospace",variants:["300","400","500","600","700"],subsets:["latin","latin-ext"]},"Red-Hat-Text":{family:"Red Hat Text",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext"]},"Red-Rose":{family:"Red Rose",category:"display",variants:["300","400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},Redacted:{family:"Redacted",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Redacted-Script":{family:"Redacted Script",category:"display",variants:["300","400","700"],subsets:["latin","latin-ext"]},Redressed:{family:"Redressed",category:"handwriting",variants:["400"],subsets:["latin"]},"Reem-Kufi":{family:"Reem Kufi",category:"sans-serif",variants:["400","500","600","700"],subsets:["arabic","latin"]},"Reenie-Beanie":{family:"Reenie Beanie",category:"handwriting",variants:["400"],subsets:["latin"]},"Reggae-One":{family:"Reggae One",category:"display",variants:["400"],subsets:["cyrillic","japanese","latin","latin-ext"]},Revalia:{family:"Revalia",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Rhodium-Libre":{family:"Rhodium Libre",category:"serif",variants:["400"],subsets:["devanagari","latin","latin-ext"]},Ribeye:{family:"Ribeye",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Ribeye-Marrow":{family:"Ribeye Marrow",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Righteous:{family:"Righteous",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Risque:{family:"Risque",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Road-Rage":{family:"Road Rage",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Roboto:{family:"Roboto",category:"sans-serif",variants:["100","300","400","500","700","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Roboto-Condensed":{family:"Roboto Condensed",category:"sans-serif",variants:["300","400","700"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Roboto-Mono":{family:"Roboto Mono",category:"monospace",variants:["100","200","300","400","500","600","700"],subsets:["cyrillic","cyrillic-ext","greek","latin","latin-ext","vietnamese"]},"Roboto-Serif":{family:"Roboto Serif",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Roboto-Slab":{family:"Roboto Slab",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},Rochester:{family:"Rochester",category:"handwriting",variants:["400"],subsets:["latin"]},"Rock-3D":{family:"Rock 3D",category:"display",variants:["400"],subsets:["japanese","latin"]},"Rock-Salt":{family:"Rock Salt",category:"handwriting",variants:["400"],subsets:["latin"]},"RocknRoll-One":{family:"RocknRoll One",category:"sans-serif",variants:["400"],subsets:["cyrillic","japanese","latin","latin-ext"]},Rokkitt:{family:"Rokkitt",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},Romanesco:{family:"Romanesco",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"Ropa-Sans":{family:"Ropa Sans",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Rosario:{family:"Rosario",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},Rosarivo:{family:"Rosarivo",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"Rouge-Script":{family:"Rouge Script",category:"handwriting",variants:["400"],subsets:["latin"]},Rowdies:{family:"Rowdies",category:"display",variants:["300","400","700"],subsets:["latin","latin-ext","vietnamese"]},"Rozha-One":{family:"Rozha One",category:"serif",variants:["400"],subsets:["devanagari","latin","latin-ext"]},Rubik:{family:"Rubik",category:"sans-serif",variants:["300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","hebrew","latin","latin-ext"]},"Rubik-Beastly":{family:"Rubik Beastly",category:"display",variants:["400"],subsets:["cyrillic","cyrillic-ext","hebrew","latin","latin-ext"]},"Rubik-Mono-One":{family:"Rubik Mono One",category:"sans-serif",variants:["400"],subsets:["cyrillic","latin","latin-ext"]},Ruda:{family:"Ruda",category:"sans-serif",variants:["400","500","600","700","800","900"],subsets:["cyrillic","latin","latin-ext","vietnamese"]},Rufina:{family:"Rufina",category:"serif",variants:["400","700"],subsets:["latin","latin-ext"]},"Ruge-Boogie":{family:"Ruge Boogie",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Ruluko:{family:"Ruluko",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},"Rum-Raisin":{family:"Rum Raisin",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},"Ruslan-Display":{family:"Ruslan Display",category:"display",variants:["400"],subsets:["cyrillic","latin","latin-ext"]},"Russo-One":{family:"Russo One",category:"sans-serif",variants:["400"],subsets:["cyrillic","latin","latin-ext"]},Ruthie:{family:"Ruthie",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Rye:{family:"Rye",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"STIX-Two-Text":{family:"STIX Two Text",category:"serif",variants:["400","500","600","700"],subsets:["cyrillic","cyrillic-ext","greek","latin","latin-ext","vietnamese"]},Sacramento:{family:"Sacramento",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Sahitya:{family:"Sahitya",category:"serif",variants:["400","700"],subsets:["devanagari","latin"]},Sail:{family:"Sail",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Saira:{family:"Saira",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Saira-Condensed":{family:"Saira Condensed",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Saira-Extra-Condensed":{family:"Saira Extra Condensed",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Saira-Semi-Condensed":{family:"Saira Semi Condensed",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Saira-Stencil-One":{family:"Saira Stencil One",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Salsa:{family:"Salsa",category:"display",variants:["400"],subsets:["latin"]},Sanchez:{family:"Sanchez",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},Sancreek:{family:"Sancreek",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Sansita:{family:"Sansita",category:"sans-serif",variants:["400","700","800","900"],subsets:["latin","latin-ext"]},"Sansita-Swashed":{family:"Sansita Swashed",category:"display",variants:["300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},Sarabun:{family:"Sarabun",category:"sans-serif",variants:["100","200","300","400","500","600","700","800"],subsets:["latin","latin-ext","thai","vietnamese"]},Sarala:{family:"Sarala",category:"sans-serif",variants:["400","700"],subsets:["devanagari","latin","latin-ext"]},Sarina:{family:"Sarina",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Sarpanch:{family:"Sarpanch",category:"sans-serif",variants:["400","500","600","700","800","900"],subsets:["devanagari","latin","latin-ext"]},"Sassy-Frass":{family:"Sassy Frass",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Satisfy:{family:"Satisfy",category:"handwriting",variants:["400"],subsets:["latin"]},"Sawarabi-Gothic":{family:"Sawarabi Gothic",category:"sans-serif",variants:["400"],subsets:["cyrillic","japanese","latin","latin-ext","vietnamese"]},"Sawarabi-Mincho":{family:"Sawarabi Mincho",category:"serif",variants:["400"],subsets:["japanese","latin","latin-ext"]},Scada:{family:"Scada",category:"sans-serif",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext"]},"Scheherazade-New":{family:"Scheherazade New",category:"serif",variants:["400","700"],subsets:["arabic","latin","latin-ext"]},Schoolbell:{family:"Schoolbell",category:"handwriting",variants:["400"],subsets:["latin"]},"Scope-One":{family:"Scope One",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"Seaweed-Script":{family:"Seaweed Script",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Secular-One":{family:"Secular One",category:"sans-serif",variants:["400"],subsets:["hebrew","latin","latin-ext"]},"Sedgwick-Ave":{family:"Sedgwick Ave",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Sedgwick-Ave-Display":{family:"Sedgwick Ave Display",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Sen:{family:"Sen",category:"sans-serif",variants:["400","700","800"],subsets:["latin","latin-ext"]},Sevillana:{family:"Sevillana",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Seymour-One":{family:"Seymour One",category:"sans-serif",variants:["400"],subsets:["cyrillic","latin","latin-ext"]},"Shadows-Into-Light":{family:"Shadows Into Light",category:"handwriting",variants:["400"],subsets:["latin"]},"Shadows-Into-Light-Two":{family:"Shadows Into Light Two",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},Shalimar:{family:"Shalimar",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Shanti:{family:"Shanti",category:"sans-serif",variants:["400"],subsets:["latin"]},Share:{family:"Share",category:"display",variants:["400","700"],subsets:["latin","latin-ext"]},"Share-Tech":{family:"Share Tech",category:"sans-serif",variants:["400"],subsets:["latin"]},"Share-Tech-Mono":{family:"Share Tech Mono",category:"monospace",variants:["400"],subsets:["latin"]},"Shippori-Antique":{family:"Shippori Antique",category:"sans-serif",variants:["400"],subsets:["japanese","latin","latin-ext"]},"Shippori-Antique-B1":{family:"Shippori Antique B1",category:"sans-serif",variants:["400"],subsets:["japanese","latin","latin-ext"]},"Shippori-Mincho":{family:"Shippori Mincho",category:"serif",variants:["400","500","600","700","800"],subsets:["japanese","latin","latin-ext"]},"Shippori-Mincho-B1":{family:"Shippori Mincho B1",category:"serif",variants:["400","500","600","700","800"],subsets:["japanese","latin","latin-ext"]},Shizuru:{family:"Shizuru",category:"display",variants:["400"],subsets:["japanese","latin"]},Shojumaru:{family:"Shojumaru",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Short-Stack":{family:"Short Stack",category:"handwriting",variants:["400"],subsets:["latin"]},Shrikhand:{family:"Shrikhand",category:"display",variants:["400"],subsets:["gujarati","latin","latin-ext"]},Siemreap:{family:"Siemreap",category:"display",variants:["400"],subsets:["khmer"]},"Sigmar-One":{family:"Sigmar One",category:"display",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Signika:{family:"Signika",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},"Signika-Negative":{family:"Signika Negative",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},Simonetta:{family:"Simonetta",category:"display",variants:["400","900"],subsets:["latin","latin-ext"]},"Single-Day":{family:"Single Day",category:"display",variants:["400"],subsets:["korean"]},Sintony:{family:"Sintony",category:"sans-serif",variants:["400","700"],subsets:["latin","latin-ext"]},"Sirin-Stencil":{family:"Sirin Stencil",category:"display",variants:["400"],subsets:["latin"]},"Six-Caps":{family:"Six Caps",category:"sans-serif",variants:["400"],subsets:["latin"]},Skranji:{family:"Skranji",category:"display",variants:["400","700"],subsets:["latin","latin-ext"]},"Slabo-13px":{family:"Slabo 13px",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"Slabo-27px":{family:"Slabo 27px",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},Slackey:{family:"Slackey",category:"display",variants:["400"],subsets:["latin"]},Smokum:{family:"Smokum",category:"display",variants:["400"],subsets:["latin"]},Smooch:{family:"Smooch",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Smooch-Sans":{family:"Smooch Sans",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},Smythe:{family:"Smythe",category:"display",variants:["400"],subsets:["latin"]},Sniglet:{family:"Sniglet",category:"display",variants:["400","800"],subsets:["latin","latin-ext"]},Snippet:{family:"Snippet",category:"sans-serif",variants:["400"],subsets:["latin"]},"Snowburst-One":{family:"Snowburst One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Sofadi-One":{family:"Sofadi One",category:"display",variants:["400"],subsets:["latin"]},Sofia:{family:"Sofia",category:"handwriting",variants:["400"],subsets:["latin"]},Solway:{family:"Solway",category:"serif",variants:["300","400","500","700","800"],subsets:["latin"]},"Song-Myung":{family:"Song Myung",category:"serif",variants:["400"],subsets:["korean","latin"]},"Sonsie-One":{family:"Sonsie One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Sora:{family:"Sora",category:"sans-serif",variants:["100","200","300","400","500","600","700","800"],subsets:["latin","latin-ext"]},"Sorts-Mill-Goudy":{family:"Sorts Mill Goudy",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"Source-Code-Pro":{family:"Source Code Pro",category:"monospace",variants:["200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Source-Sans-3":{family:"Source Sans 3",category:"sans-serif",variants:["200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Source-Sans-Pro":{family:"Source Sans Pro",category:"sans-serif",variants:["200","300","400","600","700","900"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext","vietnamese"]},"Source-Serif-4":{family:"Source Serif 4",category:"sans-serif",variants:["200","300","400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","latin","latin-ext","vietnamese"]},"Source-Serif-Pro":{family:"Source Serif Pro",category:"serif",variants:["200","300","400","600","700","900"],subsets:["cyrillic","cyrillic-ext","greek","latin","latin-ext","vietnamese"]},"Space-Grotesk":{family:"Space Grotesk",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},"Space-Mono":{family:"Space Mono",category:"monospace",variants:["400","700"],subsets:["latin","latin-ext","vietnamese"]},Spartan:{family:"Spartan",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext"]},"Special-Elite":{family:"Special Elite",category:"display",variants:["400"],subsets:["latin"]},Spectral:{family:"Spectral",category:"serif",variants:["200","300","400","500","600","700","800"],subsets:["cyrillic","latin","latin-ext","vietnamese"]},"Spectral-SC":{family:"Spectral SC",category:"serif",variants:["200","300","400","500","600","700","800"],subsets:["cyrillic","latin","latin-ext","vietnamese"]},"Spicy-Rice":{family:"Spicy Rice",category:"display",variants:["400"],subsets:["latin"]},Spinnaker:{family:"Spinnaker",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Spirax:{family:"Spirax",category:"display",variants:["400"],subsets:["latin"]},"Spline-Sans":{family:"Spline Sans",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext"]},"Squada-One":{family:"Squada One",category:"display",variants:["400"],subsets:["latin"]},"Sree-Krushnadevaraya":{family:"Sree Krushnadevaraya",category:"serif",variants:["400"],subsets:["latin","telugu"]},Sriracha:{family:"Sriracha",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","thai","vietnamese"]},Srisakdi:{family:"Srisakdi",category:"display",variants:["400","700"],subsets:["latin","latin-ext","thai","vietnamese"]},Staatliches:{family:"Staatliches",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Stalemate:{family:"Stalemate",category:"handwriting",variants:["400"],subsets:["latin","latin-ext"]},"Stalinist-One":{family:"Stalinist One",category:"display",variants:["400"],subsets:["cyrillic","latin","latin-ext"]},"Stardos-Stencil":{family:"Stardos Stencil",category:"display",variants:["400","700"],subsets:["latin"]},Stick:{family:"Stick",category:"sans-serif",variants:["400"],subsets:["cyrillic","japanese","latin","latin-ext"]},"Stick-No-Bills":{family:"Stick No Bills",category:"sans-serif",variants:["200","300","400","500","600","700","800"],subsets:["latin","latin-ext","sinhala"]},"Stint-Ultra-Condensed":{family:"Stint Ultra Condensed",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Stint-Ultra-Expanded":{family:"Stint Ultra Expanded",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Stoke:{family:"Stoke",category:"serif",variants:["300","400"],subsets:["latin","latin-ext"]},Strait:{family:"Strait",category:"sans-serif",variants:["400"],subsets:["latin"]},"Style-Script":{family:"Style Script",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Stylish:{family:"Stylish",category:"sans-serif",variants:["400"],subsets:["korean","latin"]},"Sue-Ellen-Francisco":{family:"Sue Ellen Francisco",category:"handwriting",variants:["400"],subsets:["latin"]},"Suez-One":{family:"Suez One",category:"serif",variants:["400"],subsets:["hebrew","latin","latin-ext"]},"Sulphur-Point":{family:"Sulphur Point",category:"sans-serif",variants:["300","400","700"],subsets:["latin","latin-ext"]},Sumana:{family:"Sumana",category:"serif",variants:["400","700"],subsets:["devanagari","latin","latin-ext"]},Sunflower:{family:"Sunflower",category:"sans-serif",variants:["300","500","700"],subsets:["korean","latin"]},Sunshiney:{family:"Sunshiney",category:"handwriting",variants:["400"],subsets:["latin"]},"Supermercado-One":{family:"Supermercado One",category:"display",variants:["400"],subsets:["latin"]},Sura:{family:"Sura",category:"serif",variants:["400","700"],subsets:["devanagari","latin","latin-ext"]},Suranna:{family:"Suranna",category:"serif",variants:["400"],subsets:["latin","telugu"]},Suravaram:{family:"Suravaram",category:"serif",variants:["400"],subsets:["latin","telugu"]},Suwannaphum:{family:"Suwannaphum",category:"serif",variants:["100","300","400","700","900"],subsets:["khmer","latin"]},"Swanky-and-Moo-Moo":{family:"Swanky and Moo Moo",category:"handwriting",variants:["400"],subsets:["latin"]},Syncopate:{family:"Syncopate",category:"sans-serif",variants:["400","700"],subsets:["latin"]},Syne:{family:"Syne",category:"sans-serif",variants:["400","500","600","700","800"],subsets:["latin","latin-ext"]},"Syne-Mono":{family:"Syne Mono",category:"monospace",variants:["400"],subsets:["latin","latin-ext"]},"Syne-Tactile":{family:"Syne Tactile",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Tajawal:{family:"Tajawal",category:"sans-serif",variants:["200","300","400","500","700","800","900"],subsets:["arabic","latin"]},Tangerine:{family:"Tangerine",category:"handwriting",variants:["400","700"],subsets:["latin"]},Taprom:{family:"Taprom",category:"display",variants:["400"],subsets:["khmer","latin"]},Tauri:{family:"Tauri",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Taviraj:{family:"Taviraj",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","thai","vietnamese"]},Teko:{family:"Teko",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["devanagari","latin","latin-ext"]},Telex:{family:"Telex",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},"Tenali-Ramakrishna":{family:"Tenali Ramakrishna",category:"sans-serif",variants:["400"],subsets:["latin","telugu"]},"Tenor-Sans":{family:"Tenor Sans",category:"sans-serif",variants:["400"],subsets:["cyrillic","latin","latin-ext"]},"Text-Me-One":{family:"Text Me One",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Texturina:{family:"Texturina",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},Thasadith:{family:"Thasadith",category:"sans-serif",variants:["400","700"],subsets:["latin","latin-ext","thai","vietnamese"]},"The-Girl-Next-Door":{family:"The Girl Next Door",category:"handwriting",variants:["400"],subsets:["latin"]},"The-Nautigal":{family:"The Nautigal",category:"handwriting",variants:["400","700"],subsets:["latin","latin-ext","vietnamese"]},Tienne:{family:"Tienne",category:"serif",variants:["400","700","900"],subsets:["latin"]},Tillana:{family:"Tillana",category:"handwriting",variants:["400","500","600","700","800"],subsets:["devanagari","latin","latin-ext"]},Timmana:{family:"Timmana",category:"sans-serif",variants:["400"],subsets:["latin","telugu"]},Tinos:{family:"Tinos",category:"serif",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","hebrew","latin","latin-ext","vietnamese"]},"Titan-One":{family:"Titan One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Titillium-Web":{family:"Titillium Web",category:"sans-serif",variants:["200","300","400","600","700","900"],subsets:["latin","latin-ext"]},Tomorrow:{family:"Tomorrow",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext"]},Tourney:{family:"Tourney",category:"display",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Trade-Winds":{family:"Trade Winds",category:"display",variants:["400"],subsets:["latin"]},"Train-One":{family:"Train One",category:"display",variants:["400"],subsets:["cyrillic","japanese","latin","latin-ext"]},Trirong:{family:"Trirong",category:"serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","thai","vietnamese"]},Trispace:{family:"Trispace",category:"sans-serif",variants:["100","200","300","400","500","600","700","800"],subsets:["latin","latin-ext","vietnamese"]},Trocchi:{family:"Trocchi",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},Trochut:{family:"Trochut",category:"display",variants:["400","700"],subsets:["latin"]},Truculenta:{family:"Truculenta",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},Trykker:{family:"Trykker",category:"serif",variants:["400"],subsets:["latin","latin-ext"]},"Tulpen-One":{family:"Tulpen One",category:"display",variants:["400"],subsets:["latin"]},"Turret-Road":{family:"Turret Road",category:"display",variants:["200","300","400","500","700","800"],subsets:["latin","latin-ext"]},"Twinkle-Star":{family:"Twinkle Star",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Ubuntu:{family:"Ubuntu",category:"sans-serif",variants:["300","400","500","700"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext"]},"Ubuntu-Condensed":{family:"Ubuntu Condensed",category:"sans-serif",variants:["400"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext"]},"Ubuntu-Mono":{family:"Ubuntu Mono",category:"monospace",variants:["400","700"],subsets:["cyrillic","cyrillic-ext","greek","greek-ext","latin","latin-ext"]},Uchen:{family:"Uchen",category:"serif",variants:["400"],subsets:["latin","tibetan"]},Ultra:{family:"Ultra",category:"serif",variants:["400"],subsets:["latin"]},"Uncial-Antiqua":{family:"Uncial Antiqua",category:"display",variants:["400"],subsets:["latin"]},Underdog:{family:"Underdog",category:"display",variants:["400"],subsets:["cyrillic","latin","latin-ext"]},"Unica-One":{family:"Unica One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},UnifrakturCook:{family:"UnifrakturCook",category:"display",variants:["700"],subsets:["latin"]},UnifrakturMaguntia:{family:"UnifrakturMaguntia",category:"display",variants:["400"],subsets:["latin"]},Unkempt:{family:"Unkempt",category:"display",variants:["400","700"],subsets:["latin"]},Unlock:{family:"Unlock",category:"display",variants:["400"],subsets:["latin"]},Unna:{family:"Unna",category:"serif",variants:["400","700"],subsets:["latin","latin-ext"]},Urbanist:{family:"Urbanist",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext"]},VT323:{family:"VT323",category:"monospace",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Vampiro-One":{family:"Vampiro One",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Varela:{family:"Varela",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},"Varela-Round":{family:"Varela Round",category:"sans-serif",variants:["400"],subsets:["hebrew","latin","latin-ext","vietnamese"]},Varta:{family:"Varta",category:"sans-serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},"Vast-Shadow":{family:"Vast Shadow",category:"display",variants:["400"],subsets:["latin"]},"Vesper-Libre":{family:"Vesper Libre",category:"serif",variants:["400","500","700","900"],subsets:["devanagari","latin","latin-ext"]},"Viaoda-Libre":{family:"Viaoda Libre",category:"display",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},Vibes:{family:"Vibes",category:"display",variants:["400"],subsets:["arabic","latin"]},Vibur:{family:"Vibur",category:"handwriting",variants:["400"],subsets:["latin"]},Vidaloka:{family:"Vidaloka",category:"serif",variants:["400"],subsets:["latin"]},Viga:{family:"Viga",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},Voces:{family:"Voces",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Volkhov:{family:"Volkhov",category:"serif",variants:["400","700"],subsets:["latin"]},Vollkorn:{family:"Vollkorn",category:"serif",variants:["400","500","600","700","800","900"],subsets:["cyrillic","cyrillic-ext","greek","latin","latin-ext","vietnamese"]},"Vollkorn-SC":{family:"Vollkorn SC",category:"serif",variants:["400","600","700","900"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},Voltaire:{family:"Voltaire",category:"sans-serif",variants:["400"],subsets:["latin"]},"Vujahday-Script":{family:"Vujahday Script",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},"Waiting-for-the-Sunrise":{family:"Waiting for the Sunrise",category:"handwriting",variants:["400"],subsets:["latin"]},Wallpoet:{family:"Wallpoet",category:"display",variants:["400"],subsets:["latin"]},"Walter-Turncoat":{family:"Walter Turncoat",category:"handwriting",variants:["400"],subsets:["latin"]},Warnes:{family:"Warnes",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Waterfall:{family:"Waterfall",category:"handwriting",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Wellfleet:{family:"Wellfleet",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Wendy-One":{family:"Wendy One",category:"sans-serif",variants:["400"],subsets:["latin","latin-ext"]},WindSong:{family:"WindSong",category:"handwriting",variants:["400","500"],subsets:["latin","latin-ext","vietnamese"]},"Wire-One":{family:"Wire One",category:"sans-serif",variants:["400"],subsets:["latin"]},"Work-Sans":{family:"Work Sans",category:"sans-serif",variants:["100","200","300","400","500","600","700","800","900"],subsets:["latin","latin-ext","vietnamese"]},"Xanh-Mono":{family:"Xanh Mono",category:"monospace",variants:["400"],subsets:["latin","latin-ext","vietnamese"]},Yaldevi:{family:"Yaldevi",category:"sans-serif",variants:["200","300","400","500","600","700"],subsets:["latin","latin-ext","sinhala"]},"Yanone-Kaffeesatz":{family:"Yanone Kaffeesatz",category:"sans-serif",variants:["200","300","400","500","600","700"],subsets:["cyrillic","latin","latin-ext","vietnamese"]},Yantramanav:{family:"Yantramanav",category:"sans-serif",variants:["100","300","400","500","700","900"],subsets:["devanagari","latin","latin-ext"]},"Yatra-One":{family:"Yatra One",category:"display",variants:["400"],subsets:["devanagari","latin","latin-ext"]},Yellowtail:{family:"Yellowtail",category:"handwriting",variants:["400"],subsets:["latin"]},"Yeon-Sung":{family:"Yeon Sung",category:"display",variants:["400"],subsets:["korean","latin"]},"Yeseva-One":{family:"Yeseva One",category:"display",variants:["400"],subsets:["cyrillic","cyrillic-ext","latin","latin-ext","vietnamese"]},Yesteryear:{family:"Yesteryear",category:"handwriting",variants:["400"],subsets:["latin"]},Yomogi:{family:"Yomogi",category:"handwriting",variants:["400"],subsets:["cyrillic","japanese","latin","latin-ext","vietnamese"]},Yrsa:{family:"Yrsa",category:"serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext","vietnamese"]},"Yuji-Boku":{family:"Yuji Boku",category:"serif",variants:["400"],subsets:["cyrillic","japanese","latin","latin-ext"]},"Yuji-Hentaigana-Akari":{family:"Yuji Hentaigana Akari",category:"handwriting",variants:["400"],subsets:["japanese","latin","latin-ext"]},"Yuji-Hentaigana-Akebono":{family:"Yuji Hentaigana Akebono",category:"handwriting",variants:["400"],subsets:["japanese","latin","latin-ext"]},"Yuji-Mai":{family:"Yuji Mai",category:"serif",variants:["400"],subsets:["cyrillic","japanese","latin","latin-ext"]},"Yuji-Syuku":{family:"Yuji Syuku",category:"serif",variants:["400"],subsets:["cyrillic","japanese","latin","latin-ext"]},"Yusei-Magic":{family:"Yusei Magic",category:"sans-serif",variants:["400"],subsets:["japanese","latin","latin-ext"]},"ZCOOL-KuaiLe":{family:"ZCOOL KuaiLe",category:"display",variants:["400"],subsets:["chinese-simplified","latin"]},"ZCOOL-QingKe-HuangYou":{family:"ZCOOL QingKe HuangYou",category:"display",variants:["400"],subsets:["chinese-simplified","latin"]},"ZCOOL-XiaoWei":{family:"ZCOOL XiaoWei",category:"serif",variants:["400"],subsets:["chinese-simplified","latin"]},"Zen-Antique":{family:"Zen Antique",category:"serif",variants:["400"],subsets:["cyrillic","greek","japanese","latin","latin-ext"]},"Zen-Antique-Soft":{family:"Zen Antique Soft",category:"serif",variants:["400"],subsets:["cyrillic","greek","japanese","latin","latin-ext"]},"Zen-Dots":{family:"Zen Dots",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Zen-Kaku-Gothic-Antique":{family:"Zen Kaku Gothic Antique",category:"sans-serif",variants:["300","400","500","700","900"],subsets:["cyrillic","japanese","latin","latin-ext"]},"Zen-Kaku-Gothic-New":{family:"Zen Kaku Gothic New",category:"sans-serif",variants:["300","400","500","700","900"],subsets:["cyrillic","japanese","latin","latin-ext"]},"Zen-Kurenaido":{family:"Zen Kurenaido",category:"sans-serif",variants:["400"],subsets:["cyrillic","greek","japanese","latin","latin-ext"]},"Zen-Loop":{family:"Zen Loop",category:"display",variants:["400"],subsets:["latin","latin-ext"]},"Zen-Maru-Gothic":{family:"Zen Maru Gothic",category:"sans-serif",variants:["300","400","500","700","900"],subsets:["cyrillic","greek","japanese","latin","latin-ext"]},"Zen-Old-Mincho":{family:"Zen Old Mincho",category:"serif",variants:["400","700","900"],subsets:["cyrillic","greek","japanese","latin","latin-ext"]},"Zen-Tokyo-Zoo":{family:"Zen Tokyo Zoo",category:"display",variants:["400"],subsets:["latin","latin-ext"]},Zeyada:{family:"Zeyada",category:"handwriting",variants:["400"],subsets:["latin"]},"Zhi-Mang-Xing":{family:"Zhi Mang Xing",category:"handwriting",variants:["400"],subsets:["chinese-simplified","latin"]},"Zilla-Slab":{family:"Zilla Slab",category:"serif",variants:["300","400","500","600","700"],subsets:["latin","latin-ext"]},"Zilla-Slab-Highlight":{family:"Zilla Slab Highlight",category:"display",variants:["400","700"],subsets:["latin","latin-ext"]}},w=e=>e.reduce(((e,t)=>({...e,[`${t}FontFamily`]:{type:"string"},[`${t}SizeUnit`]:{type:"string",default:"px"},[`${t}FontSize`]:{type:"number"},[`${t}FontWeight`]:{type:"string"},[`${t}FontStyle`]:{type:"string"},[`${t}TextTransform`]:{type:"string"},[`${t}TextDecoration`]:{type:"string"},[`${t}LetterSpacingUnit`]:{type:"string",default:"px"},[`${t}LetterSpacing`]:{type:"number"},[`${t}LineHeightUnit`]:{type:"string",default:"em"},[`${t}LineHeight`]:{type:"number"},[`TAB${t}SizeUnit`]:{type:"string",default:"px"},[`TAB${t}FontSize`]:{type:"number"},[`TAB${t}LetterSpacingUnit`]:{type:"string",default:"px"},[`TAB${t}LetterSpacing`]:{type:"number"},[`TAB${t}LineHeightUnit`]:{type:"string",default:"em"},[`TAB${t}LineHeight`]:{type:"number"},[`MOB${t}SizeUnit`]:{type:"string",default:"px"},[`MOB${t}FontSize`]:{type:"number"},[`MOB${t}LetterSpacingUnit`]:{type:"string",default:"px"},[`MOB${t}LetterSpacing`]:{type:"number"},[`MOB${t}LineHeightUnit`]:{type:"string",default:"em"},[`MOB${t}LineHeight`]:{type:"number"}})),{}),k=e=>{let{prefixConstant:t,defaultFontSize:a,attributes:n}=e;const{[`${t}FontFamily`]:i,[`${t}FontWeight`]:s,[`${t}FontStyle`]:r,[`${t}TextTransform`]:o,[`${t}TextDecoration`]:l,[`${t}FontSize`]:c=a,[`${t}SizeUnit`]:u,[`${t}LetterSpacing`]:f,[`${t}LetterSpacingUnit`]:h,[`${t}LineHeight`]:d,[`${t}LineHeightUnit`]:p,[`TAB${t}SizeUnit`]:m,[`TAB${t}LetterSpacingUnit`]:g,[`TAB${t}LineHeightUnit`]:b,[`TAB${t}FontSize`]:y,[`TAB${t}LetterSpacing`]:v,[`TAB${t}LineHeight`]:x,[`MOB${t}SizeUnit`]:w,[`MOB${t}LetterSpacingUnit`]:k,[`MOB${t}LineHeightUnit`]:_,[`MOB${t}FontSize`]:O,[`MOB${t}LetterSpacing`]:E,[`MOB${t}LineHeight`]:M}=n,$=`\n ${i?`font-family: ${(e=>{if(e){const t=(e||"").replace(/\s+/g,"-");let a=S[t]?S[t].category:[];return"handwriting"===a||"display"===a?'"'+e+'", cursive':'"'+e+'", '+a}return""})(i)};`:" "}\n ${C(c)?`font-size: ${c}${u};`:" "}\n ${C(d)?`line-height: ${d}${p};`:" "}\n ${s?`font-weight: ${s};`:" "}\n ${r?`font-style: ${r};`:" "}\n ${l?`text-decoration: ${l};`:" "}\n ${o?`text-transform: ${o};`:" "}\n ${C(f)?`letter-spacing: ${f}${h};`:" "}\n `;return{typoStylesDesktop:$,typoStylesTab:`\n ${C(y)?`font-size: ${y}${m};`:" "}\n ${C(x)?`line-height: ${x}${b};`:" "}\n ${C(v)?`letter-spacing: ${v}${g};`:" "}\n `,typoStylesMobile:`\n ${C(O)?`font-size: ${O}${w};`:" "}\n ${C(M)?`line-height: ${M}${_};`:" "}\n ${C(E)?`letter-spacing: ${E}${k};`:" "}\n `}},_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{top:a,right:n,bottom:i,left:s,isLinked:r=!0,disableLeftRight:o=!1,defaultUnit:l="px"}=t,c=C(a)?{[`${e}Top`]:{type:"string",default:`${a}`}}:{[`${e}Top`]:{type:"string"}},u=C(n)?{[`${e}Right`]:{type:"string",default:`${n}`}}:{[`${e}Right`]:{type:"string"}},f=C(i)?{[`${e}Bottom`]:{type:"string",default:`${i}`}}:{[`${e}Bottom`]:{type:"string"}},h=C(s)?{[`${e}Left`]:{type:"string",default:`${s}`}}:{[`${e}Left`]:{type:"string"}};return{[`${e}isLinked`]:{type:"boolean",default:r},[`${e}Unit`]:{type:"string",default:l},[`TAB${e}Unit`]:{type:"string",default:l},[`MOB${e}Unit`]:{type:"string",default:l},...o?{...c,...f,[`TAB${e}Top`]:{type:"string"},[`TAB${e}Bottom`]:{type:"string"},[`MOB${e}Top`]:{type:"string"},[`MOB${e}Bottom`]:{type:"string"}}:{...c,...u,...f,...h,[`TAB${e}Top`]:{type:"string"},[`TAB${e}Right`]:{type:"string"},[`TAB${e}Bottom`]:{type:"string"},[`TAB${e}Left`]:{type:"string"},[`MOB${e}Top`]:{type:"string"},[`MOB${e}Right`]:{type:"string"},[`MOB${e}Bottom`]:{type:"string"},[`MOB${e}Left`]:{type:"string"}}}},O=e=>{let{controlName:t,styleFor:a,attributes:n,disableLeftRight:i=!1}=e;const{[`${t}isLinked`]:s,[`${t}Unit`]:r,[`${t}Top`]:o,[`${t}Right`]:l,[`${t}Bottom`]:c,[`${t}Left`]:u,[`TAB${t}Unit`]:f,[`TAB${t}Top`]:h,[`TAB${t}Right`]:d,[`TAB${t}Bottom`]:p,[`TAB${t}Left`]:m,[`MOB${t}Unit`]:g,[`MOB${t}Top`]:b,[`MOB${t}Right`]:y,[`MOB${t}Bottom`]:v,[`MOB${t}Left`]:x}=n;let C=" ",S=" ",w=" ";return!0===s&&!1===i?"border"===a?(C=`\n ${o?`border-width: ${parseFloat(o)}${r}; `:" "}\n \n `,S=`\n ${h?`border-width: ${parseFloat(h)}${f};`:" "}\n \n `,w=`\n ${b?`border-width: ${parseFloat(b)}${g};`:" "}\n \n `):"border-radius"===a?(C=`\n ${o?`border-radius: ${parseFloat(o)}${r};`:" "}\n \n `,S=`\n ${h?`border-radius: ${parseFloat(h)}${f};`:" "}\n \n `,w=`\n ${b?`border-radius: ${parseFloat(b)}${g};`:" "}\n \n `):(C=`\n ${o?`${a}: ${parseFloat(o)}${r};`:" "}\n \n `,S=`\n ${h?`${a}: ${parseFloat(h)}${f};`:" "}\n \n `,w=`\n ${b?`${a}: ${parseFloat(b)}${g};`:" "}\n \n `):!1===s&&!1===i?"border"===a?(C=`\n ${o?`border-top-width: ${parseFloat(o)}${r};`:" "}\n ${l?`border-right-width: ${parseFloat(l)}${r};`:" "}\n ${u?`border-left-width: ${parseFloat(u)}${r};`:" "}\n ${c?`border-bottom-width: ${parseFloat(c)}${r};`:" "}\n \n `,S=`\n ${h?`border-top-width: ${parseFloat(h)}${f};`:" "}\n ${d?`border-right-width: ${parseFloat(d)}${f};`:" "}\n ${m?`border-left-width: ${parseFloat(m)}${f};`:" "}\n ${p?`border-bottom-width: ${parseFloat(p)}${f};`:" "}\n \n `,w=`\n ${b?`border-top-width: ${parseFloat(b)}${g};`:" "}\n ${y?`border-right-width: ${parseFloat(y)}${g};`:" "}\n ${x?`border-left-width: ${parseFloat(x)}${g};`:" "}\n ${v?`border-bottom-width: ${parseFloat(v)}${g};`:" "}\n \n `):"border-radius"===a?(C=`\n ${o?`border-top-left-radius: ${parseFloat(o)}${r};`:" "}\n ${l?`border-top-right-radius: ${parseFloat(l)}${r};`:" "}\n ${u?`border-bottom-left-radius: ${parseFloat(u)}${r};`:" "}\n ${c?`border-bottom-right-radius: ${parseFloat(c)}${r};`:" "}\n \n `,S=`\n ${h?`border-top-left-radius: ${parseFloat(h)}${f};`:" "}\n ${d?`border-top-right-radius: ${parseFloat(d)}${f};`:" "}\n ${m?`border-bottom-left-radius: ${parseFloat(m)}${f};`:" "}\n ${p?`border-bottom-right-radius: ${parseFloat(p)}${f};`:" "}\n \n `,w=`\n ${b?`border-top-left-radius: ${parseFloat(b)}${g};`:" "}\n ${y?`border-top-right-radius: ${parseFloat(y)}${g};`:" "}\n ${x?`border-bottom-left-radius: ${parseFloat(x)}${g};`:" "}\n ${v?`border-bottom-right-radius: ${parseFloat(v)}${g};`:" "}\n \n `):(C=`\n ${o?`${a}-top: ${parseFloat(o)}${r};`:" "}\n ${l?`${a}-right: ${parseFloat(l)}${r};`:" "}\n ${u?`${a}-left: ${parseFloat(u)}${r};`:" "}\n ${c?`${a}-bottom: ${parseFloat(c)}${r};`:" "}\n \n `,S=`\n ${h?`${a}-top: ${parseFloat(h)}${f};`:" "}\n ${d?`${a}-right: ${parseFloat(d)}${f};`:" "}\n ${m?`${a}-left: ${parseFloat(m)}${f};`:" "}\n ${p?`${a}-bottom: ${parseFloat(p)}${f};`:" "}\n \n `,w=`\n ${b?`${a}-top: ${parseFloat(b)}${g};`:" "}\n ${y?`${a}-right: ${parseFloat(y)}${g};`:" "}\n ${x?`${a}-left: ${parseFloat(x)}${g};`:" "}\n ${v?`${a}-bottom: ${parseFloat(v)}${g};`:" "}\n \n `):!0===s&&!0===i?"border"===a?(C=`\n ${o?`border-top-width: ${parseFloat(o)}${r}; `:" "}\n ${c?`border-bottom-width: ${parseFloat(c)}${r}; `:" "}\n \n `,S=`\n ${h?`border-top-width: ${parseFloat(h)}${f};`:" "}\n ${p?`border-bottom-width: ${parseFloat(p)}${f};`:" "}\n \n `,w=`\n ${b?`border-top-width: ${parseFloat(b)}${g};`:" "}\n ${v?`border-bottom-width: ${parseFloat(v)}${g};`:" "}\n \n `):"border-radius"===a?(C=`\n ${o?`border-top-left-radius: ${parseFloat(o)}${r};`:" "}\n \n ${c?`border-bottom-right-radius: ${parseFloat(c)}${r};`:" "}\n \n `,S=`\n ${h?`border-top-left-radius: ${parseFloat(h)}${f};`:" "}\n \n ${p?`border-bottom-right-radius: ${parseFloat(p)}${f};`:" "}\n \n `,w=`\n ${b?`border-top-left-radius: ${parseFloat(b)}${g};`:" "}\n \n ${v?`border-bottom-right-radius: ${parseFloat(v)}${g};`:" "}\n \n `):(C=`\n ${o?`${a}-top: ${parseFloat(o)}${r};`:" "}\n \n ${c?`${a}-bottom: ${parseFloat(c)}${r};`:" "}\n \n `,S=`\n ${h?`${a}-top: ${parseFloat(h)}${f};`:" "}\n \n ${p?`${a}-bottom: ${parseFloat(p)}${f};`:" "}\n \n `,w=`\n ${b?`${a}-top: ${parseFloat(b)}${g};`:" "}\n \n ${v?`${a}-bottom: ${parseFloat(v)}${g};`:" "}\n \n `):!1===s&&!0===i&&("border"===a?(C=`\n ${o?`border-top-width: ${parseFloat(o)}${r};`:" "}\n ${c?`border-bottom-width: ${parseFloat(c)}${r};`:" "}\n \n `,S=`\n ${h?`border-top-width: ${parseFloat(h)}${f};`:" "}\n ${p?`border-bottom-width: ${parseFloat(p)}${f};`:" "}\n \n `,w=`\n ${b?`border-top-width: ${parseFloat(b)}${g};`:" "}\n ${v?`border-bottom-width: ${parseFloat(v)}${g};`:" "}\n \n `):"border-radius"===a?(C=`\n ${o?`border-top-left-radius: ${parseFloat(o)}${r};`:" "}\n ${c?`border-bottom-right-radius: ${parseFloat(c)}${r};`:" "}\n \n `,S=`\n ${h?`border-top-left-radius: ${parseFloat(h)}${f};`:" "}\n ${p?`border-bottom-right-radius: ${parseFloat(p)}${f};`:" "}\n \n `,w=`\n ${b?`border-top-left-radius: ${parseFloat(b)}${g};`:" "}\n ${v?`border-bottom-right-radius: ${parseFloat(v)}${g};`:" "}\n \n `):(C=`\n ${o?`${a}-top: ${parseFloat(o)}${r};`:" "}\n ${c?`${a}-bottom: ${parseFloat(c)}${r};`:" "}\n \n `,S=`\n ${h?`${a}-top: ${parseFloat(h)}${f};`:" "}\n ${p?`${a}-bottom: ${parseFloat(p)}${f};`:" "}\n \n `,w=`\n ${b?`${a}-top: ${parseFloat(b)}${g};`:" "}\n ${v?`${a}-bottom: ${parseFloat(v)}${g};`:" "}\n \n `)),{dimensionStylesDesktop:C,dimensionStylesTab:S,dimensionStylesMobile:w}},E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{bdrDefaults:a={top:1,right:1,bottom:1,left:1},rdsDefaults:n={},noBorder:i=!1,noShadow:s=!1,defaultBdrColor:r=!1,defaultBdrStyle:o=!1,noBdrHover:l=!1,noShdowHover:c=!1}=t,u={...r?{[`${e}borderColor`]:{type:"string",default:r}}:{[`${e}borderColor`]:{type:"string"}},...o?{[`${e}borderStyle`]:{type:"string",default:o}}:{[`${e}borderStyle`]:{type:"string",default:"none"}},..._(`${e}Bdr_`,a),..._(`${e}Rds_`,n)},f={[`${e}BorderType`]:{type:"string",default:"normal"},[`${e}HborderColor`]:{type:"string"},[`${e}HborderStyle`]:{type:"string",default:"none"},..._(`${e}HBdr_`),..._(`${e}HRds_`)},h={[`${e}hOffset`]:{type:"number"},[`${e}vOffset`]:{type:"number"},[`${e}blur`]:{type:"number"},[`${e}spread`]:{type:"number"},[`${e}shadowColor`]:{type:"string"},[`${e}inset`]:{type:"boolean",default:!1}},d={[`${e}shadowType`]:{type:"string",default:"normal"},[`${e}hoverHOffset`]:{type:"number"},[`${e}hoverVOffset`]:{type:"number"},[`${e}hoverBlur`]:{type:"number"},[`${e}hoverSpread`]:{type:"number"},[`${e}hoverShadowColor`]:{type:"string"},[`${e}hoverInset`]:{type:"boolean",default:!1}},p={[`${e}borderTransition`]:{type:"number",default:.5},[`${e}radiusTransition`]:{type:"number",default:.5},[`${e}shadowTransition`]:{type:"number",default:.5}};if(!0===i)return c?{...h}:{...h,...d,...p};if(!0===s)return l?{...u}:{...u,...f,...p};{let e={};return c&&l?e={...u,...h}:c&&!l?e={...u,...f,...p,...h}:!c&&l?e={...h,...d,...p,...u}:c||l||(e={...u,...h,...d,...f,...p}),e}},M=e=>{let{controlName:t,attributes:a,noBorder:n,noShadow:i}=e,s="",r="",o="",l="",c="",u="",f="",h="",d="",p="",m="",g="";if(!0!==n){const{dimensionStylesDesktop:e,dimensionStylesTab:n,dimensionStylesMobile:i}=O({controlName:`${t}Bdr_`,styleFor:"border",attributes:a}),{dimensionStylesDesktop:b,dimensionStylesTab:y,dimensionStylesMobile:v}=O({controlName:`${t}Rds_`,styleFor:"border-radius",attributes:a}),{dimensionStylesDesktop:x,dimensionStylesTab:C,dimensionStylesMobile:S}=O({controlName:`${t}HBdr_`,styleFor:"border",attributes:a}),{dimensionStylesDesktop:w,dimensionStylesTab:k,dimensionStylesMobile:_}=O({controlName:`${t}HRds_`,styleFor:"border-radius",attributes:a});s=e,r=n,o=i,l=b,c=y,u=v,f=x,h=C,d=S,p=w,m=k,g=_}const{[`${t}borderStyle`]:b,[`${t}borderColor`]:y,[`${t}HborderStyle`]:v,[`${t}HborderColor`]:x,[`${t}shadowColor`]:C,[`${t}hOffset`]:S=0,[`${t}vOffset`]:w=0,[`${t}blur`]:k=0,[`${t}spread`]:_=0,[`${t}inset`]:E,[`${t}hoverShadowColor`]:M=C,[`${t}hoverHOffset`]:$=S,[`${t}hoverVOffset`]:P=w,[`${t}hoverBlur`]:T=k,[`${t}hoverSpread`]:A=_,[`${t}borderTransition`]:B,[`${t}radiusTransition`]:R,[`${t}shadowTransition`]:I}=a;return{styesDesktop:` \n ${!0!==n?`\n ${l}\n ${"none"!==b&&y?`\n ${s}\n border-color: ${y};\n border-style: ${b};\n `:" "}\n `:" "}\n \n ${!0!==i&&C?`box-shadow: ${C} ${S}px ${w}px ${k}px ${_}px ${E?"inset":""};`:" "}\n \n \n `,styesTab:` \n ${!0!==n?`\n ${y?r:" "}\n ${c}\n `:" "}\n \n `,styesMobile:`\n ${!0!==n?`\n ${y?o:" "}\n ${u}\n `:" "}\n `,stylesHoverDesktop:`\n ${!0!==n?`\n ${"none"!==v?`\n ${x!==y?`border-color: ${x};`:" "} \n ${v!==b?`border-style: ${v};`:" "}\n ${f}\n `:" "}\n \n ${p} \n `:" "} \n \n ${!0!==i&&M?`box-shadow: ${M} ${$}px ${P}px ${T}px ${A}px ${E?"inset":" "};`:" "}\n \n `,stylesHoverTab:`\n ${!0!==n?`\n ${"none"!==v?h:" "}\n ${m} \n `:" "}\n `,stylesHoverMobile:`\n ${!0!==n?`\n ${"none"!==v?d:" "}\n ${g}\n `:" "}\n \n `,transitionStyle:`\n border ${B||0}s, border-radius ${R||0}s, box-shadow ${I||0}s\n `}},$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{defaultRange:a,noUnits:n,defaultUnit:i="px"}=t;return{...a?{[`${e}Range`]:{type:"number",default:a}}:{[`${e}Range`]:{type:"number"}},[`TAB${e}Range`]:{type:"number"},[`MOB${e}Range`]:{type:"number"},...!0===n?{}:{[`${e}Unit`]:{type:"string",default:i},[`TAB${e}Unit`]:{type:"string",default:"px"},[`MOB${e}Unit`]:{type:"string",default:"px"}}}},P=e=>{let t,a,n,{controlName:i,property:s,attributes:r,customUnit:o,noUnits:l}=e;l?t=a=n="":o?t=a=n=o:(t=r[`${i}Unit`],a=r[`TAB${i}Unit`],n=r[`MOB${i}Unit`]);const{[`${i}Range`]:c,[`TAB${i}Range`]:u,[`MOB${i}Range`]:f}=r,h=null===s?"":s+":",d=null===s?"":";";return{rangeStylesDesktop:c||0===c?h+("px"!==t&&c>100?100:c)+(o||t)+d:"",rangeStylesTab:u||0===u?h+("px"!==a&&u>100?100:u)+(o||a)+d:"",rangeStylesMobile:f||0===f?h+("px"!==n&&f>100?100:f)+(o||n)+d:""}},T=e=>({[`${e}Option`]:{type:"string"},[`TAB${e}Option`]:{type:"string"},[`MOB${e}Option`]:{type:"string"}}),A=e=>{let{controlName:t,property:a,attributes:n}=e;const{[`${t}Option`]:i,[`TAB${t}Option`]:s,[`MOB${t}Option`]:r}=n;return{selectStylesDesktop:i?`${a}: ${i};`:"",selectStylesTab:s?`${a}: ${s};`:"",selectStylesMobile:r?`${a}: ${r};`:""}},B=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{defaultAlign:a,defaultTabAlign:n,defaultMobileAlign:i}=t;return{...a?{[`${e}`]:{type:"string",default:a}}:{[`${e}`]:{type:"string"}},...n?{[`TAB${e}`]:{type:"string",default:n}}:{[`TAB${e}`]:{type:"string"}},...i?{[`MOB${e}`]:{type:"string",default:i}}:{[`MOB${e}`]:{type:"string"}}}},R=e=>{let{controlName:t,property:a,attributes:n}=e;const{[`${t}`]:i,[`TAB${t}`]:s,[`MOB${t}`]:r}=n;return{alignStylesDesktop:i?`${a}: ${i};`:"",alignStylesTab:s?`${a}: ${s};`:"",alignStylesMobile:r?`${a}: ${r};`:""}},I=(e,t,a)=>t?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a):e.toString(),D=e=>e&&"string"==typeof e?e.replace(/\s+/g," ").replace(/\.eb\-[\w\-\s\.\,\:\>\=\"\'\(\)\d\+\[\]\#\>]+\{[\s]+\}/g,""):e,N=e=>{let{setPreviewDeviceType:t,setAttributes:a}=e;a({resOption:"Desktop"}),t("Desktop")},L=e=>{let{setPreviewDeviceType:t,setAttributes:a}=e;a({resOption:"Tablet"}),t("Tablet")},F=e=>{let{setPreviewDeviceType:t,setAttributes:a}=e;a({resOption:"Mobile"}),t("Mobile")},z=()=>{},V=()=>{},U=()=>()=>{},H=e=>{let{BLOCK_PREFIX:t,blockId:a,setAttributes:n,select:i,clientId:s}=e;const r=t+"-"+Math.random().toString(36).substr(2,7);a||n({blockId:r});const o=i("core/block-editor").getBlocks();let l=!1;const c=e=>{if(!l)for(const t of e){const{innerBlocks:e}=t;if(t.attributes.blockId===a){if(t.clientId!==s)return n({blockId:r}),void(l=!0);e.length>0&&c(e)}else e.length>0&&c(e)}};c(o)},G=()=>{let e=[];const t=(0,b.select)("core/block-editor").getSettings().imageSizes;return"object"==typeof t&&t.length>0&&(e=[{label:"Default",value:""}],t.map(((t,a)=>{e.push({label:t.name,value:t.slug})}))),e},j=a=>{const{attrName:n,resRequiredProps:s,label:r="Thumbnail Image Size"}=a,{attributes:o,setAttributes:l}=s,c=G();return(0,e.createElement)(i.SelectControl,{label:(0,t.__)(r,"essential-blocks"),value:o[n],options:c,onChange:e=>l({[n]:e})})},W=e=>e.replace(/(<([^>]+)>)/gi,""),q=e=>{var t=document.createElement("div");return t.innerHTML=e,t.innerHTML===e},Z=e=>{switch(e){case"flip-left":return"rotateY(-180deg)";case"flip-right":return"rotateY(180deg)";case"flip-up":return"rotateX(180deg)";case"flip-bottom":return"rotateX(-180deg)";case"zoom-in":return"scale(1.1)";case"zoom-out":return"scale(0.8)"}},Q=e=>{switch(e){case"styleOne":return"btn-gradient blue";case"styleTwo":return"btn-gradient purple";case"styleThree":return"btn-gradient orange";case"custom":return""}},X=window.wp.hooks,K=t=>{const{attributes:a,setAttributes:n,desktopAllStyles:i,tabAllStyles:s,mobileAllStyles:r,blockName:o}=t,{blockMeta:l,resOption:c}=a,[u,f]=(0,e.useState)({desktop:i,tab:s,mobile:r});return(0,e.useEffect)((()=>{const e={desktop:i,tab:s,mobile:r};f((0,X.applyFilters)(`eb-style-object_${o.replace(/\//g,"_")}`,e,a,n))}),[a]),(0,e.useEffect)((()=>{JSON.stringify(l)!=JSON.stringify(u)&&n({blockMeta:u})}),[u]),(0,e.createElement)("style",null,`\n\t\t\t\t${u.desktop}\n\n\t\t\t\t/* mimmikcssStart */\n\n\t\t\t\t${"Tablet"===c?u.tab:" "}\n\t\t\t\t${"Mobile"===c?u.tab+u.mobile:" "}\n\n\t\t\t\t/* mimmikcssEnd */\n\n\t\t\t\t@media all and (max-width: 1024px) {\n\n\t\t\t\t\t/* tabcssStart */\n\t\t\t\t\t${D(u.tab)}\n\t\t\t\t\t/* tabcssEnd */\n\n\t\t\t\t}\n\n\t\t\t\t@media all and (max-width: 767px) {\n\n\t\t\t\t\t/* mobcssStart */\n\t\t\t\t\t${D(u.mobile)}\n\t\t\t\t\t/* mobcssEnd */\n\t\t\t\t}\n\t\t\t`)},Y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{dividerType:a}=t;return{[`${e}Type`]:{type:"string",default:a||""},[`${e}Color`]:{type:"string"},[`${e}Flip`]:{type:"boolean",default:!1},[`${e}Invert`]:{type:"boolean",default:!1},[`${e}BringFront`]:{type:"boolean",default:!1},...$(`${e}Width`,{defaultRange:100,noUnits:!0}),...$(`${e}Height`,{noUnits:!0})}},J=e=>{let{controlName:t,position:a,attributes:n}=e;const{[`${t}Color`]:i,[`${t}Flip`]:s,[`${t}BringFront`]:r,blockId:o}=n,{rangeStylesDesktop:l,rangeStylesTab:c,rangeStylesMobile:u}=P({controlName:`${t}Width`,property:"",attributes:n,customUnit:"px"}),{rangeStylesDesktop:f,rangeStylesTab:h,rangeStylesMobile:d}=P({controlName:`${t}Height`,property:"height",attributes:n,customUnit:"px"});return{desktopShapeStyle:`\n ${"top"==a?`.eb-parent-${o} .eb-shape-divider-top .eb-shape-divider-fill {\n ${i?`fill: ${i};`:""}\n }\n\n .eb-parent-${o} .eb-shape-divider-top svg {\n ${0!=l.length?`width: calc(${l.replace(/\D/g,"")}% + 1.3px);`:""}\n ${0!=f.length?f:""}\n ${s?"transform: translateX(-50%) rotateY(180deg);":""}\n }\n ${r?`\n .eb-parent-${o} .eb-shape-divider-top {\n z-index: 2 !important;\n pointer-events: none;\n }\n `:""}`:""}\n\n ${"bottom"==a?`\n .eb-parent-${o} .eb-shape-divider-bottom .eb-shape-divider-fill {\n ${i?`fill: ${i};`:""}\n }\n .eb-parent-${o} .eb-shape-divider-bottom svg {\n ${0!=l.length?`width: calc(${l.replace(/\D/g,"")}% + 1.3px);`:""}\n ${0!=f.length?f:""}\n ${s?"transform: translateX(-50%) rotateY(180deg);":""}\n }\n ${r?`\n .eb-parent-${o} .eb-shape-divider-bottom {\n z-index: 2 !important;\n pointer-events: none;\n }\n `:""}\n `:""}\n `,tabShapeStyle:`\n ${"top"==a?`.eb-parent-${o} .eb-shape-divider-top svg {\n ${0!=c.length?`width: calc(${c.replace(/\D/g,"")}% + 1.3px);`:""}\n ${0!=h.length?h:""}\n }`:""}\n\n ${"bottom"==a?`.eb-parent-${o} .eb-shape-divider-bottom svg {\n ${0!=c.length?`width: calc(${c.replace(/\D/g,"")}% + 1.3px);`:""}\n ${0!=h.length?h:""}\n }`:""}\n\n `,mobShapeStyle:`\n ${"top"==a?`.eb-parent-${o} .eb-shape-divider-top svg {\n ${0!=u.length?`width: calc(${u.replace(/\D/g,"")}% + 1.3px);`:""}\n ${0!=d.length?d:""}\n }`:""}\n\n ${"bottom"==a?`.eb-parent-${o} .eb-shape-divider-bottom svg {\n ${0!=u.length?`width: calc(${u.replace(/\D/g,"")}% + 1.3px);`:""}\n ${0!=d.length?d:""}\n }`:""}\n `}},ee=e=>{let t=new FormData;return t.append("action","eb_fetch_options_data"),t.append("key",e),t.append("nonce",EssentialBlocksLocalize.admin_nonce),fetch(EssentialBlocksLocalize.ajax_url,{method:"POST",body:t}).then((e=>e.text())).then((e=>{const t=JSON.parse(e);return fe(t.data)?JSON.parse(t.data):t.data})).catch((e=>console.log(e)))},te=(e,t)=>{let a=new FormData;return a.append("action","eb_save_options_data"),a.append("key",e),a.append("value",JSON.stringify(t)),a.append("nonce",EssentialBlocksLocalize.admin_nonce),fetch(EssentialBlocksLocalize.ajax_url,{method:"POST",body:a}).then((e=>e.text())).then((e=>e)).catch((e=>console.log(e)))},ae=e=>{let t=new FormData;return t.append("action","get_eb_admin_options"),t.append("key",e),t.append("admin_nonce",EssentialBlocksLocalize.admin_nonce),fetch(EssentialBlocksLocalize.ajax_url,{method:"POST",body:t}).then((e=>e.text())).then((e=>{const t=JSON.parse(e);if(t.success)return t.data})).catch((e=>console.log(e)))},ne=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"settings",n=new FormData;return n.append("action","save_eb_admin_options"),n.append("type",a),n.append("value",t),n.append("admin_nonce",EssentialBlocksLocalize.admin_nonce),"settings"===a&&n.append("key",e),fetch(EssentialBlocksLocalize.ajax_url,{method:"POST",body:n}).then((e=>e.text())).then((e=>e)).catch((e=>console.log(e)))},ie=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},(0,e.createElement)("g",{clipPath:"url(#eb-shape-divider-ocean-wave)"},(0,e.createElement)("path",{className:"eb-shape-divider-fill",fill:"#715AFF",d:"M0 97.79S101.82-.97 283.17 5.23c203.09 0 290.46 94.4 716.83 94.4V0H0v97.79Z"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"eb-shape-divider-ocean-wave"},(0,e.createElement)("path",{fill:"#fff",className:"eb-shape-divider-fill",d:"M0 0h1000v99.62H0z"})))),se=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},(0,e.createElement)("g",{clipPath:"url(#eb-shape-divider-triangle)"},(0,e.createElement)("path",{className:"eb-shape-divider-fill",fill:"#5A88FF",d:"m0 98.99 170.59-87.45S611.11 98.99 1000 98.99V0H0v98.99Z"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"eb-shape-divider-triangle"},(0,e.createElement)("path",{fill:"#fff",className:"eb-shape-divider-fill",d:"M0 0h1000v98.99H0z"})))),re=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},(0,e.createElement)("path",{className:"eb-shape-divider-fill",fill:"#490F93",d:"M1000 0H0l.004 84.53c8.883-1.503 17.67-3.832 26.606-4.38 11.144-.693 22.668-2.426 33.516 2.75 2.148 1.022 5.802 1.283 7.787.236 16.643-8.726 35.02-8.353 52.995-8.552 16.393-.171 32.8 2.003 49.227 2.575 7.39.249 14.834-.883 22.252-1.395 5.505-.385 11.126-1.657 16.502-1.017 27.437 3.259 54.741.483 82.116-.512 22.989-.824 46.094-1.695 69.014-.384 18.454 1.053 36.688 5.406 55.054 8.106 3.796.56 7.833.866 11.584.284 19.935-3.06 39.975-5.795 59.667-9.936 13.651-2.875 27.24-4.332 41.044-3.482 16.178.995 32.295 2.86 48.464 4.05 14.143 1.039 28.322 2.251 42.486 2.24 6.99-.004 13.954-2.691 20.971-3.957 3.599-.646 7.394-1.548 10.917-1.071 8.379 1.156 16.747 2.73 24.926 4.807 3.59.91 6.937 3.182 9.992 5.342 8.332 5.887 12.636 5.884 21.316.173 1.429-.938 4.516-.871 6.155-.05 4.483 2.259 8.528 5.261 12.874 7.783 4.35 2.528 8.526 3.508 13.604.622 8.431-4.779 8.798-4.844 5.644-16.958 9.004 5.279 16.629 10.026 24.537 14.293 5.578 3.015 11.102 6.918 18.332 3.864 5.162-2.182 9.711-4.556 8.883-11.517 8.026 4.971 15.566 9.27 22.664 14.154 6.305 4.338 12.352 3.68 18.678.595 6.039-2.943 4.774-7.627 1.511-13.691 4.874 2.2 8.264 3.038 10.67 4.97 4.736 3.8 9.051 2.95 14.068.709 7.736-3.457 8.919-7.193 3.577-13.387-.879-1.02-1.85-1.978-1.982-3.99 5.02 3.216 10.095 6.346 15.041 9.666 5.659 3.8 11.127 7.853 16.793 11.63 7.265 4.848 15.631 4.988 21.951-.296 4.726-3.951 2.104-8.467-.974-12.184-4.576-5.533-9.527-10.8-14.312-16.168.415-.445.829-.877 1.244-1.316 5.943 4.058 11.898 8.105 17.824 12.196 4.109 2.835 8.088 5.854 12.277 8.587 10.747 7.007 15.487 6.835 26.683-1.303 4.201 3.223 8.74 6.49 13.041 10.025 9.951 8.183 15.277 7.933 24.777-2.595V0Z"})),oe=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 100",fill:"none",preserveAspectRatio:"none"},(0,e.createElement)("path",{className:"eb-shape-divider-fill",fill:"#B843D6",d:"M646.99 79.145C766.266 62.962 906.985 26.462 1000 0H0c211.255 131.265 460.086 104.501 646.99 79.145Z"})),le=()=>(0,X.applyFilters)("essential_blocks_shape_divider_list",{style_1:{component:ie},style_2:{component:se},style_3:{component:re},style_4:{component:oe}}),ce=t=>{let{position:a,style:n,negative:i}=t;const s=le(),r=i?s[n+"_negative"]?.component:s[n]?.component;return(0,e.createElement)(e.Fragment,null,"top"==a&&(0,e.createElement)((()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"eb-shape-divider eb-shape-divider-top","data-shape":n,"data-negative":i?"true":"false"},null!=r&&(0,e.createElement)(r,null)))),null),"bottom"==a&&(0,e.createElement)((()=>(0,e.createElement)("div",{className:"eb-shape-divider eb-shape-divider-bottom","data-shape":n,"data-negative":i?"true":"false"},null!=r&&(0,e.createElement)(r,null))),null))},{omit:ue}=lodash,fe=e=>{try{var t=JSON.parse(e);if(t&&"object"==typeof t)return!0}catch(e){}return!1},he=e=>{const t=e.split("_");for(var a=0;a<t.length;a++)t[a]=t[a].charAt(0).toUpperCase()+t[a].slice(1);return t.join("")},de=(e,t)=>{let a=[];return function e(t,n){t&&t.length>0&&t.map((t=>{t.name&&t.name===n&&a.push(t.clientId),t.innerBlocks&&t.innerBlocks.length>0&&e(t.innerBlocks,n)}))}(e,t),a},pe=(e,t)=>{let a=!1;const n=(0,b.select)("core/block-editor").getBlockParents(e);return"object"==typeof n&&n.length>0&&(a=n.filter((e=>t===(0,b.select)("core/block-editor").getBlockName(e))),"object"==typeof a&&a.length>0&&(a=a[0])),a},me=(e,t)=>{const{name:a}=e,{eb_wp_version:n,all_blocks:i}=EssentialBlocksLocalize;if(/^essential-blocks\//.test(a)){let e=a.replace(/essential-blocks\/pro-|essential-blocks\/|-/g,"_");if("_"===e.charAt(0)&&(e=e.substring(1)),i[e]&&"false"===i[e]?.visibility)return!1}n>=5.8?(0,y.registerBlockType)({name:a,...e},t):(0,y.registerBlockType)(`${a}`,{...ue(e,["name"]),...t})};function ge(t){let{className:a,children:n,resRequiredProps:i,label:s}=t;const{setAttributes:r,resOption:o}=i,l=()=>{const{editor_type:e}=eb_conditional_localize||{};return"edit-site"===e?(0,b.dispatch)("core/edit-site").__experimentalSetPreviewDeviceType:("edit-post"===e||console.log("---fallen back, please check style handler"),(0,b.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType)};return(0,e.createElement)("div",{className:`wrap_res ${a||" "}`},(0,e.createElement)("div",{className:s?"resBtns":"resIcons"},s&&(0,e.createElement)("span",{style:{paddingRight:"5px"},className:"resLabel"},s),(0,e.createElement)("span",{onClick:()=>N({setAttributes:r,setPreviewDeviceType:l()}),className:"typoResButton dashicons dashicons-desktop "+("Desktop"===o?"active":" ")}),(0,e.createElement)("span",{onClick:()=>L({setAttributes:r,setPreviewDeviceType:l()}),className:"typoResButton dashicons dashicons-tablet "+("Tablet"===o?"active":" ")}),(0,e.createElement)("span",{onClick:()=>F({setAttributes:r,setPreviewDeviceType:l()}),className:"typoResButton dashicons dashicons-smartphone "+("Mobile"===o?"active":" ")})),n)}const be=t=>{let{onReset:a,children:n}=t;return(0,e.createElement)("div",{className:"eb-range-controller-container"},n,(0,e.createElement)("button",{className:"eb-range-reset-button",onClick:a},(0,e.createElement)("span",{className:"dashicon dashicons dashicons-image-rotate"})))};function ye(a){let{resRequiredProps:n,controlName:r,noOverlayBgi:o,noTransition:l}=a;const{setAttributes:c,attributes:u,resOption:d}=n,{[`${r}ovl_hoverType`]:p,[`${r}ovl_bg_transition`]:b,[`${r}ovl_filtersTransition`]:y,[`${r}ovl_opacityTransition`]:v,[`${r}overlayType`]:x,[`${r}overlayColor`]:C,[`${r}overlayGradient`]:S,[`${r}ovl_bgImageURL`]:w,[`${r}ovl_bgImageID`]:k,[`${r}ovl_bgImgAttachment`]:_,[`${r}ovl_opacity`]:O,[`${r}ovl_blendMode`]:E,[`${r}ovl_allowFilters`]:M,[`${r}ovl_fltrBrightness`]:$,[`${r}ovl_fltrContrast`]:P,[`${r}ovl_fltrSaturation`]:T,[`${r}ovl_fltrBlur`]:A,[`${r}ovl_fltrHue`]:B,[`${r}ovl_backgroundSize`]:R,[`${r}ovl_bgImgCustomSize`]:I,[`${r}ovl_bgImgCustomSizeUnit`]:D,[`${r}ovl_bgImgPos`]:N,[`${r}ovl_bgImgcustomPosX`]:L,[`${r}ovl_bgImgcustomPosXUnit`]:F,[`${r}ovl_bgImgcustomPosY`]:z,[`${r}ovl_bgImgcustomPosYUnit`]:V,[`${r}ovl_bgImgRepeat`]:U,[`TAB${r}ovl_backgroundSize`]:H,[`TAB${r}ovl_bgImgCustomSize`]:G,[`TAB${r}ovl_bgImgCustomSizeUnit`]:j,[`TAB${r}ovl_bgImgPos`]:W,[`TAB${r}ovl_bgImgcustomPosX`]:q,[`TAB${r}ovl_bgImgcustomPosXUnit`]:Z,[`TAB${r}ovl_bgImgcustomPosY`]:Q,[`TAB${r}ovl_bgImgcustomPosYUnit`]:X,[`TAB${r}ovl_bgImgRepeat`]:K,[`MOB${r}ovl_backgroundSize`]:Y,[`MOB${r}ovl_bgImgCustomSize`]:J,[`MOB${r}ovl_bgImgCustomSizeUnit`]:ee,[`MOB${r}ovl_bgImgPos`]:te,[`MOB${r}ovl_bgImgcustomPosX`]:ae,[`MOB${r}ovl_bgImgcustomPosXUnit`]:ne,[`MOB${r}ovl_bgImgcustomPosY`]:ie,[`MOB${r}ovl_bgImgcustomPosYUnit`]:se,[`MOB${r}ovl_bgImgRepeat`]:re,[`hov_${r}overlayType`]:oe,[`hov_${r}overlayColor`]:le,[`hov_${r}overlayGradient`]:ce,[`hov_${r}ovl_bgImageURL`]:ue,[`hov_${r}ovl_bgImageID`]:fe,[`hov_${r}ovl_bgImgAttachment`]:he,[`hov_${r}ovl_opacity`]:de,[`hov_${r}ovl_blendMode`]:pe,[`hov_${r}ovl_allowFilters`]:me,[`hov_${r}ovl_fltrBrightness`]:ye,[`hov_${r}ovl_fltrContrast`]:ve,[`hov_${r}ovl_fltrSaturation`]:xe,[`hov_${r}ovl_fltrBlur`]:Ce,[`hov_${r}ovl_fltrHue`]:Se,[`hov_${r}ovl_backgroundSize`]:we,[`hov_${r}ovl_bgImgCustomSize`]:ke,[`hov_${r}ovl_bgImgCustomSizeUnit`]:_e,[`hov_${r}ovl_bgImgPos`]:Oe,[`hov_${r}ovl_bgImgcustomPosX`]:Ee,[`hov_${r}ovl_bgImgcustomPosXUnit`]:Me,[`hov_${r}ovl_bgImgcustomPosY`]:$e,[`hov_${r}ovl_bgImgcustomPosYUnit`]:Pe,[`hov_${r}ovl_bgImgRepeat`]:Te,[`hov_TAB${r}ovl_backgroundSize`]:Ae,[`hov_TAB${r}ovl_bgImgCustomSize`]:Be,[`hov_TAB${r}ovl_bgImgCustomSizeUnit`]:Re,[`hov_TAB${r}ovl_bgImgPos`]:Ie,[`hov_TAB${r}ovl_bgImgcustomPosX`]:De,[`hov_TAB${r}ovl_bgImgcustomPosXUnit`]:Ne,[`hov_TAB${r}ovl_bgImgcustomPosY`]:Le,[`hov_TAB${r}ovl_bgImgcustomPosYUnit`]:Fe,[`hov_TAB${r}ovl_bgImgRepeat`]:ze,[`hov_MOB${r}ovl_backgroundSize`]:Ve,[`hov_MOB${r}ovl_bgImgCustomSize`]:Ue,[`hov_MOB${r}ovl_bgImgCustomSizeUnit`]:He,[`hov_MOB${r}ovl_bgImgPos`]:Ge,[`hov_MOB${r}ovl_bgImgcustomPosX`]:je,[`hov_MOB${r}ovl_bgImgcustomPosXUnit`]:We,[`hov_MOB${r}ovl_bgImgcustomPosY`]:qe,[`hov_MOB${r}ovl_bgImgcustomPosYUnit`]:Ze,[`hov_MOB${r}ovl_bgImgRepeat`]:Qe}=u;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.BaseControl,{label:(0,t.__)("Background Overlay","essential-blocks")}),(0,e.createElement)(i.BaseControl,null,(0,e.createElement)(i.ButtonGroup,null,[{label:(0,t.__)("Normal","essential-blocks"),value:"normal"},{label:(0,t.__)("Hover","essential-blocks"),value:"hover"}].map(((t,a)=>{let{value:n,label:s}=t;return(0,e.createElement)(i.Button,{key:a,isPrimary:p===n,isSecondary:p!==n,onClick:()=>c({[`${r}ovl_hoverType`]:n})},s)})))),"normal"===p&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.BaseControl,{label:(0,t.__)("Overlay Type","essential-blocks")},(0,e.createElement)(i.ButtonGroup,{id:"eb-background-control-new"},[{label:"Classic",value:"classic"},{label:"Gradient",value:"gradient"}].map(((t,a)=>{let{value:n,label:s}=t;return(0,e.createElement)(i.Button,{key:a,isPrimary:x===n,isSecondary:x!==n,onClick:()=>c({[`${r}overlayType`]:n})},s)})))),"classic"===x&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(m,{label:(0,t.__)("Overlay Color","essential-blocks"),color:C,onChange:e=>c({[`${r}overlayColor`]:e})}),!1===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.BaseControl,{label:(0,t.__)("Overlay Image","essential-blocks")}),(0,e.createElement)(s.MediaUpload,{onSelect:e=>{let{url:t,id:a}=e;return c({[`${r}ovl_bgImageURL`]:t,[`${r}ovl_bgImageID`]:a})},type:"image",value:k,render:a=>{let{open:n}=a;return!w&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.Button,{className:"eb-background-control-inspector-panel-img-btn components-button",label:(0,t.__)("Upload Image","essential-blocks"),icon:"format-image",onClick:n}),(0,e.createElement)("span",{style:{padding:"10px 0",display:"block"}}))}}),w&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(g,{imageUrl:w,onDeleteImage:()=>c({[`${r}ovl_bgImageURL`]:null})}),"Desktop"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ge,{resRequiredProps:n,label:"Position"},(0,e.createElement)(i.SelectControl,{value:N,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Center Center","essential-blocks"),value:"center center"},{label:(0,t.__)("Center Left","essential-blocks"),value:"center left"},{label:(0,t.__)("Center Right","essential-blocks"),value:"center right"},{label:(0,t.__)("Top Center","essential-blocks"),value:"top center"},{label:(0,t.__)("Top Left","essential-blocks"),value:"top left"},{label:(0,t.__)("Top Right","essential-blocks"),value:"top right"},{label:(0,t.__)("Bottom Center","essential-blocks"),value:"bottom center"},{label:(0,t.__)("Bottom Left","essential-blocks"),value:"bottom left"},{label:(0,t.__)("Bottom Right","essential-blocks"),value:"bottom right"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`${r}ovl_bgImgPos`]:e})})),"custom"===N&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:F,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`${r}ovl_bgImgcustomPosXUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"X Position"},(0,e.createElement)(i.RangeControl,{value:L,min:0,max:"px"===F?2e3:100,onChange:e=>c({[`${r}ovl_bgImgcustomPosX`]:e})})),(0,e.createElement)(h,{selectedUnit:V,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`${r}ovl_bgImgcustomPosYUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Y Position"},(0,e.createElement)(i.RangeControl,{value:z,min:0,max:"px"===V?2e3:100,step:"px"===V?1:.1,onChange:e=>c({[`${r}ovl_bgImgcustomPosY`]:e})}))),(0,e.createElement)(i.SelectControl,{label:"Attachment",value:_,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Scroll","essential-blocks"),value:"scroll"},{label:(0,t.__)("Fixed","essential-blocks"),value:"fixed"}],onChange:e=>c({[`${r}ovl_bgImgAttachment`]:e})}),"fixed"===_&&(0,e.createElement)("p",{style:{marginTop:"-10px",paddingBottom:"10px"}},(0,e.createElement)("i",null,"Note: Attachment Fixed works only on desktop.")),(0,e.createElement)(ge,{resRequiredProps:n,label:"Repeat"},(0,e.createElement)(i.SelectControl,{value:U,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("No-repeat","essential-blocks"),value:"no-repeat"},{label:(0,t.__)("Repeat","essential-blocks"),value:"repeat"},{label:(0,t.__)("Repeat-x","essential-blocks"),value:"repeat-x"},{label:(0,t.__)("Repeat-y","essential-blocks"),value:"repeat-y"}],onChange:e=>c({[`${r}ovl_bgImgRepeat`]:e})})),(0,e.createElement)(ge,{resRequiredProps:n,label:"Size"},(0,e.createElement)(i.SelectControl,{value:R,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Auto","essential-blocks"),value:"auto"},{label:(0,t.__)("Cover","essential-blocks"),value:"cover"},{label:(0,t.__)("Contain","essential-blocks"),value:"contain"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`${r}ovl_backgroundSize`]:e})})),"custom"===R&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:D,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`${r}ovl_bgImgCustomSizeUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Width"},(0,e.createElement)(i.RangeControl,{value:I,min:0,max:"px"===D?2e3:100,step:"px"===D?1:.1,onChange:e=>c({[`${r}ovl_bgImgCustomSize`]:e})})))),"Tablet"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ge,{resRequiredProps:n,label:"Position"},(0,e.createElement)(i.SelectControl,{value:W,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Center Center","essential-blocks"),value:"center center"},{label:(0,t.__)("Center Left","essential-blocks"),value:"center left"},{label:(0,t.__)("Center Right","essential-blocks"),value:"center right"},{label:(0,t.__)("Top Center","essential-blocks"),value:"top center"},{label:(0,t.__)("Top Left","essential-blocks"),value:"top left"},{label:(0,t.__)("Top Right","essential-blocks"),value:"top right"},{label:(0,t.__)("Bottom Center","essential-blocks"),value:"bottom center"},{label:(0,t.__)("Bottom Left","essential-blocks"),value:"bottom left"},{label:(0,t.__)("Bottom Right","essential-blocks"),value:"bottom right"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`TAB${r}ovl_bgImgPos`]:e})})),"custom"===W&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:Z,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`TAB${r}ovl_bgImgcustomPosXUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"X Position"},(0,e.createElement)(i.RangeControl,{value:q,min:-2e3,max:2e3,onChange:e=>c({[`TAB${r}ovl_bgImgcustomPosX`]:e})})),(0,e.createElement)(h,{selectedUnit:X,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`TAB${r}ovl_bgImgcustomPosYUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Y Position"},(0,e.createElement)(i.RangeControl,{value:Q,min:-2e3,max:2e3,step:"px"===X?1:.1,onChange:e=>c({[`TAB${r}ovl_bgImgcustomPosY`]:e})}))),(0,e.createElement)(i.SelectControl,{label:"Attachment",value:_,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Scroll","essential-blocks"),value:"scroll"},{label:(0,t.__)("Fixed","essential-blocks"),value:"fixed"}],onChange:e=>c({[`${r}ovl_bgImgAttachment`]:e})}),"fixed"===_&&(0,e.createElement)("p",{style:{marginTop:"-10px",paddingBottom:"10px"}},(0,e.createElement)("i",null,"Note: Attachment Fixed works only on desktop.")),(0,e.createElement)(ge,{resRequiredProps:n,label:"Repeat"},(0,e.createElement)(i.SelectControl,{value:K,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("No-repeat","essential-blocks"),value:"no-repeat"},{label:(0,t.__)("Repeat","essential-blocks"),value:"repeat"},{label:(0,t.__)("Repeat-x","essential-blocks"),value:"repeat-x"},{label:(0,t.__)("Repeat-y","essential-blocks"),value:"repeat-y"}],onChange:e=>c({[`TAB${r}ovl_bgImgRepeat`]:e})})),(0,e.createElement)(ge,{resRequiredProps:n,label:"Size"},(0,e.createElement)(i.SelectControl,{value:H,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Auto","essential-blocks"),value:"auto"},{label:(0,t.__)("Cover","essential-blocks"),value:"cover"},{label:(0,t.__)("Contain","essential-blocks"),value:"contain"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`TAB${r}ovl_backgroundSize`]:e})})),"custom"===H&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:j,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`TAB${r}ovl_bgImgCustomSizeUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Width"},(0,e.createElement)(i.RangeControl,{value:G,min:0,max:"px"===j?2e3:100,step:"px"===j?1:.1,onChange:e=>c({[`TAB${r}ovl_bgImgCustomSize`]:e})})))),"Mobile"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ge,{resRequiredProps:n,label:"Position"},(0,e.createElement)(i.SelectControl,{value:te,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Center Center","essential-blocks"),value:"center center"},{label:(0,t.__)("Center Left","essential-blocks"),value:"center left"},{label:(0,t.__)("Center Right","essential-blocks"),value:"center right"},{label:(0,t.__)("Top Center","essential-blocks"),value:"top center"},{label:(0,t.__)("Top Left","essential-blocks"),value:"top left"},{label:(0,t.__)("Top Right","essential-blocks"),value:"top right"},{label:(0,t.__)("Bottom Center","essential-blocks"),value:"bottom center"},{label:(0,t.__)("Bottom Left","essential-blocks"),value:"bottom left"},{label:(0,t.__)("Bottom Right","essential-blocks"),value:"bottom right"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`MOB${r}ovl_bgImgPos`]:e})})),"custom"===te&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:ne,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`MOB${r}ovl_bgImgcustomPosXUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"X Position"},(0,e.createElement)(i.RangeControl,{value:ae,min:0,max:"px"===ne?2e3:100,onChange:e=>c({[`MOB${r}ovl_bgImgcustomPosX`]:e})})),(0,e.createElement)(h,{selectedUnit:se,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`MOB${r}ovl_bgImgcustomPosYUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Y Position"},(0,e.createElement)(i.RangeControl,{value:ie,min:0,max:"px"===se?2e3:100,step:"px"===se?1:.1,onChange:e=>c({[`MOB${r}ovl_bgImgcustomPosY`]:e})}))),(0,e.createElement)(i.SelectControl,{label:"Attachment",value:_,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Scroll","essential-blocks"),value:"scroll"},{label:(0,t.__)("Fixed","essential-blocks"),value:"fixed"}],onChange:e=>c({[`${r}ovl_bgImgAttachment`]:e})}),"fixed"===_&&(0,e.createElement)("p",{style:{marginTop:"-10px",paddingBottom:"10px"}},(0,e.createElement)("i",null,"Note: Attachment Fixed works only on desktop.")),(0,e.createElement)(ge,{resRequiredProps:n,label:"Repeat"},(0,e.createElement)(i.SelectControl,{value:re,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("No-repeat","essential-blocks"),value:"no-repeat"},{label:(0,t.__)("Repeat","essential-blocks"),value:"repeat"},{label:(0,t.__)("Repeat-x","essential-blocks"),value:"repeat-x"},{label:(0,t.__)("Repeat-y","essential-blocks"),value:"repeat-y"}],onChange:e=>c({[`MOB${r}ovl_bgImgRepeat`]:e})})),(0,e.createElement)(ge,{resRequiredProps:n,label:"Size"},(0,e.createElement)(i.SelectControl,{value:Y,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Auto","essential-blocks"),value:"auto"},{label:(0,t.__)("Cover","essential-blocks"),value:"cover"},{label:(0,t.__)("Contain","essential-blocks"),value:"contain"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`MOB${r}ovl_backgroundSize`]:e})})),"custom"===Y&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:ee,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`MOB${r}ovl_bgImgCustomSizeUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Width"},(0,e.createElement)(i.RangeControl,{value:J,min:0,max:"px"===ee?2e3:100,step:"px"===ee?1:.1,onChange:e=>c({[`MOB${r}ovl_bgImgCustomSize`]:e})}))))))),"gradient"===x&&(0,e.createElement)(f,{gradientColor:S,onChange:e=>c({[`${r}overlayGradient`]:e})}),(0,e.createElement)("hr",null),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Opacity","essential-blocks"),value:O,onChange:e=>c({[`${r}ovl_opacity`]:e}),step:.01,min:0,max:1}),(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Blend Mode","essential-blocks"),value:E,options:[{label:(0,t.__)("Normal","essential-blocks"),value:""},{label:(0,t.__)("Multiply","essential-blocks"),value:"multiply"},{label:(0,t.__)("Screen","essential-blocks"),value:"screen"},{label:(0,t.__)("Overlay","essential-blocks"),value:"overlay"},{label:(0,t.__)("Darken","essential-blocks"),value:"darken"},{label:(0,t.__)("Lighten","essential-blocks"),value:"lighten"},{label:(0,t.__)("Color Dodge","essential-blocks"),value:"color-dodge"},{label:(0,t.__)("Saturation","essential-blocks"),value:"saturation"},{label:(0,t.__)("Color","essential-blocks"),value:"color"},{label:(0,t.__)("Luminosity","essential-blocks"),value:"luminosity"}],onChange:e=>c({[`${r}ovl_blendMode`]:e})}),(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("CSS Filters","essential-blocks"),checked:M,onChange:()=>c({[`${r}ovl_allowFilters`]:!M})}),M&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Blur","essential-blocks"),value:A,onChange:e=>c({[`${r}ovl_fltrBlur`]:e}),step:.1,min:0,max:10}),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Brightness","essential-blocks"),value:$,onChange:e=>c({[`${r}ovl_fltrBrightness`]:e}),step:1,min:0,max:200}),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Contrast","essential-blocks"),value:P,onChange:e=>c({[`${r}ovl_fltrContrast`]:e}),step:1,min:0,max:200}),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Saturation","essential-blocks"),value:T,onChange:e=>c({[`${r}ovl_fltrSaturation`]:e}),step:1,min:0,max:200}),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Hue","essential-blocks"),value:B,onChange:e=>c({[`${r}ovl_fltrHue`]:e}),step:1,min:0,max:360}))),"hover"===p&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.BaseControl,{label:(0,t.__)("Overlay Type","essential-blocks")},(0,e.createElement)(i.ButtonGroup,{id:"eb-background-control-new"},[{label:"Classic",value:"classic"},{label:"Gradient",value:"gradient"}].map(((t,a)=>{let{value:n,label:s}=t;return(0,e.createElement)(i.Button,{key:a,isPrimary:oe===n,isSecondary:oe!==n,onClick:()=>c({[`hov_${r}overlayType`]:n})},s)})))),"classic"===oe&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(m,{label:(0,t.__)("Overlay Color","essential-blocks"),color:le,onChange:e=>c({[`hov_${r}overlayColor`]:e})}),!1===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.BaseControl,{label:(0,t.__)("Overlay Image","essential-blocks")}),(0,e.createElement)(s.MediaUpload,{onSelect:e=>{let{url:t,id:a}=e;return c({[`hov_${r}ovl_bgImageURL`]:t,[`hov_${r}ovl_bgImageID`]:a})},type:"image",value:fe,render:a=>{let{open:n}=a;return!ue&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.Button,{className:"eb-background-control-inspector-panel-img-btn components-button",label:(0,t.__)("Upload Image","essential-blocks"),icon:"format-image",onClick:n}),(0,e.createElement)("span",{style:{padding:"10px 0",display:"block"}}))}}),ue&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(g,{imageUrl:ue,onDeleteImage:()=>c({[`hov_${r}ovl_bgImageURL`]:null})}),"Desktop"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ge,{resRequiredProps:n,label:"Position"},(0,e.createElement)(i.SelectControl,{value:Oe,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Center Center","essential-blocks"),value:"center center"},{label:(0,t.__)("Center Left","essential-blocks"),value:"center left"},{label:(0,t.__)("Center Right","essential-blocks"),value:"center right"},{label:(0,t.__)("Top Center","essential-blocks"),value:"top center"},{label:(0,t.__)("Top Left","essential-blocks"),value:"top left"},{label:(0,t.__)("Top Right","essential-blocks"),value:"top right"},{label:(0,t.__)("Bottom Center","essential-blocks"),value:"bottom center"},{label:(0,t.__)("Bottom Left","essential-blocks"),value:"bottom left"},{label:(0,t.__)("Bottom Right","essential-blocks"),value:"bottom right"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`hov_${r}ovl_bgImgPos`]:e})})),"custom"===Oe&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:Me,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_${r}ovl_bgImgcustomPosXUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"X Position"},(0,e.createElement)(i.RangeControl,{value:Ee,min:0,max:"px"===Me?2e3:100,onChange:e=>c({[`hov_${r}ovl_bgImgcustomPosX`]:e})})),(0,e.createElement)(h,{selectedUnit:Pe,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_${r}ovl_bgImgcustomPosYUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Y Position"},(0,e.createElement)(i.RangeControl,{value:$e,min:0,max:"px"===Pe?2e3:100,step:"px"===Pe?1:.1,onChange:e=>c({[`hov_${r}ovl_bgImgcustomPosY`]:e})}))),(0,e.createElement)(i.SelectControl,{label:"Attachment",value:he,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Scroll","essential-blocks"),value:"scroll"},{label:(0,t.__)("Fixed","essential-blocks"),value:"fixed"}],onChange:e=>c({[`hov_${r}ovl_bgImgAttachment`]:e})}),"fixed"===he&&(0,e.createElement)("p",{style:{marginTop:"-10px",paddingBottom:"10px"}},(0,e.createElement)("i",null,"Note: Attachment Fixed works only on desktop.")),(0,e.createElement)(ge,{resRequiredProps:n,label:"Repeat"},(0,e.createElement)(i.SelectControl,{value:Te,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("No-repeat","essential-blocks"),value:"no-repeat"},{label:(0,t.__)("Repeat","essential-blocks"),value:"repeat"},{label:(0,t.__)("Repeat-x","essential-blocks"),value:"repeat-x"},{label:(0,t.__)("Repeat-y","essential-blocks"),value:"repeat-y"}],onChange:e=>c({[`hov_${r}ovl_bgImgRepeat`]:e})})),(0,e.createElement)(ge,{resRequiredProps:n,label:"Size"},(0,e.createElement)(i.SelectControl,{value:we,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Auto","essential-blocks"),value:"auto"},{label:(0,t.__)("Cover","essential-blocks"),value:"cover"},{label:(0,t.__)("Contain","essential-blocks"),value:"contain"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`hov_${r}ovl_backgroundSize`]:e})})),"custom"===we&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:_e,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_${r}ovl_bgImgCustomSizeUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Width"},(0,e.createElement)(i.RangeControl,{value:ke,min:0,max:"px"===_e?2e3:100,step:"px"===_e?1:.1,onChange:e=>c({[`hov_${r}ovl_bgImgCustomSize`]:e})})))),"Tablet"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ge,{resRequiredProps:n,label:"Position"},(0,e.createElement)(i.SelectControl,{value:Ie,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Center Center","essential-blocks"),value:"center center"},{label:(0,t.__)("Center Left","essential-blocks"),value:"center left"},{label:(0,t.__)("Center Right","essential-blocks"),value:"center right"},{label:(0,t.__)("Top Center","essential-blocks"),value:"top center"},{label:(0,t.__)("Top Left","essential-blocks"),value:"top left"},{label:(0,t.__)("Top Right","essential-blocks"),value:"top right"},{label:(0,t.__)("Bottom Center","essential-blocks"),value:"bottom center"},{label:(0,t.__)("Bottom Left","essential-blocks"),value:"bottom left"},{label:(0,t.__)("Bottom Right","essential-blocks"),value:"bottom right"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`hov_TAB${r}ovl_bgImgPos`]:e})})),"custom"===Ie&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:Ne,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_TAB${r}ovl_bgImgcustomPosXUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"X Position"},(0,e.createElement)(i.RangeControl,{value:De,min:0,max:"px"===Ne?2e3:100,onChange:e=>c({[`hov_TAB${r}ovl_bgImgcustomPosX`]:e})})),(0,e.createElement)(h,{selectedUnit:Fe,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_TAB${r}ovl_bgImgcustomPosYUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Y Position"},(0,e.createElement)(i.RangeControl,{value:Le,min:0,max:"px"===Fe?2e3:100,step:"px"===Fe?1:.1,onChange:e=>c({[`hov_TAB${r}ovl_bgImgcustomPosY`]:e})}))),(0,e.createElement)(i.SelectControl,{label:"Attachment",value:he,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Scroll","essential-blocks"),value:"scroll"},{label:(0,t.__)("Fixed","essential-blocks"),value:"fixed"}],onChange:e=>c({[`hov_${r}ovl_bgImgAttachment`]:e})}),"fixed"===he&&(0,e.createElement)("p",{style:{marginTop:"-10px",paddingBottom:"10px"}},(0,e.createElement)("i",null,"Note: Attachment Fixed works only on desktop.")),(0,e.createElement)(ge,{resRequiredProps:n,label:"Repeat"},(0,e.createElement)(i.SelectControl,{value:ze,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("No-repeat","essential-blocks"),value:"no-repeat"},{label:(0,t.__)("Repeat","essential-blocks"),value:"repeat"},{label:(0,t.__)("Repeat-x","essential-blocks"),value:"repeat-x"},{label:(0,t.__)("Repeat-y","essential-blocks"),value:"repeat-y"}],onChange:e=>c({[`hov_TAB${r}ovl_bgImgRepeat`]:e})})),(0,e.createElement)(ge,{resRequiredProps:n,label:"Size"},(0,e.createElement)(i.SelectControl,{value:Ae,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Auto","essential-blocks"),value:"auto"},{label:(0,t.__)("Cover","essential-blocks"),value:"cover"},{label:(0,t.__)("Contain","essential-blocks"),value:"contain"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`hov_TAB${r}ovl_backgroundSize`]:e})})),"custom"===Ae&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:Re,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_TAB${r}ovl_bgImgCustomSizeUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Width"},(0,e.createElement)(i.RangeControl,{value:Be,min:0,max:"px"===Re?2e3:100,step:"px"===Re?1:.1,onChange:e=>c({[`hov_TAB${r}ovl_bgImgCustomSize`]:e})})))),"Mobile"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ge,{resRequiredProps:n,label:"Position"},(0,e.createElement)(i.SelectControl,{value:Ge,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Center Center","essential-blocks"),value:"center center"},{label:(0,t.__)("Center Left","essential-blocks"),value:"center left"},{label:(0,t.__)("Center Right","essential-blocks"),value:"center right"},{label:(0,t.__)("Top Center","essential-blocks"),value:"top center"},{label:(0,t.__)("Top Left","essential-blocks"),value:"top left"},{label:(0,t.__)("Top Right","essential-blocks"),value:"top right"},{label:(0,t.__)("Bottom Center","essential-blocks"),value:"bottom center"},{label:(0,t.__)("Bottom Left","essential-blocks"),value:"bottom left"},{label:(0,t.__)("Bottom Right","essential-blocks"),value:"bottom right"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`hov_MOB${r}ovl_bgImgPos`]:e})})),"custom"===Ge&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:We,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_MOB${r}ovl_bgImgcustomPosXUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"X Position"},(0,e.createElement)(i.RangeControl,{value:je,min:0,max:"px"===We?2e3:100,onChange:e=>c({[`hov_MOB${r}ovl_bgImgcustomPosX`]:e})})),(0,e.createElement)(h,{selectedUnit:Ze,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_MOB${r}ovl_bgImgcustomPosYUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Y Position"},(0,e.createElement)(i.RangeControl,{value:qe,min:0,max:"px"===Ze?2e3:100,step:"px"===Ze?1:.1,onChange:e=>c({[`hov_MOB${r}ovl_bgImgcustomPosY`]:e})}))),(0,e.createElement)(i.SelectControl,{label:"Attachment",value:he,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Scroll","essential-blocks"),value:"scroll"},{label:(0,t.__)("Fixed","essential-blocks"),value:"fixed"}],onChange:e=>c({[`hov_${r}ovl_bgImgAttachment`]:e})}),"fixed"===he&&(0,e.createElement)("p",{style:{marginTop:"-10px",paddingBottom:"10px"}},(0,e.createElement)("i",null,"Note: Attachment Fixed works only on desktop.")),(0,e.createElement)(ge,{resRequiredProps:n,label:"Repeat"},(0,e.createElement)(i.SelectControl,{value:Qe,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("No-repeat","essential-blocks"),value:"no-repeat"},{label:(0,t.__)("Repeat","essential-blocks"),value:"repeat"},{label:(0,t.__)("Repeat-x","essential-blocks"),value:"repeat-x"},{label:(0,t.__)("Repeat-y","essential-blocks"),value:"repeat-y"}],onChange:e=>c({[`hov_MOB${r}ovl_bgImgRepeat`]:e})})),(0,e.createElement)(ge,{resRequiredProps:n,label:"Size"},(0,e.createElement)(i.SelectControl,{value:Ve,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Auto","essential-blocks"),value:"auto"},{label:(0,t.__)("Cover","essential-blocks"),value:"cover"},{label:(0,t.__)("Contain","essential-blocks"),value:"contain"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`hov_MOB${r}ovl_backgroundSize`]:e})})),"custom"===Ve&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:He,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_MOB${r}ovl_bgImgCustomSizeUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Width"},(0,e.createElement)(i.RangeControl,{value:Ue,min:0,max:"px"===He?2e3:100,step:"px"===He?1:.1,onChange:e=>c({[`hov_MOB${r}ovl_bgImgCustomSize`]:e})}))))))),"gradient"===oe&&(0,e.createElement)(f,{gradientColor:ce,onChange:e=>c({[`hov_${r}overlayGradient`]:e})}),(0,e.createElement)("hr",null),!l&&(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Overlay Transition","essential-blocks"),value:b,min:0,max:5,step:.1,onChange:e=>c({[`${r}ovl_bg_transition`]:e})}),(0,e.createElement)("hr",null),(0,e.createElement)(be,{onReset:()=>c({[`hov_${r}ovl_opacity`]:void 0})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Opacity","essential-blocks"),value:de,onChange:e=>c({[`hov_${r}ovl_opacity`]:e}),step:.01,min:0,max:1})),!l&&de&&(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Opacity Transition","essential-blocks"),value:v,onChange:e=>c({[`${r}ovl_opacityTransition`]:e}),step:.01,min:0,max:5}),(0,e.createElement)("hr",null),(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Blend Mode","essential-blocks"),value:pe,options:[{label:(0,t.__)("Normal","essential-blocks"),value:""},{label:(0,t.__)("multiply","essential-blocks"),value:"multiply"},{label:(0,t.__)("screen","essential-blocks"),value:"screen"},{label:(0,t.__)("overlay","essential-blocks"),value:"overlay"},{label:(0,t.__)("darken","essential-blocks"),value:"darken"},{label:(0,t.__)("lighten","essential-blocks"),value:"lighten"},{label:(0,t.__)("color-dodge","essential-blocks"),value:"Color Dodge"},{label:(0,t.__)("saturation","essential-blocks"),value:"saturation"},{label:(0,t.__)("color","essential-blocks"),value:"color"},{label:(0,t.__)("luminosity","essential-blocks"),value:"luminosity"}],onChange:e=>c({[`hov_${r}ovl_blendMode`]:e})}),(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("CSS Filters","essential-blocks"),checked:me,onChange:()=>c({[`hov_${r}ovl_allowFilters`]:!me})}),me&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Blur","essential-blocks"),value:Ce,onChange:e=>c({[`hov_${r}ovl_fltrBlur`]:e}),step:.1,min:0,max:10}),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Brightness","essential-blocks"),value:ye,onChange:e=>c({[`hov_${r}ovl_fltrBrightness`]:e}),step:1,min:0,max:200}),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Contrast","essential-blocks"),value:ve,onChange:e=>c({[`hov_${r}ovl_fltrContrast`]:e}),step:1,min:0,max:200}),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Saturation","essential-blocks"),value:xe,onChange:e=>c({[`hov_${r}ovl_fltrSaturation`]:e}),step:1,min:0,max:200}),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Hue","essential-blocks"),value:Se,onChange:e=>c({[`hov_${r}ovl_fltrHue`]:e}),step:1,min:0,max:360}),(0,e.createElement)("hr",null),!l&&(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Css Filters Transition","essential-blocks"),value:y,onChange:e=>c({[`${r}ovl_filtersTransition`]:e}),step:.01,min:0,max:5}))))}function ve(a){let{resRequiredProps:n,controlName:r,noMainBgi:o,noTransition:l}=a;const{setAttributes:c,attributes:u,resOption:d}=n,{[`${r}bg_hoverType`]:p="normal",[`${r}bg_transition`]:b,[`${r}backgroundType`]:y="classic",[`${r}backgroundColor`]:v,[`${r}gradientColor`]:x,[`${r}bgImageURL`]:C,[`${r}bgImageID`]:S,[`${r}bgImgAttachment`]:w,[`${r}backgroundSize`]:k,[`${r}bgImgCustomSize`]:_,[`${r}bgImgCustomSizeUnit`]:O,[`${r}bgImgPos`]:E,[`${r}bgImgcustomPosX`]:M,[`${r}bgImgcustomPosXUnit`]:$,[`${r}bgImgcustomPosY`]:P,[`${r}bgImgcustomPosYUnit`]:T,[`${r}bgImgRepeat`]:A,[`TAB${r}backgroundSize`]:B,[`TAB${r}bgImgCustomSize`]:R,[`TAB${r}bgImgCustomSizeUnit`]:I,[`TAB${r}bgImgPos`]:D,[`TAB${r}bgImgcustomPosX`]:N,[`TAB${r}bgImgcustomPosXUnit`]:L,[`TAB${r}bgImgcustomPosY`]:F,[`TAB${r}bgImgcustomPosYUnit`]:z,[`TAB${r}bgImgRepeat`]:V,[`MOB${r}backgroundSize`]:U,[`MOB${r}bgImgCustomSize`]:H,[`MOB${r}bgImgCustomSizeUnit`]:G,[`MOB${r}bgImgPos`]:j,[`MOB${r}bgImgcustomPosX`]:W,[`MOB${r}bgImgcustomPosXUnit`]:q,[`MOB${r}bgImgcustomPosY`]:Z,[`MOB${r}bgImgcustomPosYUnit`]:Q,[`MOB${r}bgImgRepeat`]:X,[`hov_${r}backgroundType`]:K,[`hov_${r}backgroundColor`]:Y,[`hov_${r}gradientColor`]:J,[`hov_${r}bgImageURL`]:ee,[`hov_${r}bgImageID`]:te,[`hov_${r}bgImgAttachment`]:ae,[`hov_${r}backgroundSize`]:ne,[`hov_${r}bgImgCustomSize`]:ie,[`hov_${r}bgImgCustomSizeUnit`]:se,[`hov_${r}bgImgPos`]:re,[`hov_${r}bgImgcustomPosX`]:oe,[`hov_${r}bgImgcustomPosXUnit`]:le,[`hov_${r}bgImgcustomPosY`]:ce,[`hov_${r}bgImgcustomPosYUnit`]:ue,[`hov_${r}bgImgRepeat`]:fe,[`hov_TAB${r}backgroundSize`]:he,[`hov_TAB${r}bgImgCustomSize`]:de,[`hov_TAB${r}bgImgCustomSizeUnit`]:pe,[`hov_TAB${r}bgImgPos`]:me,[`hov_TAB${r}bgImgcustomPosX`]:be,[`hov_TAB${r}bgImgcustomPosXUnit`]:ye,[`hov_TAB${r}bgImgcustomPosY`]:ve,[`hov_TAB${r}bgImgcustomPosYUnit`]:xe,[`hov_TAB${r}bgImgRepeat`]:Ce,[`hov_MOB${r}backgroundSize`]:Se,[`hov_MOB${r}bgImgCustomSize`]:we,[`hov_MOB${r}bgImgCustomSizeUnit`]:ke,[`hov_MOB${r}bgImgPos`]:_e,[`hov_MOB${r}bgImgcustomPosX`]:Oe,[`hov_MOB${r}bgImgcustomPosXUnit`]:Ee,[`hov_MOB${r}bgImgcustomPosY`]:Me,[`hov_MOB${r}bgImgcustomPosYUnit`]:$e,[`hov_MOB${r}bgImgRepeat`]:Pe}=u;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.BaseControl,null,(0,e.createElement)(i.ButtonGroup,null,[{label:(0,t.__)("Normal","essential-blocks"),value:"normal"},{label:(0,t.__)("Hover","essential-blocks"),value:"hover"}].map(((t,a)=>{let{value:n,label:s}=t;return(0,e.createElement)(i.Button,{key:a,isPrimary:p===n,isSecondary:p!==n,onClick:()=>c({[`${r}bg_hoverType`]:n})},s)})))),"normal"===p&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.BaseControl,{label:(0,t.__)("Background Type","essential-blocks")},(0,e.createElement)(i.ButtonGroup,null,[{label:(0,t.__)("Classic","essential-blocks"),value:"classic"},{label:(0,t.__)("Gradient","essential-blocks"),value:"gradient"}].map(((t,a)=>{let{value:n,label:s}=t;return(0,e.createElement)(i.Button,{key:a,isPrimary:y===n,isSecondary:y!==n,onClick:()=>c({[`${r}backgroundType`]:n})},s)})))),"classic"===y&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(m,{label:(0,t.__)("Background Color","essential-blocks"),color:v,onChange:e=>c({[`${r}backgroundColor`]:e})}),!1===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.BaseControl,{label:(0,t.__)("Background Image","essential-blocks")}),(0,e.createElement)(s.MediaUpload,{onSelect:e=>{let{url:t,id:a}=e;return c({[`${r}bgImageURL`]:t,[`${r}bgImageID`]:a})},type:"image",value:S,render:a=>{let{open:n}=a;return!C&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.Button,{className:"eb-background-control-inspector-panel-img-btn components-button",label:(0,t.__)("Upload Image","essential-blocks"),icon:"format-image",onClick:n}),(0,e.createElement)("span",{style:{padding:"10px 0",display:"block"}}))}}),C&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(g,{imageUrl:C,onDeleteImage:()=>c({[`${r}bgImageURL`]:null})}),"Desktop"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ge,{resRequiredProps:n,label:"Position"},(0,e.createElement)(i.SelectControl,{value:E,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Center Center","essential-blocks"),value:"center center"},{label:(0,t.__)("Center Left","essential-blocks"),value:"center left"},{label:(0,t.__)("Center Right","essential-blocks"),value:"center right"},{label:(0,t.__)("Top Center","essential-blocks"),value:"top center"},{label:(0,t.__)("Top Left","essential-blocks"),value:"top left"},{label:(0,t.__)("Top Right","essential-blocks"),value:"top right"},{label:(0,t.__)("Bottom Center","essential-blocks"),value:"bottom center"},{label:(0,t.__)("Bottom Left","essential-blocks"),value:"bottom left"},{label:(0,t.__)("Bottom Right","essential-blocks"),value:"bottom right"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`${r}bgImgPos`]:e})})),"custom"===E&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:$,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`${r}bgImgcustomPosXUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"X Position"},(0,e.createElement)(i.RangeControl,{value:M,min:-2e3,max:2e3,onChange:e=>c({[`${r}bgImgcustomPosX`]:e})})),(0,e.createElement)(h,{selectedUnit:T,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`${r}bgImgcustomPosYUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Y Position"},(0,e.createElement)(i.RangeControl,{value:P,min:-2e3,max:2e3,step:"px"===T?1:.1,onChange:e=>c({[`${r}bgImgcustomPosY`]:e})}))),(0,e.createElement)(i.SelectControl,{label:"Attachment",value:w,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Scroll","essential-blocks"),value:"scroll"},{label:(0,t.__)("Fixed","essential-blocks"),value:"fixed"}],onChange:e=>c({[`${r}bgImgAttachment`]:e})}),"fixed"===w&&(0,e.createElement)("p",{style:{marginTop:"-10px",paddingBottom:"10px"}},(0,e.createElement)("i",null,"Note: Attachment Fixed works only on desktop.")),(0,e.createElement)(ge,{resRequiredProps:n,label:"Repeat"},(0,e.createElement)(i.SelectControl,{value:A,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("No-repeat","essential-blocks"),value:"no-repeat"},{label:(0,t.__)("Repeat","essential-blocks"),value:"repeat"},{label:(0,t.__)("Repeat-x","essential-blocks"),value:"repeat-x"},{label:(0,t.__)("Repeat-y","essential-blocks"),value:"repeat-y"}],onChange:e=>c({[`${r}bgImgRepeat`]:e})})),(0,e.createElement)(ge,{resRequiredProps:n,label:"Size"},(0,e.createElement)(i.SelectControl,{value:k,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Auto","essential-blocks"),value:"auto"},{label:(0,t.__)("Cover","essential-blocks"),value:"cover"},{label:(0,t.__)("Contain","essential-blocks"),value:"contain"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`${r}backgroundSize`]:e})})),"custom"===k&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:O,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`${r}bgImgCustomSizeUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Width"},(0,e.createElement)(i.RangeControl,{value:_,min:0,max:"px"===O?2e3:100,step:"px"===O?1:.1,onChange:e=>c({[`${r}bgImgCustomSize`]:e})})))),"Tablet"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ge,{resRequiredProps:n,label:"Position"},(0,e.createElement)(i.SelectControl,{value:D,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Center Center","essential-blocks"),value:"center center"},{label:(0,t.__)("Center Left","essential-blocks"),value:"center left"},{label:(0,t.__)("Center Right","essential-blocks"),value:"center right"},{label:(0,t.__)("Top Center","essential-blocks"),value:"top center"},{label:(0,t.__)("Top Left","essential-blocks"),value:"top left"},{label:(0,t.__)("Top Right","essential-blocks"),value:"top right"},{label:(0,t.__)("Bottom Center","essential-blocks"),value:"bottom center"},{label:(0,t.__)("Bottom Left","essential-blocks"),value:"bottom left"},{label:(0,t.__)("Bottom Right","essential-blocks"),value:"bottom right"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`TAB${r}bgImgPos`]:e})})),"custom"===D&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:L,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`TAB${r}bgImgcustomPosXUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"X Position"},(0,e.createElement)(i.RangeControl,{value:N,min:0,max:"px"===L?2e3:100,onChange:e=>c({[`TAB${r}bgImgcustomPosX`]:e})})),(0,e.createElement)(h,{selectedUnit:z,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`TAB${r}bgImgcustomPosYUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Y Position"},(0,e.createElement)(i.RangeControl,{value:F,min:0,max:"px"===z?2e3:100,step:"px"===z?1:.1,onChange:e=>c({[`TAB${r}bgImgcustomPosY`]:e})}))),(0,e.createElement)(i.SelectControl,{label:"Attachment",value:w,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Scroll","essential-blocks"),value:"scroll"},{label:(0,t.__)("Fixed","essential-blocks"),value:"fixed"}],onChange:e=>c({[`${r}bgImgAttachment`]:e})}),"fixed"===w&&(0,e.createElement)("p",{style:{marginTop:"-10px",paddingBottom:"10px"}},(0,e.createElement)("i",null,"Note: Attachment Fixed works only on desktop.")),(0,e.createElement)(ge,{resRequiredProps:n,label:"Repeat"},(0,e.createElement)(i.SelectControl,{value:V,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("No-repeat","essential-blocks"),value:"no-repeat"},{label:(0,t.__)("Repeat","essential-blocks"),value:"repeat"},{label:(0,t.__)("Repeat-x","essential-blocks"),value:"repeat-x"},{label:(0,t.__)("Repeat-y","essential-blocks"),value:"repeat-y"}],onChange:e=>c({[`TAB${r}bgImgRepeat`]:e})})),(0,e.createElement)(ge,{resRequiredProps:n,label:"Size"},(0,e.createElement)(i.SelectControl,{value:B,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Auto","essential-blocks"),value:"auto"},{label:(0,t.__)("Cover","essential-blocks"),value:"cover"},{label:(0,t.__)("Contain","essential-blocks"),value:"contain"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`TAB${r}backgroundSize`]:e})})),"custom"===B&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:I,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`TAB${r}bgImgCustomSizeUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Width"},(0,e.createElement)(i.RangeControl,{value:R,min:0,max:"px"===I?2e3:100,step:"px"===I?1:.1,onChange:e=>c({[`TAB${r}bgImgCustomSize`]:e})})))),"Mobile"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ge,{resRequiredProps:n,label:"Position"},(0,e.createElement)(i.SelectControl,{value:j,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Center Center","essential-blocks"),value:"center center"},{label:(0,t.__)("Center Left","essential-blocks"),value:"center left"},{label:(0,t.__)("Center Right","essential-blocks"),value:"center right"},{label:(0,t.__)("Top Center","essential-blocks"),value:"top center"},{label:(0,t.__)("Top Left","essential-blocks"),value:"top left"},{label:(0,t.__)("Top Right","essential-blocks"),value:"top right"},{label:(0,t.__)("Bottom Center","essential-blocks"),value:"bottom center"},{label:(0,t.__)("Bottom Left","essential-blocks"),value:"bottom left"},{label:(0,t.__)("Bottom Right","essential-blocks"),value:"bottom right"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`MOB${r}bgImgPos`]:e})})),"custom"===j&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:q,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`MOB${r}bgImgcustomPosXUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"X Position"},(0,e.createElement)(i.RangeControl,{value:W,min:0,max:"px"===q?2e3:100,onChange:e=>c({[`MOB${r}bgImgcustomPosX`]:e})})),(0,e.createElement)(h,{selectedUnit:Q,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`MOB${r}bgImgcustomPosYUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Y Position"},(0,e.createElement)(i.RangeControl,{value:Z,min:0,max:"px"===Q?2e3:100,step:"px"===Q?1:.1,onChange:e=>c({[`MOB${r}bgImgcustomPosY`]:e})}))),(0,e.createElement)(i.SelectControl,{label:"Attachment",value:w,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Scroll","essential-blocks"),value:"scroll"},{label:(0,t.__)("Fixed","essential-blocks"),value:"fixed"}],onChange:e=>c({[`${r}bgImgAttachment`]:e})}),"fixed"===w&&(0,e.createElement)("p",{style:{marginTop:"-10px",paddingBottom:"10px"}},(0,e.createElement)("i",null,"Note: Attachment Fixed works only on desktop.")),(0,e.createElement)(ge,{resRequiredProps:n,label:"Repeat"},(0,e.createElement)(i.SelectControl,{value:X,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("No-repeat","essential-blocks"),value:"no-repeat"},{label:(0,t.__)("Repeat","essential-blocks"),value:"repeat"},{label:(0,t.__)("Repeat-x","essential-blocks"),value:"repeat-x"},{label:(0,t.__)("Repeat-y","essential-blocks"),value:"repeat-y"}],onChange:e=>c({[`MOB${r}bgImgRepeat`]:e})})),(0,e.createElement)(ge,{resRequiredProps:n,label:"Size"},(0,e.createElement)(i.SelectControl,{value:U,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Auto","essential-blocks"),value:"auto"},{label:(0,t.__)("Cover","essential-blocks"),value:"cover"},{label:(0,t.__)("Contain","essential-blocks"),value:"contain"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`MOB${r}backgroundSize`]:e})})),"custom"===U&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:G,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`MOB${r}bgImgCustomSizeUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Width"},(0,e.createElement)(i.RangeControl,{value:H,min:0,max:"px"===G?2e3:100,step:"px"===G?1:.1,onChange:e=>c({[`MOB${r}bgImgCustomSize`]:e})}))))))),"gradient"===y&&(0,e.createElement)(f,{gradientColor:x,onChange:e=>c({[`${r}gradientColor`]:e})})),"hover"===p&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.BaseControl,{label:(0,t.__)("Background Type","essential-blocks")},(0,e.createElement)(i.ButtonGroup,null,[{label:(0,t.__)("Classic","essential-blocks"),value:"classic"},{label:(0,t.__)("Gradient","essential-blocks"),value:"gradient"}].map(((t,a)=>{let{value:n,label:s}=t;return(0,e.createElement)(i.Button,{key:a,isPrimary:K===n,isSecondary:K!==n,onClick:()=>c({[`hov_${r}backgroundType`]:n})},s)})))),"classic"===K&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(m,{label:(0,t.__)("Background Color","essential-blocks"),color:Y,onChange:e=>c({[`hov_${r}backgroundColor`]:e})}),!1===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.BaseControl,{label:(0,t.__)("Background Image","essential-blocks")}),(0,e.createElement)(s.MediaUpload,{onSelect:e=>{let{url:t,id:a}=e;return c({[`hov_${r}bgImageURL`]:t,[`hov_${r}bgImageID`]:a})},type:"image",value:te,render:a=>{let{open:n}=a;return!ee&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.Button,{className:"eb-background-control-inspector-panel-img-btn components-button",label:(0,t.__)("Upload Image","essential-blocks"),icon:"format-image",onClick:n}),(0,e.createElement)("span",{style:{padding:"10px 0",display:"block"}}))}}),ee&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(g,{imageUrl:ee,onDeleteImage:()=>c({[`hov_${r}bgImageURL`]:null})}),"Desktop"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ge,{resRequiredProps:n,label:"Position"},(0,e.createElement)(i.SelectControl,{value:re,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Center Center","essential-blocks"),value:"center center"},{label:(0,t.__)("Center Left","essential-blocks"),value:"center left"},{label:(0,t.__)("Center Right","essential-blocks"),value:"center right"},{label:(0,t.__)("Top Center","essential-blocks"),value:"top center"},{label:(0,t.__)("Top Left","essential-blocks"),value:"top left"},{label:(0,t.__)("Top Right","essential-blocks"),value:"top right"},{label:(0,t.__)("Bottom Center","essential-blocks"),value:"bottom center"},{label:(0,t.__)("Bottom Left","essential-blocks"),value:"bottom left"},{label:(0,t.__)("Bottom Right","essential-blocks"),value:"bottom right"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`hov_${r}bgImgPos`]:e})})),"custom"===re&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:le,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_${r}bgImgcustomPosXUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"X Position"},(0,e.createElement)(i.RangeControl,{value:oe,min:0,max:"px"===le?2e3:100,onChange:e=>c({[`hov_${r}bgImgcustomPosX`]:e})})),(0,e.createElement)(h,{selectedUnit:ue,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_${r}bgImgcustomPosYUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Y Position"},(0,e.createElement)(i.RangeControl,{value:ce,min:0,max:"px"===ue?2e3:100,step:"px"===ue?1:.1,onChange:e=>c({[`hov_${r}bgImgcustomPosY`]:e})}))),(0,e.createElement)(i.SelectControl,{label:"Attachment",value:ae,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Scroll","essential-blocks"),value:"scroll"},{label:(0,t.__)("Fixed","essential-blocks"),value:"fixed"}],onChange:e=>c({[`hov_${r}bgImgAttachment`]:e})}),"fixed"===ae&&(0,e.createElement)("p",{style:{marginTop:"-10px",paddingBottom:"10px"}},(0,e.createElement)("i",null,"Note: Attachment Fixed works only on desktop.")),(0,e.createElement)(ge,{resRequiredProps:n,label:"Repeat"},(0,e.createElement)(i.SelectControl,{value:fe,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("No-repeat","essential-blocks"),value:"no-repeat"},{label:(0,t.__)("Repeat","essential-blocks"),value:"repeat"},{label:(0,t.__)("Repeat-x","essential-blocks"),value:"repeat-x"},{label:(0,t.__)("Repeat-y","essential-blocks"),value:"repeat-y"}],onChange:e=>c({[`hov_${r}bgImgRepeat`]:e})})),(0,e.createElement)(ge,{resRequiredProps:n,label:"Size"},(0,e.createElement)(i.SelectControl,{value:ne,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Auto","essential-blocks"),value:"auto"},{label:(0,t.__)("Cover","essential-blocks"),value:"cover"},{label:(0,t.__)("Contain","essential-blocks"),value:"contain"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`hov_${r}backgroundSize`]:e})})),"custom"===ne&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:se,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_${r}bgImgCustomSizeUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Width"},(0,e.createElement)(i.RangeControl,{value:ie,min:0,max:"px"===se?2e3:100,step:"px"===se?1:.1,onChange:e=>c({[`hov_${r}bgImgCustomSize`]:e})})))),"Tablet"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ge,{resRequiredProps:n,label:"Position"},(0,e.createElement)(i.SelectControl,{value:me,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Center Center","essential-blocks"),value:"center center"},{label:(0,t.__)("Center Left","essential-blocks"),value:"center left"},{label:(0,t.__)("Center Right","essential-blocks"),value:"center right"},{label:(0,t.__)("Top Center","essential-blocks"),value:"top center"},{label:(0,t.__)("Top Left","essential-blocks"),value:"top left"},{label:(0,t.__)("Top Right","essential-blocks"),value:"top right"},{label:(0,t.__)("Bottom Center","essential-blocks"),value:"bottom center"},{label:(0,t.__)("Bottom Left","essential-blocks"),value:"bottom left"},{label:(0,t.__)("Bottom Right","essential-blocks"),value:"bottom right"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`hov_TAB${r}bgImgPos`]:e})})),"custom"===me&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:ye,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_TAB${r}bgImgcustomPosXUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"X Position"},(0,e.createElement)(i.RangeControl,{value:be,min:0,max:"px"===ye?2e3:100,onChange:e=>c({[`hov_TAB${r}bgImgcustomPosX`]:e})})),(0,e.createElement)(h,{selectedUnit:xe,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_TAB${r}bgImgcustomPosYUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Y Position"},(0,e.createElement)(i.RangeControl,{value:ve,min:0,max:"px"===xe?2e3:100,step:"px"===xe?1:.1,onChange:e=>c({[`hov_TAB${r}bgImgcustomPosY`]:e})}))),(0,e.createElement)(i.SelectControl,{label:"Attachment",value:ae,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Scroll","essential-blocks"),value:"scroll"},{label:(0,t.__)("Fixed","essential-blocks"),value:"fixed"}],onChange:e=>c({[`hov_${r}bgImgAttachment`]:e})}),"fixed"===ae&&(0,e.createElement)("p",{style:{marginTop:"-10px",paddingBottom:"10px"}},(0,e.createElement)("i",null,"Note: Attachment Fixed works only on desktop.")),(0,e.createElement)(ge,{resRequiredProps:n,label:"Repeat"},(0,e.createElement)(i.SelectControl,{value:Ce,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("No-repeat","essential-blocks"),value:"no-repeat"},{label:(0,t.__)("Repeat","essential-blocks"),value:"repeat"},{label:(0,t.__)("Repeat-x","essential-blocks"),value:"repeat-x"},{label:(0,t.__)("Repeat-y","essential-blocks"),value:"repeat-y"}],onChange:e=>c({[`hov_TAB${r}bgImgRepeat`]:e})})),(0,e.createElement)(ge,{resRequiredProps:n,label:"Size"},(0,e.createElement)(i.SelectControl,{value:he,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Auto","essential-blocks"),value:"auto"},{label:(0,t.__)("Cover","essential-blocks"),value:"cover"},{label:(0,t.__)("Contain","essential-blocks"),value:"contain"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`hov_TAB${r}backgroundSize`]:e})})),"custom"===he&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:pe,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_TAB${r}bgImgCustomSizeUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Width"},(0,e.createElement)(i.RangeControl,{value:de,min:0,max:"px"===pe?2e3:100,step:"px"===pe?1:.1,onChange:e=>c({[`hov_TAB${r}bgImgCustomSize`]:e})})))),"Mobile"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ge,{resRequiredProps:n,label:"Position"},(0,e.createElement)(i.SelectControl,{value:_e,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Center Center","essential-blocks"),value:"center center"},{label:(0,t.__)("Center Left","essential-blocks"),value:"center left"},{label:(0,t.__)("Center Right","essential-blocks"),value:"center right"},{label:(0,t.__)("Top Center","essential-blocks"),value:"top center"},{label:(0,t.__)("Top Left","essential-blocks"),value:"top left"},{label:(0,t.__)("Top Right","essential-blocks"),value:"top right"},{label:(0,t.__)("Bottom Center","essential-blocks"),value:"bottom center"},{label:(0,t.__)("Bottom Left","essential-blocks"),value:"bottom left"},{label:(0,t.__)("Bottom Right","essential-blocks"),value:"bottom right"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`hov_MOB${r}bgImgPos`]:e})})),"custom"===_e&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:Ee,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_MOB${r}bgImgcustomPosXUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"X Position"},(0,e.createElement)(i.RangeControl,{value:Oe,min:0,max:"px"===Ee?2e3:100,onChange:e=>c({[`hov_MOB${r}bgImgcustomPosX`]:e})})),(0,e.createElement)(h,{selectedUnit:$e,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_MOB${r}bgImgcustomPosYUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Y Position"},(0,e.createElement)(i.RangeControl,{value:Me,min:0,max:"px"===$e?2e3:100,step:"px"===$e?1:.1,onChange:e=>c({[`hov_MOB${r}bgImgcustomPosY`]:e})}))),(0,e.createElement)(i.SelectControl,{label:"Attachment",value:ae,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Scroll","essential-blocks"),value:"scroll"},{label:(0,t.__)("Fixed","essential-blocks"),value:"fixed"}],onChange:e=>c({[`hov_${r}bgImgAttachment`]:e})}),"fixed"===ae&&(0,e.createElement)("p",{style:{marginTop:"-10px",paddingBottom:"10px"}},(0,e.createElement)("i",null,"Note: Attachment Fixed works only on desktop.")),(0,e.createElement)(ge,{resRequiredProps:n,label:"Repeat"},(0,e.createElement)(i.SelectControl,{value:Pe,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("No-repeat","essential-blocks"),value:"no-repeat"},{label:(0,t.__)("Repeat","essential-blocks"),value:"repeat"},{label:(0,t.__)("Repeat-x","essential-blocks"),value:"repeat-x"},{label:(0,t.__)("Repeat-y","essential-blocks"),value:"repeat-y"}],onChange:e=>c({[`hov_MOB${r}bgImgRepeat`]:e})})),(0,e.createElement)(ge,{resRequiredProps:n,label:"Size"},(0,e.createElement)(i.SelectControl,{value:Se,options:[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Auto","essential-blocks"),value:"auto"},{label:(0,t.__)("Cover","essential-blocks"),value:"cover"},{label:(0,t.__)("Contain","essential-blocks"),value:"contain"},{label:(0,t.__)("Custom","essential-blocks"),value:"custom"}],onChange:e=>c({[`hov_MOB${r}backgroundSize`]:e})})),"custom"===Se&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:ke,unitTypes:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],onClick:e=>c({[`hov_MOB${r}bgImgCustomSizeUnit`]:e})}),(0,e.createElement)(ge,{resRequiredProps:n,label:"Width"},(0,e.createElement)(i.RangeControl,{value:we,min:0,max:"px"===ke?2e3:100,step:"px"===ke?1:.1,onChange:e=>c({[`hov_MOB${r}bgImgCustomSize`]:e})}))))))),"gradient"===K&&(0,e.createElement)(f,{gradientColor:J,onChange:e=>c({[`hov_${r}gradientColor`]:e})}),!l&&(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Background Transition","essential-blocks"),value:b,min:0,max:5,step:.1,onChange:e=>c({[`${r}bg_transition`]:e})})))}function xe(a){let{resRequiredProps:n,controlName:s,noOverlay:r=!1,noMainBgi:o=!1,noOverlayBgi:l=!1,noTransition:c=!1,forButton:u=!1}=a;const{setAttributes:f,attributes:h}=n,{[`${s}isBgOverlay`]:d}=h;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ve,{resRequiredProps:n,controlName:s,noMainBgi:!0===u||o,noTransition:c}),!1===r&&0==u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("hr",null),(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Enable Overlay","essential-blocks"),checked:d,onChange:()=>f({[`${s}isBgOverlay`]:!d})}),d&&(0,e.createElement)(ye,{resRequiredProps:n,controlName:s,noOverlayBgi:l,noTransition:c})))}function Ce(t){let{top:a,right:n,bottom:i,left:s,onChange:r,neededProps:o,disableLeftRight:l}=t;const[c,u]=(0,e.useState)({top:a,right:n,bottom:i,left:s}),{baseLabel:f,resOption:h,forBorderRadius:d,setAttributes:p,dimensionIsLinked:m,controlName:g}=o,[y,v]=(0,e.useState)(m),x=e=>{let{name:t,value:a}=e.target;u(y?{top:a,right:a,bottom:a,left:a}:e=>({...e,[t]:a}))};(0,e.useEffect)((()=>{r(c)}),[c]),(0,e.useEffect)((()=>{p({[`${g}isLinked`]:y});const{top:e}=c;y&&u({top:e,right:e,bottom:e,left:e})}),[y]);const C=()=>{const{editor_type:e}=eb_conditional_localize||{};return"edit-site"===e?(0,b.dispatch)("core/edit-site").__experimentalSetPreviewDeviceType:("edit-post"===e||console.log("---fallen back, please check style handler"),(0,b.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType)};return(0,e.createElement)("div",{className:"dimention-container"},(0,e.createElement)("div",{className:"withResWrapperInDimension"},(0,e.createElement)("div",{className:"dimention-label"},f),(0,e.createElement)("span",{onClick:()=>N({setAttributes:p,setPreviewDeviceType:C()}),className:"typoResButton dashicons dashicons-desktop "+("Desktop"===h?"active":" ")}),(0,e.createElement)("span",{onClick:()=>L({setAttributes:p,setPreviewDeviceType:C()}),className:"typoResButton dashicons dashicons-tablet "+("Tablet"===h?"active":" ")}),(0,e.createElement)("span",{onClick:()=>F({setAttributes:p,setPreviewDeviceType:C()}),className:"typoResButton dashicons dashicons-smartphone "+("Mobile"===h?"active":" ")})),(0,e.createElement)("div",{className:"input-container "+(l?"left-right-disabled":"")},(0,e.createElement)("div",{className:"input-wrapper"},(0,e.createElement)("input",{type:"number",name:"top",value:c.top,onChange:x}),(0,e.createElement)("label",{className:"dimentions-input-label"},d?" ":"Top")),(0,e.createElement)("div",{className:"input-wrapper"},(0,e.createElement)("input",{type:l?"text":"number",name:"right",value:l?void 0:c.right,disabled:!!l,onChange:x}),(0,e.createElement)("label",{className:"dimentions-input-label"},d?" ":"Right")),(0,e.createElement)("div",{className:"input-wrapper"},(0,e.createElement)("input",{type:"number",name:"bottom",value:c.bottom,onChange:x}),(0,e.createElement)("label",{className:"dimentions-input-label"},d?" ":"Bottom")),(0,e.createElement)("div",{className:"input-wrapper"},(0,e.createElement)("input",{type:l?"text":"number",name:"left",value:l?void 0:c.left,disabled:!!l,onChange:x}),(0,e.createElement)("label",{className:"dimentions-input-label"},d?" ":"Left")),(0,e.createElement)("button",{className:"linked-btn components-button is-button dashicons dashicons-"+(y?"admin-links is-primary":"editor-unlink is-default"),onClick:()=>v(!y)})))}function Se(t){let{resRequiredProps:a,controlName:n,baseLabel:i,forBorderRadius:s,disableLeftRight:r=!1}=t;const{attributes:o,setAttributes:l,resOption:c}=a,{[`${n}isLinked`]:u,[`${n}Unit`]:f,[`${n}Top`]:d,[`${n}Right`]:p,[`${n}Bottom`]:m,[`${n}Left`]:g,[`TAB${n}Unit`]:b,[`TAB${n}Top`]:y,[`TAB${n}Right`]:v,[`TAB${n}Bottom`]:x,[`TAB${n}Left`]:C,[`MOB${n}Unit`]:S,[`MOB${n}Top`]:w,[`MOB${n}Right`]:k,[`MOB${n}Bottom`]:_,[`MOB${n}Left`]:O}=o,E=[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],M={resOption:c,baseLabel:i,forBorderRadius:s,setAttributes:l,dimensionIsLinked:u,controlName:n};return(0,e.createElement)(e.Fragment,null,"Desktop"==c&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:f,unitTypes:E,onClick:e=>l({[`${n}Unit`]:e})}),(0,e.createElement)(Ce,{top:d,right:p,bottom:m,left:g,neededProps:M,disableLeftRight:r,onChange:e=>{let{top:t,right:a,bottom:i,left:s}=e;return l({[`${n}Top`]:t,[`${n}Right`]:a,[`${n}Bottom`]:i,[`${n}Left`]:s})}})),"Tablet"==c&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:b,unitTypes:E,onClick:e=>l({[`TAB${n}Unit`]:e})}),(0,e.createElement)(Ce,{top:y,right:v,bottom:x,left:C,neededProps:M,disableLeftRight:r,onChange:e=>{let{top:t,right:a,bottom:i,left:s}=e;return l({[`TAB${n}Top`]:t,[`TAB${n}Right`]:a,[`TAB${n}Bottom`]:i,[`TAB${n}Left`]:s})}})),"Mobile"==c&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:S,unitTypes:E,onClick:e=>l({[`MOB${n}Unit`]:e})}),(0,e.createElement)(Ce,{top:w,right:k,bottom:_,left:O,neededProps:M,disableLeftRight:r,onChange:e=>{let{top:t,right:a,bottom:i,left:s}=e;return l({[`MOB${n}Top`]:t,[`MOB${n}Right`]:a,[`MOB${n}Bottom`]:i,[`MOB${n}Left`]:s})}})))}const we=()=>(0,e.createElement)("svg",{width:"256",height:"256",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{x1:"50%",y1:"-8.333%",x2:"50%",y2:"108.44%",id:"linearGradient-1"},(0,e.createElement)("stop",{stopColor:"#6DC7FF",offset:"0%"}),(0,e.createElement)("stop",{stopColor:"#E6ABFF",offset:"100%"})),(0,e.createElement)("linearGradient",{x1:"50%",y1:"-.962%",x2:"50%",y2:"102.035%",id:"linearGradient-2"},(0,e.createElement)("stop",{stopColor:"#1A6DFF",offset:"0%"}),(0,e.createElement)("stop",{stopColor:"#C822FF",offset:"100%"}))),(0,e.createElement)("g",{id:"Page-1",fill:"none",fillRule:"evenodd"},(0,e.createElement)("g",{id:"eb-icon-accordion"},(0,e.createElement)("path",{d:"M128,0 C91.9749264,0 59.4418701,14.8956537 36.1835498,38.8488312 L203.514459,38.8488312 L203.514459,119.749264 L0.277056277,119.749264 C0.103064935,122.478823 0,125.227221 0,128 C0,130.065732 0.0664935065,132.11484 0.164017316,134.15619 L203.514459,134.15619 L203.514459,215.056623 L34.1732294,215.056623 C57.5468052,240.239931 90.9309784,256 128,256 C198.692571,256 256,198.692571 256,128 C256,57.3074286 198.692571,0 128,0 Z",id:"Path",fill:"url(#linearGradient-1)"}),(0,e.createElement)("polygon",{id:"Path",fill:"url(#linearGradient-2)",fillRule:"nonzero",points:"186.891082 74.2621645 171.979913 74.2621645 171.979913 59.3509957 160.797922 59.3509957 160.797922 74.2621645 145.886753 74.2621645 145.886753 85.4441558 160.797922 85.4441558 160.797922 100.355325 171.979913 100.355325 171.979913 85.4441558 186.891082 85.4441558"}),(0,e.createElement)("rect",{id:"Rectangle",fill:"url(#linearGradient-2)",fillRule:"nonzero",x:"145.887",y:"169.015",width:"41.004",height:"11.183"}),(0,e.createElement)("path",{d:"M128.155152,67.662684 L15.0929177,67.662684 C10.9747532,75.3537662 7.62015584,83.5147359 5.12775758,92.0436364 L128.155152,92.0436364 L128.155152,67.662684 Z",id:"Path",fill:"#E5E5E5"}),(0,e.createElement)("path",{d:"M128.155152,162.415931 L4.68668398,162.415931 C7.05939394,170.933749 10.2887619,179.09361 14.2805887,186.796883 L128.155152,186.796883 L128.155152,162.415931 Z",id:"Path",fill:"#E5E5E5"})))),ke=()=>(0,e.createElement)("svg",{width:"256",height:"156",viewBox:"0 0 256 156",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{x1:"50%",y1:"-.962%",x2:"50%",y2:"102.035%",id:"linearGradient-1"},(0,e.createElement)("stop",{stopColor:"#1A6DFF",offset:"0%"}),(0,e.createElement)("stop",{stopColor:"#C822FF",offset:"100%"}))),(0,e.createElement)("g",{id:"Page-1",fill:"none",fillRule:"evenodd"},(0,e.createElement)("g",{id:"eb-button",fill:"url(#linearGradient-1)",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M15.5151515,0 C6.98484752,0 0,6.98484752 0,15.5151515 L0,124.121212 C0,132.651516 6.98484752,139.636364 15.5151515,139.636364 C15.5151515,141.772726 17.2575767,143.515152 19.3939394,143.515152 C21.5303021,143.515152 23.2727273,141.772726 23.2727273,139.636364 L31.030303,139.636364 C31.030303,141.772726 32.7727282,143.515152 34.9090909,143.515152 C37.0454536,143.515152 38.7878788,141.772726 38.7878788,139.636364 L46.5454545,139.636364 C46.5454545,141.772726 48.2878798,143.515152 50.4242424,143.515152 C52.5606051,143.515152 54.3030303,141.772726 54.3030303,139.636364 L62.0606061,139.636364 C62.0606061,141.772726 63.8030313,143.515152 65.9393939,143.515152 C68.0757566,143.515152 69.8181818,141.772726 69.8181818,139.636364 L77.5757576,139.636364 C77.5757576,141.772726 79.3181828,143.515152 81.4545455,143.515152 C83.5909081,143.515152 85.3333333,141.772726 85.3333333,139.636364 L93.0909091,139.636364 C93.0909091,141.772726 94.8333343,143.515152 96.969697,143.515152 C99.1060596,143.515152 100.848485,141.772726 100.848485,139.636364 L108.606061,139.636364 C108.606061,141.772726 110.348486,143.515152 112.484848,143.515152 C114.621211,143.515152 116.363636,141.772726 116.363636,139.636364 L124.121212,139.636364 C124.121212,141.772726 125.863637,143.515152 128,143.515152 C130.136363,143.515152 131.878788,141.772726 131.878788,139.636364 L139.636364,139.636364 C139.636364,141.772726 141.378789,143.515152 143.515152,143.515152 C145.651514,143.515152 147.393939,141.772726 147.393939,139.636364 L155.151515,139.636364 C155.151515,141.772726 156.89394,143.515152 159.030303,143.515152 C161.166666,143.515152 162.909091,141.772726 162.909091,139.636364 L170.666667,139.636364 C170.666667,141.772726 172.409092,143.515152 174.545455,143.515152 C176.681817,143.515152 178.424242,141.772726 178.424242,139.636364 L186.181818,139.636364 C186.181818,141.772726 187.924243,143.515152 190.060606,143.515152 C192.196969,143.515152 193.939394,141.772726 193.939394,139.636364 L201.69697,139.636364 C201.69697,141.772726 203.439395,143.515152 205.575758,143.515152 C207.71212,143.515152 209.454545,141.772726 209.454545,139.636364 L217.212121,139.636364 C217.212121,141.772726 218.954546,143.515152 221.090909,143.515152 C223.227272,143.515152 224.969697,141.772726 224.969697,139.636364 L232.727273,139.636364 C232.727273,141.772726 234.469698,143.515152 236.606061,143.515152 C238.742423,143.515152 240.484848,141.772726 240.484848,139.636364 C249.015152,139.636364 256,132.651516 256,124.121212 L256,15.5151515 C256,6.98484752 249.015152,0 240.484848,0 L15.5151515,0 Z M15.5151515,7.75757576 L240.484848,7.75757576 C244.818184,7.75757576 248.242424,11.1818201 248.242424,15.5151515 L248.242424,124.121212 C248.242424,128.454547 244.818184,131.878788 240.484848,131.878788 L15.5151515,131.878788 C11.1818201,131.878788 7.75757576,128.454547 7.75757576,124.121212 L7.75757576,15.5151515 C7.75757576,11.1818201 11.1818201,7.75757576 15.5151515,7.75757576 Z M42.6666667,19.3939394 C40.530304,19.3939394 38.7878788,21.1363646 38.7878788,23.2727273 C38.7878788,25.4090899 40.530304,27.1515152 42.6666667,27.1515152 C44.8030293,27.1515152 46.5454545,25.4090899 46.5454545,23.2727273 C46.5454545,21.1363646 44.8030293,19.3939394 42.6666667,19.3939394 Z M58.1818182,19.3939394 C56.0454555,19.3939394 54.3030303,21.1363646 54.3030303,23.2727273 C54.3030303,25.4090899 56.0454555,27.1515152 58.1818182,27.1515152 C60.3181808,27.1515152 62.0606061,25.4090899 62.0606061,23.2727273 C62.0606061,21.1363646 60.3181808,19.3939394 58.1818182,19.3939394 Z M73.6969697,19.3939394 C71.560607,19.3939394 69.8181818,21.1363646 69.8181818,23.2727273 C69.8181818,25.4090899 71.560607,27.1515152 73.6969697,27.1515152 C75.8333324,27.1515152 77.5757576,25.4090899 77.5757576,23.2727273 C77.5757576,21.1363646 75.8333324,19.3939394 73.6969697,19.3939394 Z M89.2121212,19.3939394 C87.0757585,19.3939394 85.3333333,21.1363646 85.3333333,23.2727273 C85.3333333,25.4090899 87.0757585,27.1515152 89.2121212,27.1515152 C91.3484839,27.1515152 93.0909091,25.4090899 93.0909091,23.2727273 C93.0909091,21.1363646 91.3484839,19.3939394 89.2121212,19.3939394 Z M104.727273,19.3939394 C102.59091,19.3939394 100.848485,21.1363646 100.848485,23.2727273 C100.848485,25.4090899 102.59091,27.1515152 104.727273,27.1515152 C106.863635,27.1515152 108.606061,25.4090899 108.606061,23.2727273 C108.606061,21.1363646 106.863635,19.3939394 104.727273,19.3939394 Z M120.242424,19.3939394 C118.106062,19.3939394 116.363636,21.1363646 116.363636,23.2727273 C116.363636,25.4090899 118.106062,27.1515152 120.242424,27.1515152 C122.378787,27.1515152 124.121212,25.4090899 124.121212,23.2727273 C124.121212,21.1363646 122.378787,19.3939394 120.242424,19.3939394 Z M135.757576,19.3939394 C133.621213,19.3939394 131.878788,21.1363646 131.878788,23.2727273 C131.878788,25.4090899 133.621213,27.1515152 135.757576,27.1515152 C137.893938,27.1515152 139.636364,25.4090899 139.636364,23.2727273 C139.636364,21.1363646 137.893938,19.3939394 135.757576,19.3939394 Z M151.272727,19.3939394 C149.136365,19.3939394 147.393939,21.1363646 147.393939,23.2727273 C147.393939,25.4090899 149.136365,27.1515152 151.272727,27.1515152 C153.40909,27.1515152 155.151515,25.4090899 155.151515,23.2727273 C155.151515,21.1363646 153.40909,19.3939394 151.272727,19.3939394 Z M166.787879,19.3939394 C164.651516,19.3939394 162.909091,21.1363646 162.909091,23.2727273 C162.909091,25.4090899 164.651516,27.1515152 166.787879,27.1515152 C168.924241,27.1515152 170.666667,25.4090899 170.666667,23.2727273 C170.666667,21.1363646 168.924241,19.3939394 166.787879,19.3939394 Z M182.30303,19.3939394 C180.166668,19.3939394 178.424242,21.1363646 178.424242,23.2727273 C178.424242,25.4090899 180.166668,27.1515152 182.30303,27.1515152 C184.439393,27.1515152 186.181818,25.4090899 186.181818,23.2727273 C186.181818,21.1363646 184.439393,19.3939394 182.30303,19.3939394 Z M197.818182,19.3939394 C195.681819,19.3939394 193.939394,21.1363646 193.939394,23.2727273 C193.939394,25.4090899 195.681819,27.1515152 197.818182,27.1515152 C199.954544,27.1515152 201.69697,25.4090899 201.69697,23.2727273 C201.69697,21.1363646 199.954544,19.3939394 197.818182,19.3939394 Z M213.333333,19.3939394 C211.196971,19.3939394 209.454545,21.1363646 209.454545,23.2727273 C209.454545,25.4090899 211.196971,27.1515152 213.333333,27.1515152 C215.469696,27.1515152 217.212121,25.4090899 217.212121,23.2727273 C217.212121,21.1363646 215.469696,19.3939394 213.333333,19.3939394 Z M170.30303,55.4090899 C162.106062,55.4090899 156.818184,60.9242415 156.818184,69.8181818 C156.818184,78.7121222 162.045456,84.2272737 170.30303,84.2272737 C178.515153,84.2272737 183.757576,78.7121222 183.757576,69.8181818 C183.757576,60.9242415 178.515153,55.4090899 170.30303,55.4090899 Z M41.2727273,56.1515171 L41.2727273,83.4848504 L54.4090919,83.4848504 C60.2575748,83.4848504 63.9393939,80.3939413 63.9393939,75.6060625 C63.9393939,72.1212121 61.1818201,69.3333333 57.6060625,69.1515152 L57.6060625,68.7878788 C60.499999,68.3939413 62.6969716,65.9090928 62.6969716,62.969697 C62.6969716,58.7272727 59.469696,56.1515171 54.0151505,56.1515171 L41.2727273,56.1515171 Z M70.8636354,56.1515171 L70.8636354,74.0606061 C70.8636354,80.1818182 75.5454565,84.2272737 82.6515161,84.2272737 C89.7424252,84.2272737 94.4090919,80.1818182 94.4090919,74.0606061 L94.4090919,56.1515171 L87.4545455,56.1515171 L87.4545455,73.3181828 C87.4545455,76.499999 85.7272747,78.3636364 82.6515161,78.3636364 C79.560607,78.3636364 77.8181818,76.4848485 77.8181818,73.3181828 L77.8181818,56.1515171 L70.8636354,56.1515171 Z M190.848485,56.1515171 L190.848485,83.4848504 L197.439395,83.4848504 L197.439395,67.9545445 L197.803031,67.9545445 L209.212121,83.4848504 L214.727273,83.4848504 L214.727273,56.1515171 L208.136363,56.1515171 L208.136363,71.5303021 L207.772726,71.5303021 L196.393941,56.1515171 L190.848485,56.1515171 Z M101.318183,56.1666676 L101.318183,61.7424252 L109.196971,61.7424252 L109.196971,83.4848504 L116.121212,83.4848504 L116.121212,61.7424252 L124.015151,61.7424252 L124.015151,56.1666676 L101.318183,56.1666676 Z M129.40909,56.1666676 L129.40909,61.7424252 L137.287878,61.7424252 L137.287878,83.4848504 L144.227274,83.4848504 L144.227274,61.7424252 L152.121212,61.7424252 L152.121212,56.1666676 L129.40909,56.1666676 Z M48.2272737,61.0454536 L52.1666676,61.0454536 C54.530304,61.0454536 55.9242434,62.2272737 55.9242434,64.1818182 C55.9242434,66.1060616 54.439393,67.2878778 51.8939384,67.2878778 L48.2272737,67.2878778 L48.2272737,61.0454536 Z M170.30303,61.1666657 C174.136363,61.1666657 176.681817,64.5454545 176.681817,69.8181818 C176.681817,75.0909091 174.151517,78.4696979 170.30303,78.4696979 C166.424242,78.4696979 163.893938,75.0909091 163.893938,69.8181818 C163.893938,64.5454545 166.454547,61.1666657 170.30303,61.1666657 Z M48.2272737,71.5151515 L52.3939413,71.5151515 C55.2727273,71.5151515 56.8787898,72.7727282 56.8787898,75.0000019 C56.8787898,77.3181828 55.3030322,78.5757595 52.4242424,78.5757595 L48.2272737,78.5757595 L48.2272737,71.5151515 Z M42.6666667,112.484848 C40.530304,112.484848 38.7878788,114.227274 38.7878788,116.363636 C38.7878788,118.499999 40.530304,120.242424 42.6666667,120.242424 C44.8030293,120.242424 46.5454545,118.499999 46.5454545,116.363636 C46.5454545,114.227274 44.8030293,112.484848 42.6666667,112.484848 Z M58.1818182,112.484848 C56.0454555,112.484848 54.3030303,114.227274 54.3030303,116.363636 C54.3030303,118.499999 56.0454555,120.242424 58.1818182,120.242424 C60.3181808,120.242424 62.0606061,118.499999 62.0606061,116.363636 C62.0606061,114.227274 60.3181808,112.484848 58.1818182,112.484848 Z M73.6969697,112.484848 C71.560607,112.484848 69.8181818,114.227274 69.8181818,116.363636 C69.8181818,118.499999 71.560607,120.242424 73.6969697,120.242424 C75.8333324,120.242424 77.5757576,118.499999 77.5757576,116.363636 C77.5757576,114.227274 75.8333324,112.484848 73.6969697,112.484848 Z M89.2121212,112.484848 C87.0757585,112.484848 85.3333333,114.227274 85.3333333,116.363636 C85.3333333,118.499999 87.0757585,120.242424 89.2121212,120.242424 C91.3484839,120.242424 93.0909091,118.499999 93.0909091,116.363636 C93.0909091,114.227274 91.3484839,112.484848 89.2121212,112.484848 Z M104.727273,112.484848 C102.59091,112.484848 100.848485,114.227274 100.848485,116.363636 C100.848485,118.499999 102.59091,120.242424 104.727273,120.242424 C106.863635,120.242424 108.606061,118.499999 108.606061,116.363636 C108.606061,114.227274 106.863635,112.484848 104.727273,112.484848 Z M120.242424,112.484848 C118.106062,112.484848 116.363636,114.227274 116.363636,116.363636 C116.363636,118.499999 118.106062,120.242424 120.242424,120.242424 C122.378787,120.242424 124.121212,118.499999 124.121212,116.363636 C124.121212,114.227274 122.378787,112.484848 120.242424,112.484848 Z M135.757576,112.484848 C133.621213,112.484848 131.878788,114.227274 131.878788,116.363636 C131.878788,118.499999 133.621213,120.242424 135.757576,120.242424 C137.893938,120.242424 139.636364,118.499999 139.636364,116.363636 C139.636364,114.227274 137.893938,112.484848 135.757576,112.484848 Z M151.272727,112.484848 C149.136365,112.484848 147.393939,114.227274 147.393939,116.363636 C147.393939,118.499999 149.136365,120.242424 151.272727,120.242424 C153.40909,120.242424 155.151515,118.499999 155.151515,116.363636 C155.151515,114.227274 153.40909,112.484848 151.272727,112.484848 Z M166.787879,112.484848 C164.651516,112.484848 162.909091,114.227274 162.909091,116.363636 C162.909091,118.499999 164.651516,120.242424 166.787879,120.242424 C168.924241,120.242424 170.666667,118.499999 170.666667,116.363636 C170.666667,114.227274 168.924241,112.484848 166.787879,112.484848 Z M182.30303,112.484848 C180.166668,112.484848 178.424242,114.227274 178.424242,116.363636 C178.424242,118.499999 180.166668,120.242424 182.30303,120.242424 C184.439393,120.242424 186.181818,118.499999 186.181818,116.363636 C186.181818,114.227274 184.439393,112.484848 182.30303,112.484848 Z M197.818182,112.484848 C195.681819,112.484848 193.939394,114.227274 193.939394,116.363636 C193.939394,118.499999 195.681819,120.242424 197.818182,120.242424 C199.954544,120.242424 201.69697,118.499999 201.69697,116.363636 C201.69697,114.227274 199.954544,112.484848 197.818182,112.484848 Z M213.333333,112.484848 C211.196971,112.484848 209.454545,114.227274 209.454545,116.363636 C209.454545,118.499999 211.196971,120.242424 213.333333,120.242424 C215.469696,120.242424 217.212121,118.499999 217.212121,116.363636 C217.212121,114.227274 215.469696,112.484848 213.333333,112.484848 Z M27.1515152,147.393939 C25.0151525,147.393939 23.2727273,149.136365 23.2727273,151.272727 C23.2727273,153.40909 25.0151525,155.151515 27.1515152,155.151515 C29.2878778,155.151515 31.030303,153.40909 31.030303,151.272727 C31.030303,149.136365 29.2878778,147.393939 27.1515152,147.393939 Z M42.6666667,147.393939 C40.530304,147.393939 38.7878788,149.136365 38.7878788,151.272727 C38.7878788,153.40909 40.530304,155.151515 42.6666667,155.151515 C44.8030293,155.151515 46.5454545,153.40909 46.5454545,151.272727 C46.5454545,149.136365 44.8030293,147.393939 42.6666667,147.393939 Z M58.1818182,147.393939 C56.0454555,147.393939 54.3030303,149.136365 54.3030303,151.272727 C54.3030303,153.40909 56.0454555,155.151515 58.1818182,155.151515 C60.3181808,155.151515 62.0606061,153.40909 62.0606061,151.272727 C62.0606061,149.136365 60.3181808,147.393939 58.1818182,147.393939 Z M73.6969697,147.393939 C71.560607,147.393939 69.8181818,149.136365 69.8181818,151.272727 C69.8181818,153.40909 71.560607,155.151515 73.6969697,155.151515 C75.8333324,155.151515 77.5757576,153.40909 77.5757576,151.272727 C77.5757576,149.136365 75.8333324,147.393939 73.6969697,147.393939 Z M89.2121212,147.393939 C87.0757585,147.393939 85.3333333,149.136365 85.3333333,151.272727 C85.3333333,153.40909 87.0757585,155.151515 89.2121212,155.151515 C91.3484839,155.151515 93.0909091,153.40909 93.0909091,151.272727 C93.0909091,149.136365 91.3484839,147.393939 89.2121212,147.393939 Z M104.727273,147.393939 C102.59091,147.393939 100.848485,149.136365 100.848485,151.272727 C100.848485,153.40909 102.59091,155.151515 104.727273,155.151515 C106.863635,155.151515 108.606061,153.40909 108.606061,151.272727 C108.606061,149.136365 106.863635,147.393939 104.727273,147.393939 Z M120.242424,147.393939 C118.106062,147.393939 116.363636,149.136365 116.363636,151.272727 C116.363636,153.40909 118.106062,155.151515 120.242424,155.151515 C122.378787,155.151515 124.121212,153.40909 124.121212,151.272727 C124.121212,149.136365 122.378787,147.393939 120.242424,147.393939 Z M135.757576,147.393939 C133.621213,147.393939 131.878788,149.136365 131.878788,151.272727 C131.878788,153.40909 133.621213,155.151515 135.757576,155.151515 C137.893938,155.151515 139.636364,153.40909 139.636364,151.272727 C139.636364,149.136365 137.893938,147.393939 135.757576,147.393939 Z M151.272727,147.393939 C149.136365,147.393939 147.393939,149.136365 147.393939,151.272727 C147.393939,153.40909 149.136365,155.151515 151.272727,155.151515 C153.40909,155.151515 155.151515,153.40909 155.151515,151.272727 C155.151515,149.136365 153.40909,147.393939 151.272727,147.393939 Z M166.787879,147.393939 C164.651516,147.393939 162.909091,149.136365 162.909091,151.272727 C162.909091,153.40909 164.651516,155.151515 166.787879,155.151515 C168.924241,155.151515 170.666667,153.40909 170.666667,151.272727 C170.666667,149.136365 168.924241,147.393939 166.787879,147.393939 Z M182.30303,147.393939 C180.166668,147.393939 178.424242,149.136365 178.424242,151.272727 C178.424242,153.40909 180.166668,155.151515 182.30303,155.151515 C184.439393,155.151515 186.181818,153.40909 186.181818,151.272727 C186.181818,149.136365 184.439393,147.393939 182.30303,147.393939 Z M197.818182,147.393939 C195.681819,147.393939 193.939394,149.136365 193.939394,151.272727 C193.939394,153.40909 195.681819,155.151515 197.818182,155.151515 C199.954544,155.151515 201.69697,153.40909 201.69697,151.272727 C201.69697,149.136365 199.954544,147.393939 197.818182,147.393939 Z M213.333333,147.393939 C211.196971,147.393939 209.454545,149.136365 209.454545,151.272727 C209.454545,153.40909 211.196971,155.151515 213.333333,155.151515 C215.469696,155.151515 217.212121,153.40909 217.212121,151.272727 C217.212121,149.136365 215.469696,147.393939 213.333333,147.393939 Z M228.848485,147.393939 C226.712122,147.393939 224.969697,149.136365 224.969697,151.272727 C224.969697,153.40909 226.712122,155.151515 228.848485,155.151515 C230.984848,155.151515 232.727273,153.40909 232.727273,151.272727 C232.727273,149.136365 230.984848,147.393939 228.848485,147.393939 Z",id:"Shape"})))),_e=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"eb-countdown",viewBox:"0 0 64 64"},(0,e.createElement)("linearGradient",{id:"SVGID_1__43666",gradientUnits:"userSpaceOnUse",x1:"30",y1:"33",x2:"30",y2:"38.875",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("circle",{cx:"30",cy:"36",r:"4",fill:"url(#SVGID_1__43666)"}),(0,e.createElement)("linearGradient",{id:"SVGID_2__43666",gradientUnits:"userSpaceOnUse",x1:"30",y1:"5.5",x2:"30",y2:"59.058",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M30,18c-9.925,0-18,8.075-18,18s8.075,18,18,18s18-8.075,18-18S39.925,18,30,18z M45.949,37 c-0.228,3.658-1.683,6.98-3.968,9.567l-1.375-1.375l-1.414,1.414l1.375,1.375c-2.587,2.285-5.91,3.74-9.568,3.968V50h-2v1.949 c-3.658-0.228-6.981-1.683-9.568-3.968l1.375-1.375l-1.414-1.414l-1.375,1.375c-2.284-2.587-3.74-5.91-3.968-9.567H16v-2h-1.949 c0.228-3.658,1.683-6.98,3.968-9.567l1.375,1.375l1.414-1.414l-1.375-1.375c2.587-2.285,5.91-3.74,9.568-3.968V22h2v-1.949 c3.658,0.228,6.981,1.683,9.568,3.968l-1.375,1.375l1.414,1.414l1.375-1.375c2.284,2.587,3.74,5.91,3.968,9.567H44v2H45.949z",fill:"url(#SVGID_2__43666)"}),(0,e.createElement)("linearGradient",{id:"SVGID_3__43666",gradientUnits:"userSpaceOnUse",x1:"32",y1:"5.5",x2:"32",y2:"59.058",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M31,31.101V27h-2v4.101c-2.279,0.465-4,2.484-4,4.899c0,2.757,2.243,5,5,5 c2.415,0,4.434-1.721,4.899-4H39v-2h-4.101C34.5,33.044,32.956,31.5,31,31.101z M30,39c-1.654,0-3-1.346-3-3s1.346-3,3-3 s3,1.346,3,3S31.654,39,30,39z",fill:"url(#SVGID_3__43666)"}),(0,e.createElement)("linearGradient",{id:"SVGID_4__43666",gradientUnits:"userSpaceOnUse",x1:"32",y1:"5.5",x2:"32",y2:"59.058",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M54,33h-2.21C50.366,22.607,41.661,14.505,31,14.025v-0.167c1.72-0.447,3-1.999,3-3.858 c0-2.206-1.794-4-4-4s-4,1.794-4,4c0,1.859,1.28,3.411,3,3.858v0.167C17.332,14.55,8,24.205,8,36c0,12.131,9.869,22,22,22 c11.113,0,20.322-8.284,21.79-19H54c1.103,0,2-0.897,2-2v-2C56,33.897,55.103,33,54,33z M28,10c0-1.103,0.897-2,2-2s2,0.897,2,2 s-0.897,2-2,2S28,11.103,28,10z M30,56c-11.028,0-20-8.972-20-20s8.972-20,20-20s20,8.972,20,20S41.028,56,30,56z M54,37h-2.025 C51.99,36.668,52,36.335,52,36s-0.01-0.668-0.025-1H54V37z",fill:"url(#SVGID_4__43666)"})),Oe=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 66 70",version:"1.1",viewBox:"0 0 66 70",xmlSpace:"preserve"},(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_1_",x1:"-0.125",x2:"64.866",y1:"35",y2:"35",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{fill:"url(#COUNTER_SVGID_1_)",d:"M60.7 61.1H5.3c-2.9 0-5.3-2.4-5.3-5.3V14.2c0-2.9 2.4-5.3 5.3-5.3h55.4c2.9 0 5.3 2.4 5.3 5.3v41.6c0 2.9-2.4 5.3-5.3 5.3zM5.3 11.8c-1.3 0-2.4 1.1-2.4 2.4v41.6c0 1.3 1.1 2.4 2.4 2.4h55.4c1.3 0 2.4-1.1 2.4-2.4V14.2c0-1.3-1.1-2.4-2.4-2.4H5.3z"}),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_2_",x1:"-0.125",x2:"64.866",y1:"16.62",y2:"16.62",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("circle",{fill:"url(#COUNTER_SVGID_2_)",cx:"21.5",cy:"16.6",r:"1.3"}),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_3_",x1:"-0.125",x2:"64.866",y1:"22.572",y2:"22.572",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("circle",{fill:"url(#COUNTER_SVGID_3_)",cx:"21.5",cy:"22.6",r:"1.3"}),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_4_",x1:"-0.125",x2:"64.866",y1:"28.525",y2:"28.525",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("circle",{fill:"url(#COUNTER_SVGID_4_)",cx:"21.5",cy:"28.5",r:"1.3"}),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_5_",x1:"-0.125",x2:"64.866",y1:"34.477",y2:"34.477",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("circle",{fill:"url(#COUNTER_SVGID_5_)",cx:"21.5",cy:"34.5",r:"1.3"}),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_6_",x1:"-0.125",x2:"64.866",y1:"40.43",y2:"40.43",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("circle",{fill:"url(#COUNTER_SVGID_6_)",cx:"21.5",cy:"40.4",r:"1.3"}),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_7_",x1:"-0.125",x2:"64.866",y1:"46.382",y2:"46.382",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("circle",{fill:"url(#COUNTER_SVGID_7_)",cx:"21.5",cy:"46.4",r:"1.3"}),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_8_",x1:"-0.125",x2:"64.866",y1:"52.335",y2:"52.335",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("circle",{fill:"url(#COUNTER_SVGID_8_)",cx:"21.5",cy:"52.3",r:"1.3"}),(0,e.createElement)("g",null,(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_9_",x1:"-0.125",x2:"64.866",y1:"16.62",y2:"16.62",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("circle",{fill:"url(#COUNTER_SVGID_9_)",cx:"43.7",cy:"16.6",r:"1.3"}),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_10_",x1:"-0.125",x2:"64.866",y1:"22.572",y2:"22.572",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("circle",{fill:"url(#COUNTER_SVGID_10_)",cx:"43.7",cy:"22.6",r:"1.3"}),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_11_",x1:"-0.125",x2:"64.866",y1:"28.525",y2:"28.525",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("circle",{fill:"url(#COUNTER_SVGID_11_)",cx:"43.7",cy:"28.5",r:"1.3"}),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_12_",x1:"-0.125",x2:"64.866",y1:"34.477",y2:"34.477",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("circle",{fill:"url(#COUNTER_SVGID_12_)",cx:"43.7",cy:"34.5",r:"1.3"}),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_13_",x1:"-0.125",x2:"64.866",y1:"40.43",y2:"40.43",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("circle",{fill:"url(#COUNTER_SVGID_13_)",cx:"43.7",cy:"40.4",r:"1.3"}),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_14_",x1:"-0.125",x2:"64.866",y1:"46.382",y2:"46.382",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("circle",{fill:"url(#COUNTER_SVGID_14_)",cx:"43.7",cy:"46.4",r:"1.3"}),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_15_",x1:"-0.125",x2:"64.866",y1:"52.335",y2:"52.335",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("circle",{fill:"url(#COUNTER_SVGID_15_)",cx:"43.7",cy:"52.3",r:"1.3"})),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_16_",x1:"-0.125",x2:"64.866",y1:"35.766",y2:"35.766",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{fill:"url(#COUNTER_SVGID_16_)",d:"M55.9 28.7h-6v-1.8h8v1.7l-4.5 15.9h-2l4.5-15.8z"}),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_17_",x1:"-0.125",x2:"64.866",y1:"35.766",y2:"35.766",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{fill:"url(#COUNTER_SVGID_17_)",d:"M33.1 43.2h-1.2c-.2 0-.3-.2-.3-.3V28.7c0-.2.2-.3.3-.3h1.2c.2 0 .3.2.3.3v14.2c.1.2-.1.3-.3.3z"}),(0,e.createElement)("linearGradient",{id:"COUNTER_SVGID_18_",x1:"-0.125",x2:"64.866",y1:"35.766",y2:"35.766",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{fill:"url(#COUNTER_SVGID_18_)",d:"M12.5 43.2h-1.2c-.2 0-.3-.2-.3-.3V28.7c0-.2.2-.3.3-.3h1.2c.2 0 .3.2.3.3v14.2c.1.2-.1.3-.3.3z"})),Ee=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"eb-cta",viewBox:"0 0 64 64"},(0,e.createElement)("linearGradient",{id:"SVGID_1__52516",gradientUnits:"userSpaceOnUse",x1:"32",y1:"12",x2:"32",y2:"20.876",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M36,16.911c0,1.36-0.68,2.56-1.712,3.288c-0.296-0.984-1.208-1.688-2.288-1.688 c-1.08,0-1.992,0.704-2.288,1.688C28.68,19.471,28,18.271,28,16.911c0-2.208,1.792-4,4-4S36,14.703,36,16.911z",fill:"url(#SVGID_1__52516)"}),(0,e.createElement)("linearGradient",{id:"SVGID_2__52516",gradientUnits:"userSpaceOnUse",x1:"32",y1:"4",x2:"32",y2:"59.752",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("rect",{x:"31",y:"6",width:"2",height:"4",fill:"url(#SVGID_2__52516)"}),(0,e.createElement)("linearGradient",{id:"SVGID_3__52516",gradientUnits:"userSpaceOnUse",x1:"41",y1:"4",x2:"41",y2:"59.752",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("rect",{x:"39",y:"16",width:"4",height:"2",fill:"url(#SVGID_3__52516)"}),(0,e.createElement)("linearGradient",{id:"SVGID_4__52516",gradientUnits:"userSpaceOnUse",x1:"23",y1:"4",x2:"23",y2:"59.752",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("rect",{x:"21",y:"16",width:"4",height:"2",fill:"url(#SVGID_4__52516)"}),(0,e.createElement)("linearGradient",{id:"SVGID_5__52516",gradientUnits:"userSpaceOnUse",x1:"38.364",y1:"4",x2:"38.364",y2:"59.752",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("polygon",{points:"37.657,12.758 36.243,11.344 39.071,8.515 40.485,9.929",fill:"url(#SVGID_5__52516)"}),(0,e.createElement)("linearGradient",{id:"SVGID_6__52516",gradientUnits:"userSpaceOnUse",x1:"25.637",y1:"4",x2:"25.637",y2:"59.752",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("polygon",{points:"26.344,12.758 23.515,9.929 24.929,8.515 27.758,11.344",fill:"url(#SVGID_6__52516)"}),(0,e.createElement)("linearGradient",{id:"SVGID_7__52516",gradientUnits:"userSpaceOnUse",x1:"32",y1:"4",x2:"32",y2:"59.752",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M34,58h-4c-1.103,0-2-0.897-2-2V44h-9.013c-0.711,0-1.351-0.369-1.711-0.987 c-0.365-0.627-0.371-1.38-0.013-2.012l12.168-21.493C29.966,18.564,30.926,18.001,32,18c1.074,0,2.035,0.563,2.569,1.507 l12.168,21.494c0.357,0.632,0.353,1.384-0.014,2.012C46.363,43.631,45.724,44,45.013,44H36v12C36,57.103,35.103,58,34,58z M32.001,20c-0.166,0-0.577,0.049-0.829,0.493L19.003,41.986L30,42v14h4V42h11.013l0.854-0.507l-0.87,0.492L32.829,20.492 C32.577,20.048,32.166,20,32.001,20z",fill:"url(#SVGID_7__52516)"}),(0,e.createElement)("linearGradient",{id:"SVGID_8__52516",gradientUnits:"userSpaceOnUse",x1:"32",y1:"25.25",x2:"32",y2:"40.053",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M38.28,39H25.72c-0.766,0-1.247-0.828-0.867-1.493l6.28-10.99c0.383-0.671,1.35-0.671,1.733,0 l6.28,10.99C39.527,38.172,39.047,39,38.28,39z",fill:"url(#SVGID_8__52516)"})),Me=()=>(0,e.createElement)("svg",{width:"600",height:"672",viewBox:"0 0 600 672",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{x1:"50%",y1:"-.962%",x2:"50%",y2:"102.035%",id:"linearGradient-1"},(0,e.createElement)("stop",{stopColor:"#1A6DFF",offset:"0%"}),(0,e.createElement)("stop",{stopColor:"#C822FF",offset:"100%"}))),(0,e.createElement)("g",{id:"Page-1",fill:"none",fillRule:"evenodd"},(0,e.createElement)("g",{id:"Artboard",fill:"url(#linearGradient-1)",fillRule:"nonzero"},(0,e.createElement)("g",{id:"eb-flipbox"},(0,e.createElement)("path",{d:"M410,0 L393.55469,13.82812 L301.36719,91.48437 L0,91.48437 L0,671.48437 L308.63281,671.48437 L410,586.13281 L410,0 Z M390,42.96875 L390,576.83593 L301.36719,651.48437 L20,651.48437 L20,111.48437 L308.63281,111.48437 L390,42.96875 Z M430,91.48437 C424.49219,91.48437 420,95.97656 420,101.48437 C420,106.99218 424.49219,111.48437 430,111.48437 C435.50781,111.48437 440,106.99218 440,101.48437 C440,95.97656 435.50781,91.48437 430,91.48437 Z M470,91.48437 C464.49219,91.48437 460,95.97656 460,101.48437 C460,106.99218 464.49219,111.48437 470,111.48437 C475.50781,111.48437 480,106.99218 480,101.48437 C480,95.97656 475.50781,91.48437 470,91.48437 Z M510,91.48437 C504.49219,91.48437 500,95.97656 500,101.48437 C500,106.99218 504.49219,111.48437 510,111.48437 C515.50781,111.48437 520,106.99218 520,101.48437 C520,95.97656 515.50781,91.48437 510,91.48437 Z M550,91.48437 C544.49219,91.48437 540,95.97656 540,101.48437 C540,106.99218 544.49219,111.48437 550,111.48437 C555.50781,111.48437 560,106.99218 560,101.48437 C560,95.97656 555.50781,91.48437 550,91.48437 Z M590,91.48437 C584.49219,91.48437 580,95.97656 580,101.48437 C580,106.99218 584.49219,111.48437 590,111.48437 C595.50781,111.48437 600,106.99218 600,101.48437 C600,95.97656 595.50781,91.48437 590,91.48437 Z M300,131.48437 C294.49219,131.48437 290,135.97656 290,141.48437 C290,146.99218 294.49219,151.48437 300,151.48437 C305.50781,151.48437 310,146.99218 310,141.48437 C310,135.97656 305.50781,131.48437 300,131.48437 Z M590,131.48437 C584.49219,131.48437 580,135.97656 580,141.48437 C580,146.99218 584.49219,151.48437 590,151.48437 C595.50781,151.48437 600,146.99218 600,141.48437 C600,135.97656 595.50781,131.48437 590,131.48437 Z M300,171.48437 C294.49219,171.48437 290,175.97656 290,181.48437 C290,186.99218 294.49219,191.48437 300,191.48437 C305.50781,191.48437 310,186.99218 310,181.48437 C310,175.97656 305.50781,171.48437 300,171.48437 Z M590,171.48437 C584.49219,171.48437 580,175.97656 580,181.48437 C580,186.99218 584.49219,191.48437 590,191.48437 C595.50781,191.48437 600,186.99218 600,181.48437 C600,175.97656 595.50781,171.48437 590,171.48437 Z M300,211.48437 C294.49219,211.48437 290,215.97656 290,221.48437 C290,226.99218 294.49219,231.48437 300,231.48437 C305.50781,231.48437 310,226.99218 310,221.48437 C310,215.97656 305.50781,211.48437 300,211.48437 Z M590,211.48437 C584.49219,211.48437 580,215.97656 580,221.48437 C580,226.99218 584.49219,231.48437 590,231.48437 C595.50781,231.48437 600,226.99218 600,221.48437 C600,215.97656 595.50781,211.48437 590,211.48437 Z M300,251.48437 C294.49219,251.48437 290,255.97656 290,261.48437 C290,266.99218 294.49219,271.48437 300,271.48437 C305.50781,271.48437 310,266.99218 310,261.48437 C310,255.97656 305.50781,251.48437 300,251.48437 Z M590,251.48437 C584.49219,251.48437 580,255.97656 580,261.48437 C580,266.99218 584.49219,271.48437 590,271.48437 C595.50781,271.48437 600,266.99218 600,261.48437 C600,255.97656 595.50781,251.48437 590,251.48437 Z M270,291.48437 L270,331.48437 L220,331.48437 C181.44531,331.48437 150,362.92968 150,401.48437 L150,491.48437 L170,491.48437 L170,401.48437 C170,373.75 192.26563,351.48437 220,351.48437 L270,351.48437 L270,391.48437 L330,341.48437 L270,291.48437 Z M590,291.48437 C584.49219,291.48437 580,295.97656 580,301.48437 C580,306.99218 584.49219,311.48437 590,311.48437 C595.50781,311.48437 600,306.99218 600,301.48437 C600,295.97656 595.50781,291.48437 590,291.48437 Z M590,331.48437 C584.49219,331.48437 580,335.97656 580,341.48437 C580,346.99218 584.49219,351.48437 590,351.48437 C595.50781,351.48437 600,346.99218 600,341.48437 C600,335.97656 595.50781,331.48437 590,331.48437 Z M590,371.48437 C584.49219,371.48437 580,375.97656 580,381.48437 C580,386.99218 584.49219,391.48437 590,391.48437 C595.50781,391.48437 600,386.99218 600,381.48437 C600,375.97656 595.50781,371.48437 590,371.48437 Z M300,411.48437 C294.49219,411.48437 290,415.97656 290,421.48437 C290,426.99218 294.49219,431.48437 300,431.48437 C305.50781,431.48437 310,426.99218 310,421.48437 C310,415.97656 305.50781,411.48437 300,411.48437 Z M590,411.48437 C584.49219,411.48437 580,415.97656 580,421.48437 C580,426.99218 584.49219,431.48437 590,431.48437 C595.50781,431.48437 600,426.99218 600,421.48437 C600,415.97656 595.50781,411.48437 590,411.48437 Z M300,451.48437 C294.49219,451.48437 290,455.97656 290,461.48437 C290,466.99218 294.49219,471.48437 300,471.48437 C305.50781,471.48437 310,466.99218 310,461.48437 C310,455.97656 305.50781,451.48437 300,451.48437 Z M590,451.48437 C584.49219,451.48437 580,455.97656 580,461.48437 C580,466.99218 584.49219,471.48437 590,471.48437 C595.50781,471.48437 600,466.99218 600,461.48437 C600,455.97656 595.50781,451.48437 590,451.48437 Z M300,491.48437 C294.49219,491.48437 290,495.97656 290,501.48437 C290,506.99218 294.49219,511.48437 300,511.48437 C305.50781,511.48437 310,506.99218 310,501.48437 C310,495.97656 305.50781,491.48437 300,491.48437 Z M590,491.48437 C584.49219,491.48437 580,495.97656 580,501.48437 C580,506.99218 584.49219,511.48437 590,511.48437 C595.50781,511.48437 600,506.99218 600,501.48437 C600,495.97656 595.50781,491.48437 590,491.48437 Z M300,531.48437 C294.49219,531.48437 290,535.97656 290,541.48437 C290,546.99218 294.49219,551.48437 300,551.48437 C305.50781,551.48437 310,546.99218 310,541.48437 C310,535.97656 305.50781,531.48437 300,531.48437 Z M590,531.48437 C584.49219,531.48437 580,535.97656 580,541.48437 C580,546.99218 584.49219,551.48437 590,551.48437 C595.50781,551.48437 600,546.99218 600,541.48437 C600,535.97656 595.50781,531.48437 590,531.48437 Z M300,571.48437 C294.49219,571.48437 290,575.97656 290,581.48437 C290,586.99218 294.49219,591.48437 300,591.48437 C305.50781,591.48437 310,586.99218 310,581.48437 C310,575.97656 305.50781,571.48437 300,571.48437 Z M590,571.48437 C584.49219,571.48437 580,575.97656 580,581.48437 C580,586.99218 584.49219,591.48437 590,591.48437 C595.50781,591.48437 600,586.99218 600,581.48437 C600,575.97656 595.50781,571.48437 590,571.48437 Z M300,611.48437 C294.49219,611.48437 290,615.97656 290,621.48437 C290,626.99218 294.49219,631.48437 300,631.48437 C305.50781,631.48437 310,626.99218 310,621.48437 C310,615.97656 305.50781,611.48437 300,611.48437 Z M590,611.48437 C584.49219,611.48437 580,615.97656 580,621.48437 C580,626.99218 584.49219,631.48437 590,631.48437 C595.50781,631.48437 600,626.99218 600,621.48437 C600,615.97656 595.50781,611.48437 590,611.48437 Z M350,651.48437 C344.49219,651.48437 340,655.97656 340,661.48437 C340,666.99218 344.49219,671.48437 350,671.48437 C355.50781,671.48437 360,666.99218 360,661.48437 C360,655.97656 355.50781,651.48437 350,651.48437 Z M390,651.48437 C384.49219,651.48437 380,655.97656 380,661.48437 C380,666.99218 384.49219,671.48437 390,671.48437 C395.50781,671.48437 400,666.99218 400,661.48437 C400,655.97656 395.50781,651.48437 390,651.48437 Z M430,651.48437 C424.49219,651.48437 420,655.97656 420,661.48437 C420,666.99218 424.49219,671.48437 430,671.48437 C435.50781,671.48437 440,666.99218 440,661.48437 C440,655.97656 435.50781,651.48437 430,651.48437 Z M470,651.48437 C464.49219,651.48437 460,655.97656 460,661.48437 C460,666.99218 464.49219,671.48437 470,671.48437 C475.50781,671.48437 480,666.99218 480,661.48437 C480,655.97656 475.50781,651.48437 470,651.48437 Z M510,651.48437 C504.49219,651.48437 500,655.97656 500,661.48437 C500,666.99218 504.49219,671.48437 510,671.48437 C515.50781,671.48437 520,666.99218 520,661.48437 C520,655.97656 515.50781,651.48437 510,651.48437 Z M550,651.48437 C544.49219,651.48437 540,655.97656 540,661.48437 C540,666.99218 544.49219,671.48437 550,671.48437 C555.50781,671.48437 560,666.99218 560,661.48437 C560,655.97656 555.50781,651.48437 550,651.48437 Z M590,651.48437 C584.49219,651.48437 580,655.97656 580,661.48437 C580,666.99218 584.49219,671.48437 590,671.48437 C595.50781,671.48437 600,666.99218 600,661.48437 C600,655.97656 595.50781,651.48437 590,651.48437 Z",id:"Shape"}))))),$e=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"eb-info-box",viewBox:"0 0 64 64"},(0,e.createElement)("linearGradient",{id:"SVGID_1__56360",gradientUnits:"userSpaceOnUse",x1:"32",y1:"19.203",x2:"32",y2:"45.242",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("polygon",{points:"43,19 21,19 21,25 29,25 29,45 35,45 35,25 43,25",fill:"url(#SVGID_1__56360)"}),(0,e.createElement)("linearGradient",{id:"SVGID_2__56360",gradientUnits:"userSpaceOnUse",x1:"32",y1:"9.359",x2:"32",y2:"55.428",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M54,9H10c-2.757,0-5,2.243-5,5v36c0,2.757,2.243,5,5,5h44c2.757,0,5-2.243,5-5V14 C59,11.243,56.757,9,54,9z M57,50c0,1.654-1.346,3-3,3H10c-1.654,0-3-1.346-3-3V14c0-1.654,1.346-3,3-3h44c1.654,0,3,1.346,3,3V50z",fill:"url(#SVGID_2__56360)"}),(0,e.createElement)("linearGradient",{id:"SVGID_3__56360",gradientUnits:"userSpaceOnUse",x1:"58",y1:"26.939",x2:"58",y2:"61.543",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M58,28c-2.206,0-4,1.794-4,4s1.794,4,4,4s4-1.794,4-4S60.206,28,58,28z",fill:"url(#SVGID_3__56360)"}),(0,e.createElement)("linearGradient",{id:"SVGID_4__56360",gradientUnits:"userSpaceOnUse",x1:"58",y1:"30.125",x2:"58",y2:"33.875",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("circle",{cx:"58",cy:"32",r:"2",fill:"url(#SVGID_4__56360)"}),(0,e.createElement)("linearGradient",{id:"SVGID_5__56360",gradientUnits:"userSpaceOnUse",x1:"6",y1:"26.939",x2:"6",y2:"61.543",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M6,28c-2.206,0-4,1.794-4,4s1.794,4,4,4s4-1.794,4-4S8.206,28,6,28z",fill:"url(#SVGID_5__56360)"}),(0,e.createElement)("linearGradient",{id:"SVGID_6__56360",gradientUnits:"userSpaceOnUse",x1:"6",y1:"30.125",x2:"6",y2:"33.875",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("circle",{cx:"6",cy:"32",r:"2",fill:"url(#SVGID_6__56360)"}),(0,e.createElement)("linearGradient",{id:"SVGID_7__56360",gradientUnits:"userSpaceOnUse",x1:"32",y1:"21.172",x2:"32",y2:"43.205",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("polygon",{points:"41,21 23,21 23,23 31,23 31,43 33,43 33,23 41,23",fill:"url(#SVGID_7__56360)"})),Pe=()=>(0,e.createElement)("svg",{width:"256",height:"359",viewBox:"0 0 256 359",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{x1:"50%",y1:"-.962%",x2:"50%",y2:"102.035%",id:"linearGradient-1"},(0,e.createElement)("stop",{stopColor:"#1A6DFF",offset:"0%"}),(0,e.createElement)("stop",{stopColor:"#C822FF",offset:"100%"}))),(0,e.createElement)("g",{id:"Page-1",fill:"none",fillRule:"evenodd"},(0,e.createElement)("g",{id:"eb-notice",fill:"url(#linearGradient-1)",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M128,0 C111.09568,0 97.28,13.815678 97.28,30.72 L97.28,40.96 L15.36,40.96 C6.9377536,40.96 0,47.8977536 0,56.32 L0,343.04 C0,351.462246 6.9377536,358.4 15.36,358.4 L240.64,358.4 C249.062246,358.4 256,351.462246 256,343.04 L256,56.32 C256,47.8977536 249.062246,40.96 240.64,40.96 L158.72,40.96 L158.72,30.72 C158.72,13.815678 144.90432,0 128,0 Z M128,10.24 C139.36832,10.24 148.48,19.351682 148.48,30.72 L148.48,66.56 C148.48,69.4529536 146.252954,71.68 143.36,71.68 L112.64,71.68 C109.747046,71.68 107.52,69.4529536 107.52,66.56 L107.52,30.72 C107.52,19.351682 116.63168,10.24 128,10.24 Z M128,25.6 C125.172302,25.6 122.88,27.8923021 122.88,30.72 C122.88,33.5476979 125.172302,35.84 128,35.84 C130.827698,35.84 133.12,33.5476979 133.12,30.72 C133.12,27.8923021 130.827698,25.6 128,25.6 Z M15.36,51.2 L97.28,51.2 L97.28,61.44 L92.16,61.44 C80.9096499,61.44 71.68,70.6696499 71.68,81.92 L71.68,87.04 L72.72,87.04 C75.0565325,95.7765786 82.7207987,102.4 92.16,102.4 L163.84,102.4 C173.279201,102.4 180.943468,95.7765786 183.28,87.04 L184.32,87.04 L184.32,81.92 C184.32,70.6696499 175.09035,61.44 163.84,61.44 L158.72,61.44 L158.72,51.2 L240.64,51.2 C243.532954,51.2 245.76,53.4270464 245.76,56.32 L245.76,343.04 C245.76,345.932954 243.532954,348.16 240.64,348.16 L15.36,348.16 C12.4670464,348.16 10.24,345.932954 10.24,343.04 L10.24,56.32 C10.24,53.4270464 12.4670464,51.2 15.36,51.2 Z M35.84,71.68 C33.0123021,71.68 30.72,73.9723021 30.72,76.8 C30.72,79.6276979 33.0123021,81.92 35.84,81.92 C38.6676979,81.92 40.96,79.6276979 40.96,76.8 C40.96,73.9723021 38.6676979,71.68 35.84,71.68 Z M92.16,71.68 L98.24,71.68 C100.376924,77.6054835 106.01919,81.92 112.64,81.92 L143.36,81.92 C149.98081,81.92 155.623076,77.6054835 157.76,71.68 L163.84,71.68 C169.55733,71.68 174.08,76.2026701 174.08,81.92 C174.08,87.6373299 169.55733,92.16 163.84,92.16 L92.16,92.16 C86.4426701,92.16 81.92,87.6373299 81.92,81.92 C81.92,76.2026701 86.4426701,71.68 92.16,71.68 Z M35.84,92.16 C33.0123021,92.16 30.72,94.4523021 30.72,97.28 C30.72,100.107698 33.0123021,102.4 35.84,102.4 C38.6676979,102.4 40.96,100.107698 40.96,97.28 C40.96,94.4523021 38.6676979,92.16 35.84,92.16 Z M35.84,112.64 C33.0123021,112.64 30.72,114.932302 30.72,117.76 C30.72,120.587698 33.0123021,122.88 35.84,122.88 C38.6676979,122.88 40.96,120.587698 40.96,117.76 C40.96,114.932302 38.6676979,112.64 35.84,112.64 Z M35.84,133.12 C33.0123021,133.12 30.72,135.412302 30.72,138.24 C30.72,141.067698 33.0123021,143.36 35.84,143.36 C38.6676979,143.36 40.96,141.067698 40.96,138.24 C40.96,135.412302 38.6676979,133.12 35.84,133.12 Z M35.84,153.6 C33.0123021,153.6 30.72,155.892302 30.72,158.72 C30.72,161.547698 33.0123021,163.84 35.84,163.84 C38.6676979,163.84 40.96,161.547698 40.96,158.72 C40.96,155.892302 38.6676979,153.6 35.84,153.6 Z M117.76,153.6 L121.180001,242.349998 L134.819999,242.349998 L138.24,153.6 L117.76,153.6 Z M35.84,174.08 C33.0123021,174.08 30.72,176.372302 30.72,179.2 C30.72,182.027698 33.0123021,184.32 35.84,184.32 C38.6676979,184.32 40.96,182.027698 40.96,179.2 C40.96,176.372302 38.6676979,174.08 35.84,174.08 Z M35.84,194.56 C33.0123021,194.56 30.72,196.852302 30.72,199.68 C30.72,202.507698 33.0123021,204.8 35.84,204.8 C38.6676979,204.8 40.96,202.507698 40.96,199.68 C40.96,196.852302 38.6676979,194.56 35.84,194.56 Z M35.84,215.04 C33.0123021,215.04 30.72,217.332302 30.72,220.16 C30.72,222.987698 33.0123021,225.28 35.84,225.28 C38.6676979,225.28 40.96,222.987698 40.96,220.16 C40.96,217.332302 38.6676979,215.04 35.84,215.04 Z M35.84,235.52 C33.0123021,235.52 30.72,237.812302 30.72,240.64 C30.72,243.467698 33.0123021,245.76 35.84,245.76 C38.6676979,245.76 40.96,243.467698 40.96,240.64 C40.96,237.812302 38.6676979,235.52 35.84,235.52 Z M35.84,256 C33.0123021,256 30.72,258.292302 30.72,261.12 C30.72,263.947698 33.0123021,266.24 35.84,266.24 C38.6676979,266.24 40.96,263.947698 40.96,261.12 C40.96,258.292302 38.6676979,256 35.84,256 Z M128,256.860001 C122.344604,256.860001 117.76,261.444605 117.76,267.100001 C117.76,272.755397 122.344604,277.340001 128,277.340001 C133.655396,277.340001 138.24,272.755397 138.24,267.100001 C138.24,261.444605 133.655396,256.860001 128,256.860001 Z M35.84,276.48 C33.0123021,276.48 30.72,278.772302 30.72,281.6 C30.72,284.427698 33.0123021,286.72 35.84,286.72 C38.6676979,286.72 40.96,284.427698 40.96,281.6 C40.96,278.772302 38.6676979,276.48 35.84,276.48 Z M35.84,296.96 C33.0123021,296.96 30.72,299.252302 30.72,302.08 C30.72,304.907698 33.0123021,307.2 35.84,307.2 C38.6676979,307.2 40.96,304.907698 40.96,302.08 C40.96,299.252302 38.6676979,296.96 35.84,296.96 Z M35.84,317.44 C33.0123021,317.44 30.72,319.732302 30.72,322.56 C30.72,325.387698 33.0123021,327.68 35.84,327.68 C38.6676979,327.68 40.96,325.387698 40.96,322.56 C40.96,319.732302 38.6676979,317.44 35.84,317.44 Z",id:"Shape"})))),Te=()=>(0,e.createElement)("svg",{width:"256",height:"256",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{x1:"50%",y1:"-.962%",x2:"50%",y2:"102.035%",id:"linearGradient-1"},(0,e.createElement)("stop",{stopColor:"#1A6DFF",offset:"0%"}),(0,e.createElement)("stop",{stopColor:"#C822FF",offset:"100%"}))),(0,e.createElement)("g",{id:"Page-1",fill:"none",fillRule:"evenodd"},(0,e.createElement)("g",{id:"eb-pricing-table",fill:"url(#linearGradient-1)",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M85.3333333,0 C77.4385707,0 70.8027733,5.47924907 68.8833323,12.8 L17.0666667,12.8 C7.69137493,12.8 0,20.4913749 0,29.8666667 L0,226.133333 C0,235.508625 7.69137493,243.2 17.0666667,243.2 L21.3333333,243.2 C23.6897483,243.2 25.6,241.289748 25.6,238.933333 C25.6,236.576918 23.6897483,234.666667 21.3333333,234.666667 L17.0666667,234.666667 C12.3022251,234.666667 8.53333333,230.897775 8.53333333,226.133333 L8.53333333,29.8666667 C8.53333333,25.1022251 12.3022251,21.3333333 17.0666667,21.3333333 L68.2666667,21.3333333 L68.2666667,51.2 L29.8666667,51.2 L29.8666667,59.7333333 L68.2666667,59.7333333 L68.2666667,76.8 L29.8666667,76.8 L29.8666667,85.3333333 L68.2666667,85.3333333 L68.2666667,136.533333 L51.2,136.533333 L51.2,145.066667 L68.2666667,145.066667 L68.2666667,162.133333 L51.2,162.133333 L51.2,170.666667 L68.2666667,170.666667 L68.2666667,238.933333 C68.2666667,248.308625 75.9580416,256 85.3333333,256 L93.8666667,256 C96.2230816,256 98.1333333,254.089748 98.1333333,251.733333 C98.1333333,249.376918 96.2230816,247.466667 93.8666667,247.466667 L85.3333333,247.466667 C80.5688917,247.466667 76.8,243.697775 76.8,238.933333 L76.8,17.0666667 C76.8,12.3022251 80.5688917,8.53333333 85.3333333,8.53333333 L170.666667,8.53333333 C175.431108,8.53333333 179.2,12.3022251 179.2,17.0666667 L179.2,136.533333 L179.2,145.066667 L179.2,162.133333 L179.2,170.666667 L179.2,187.733333 L179.2,196.266667 L179.2,238.933333 C179.2,243.697775 175.431108,247.466667 170.666667,247.466667 L162.133333,247.466667 C159.776918,247.466667 157.866667,249.376918 157.866667,251.733333 C157.866667,254.089748 159.776918,256 162.133333,256 L170.666667,256 C180.041958,256 187.733333,248.308625 187.733333,238.933333 L187.733333,196.266667 L226.133333,196.266667 L226.133333,187.733333 L187.733333,187.733333 L187.733333,170.666667 L226.133333,170.666667 L226.133333,162.133333 L187.733333,162.133333 L187.733333,145.066667 L226.133333,145.066667 L226.133333,136.533333 L187.733333,136.533333 L187.733333,85.3333333 L226.133333,85.3333333 L226.133333,76.8 L187.733333,76.8 L187.733333,59.7333333 L226.133333,59.7333333 L226.133333,51.2 L187.733333,51.2 L187.733333,21.3333333 L238.933333,21.3333333 C243.697775,21.3333333 247.466667,25.1022251 247.466667,29.8666667 L247.466667,226.133333 C247.466667,230.897775 243.697775,234.666667 238.933333,234.666667 L234.666667,234.666667 C232.310252,234.666667 230.4,236.576918 230.4,238.933333 C230.4,241.289748 232.310252,243.2 234.666667,243.2 L238.933333,243.2 C248.308625,243.2 256,235.508625 256,226.133333 L256,29.8666667 C256,20.4913749 248.308625,12.8 238.933333,12.8 L187.116668,12.8 C185.197227,5.47924907 178.561429,0 170.666667,0 L85.3333333,0 Z M93.8666667,42.6666667 L93.8666667,51.2 L162.133333,51.2 L162.133333,42.6666667 L93.8666667,42.6666667 Z M93.8666667,68.2666667 L93.8666667,76.8 L162.133333,76.8 L162.133333,68.2666667 L93.8666667,68.2666667 Z M98.1333333,128 C95.7769184,128 93.8666667,129.910252 93.8666667,132.266667 C93.8666667,134.623082 95.7769184,136.533333 98.1333333,136.533333 C100.489748,136.533333 102.4,134.623082 102.4,132.266667 C102.4,129.910252 100.489748,128 98.1333333,128 Z M115.2,128 L115.2,136.533333 L162.133333,136.533333 L162.133333,128 L115.2,128 Z M34.1333333,136.533333 C31.7769184,136.533333 29.8666667,138.443585 29.8666667,140.8 C29.8666667,143.156415 31.7769184,145.066667 34.1333333,145.066667 C36.4897483,145.066667 38.4,143.156415 38.4,140.8 C38.4,138.443585 36.4897483,136.533333 34.1333333,136.533333 Z M98.1333333,153.6 C95.7769184,153.6 93.8666667,155.510252 93.8666667,157.866667 C93.8666667,160.223082 95.7769184,162.133333 98.1333333,162.133333 C100.489748,162.133333 102.4,160.223082 102.4,157.866667 C102.4,155.510252 100.489748,153.6 98.1333333,153.6 Z M115.2,153.6 L115.2,162.133333 L162.133333,162.133333 L162.133333,153.6 L115.2,153.6 Z M34.1333333,162.133333 C31.7769184,162.133333 29.8666667,164.043585 29.8666667,166.4 C29.8666667,168.756415 31.7769184,170.666667 34.1333333,170.666667 C36.4897483,170.666667 38.4,168.756415 38.4,166.4 C38.4,164.043585 36.4897483,162.133333 34.1333333,162.133333 Z M98.1333333,179.2 C95.7769184,179.2 93.8666667,181.110252 93.8666667,183.466667 C93.8666667,185.823082 95.7769184,187.733333 98.1333333,187.733333 C100.489748,187.733333 102.4,185.823082 102.4,183.466667 C102.4,181.110252 100.489748,179.2 98.1333333,179.2 Z M115.2,179.2 L115.2,187.733333 L162.133333,187.733333 L162.133333,179.2 L115.2,179.2 Z M98.1333333,204.8 C95.7769184,204.8 93.8666667,206.710252 93.8666667,209.066667 C93.8666667,211.423082 95.7769184,213.333333 98.1333333,213.333333 C100.489748,213.333333 102.4,211.423082 102.4,209.066667 C102.4,206.710252 100.489748,204.8 98.1333333,204.8 Z M115.2,204.8 L115.2,213.333333 L162.133333,213.333333 L162.133333,204.8 L115.2,204.8 Z M38.4,234.666667 C36.0435851,234.666667 34.1333333,236.576918 34.1333333,238.933333 C34.1333333,241.289748 36.0435851,243.2 38.4,243.2 C40.7564149,243.2 42.6666667,241.289748 42.6666667,238.933333 C42.6666667,236.576918 40.7564149,234.666667 38.4,234.666667 Z M55.4666667,234.666667 C53.1102517,234.666667 51.2,236.576918 51.2,238.933333 C51.2,241.289748 53.1102517,243.2 55.4666667,243.2 C57.8230816,243.2 59.7333333,241.289748 59.7333333,238.933333 C59.7333333,236.576918 57.8230816,234.666667 55.4666667,234.666667 Z M200.533333,234.666667 C198.176918,234.666667 196.266667,236.576918 196.266667,238.933333 C196.266667,241.289748 198.176918,243.2 200.533333,243.2 C202.889748,243.2 204.8,241.289748 204.8,238.933333 C204.8,236.576918 202.889748,234.666667 200.533333,234.666667 Z M217.6,234.666667 C215.243585,234.666667 213.333333,236.576918 213.333333,238.933333 C213.333333,241.289748 215.243585,243.2 217.6,243.2 C219.956415,243.2 221.866667,241.289748 221.866667,238.933333 C221.866667,236.576918 219.956415,234.666667 217.6,234.666667 Z M110.933333,247.466667 C108.576918,247.466667 106.666667,249.376918 106.666667,251.733333 C106.666667,254.089748 108.576918,256 110.933333,256 C113.289748,256 115.2,254.089748 115.2,251.733333 C115.2,249.376918 113.289748,247.466667 110.933333,247.466667 Z M128,247.466667 C125.643585,247.466667 123.733333,249.376918 123.733333,251.733333 C123.733333,254.089748 125.643585,256 128,256 C130.356415,256 132.266667,254.089748 132.266667,251.733333 C132.266667,249.376918 130.356415,247.466667 128,247.466667 Z M145.066667,247.466667 C142.710252,247.466667 140.8,249.376918 140.8,251.733333 C140.8,254.089748 142.710252,256 145.066667,256 C147.423082,256 149.333333,254.089748 149.333333,251.733333 C149.333333,249.376918 147.423082,247.466667 145.066667,247.466667 Z",id:"Shape"})))),Ae=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"eb-progress",viewBox:"0 0 64 64"},(0,e.createElement)("linearGradient",{id:"SVGID_1__48178",gradientUnits:"userSpaceOnUse",x1:"12.315",y1:"4.167",x2:"12.315",y2:"59.168",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M9.8,45.771c1.027,1.637,2.24,3.162,3.606,4.536l1.424-1.408 c-1.261-1.269-2.381-2.678-3.329-4.188L9.8,45.771z",fill:"url(#SVGID_1__48178)"}),(0,e.createElement)("linearGradient",{id:"SVGID_2__48178",gradientUnits:"userSpaceOnUse",x1:"7.592",y1:"4.167",x2:"7.592",y2:"59.168",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M6.003,34.906c0.215,1.923,0.646,3.823,1.283,5.646l1.894-0.658 c-0.588-1.682-0.985-3.435-1.183-5.209L6.003,34.906z",fill:"url(#SVGID_2__48178)"}),(0,e.createElement)("linearGradient",{id:"SVGID_3__48178",gradientUnits:"userSpaceOnUse",x1:"7.586",y1:"4.167",x2:"7.586",y2:"59.168",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M9.173,24.127l-1.894-0.656C6.643,25.295,6.213,27.196,6,29.121l1.994,0.219 C8.19,27.563,8.587,25.81,9.173,24.127z",fill:"url(#SVGID_3__48178)"}),(0,e.createElement)("linearGradient",{id:"SVGID_4__48178",gradientUnits:"userSpaceOnUse",x1:"12.299",y1:"4.167",x2:"12.299",y2:"59.168",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M14.813,15.115l-1.426-1.406c-1.364,1.374-2.576,2.901-3.602,4.538l1.7,1.061 C12.433,17.796,13.552,16.385,14.813,15.115z",fill:"url(#SVGID_4__48178)"}),(0,e.createElement)("linearGradient",{id:"SVGID_5__48178",gradientUnits:"userSpaceOnUse",x1:"20.846",y1:"4.167",x2:"20.846",y2:"59.168",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M23.789,9.403l-0.676-1.883c-1.821,0.65-3.574,1.509-5.211,2.551l1.079,1.686 C20.493,10.795,22.11,10.003,23.789,9.403z",fill:"url(#SVGID_5__48178)"}),(0,e.createElement)("linearGradient",{id:"SVGID_6__48178",gradientUnits:"userSpaceOnUse",x1:"20.869",y1:"4.167",x2:"20.869",y2:"59.168",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M17.924,53.942c1.64,1.04,3.395,1.896,5.215,2.546l0.676-1.883 c-1.68-0.6-3.3-1.39-4.813-2.351L17.924,53.942z",fill:"url(#SVGID_6__48178)"}),(0,e.createElement)("linearGradient",{id:"SVGID_7__48178",gradientUnits:"userSpaceOnUse",x1:"43.399",y1:"4.167",x2:"43.399",y2:"59.168",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M31.921,6c-1.042,0-2.093,0.063-3.124,0.185l0.237,1.986C29.988,8.058,30.958,8,31.921,8 c13.274,0,24.073,10.767,24.073,24S45.195,56,31.921,56c-0.963,0-1.934-0.058-2.887-0.171l-0.237,1.986 C29.828,57.938,30.879,58,31.921,58C46.302,58,58,46.337,58,32S46.302,6,31.921,6z",fill:"url(#SVGID_7__48178)"}),(0,e.createElement)("linearGradient",{id:"SVGID_8__48178",gradientUnits:"userSpaceOnUse",x1:"31.921",y1:"20.667",x2:"31.921",y2:"45.235",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M27.908,41.937c-1.028,0-2.056-0.391-2.839-1.171l-7.606-7.583l2.837-2.828l7.606,7.583 l15.636-15.583l2.837,2.828l-15.63,15.583C29.965,41.546,28.937,41.937,27.908,41.937z",fill:"url(#SVGID_8__48178)"})),Be=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"eb-promo",viewBox:"0 0 64 64"},(0,e.createElement)("linearGradient",{id:"SVGID_1__43971",gradientUnits:"userSpaceOnUse",x1:"37",y1:"16.125",x2:"37",y2:"22.38",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M42,22H32c-0.552,0-1-0.448-1-1v-4c0-0.552,0.448-1,1-1h10c0.552,0,1,0.448,1,1v4 C43,21.552,42.552,22,42,22z",fill:"url(#SVGID_1__43971)"}),(0,e.createElement)("linearGradient",{id:"SVGID_2__43971",gradientUnits:"userSpaceOnUse",x1:"39.5",y1:"10",x2:"39.5",y2:"54.388",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M58,36c0-2.967-2.167-5.431-5-5.91v-7.004c0-0.777-0.435-1.468-1.135-1.805 c-0.7-0.335-1.511-0.244-2.119,0.241l-7.996,6.396c-0.03,0.024-0.052,0.055-0.081,0.081H30c-2.757,0-5,2.243-5,5h-2 c-1.103,0-2,0.897-2,2v2c0,1.103,0.897,2,2,2h2c0,2.757,2.243,5,5,5v6c0,2.206,1.794,4,4,4s4-1.794,4-4v-6h3.669 c0.029,0.026,0.051,0.057,0.082,0.082l7.995,6.396c0.365,0.292,0.804,0.441,1.247,0.441c0.295,0,0.593-0.066,0.872-0.2 C52.565,50.382,53,49.69,53,48.914V41.91C55.833,41.431,58,38.967,58,36z M23,37v-2h2v2H23z M36,50c0,1.103-0.897,2-2,2 s-2-0.897-2-2v-6h4V50z M30,42c-1.654,0-3-1.346-3-3v-6c0-1.654,1.346-3,3-3h11v12h-3H30z M50.996,48.916L43,42.518V29.479l4-3.197 V36h2V24.684l2-1.598l0.002,25.834C51.002,48.92,51,48.919,50.996,48.916z M53,39.858v-7.716c1.72,0.447,3,2,3,3.858 S54.72,39.411,53,39.858z",fill:"url(#SVGID_2__43971)"}),(0,e.createElement)("linearGradient",{id:"SVGID_3__43971",gradientUnits:"userSpaceOnUse",x1:"31",y1:"10",x2:"31",y2:"54.388",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M29,34v2h2v-2h2v-2h-2C29.897,32,29,32.897,29,34z",fill:"url(#SVGID_3__43971)"}),(0,e.createElement)("linearGradient",{id:"SVGID_4__43971",gradientUnits:"userSpaceOnUse",x1:"27.5",y1:"10",x2:"27.5",y2:"54.388",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M8,40V15c0-1.654,1.346-3,3-3h33c1.654,0,3,1.346,3,3v4h2v-4c0-2.757-2.243-5-5-5H11 c-2.757,0-5,2.243-5,5v25c0,2.757,2.243,5,5,5h12v-2H11C9.346,43,8,41.654,8,40z",fill:"url(#SVGID_4__43971)"}),(0,e.createElement)("linearGradient",{id:"SVGID_5__43971",gradientUnits:"userSpaceOnUse",x1:"19",y1:"10",x2:"19",y2:"54.388",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("rect",{x:"12",y:"16",width:"14",height:"2",fill:"url(#SVGID_5__43971)"}),(0,e.createElement)("linearGradient",{id:"SVGID_6__43971",gradientUnits:"userSpaceOnUse",x1:"19",y1:"10",x2:"19",y2:"54.388",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("rect",{x:"12",y:"20",width:"14",height:"2",fill:"url(#SVGID_6__43971)"}),(0,e.createElement)("linearGradient",{id:"SVGID_7__43971",gradientUnits:"userSpaceOnUse",x1:"17",y1:"10",x2:"17",y2:"54.388",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("rect",{x:"12",y:"24",width:"10",height:"2",fill:"url(#SVGID_7__43971)"}),(0,e.createElement)("linearGradient",{id:"SVGID_8__43971",gradientUnits:"userSpaceOnUse",x1:"16",y1:"10",x2:"16",y2:"54.388",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("rect",{x:"12",y:"28",width:"8",height:"2",fill:"url(#SVGID_8__43971)"})),Re=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"eb-social",viewBox:"0 0 64 64"},(0,e.createElement)("linearGradient",{id:"SVGID_1__44048",gradientUnits:"userSpaceOnUse",x1:"28",y1:"38.167",x2:"28",y2:"49.844",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("circle",{cx:"28",cy:"44",r:"5",fill:"url(#SVGID_1__44048)"}),(0,e.createElement)("linearGradient",{id:"SVGID_2__44048",gradientUnits:"userSpaceOnUse",x1:"32",y1:"10",x2:"32",y2:"56.363",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M49,11c-6.617,0-12,5.383-12,12c0,2.949,1.074,5.649,2.845,7.741l-6.234,6.234 C32.071,35.742,30.122,35,28,35s-4.071,0.742-5.611,1.975l-5.077-5.077C18.366,30.542,19,28.846,19,27c0-4.411-3.589-8-8-8 s-8,3.589-8,8s3.589,8,8,8c1.846,0,3.542-0.634,4.897-1.688l5.077,5.077C19.742,39.929,19,41.878,19,44c0,4.963,4.037,9,9,9 s9-4.037,9-9c0-2.122-0.742-4.071-1.975-5.611l6.234-6.234C43.351,33.926,46.051,35,49,35c6.617,0,12-5.383,12-12S55.617,11,49,11z M11,33c-3.309,0-6-2.691-6-6s2.691-6,6-6s6,2.691,6,6S14.309,33,11,33z M28,51c-3.859,0-7-3.141-7-7s3.141-7,7-7s7,3.141,7,7 S31.859,51,28,51z M49,33c-5.514,0-10-4.486-10-10s4.486-10,10-10s10,4.486,10,10S54.514,33,49,33z",fill:"url(#SVGID_2__44048)"}),(0,e.createElement)("linearGradient",{id:"SVGID_3__44048",gradientUnits:"userSpaceOnUse",x1:"49",y1:"10",x2:"49",y2:"56.363",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M49,15c-4.411,0-8,3.589-8,8s3.589,8,8,8s8-3.589,8-8S53.411,15,49,15z M49,29 c-3.309,0-6-2.691-6-6s2.691-6,6-6s6,2.691,6,6S52.309,29,49,29z",fill:"url(#SVGID_3__44048)"})),Ie=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"eb-team-members",viewBox:"0 0 64 64"},(0,e.createElement)("linearGradient",{id:"SVGID_1__43670",gradientUnits:"userSpaceOnUse",x1:"30",y1:"30.75",x2:"30",y2:"35.17",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("circle",{cx:"30",cy:"33",r:"2",fill:"url(#SVGID_1__43670)"}),(0,e.createElement)("linearGradient",{id:"SVGID_2__43670",gradientUnits:"userSpaceOnUse",x1:"22",y1:"30.75",x2:"22",y2:"35.17",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("circle",{cx:"22",cy:"33",r:"2",fill:"url(#SVGID_2__43670)"}),(0,e.createElement)("linearGradient",{id:"SVGID_3__43670",gradientUnits:"userSpaceOnUse",x1:"26",y1:"36.833",x2:"26",y2:"41.25",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M23,38c0,1.657,1.343,3,3,3h0c1.657,0,3-1.343,3-3v-1h-6V38z",fill:"url(#SVGID_3__43670)"}),(0,e.createElement)("linearGradient",{id:"SVGID_4__43670",gradientUnits:"userSpaceOnUse",x1:"32",y1:"6.75",x2:"32",y2:"57.323",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M51.114,40.344c0.329-0.77,0.569-1.584,0.716-2.428C54.191,37.518,56,35.473,56,33 c0-2.415-1.721-4.434-4-4.899V27h3.5c1.379,0,2.5-1.121,2.5-2.5S56.879,22,55.5,22H52v-3c0-3.859-3.141-7-7-7H33.715 c-0.866-0.477-1.77-0.885-2.715-1.195V7h-2c-1.2,0-2.266,0.542-3,1.382C25.266,7.542,24.2,7,23,7h-2v3.811 C14.621,12.917,10,18.925,10,26v2h0.026C9.391,28.838,9,29.87,9,31c0,2.533,1.894,4.632,4.339,4.956 c0.165,0.706,0.389,1.389,0.664,2.046C8.968,41.773,6,47.648,6,54v3h40h12v-3C58,48.6,55.436,43.548,51.114,40.344z M54,33 c0,1.302-0.838,2.402-2,2.816v-5.631C53.162,30.598,54,31.698,54,33z M55.5,24c0.275,0,0.5,0.225,0.5,0.5S55.775,25,55.5,25H42 c0-0.333-0.012-0.667-0.033-1H55.5z M43.789,44.874c-1.369-2.668-3.341-5.025-5.794-6.868c0.278-0.664,0.493-1.358,0.659-2.072 C41.1,35.61,43,33.533,43,31c0-1.13-0.391-2.162-1.026-3H42v-1h6v4c0,1.302,0.838,2.402,2,2.816V36c0,3.954-2.532,7.405-6.301,8.588 L43.789,44.874z M35.203,26H36c0.34,0,0.672-0.033,1-0.08v2.792C36.345,28.374,35.563,27.626,35.203,26z M37,30.823V33 c0,6.065-4.935,11-11,11s-11-4.935-11-11v-2.177c1.238-0.356,3.247-1.46,3.83-4.823H33.17C33.753,29.363,35.762,30.466,37,30.823z M36,24h-1h-2H19.101c0.465-2.279,2.484-4,4.899-4h16.899C40.435,22.279,38.415,24,36,24z M41,31c0,1.317-0.859,2.427-2.042,2.829 C38.976,33.553,39,33.28,39,33v-4.816C40.162,28.598,41,29.698,41,31z M39,26.101v-0.786c0.347-0.166,0.679-0.355,0.992-0.573 C39.993,24.828,40,24.914,40,25v1.424C39.682,26.284,39.349,26.172,39,26.101z M45,14c2.757,0,5,2.243,5,5v3h-7.685 C42.75,21.089,43,20.074,43,19v-1h-3.152c-0.881-1.525-1.988-2.87-3.269-4H45z M29,9v1.289c-0.575-0.109-1.159-0.19-1.75-0.236 C27.589,9.429,28.242,9,29,9z M23,9c0.762,0,1.418,0.434,1.756,1.063c-0.595,0.046-1.181,0.119-1.756,0.229V9z M11,31 c0-1.304,0.836-2.416,2-2.829V33c0,0.281,0.009,0.562,0.026,0.838C11.849,33.433,11,32.313,11,31z M14,26 c-0.712,0-1.386,0.155-2,0.424V26c0-7.72,6.28-14,14-14c4.626,0,8.885,2.264,11.486,6H24c-3.519,0-6.432,2.614-6.92,6H17 c0,3.078-1.119,4.258-2,4.713V26H14z M14.937,39.81C17.229,43.52,21.328,46,26,46c4.672,0,8.765-2.486,11.056-6.197 c0.541,0.422,1.053,0.873,1.537,1.349C35.839,45.401,31.104,48,26,48c-5.086,0-9.84-2.612-12.594-6.858 C13.888,40.672,14.399,40.228,14.937,39.81z M44,55h-4v-2h-2v2H14v-2h-2v2H8v-1c0-4.207,1.447-8.182,4.016-11.342 C15.173,47.216,20.41,50,26,50c5.608,0,10.815-2.774,13.972-7.33C42.54,45.843,44,49.835,44,54V55z M56,55h-4v-2h-2v2h-4v-1 c0-2.631-0.53-5.198-1.504-7.574c2.377-0.795,4.334-2.333,5.654-4.311C53.828,44.949,56,49.328,56,54V55z",fill:"url(#SVGID_4__43670)"})),De=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"eb-testimonials",viewBox:"0 0 64 64"},(0,e.createElement)("linearGradient",{id:"SVGID_1__43982",gradientUnits:"userSpaceOnUse",x1:"8",y1:"22.938",x2:"8",y2:"27.125",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M10,26c0,0.552-0.448,1-1,1H7c-0.552,0-1-0.448-1-1v-2c0-0.552,0.448-1,1-1h2 c0.552,0,1,0.448,1,1V26z",fill:"url(#SVGID_1__43982)"}),(0,e.createElement)("linearGradient",{id:"SVGID_2__43982",gradientUnits:"userSpaceOnUse",x1:"14",y1:"22.938",x2:"14",y2:"27.125",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M16,26c0,0.552-0.448,1-1,1h-2c-0.552,0-1-0.448-1-1v-2c0-0.552,0.448-1,1-1h2 c0.552,0,1,0.448,1,1V26z",fill:"url(#SVGID_2__43982)"}),(0,e.createElement)("linearGradient",{id:"SVGID_3__43982",gradientUnits:"userSpaceOnUse",x1:"20",y1:"22.938",x2:"20",y2:"27.125",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M22,26c0,0.552-0.448,1-1,1h-2c-0.552,0-1-0.448-1-1v-2c0-0.552,0.448-1,1-1h2 c0.552,0,1,0.448,1,1V26z",fill:"url(#SVGID_3__43982)"}),(0,e.createElement)("linearGradient",{id:"SVGID_4__43982",gradientUnits:"userSpaceOnUse",x1:"26",y1:"22.938",x2:"26",y2:"27.125",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M28,26c0,0.552-0.448,1-1,1h-2c-0.552,0-1-0.448-1-1v-2c0-0.552,0.448-1,1-1h2 c0.552,0,1,0.448,1,1V26z",fill:"url(#SVGID_4__43982)"}),(0,e.createElement)("linearGradient",{id:"SVGID_5__43982",gradientUnits:"userSpaceOnUse",x1:"8",y1:"28.813",x2:"8",y2:"33.448",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M10,32c0,0.552-0.448,1-1,1H7c-0.552,0-1-0.448-1-1v-2c0-0.552,0.448-1,1-1h2 c0.552,0,1,0.448,1,1V32z",fill:"url(#SVGID_5__43982)"}),(0,e.createElement)("linearGradient",{id:"SVGID_6__43982",gradientUnits:"userSpaceOnUse",x1:"17",y1:"28.813",x2:"17",y2:"33.448",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M22,32c0,0.552-0.448,1-1,1h-8c-0.552,0-1-0.448-1-1v-2c0-0.552,0.448-1,1-1h8 c0.552,0,1,0.448,1,1V32z",fill:"url(#SVGID_6__43982)"}),(0,e.createElement)("linearGradient",{id:"SVGID_7__43982",gradientUnits:"userSpaceOnUse",x1:"26",y1:"28.813",x2:"26",y2:"33.448",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M28,32c0,0.552-0.448,1-1,1h-2c-0.552,0-1-0.448-1-1v-2c0-0.552,0.448-1,1-1h2 c0.552,0,1,0.448,1,1V32z",fill:"url(#SVGID_7__43982)"}),(0,e.createElement)("linearGradient",{id:"SVGID_8__43982",gradientUnits:"userSpaceOnUse",x1:"28",y1:"9.5",x2:"28",y2:"55.566",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M49,9H19c-2.757,0-5,2.241-5,4.998V17H5c-1.654,0-3,1.344-3,2.998v16C2,37.653,3.346,39,5,39 h9v2.998C14,44.755,16.243,47,19,47h11c0.552,0,1,0.447,1,0.998v4.1c0,1.132,0.658,2.135,1.717,2.617 c0.422,0.193,0.865,0.287,1.302,0.287c0.721,0,1.425-0.256,1.995-0.751l8.077-7.007C44.272,47.086,44.506,47,44.748,47H49 c2.757,0,5-2.245,5-5.002v-28C54,11.241,51.757,9,49,9z M14,35c-1.103,0-2,1-2,2H5c-0.552,0-1-0.45-1-1.002v-16 C4,19.447,4.448,19,5,19h24c0.552,0,1,0.447,1,0.998v16C30,36.55,29.552,37,29,37h-7c0-1-0.897-2-2-2H14z M52,41.998 C52,43.653,50.654,45,49,45h-4.252c-0.724,0-1.424,0.26-1.969,0.734l-8.076,7.007c-0.381,0.328-0.846,0.296-1.156,0.154 C33.383,52.821,33,52.593,33,52.098v-4.1C33,46.344,31.654,45,30,45H19c-1.654,0-3-1.347-3-3.002V39h13c1.654,0,3-1.347,3-3.002v-16 C32,18.344,30.654,17,29,17H16v-3.002C16,12.344,17.346,11,19,11h30c1.654,0,3,1.344,3,2.998V41.998z",fill:"url(#SVGID_8__43982)"}),(0,e.createElement)("linearGradient",{id:"SVGID_9__43982",gradientUnits:"userSpaceOnUse",x1:"42",y1:"9.5",x2:"42",y2:"55.568",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("rect",{x:"37",y:"17",width:"10",height:"2",fill:"url(#SVGID_9__43982)"}),(0,e.createElement)("linearGradient",{id:"SVGID_10__43982",gradientUnits:"userSpaceOnUse",x1:"42",y1:"9.5",x2:"42",y2:"55.568",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("rect",{x:"37",y:"21",width:"10",height:"2",fill:"url(#SVGID_10__43982)"}),(0,e.createElement)("linearGradient",{id:"SVGID_11__43982",gradientUnits:"userSpaceOnUse",x1:"42",y1:"9.5",x2:"42",y2:"55.568",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M44,25h-4c-1.654,0-3,1.344-3,2.998V39h2v-5h6v5h2V27.998C47,26.344,45.654,25,44,25z M45,32 h-6v-4.002C39,27.447,39.448,27,40,27h4c0.552,0,1,0.447,1,0.998V32z",fill:"url(#SVGID_11__43982)"})),Ne=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"eb-img-comparison",viewBox:"0 0 64 64"},(0,e.createElement)("linearGradient",{id:"SVGID_1__56353",gradientUnits:"userSpaceOnUse",x1:"32",y1:"7",x2:"32",y2:"56.807",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M52,7H12c-2.757,0-5,2.243-5,5v40c0,2.757,2.243,5,5,5h40c2.757,0,5-2.243,5-5V12 C57,9.243,54.757,7,52,7z M9,12c0-1.654,1.346-3,3-3h40c0.462,0,0.894,0.113,1.285,0.301L41.154,21.432C38.697,19.3,35.501,18,32,18 c-7.72,0-14,6.28-14,14c0,3.501,1.3,6.697,3.432,9.154L9.301,53.285C9.113,52.894,9,52.462,9,52V12z M22.845,39.741 C21.074,37.649,20,34.949,20,32c0-6.617,5.383-12,12-12c2.949,0,5.649,1.074,7.741,2.845L22.845,39.741z M41.155,24.259 C42.926,26.351,44,29.051,44,32c0,6.617-5.383,12-12,12c-2.949,0-5.649-1.074-7.741-2.845L41.155,24.259z M55,52 c0,1.654-1.346,3-3,3H12c-0.462,0-0.894-0.113-1.285-0.301l12.131-12.131C25.303,44.7,28.499,46,32,46c7.72,0,14-6.28,14-14 c0-3.501-1.3-6.697-3.432-9.154l12.131-12.131C54.887,11.106,55,11.538,55,12V52z",fill:"url(#SVGID_1__56353)"}),(0,e.createElement)("linearGradient",{id:"SVGID_2__56353",gradientUnits:"userSpaceOnUse",x1:"34.691",y1:"27.618",x2:"34.691",y2:"41.826",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M32,42c-1.614,0-3.199-0.397-4.618-1.139l13.479-13.479C41.603,28.801,42,30.386,42,32 C42,37.514,37.514,42,32,42z",fill:"url(#SVGID_2__56353)"}),(0,e.createElement)("linearGradient",{id:"SVGID_3__56353",gradientUnits:"userSpaceOnUse",x1:"29.879",y1:"11.097",x2:"29.879",y2:"48.982",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M40.98,18.777C38.336,16.976,35.209,16,32,16c-8.822,0-16,7.178-16,16 c0,3.209,0.976,6.336,2.777,8.98L11,48.758V12c0-0.551,0.449-1,1-1h36.758L40.98,18.777z",fill:"url(#SVGID_3__56353)"})),Le=()=>(0,e.createElement)("svg",{width:"20",height:"20",className:"eb-category-icon",viewBox:"0 0 453 446",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"linearGradient-1"},(0,e.createElement)("stop",{stopColor:"#2460FF",offset:"0%"}),(0,e.createElement)("stop",{stopColor:"#B80AFF",offset:"100%"})),(0,e.createElement)("path",{d:"M110.214843,146.445312 L165.730468,146.445312 L165.996093,146.578125 L166.195312,146.578125 C169.515641,146.578125 172.216135,148.282535 174.296875,151.691406 C175.005211,153.10808 175.359375,154.569003 175.359375,156.074219 C175.359375,159.748716 173.544288,162.582021 169.914062,164.574219 C168.674472,165.149742 167.434902,165.4375 166.195312,165.4375 L109.617187,165.4375 C106.960924,165.4375 104.614593,164.220064 102.578125,161.785156 C101.249993,160.014314 100.585937,158.199228 100.585937,156.339844 L100.585937,155.542969 C100.585937,152.621079 102.04686,150.119802 104.96875,148.039062 C106.562507,147.065099 108.134106,146.578125 109.683593,146.578125 L109.949218,146.578125 L110.214843,146.445312 Z M110.082031,193.925781 L138.703125,194.058594 C140.60678,194.058594 142.643218,195.032542 144.8125,196.980469 C146.539071,198.972666 147.402343,201.141915 147.402343,203.488281 C147.402343,206.764339 145.875015,209.442698 142.820312,211.523438 C141.315096,212.408859 139.854173,212.851562 138.4375,212.851562 L109.484375,212.851562 C106.651027,212.851562 104.19402,211.43491 102.113281,208.601562 C101.095046,207.007805 100.585937,205.41407 100.585937,203.820312 L100.585937,203.023438 C100.585937,200.013006 102.157536,197.423188 105.300781,195.253906 C106.894539,194.457027 108.399732,194.058594 109.816406,194.058594 L109.949218,194.058594 C110.03776,194.058594 110.082031,194.014323 110.082031,193.925781 Z M165.664062,194.058594 L166.128906,194.058594 C169.714861,194.058594 172.526031,195.91795 174.5625,199.636719 C175.093752,200.96485 175.359375,202.248692 175.359375,203.488281 C175.359375,207.20705 173.522153,210.06249 169.847656,212.054688 C168.519524,212.58594 167.346359,212.851562 166.328125,212.851562 L165.398437,212.851562 C162.388005,212.851562 159.820323,211.279964 157.695312,208.136719 C156.854162,206.542961 156.433593,204.971362 156.433593,203.421875 C156.433593,199.791649 158.248679,196.958344 161.878906,194.921875 C163.251308,194.346351 164.513015,194.058594 165.664062,194.058594 Z M110.214843,241.207031 L165.730468,241.207031 C165.730468,241.295573 166.416659,241.406249 167.789062,241.539062 C170.091157,242.114586 171.839837,243.15494 173.035156,244.660156 C174.584643,246.475269 175.359375,248.555978 175.359375,250.902344 C175.359375,254.488299 173.544288,257.321604 169.914062,259.402344 C168.807286,259.800783 168.054689,260 167.65625,260 L108.289062,260 C106.739575,260 104.880219,258.959646 102.710937,256.878906 C101.294263,254.975251 100.585937,253.049489 100.585937,251.101562 L100.585937,250.503906 C100.585937,247.227848 102.246077,244.54949 105.566406,242.46875 C106.540369,241.893226 108.045562,241.494793 110.082031,241.273438 C110.082031,241.229166 110.126301,241.207031 110.214843,241.207031 Z M200.175781,145.582031 L242.609375,145.582031 C252.216194,145.582031 260.494757,149.256474 267.445312,156.605469 C273.156279,163.113314 276.011719,170.528604 276.011719,178.851562 C276.011719,188.104213 272.669304,196.050748 265.984375,202.691406 C272.669304,209.022167 276.011719,216.968702 276.011719,226.53125 C276.011719,236.713593 271.783896,245.390589 263.328125,252.5625 C260.539049,254.598969 257.882825,256.148432 255.359375,257.210938 C251.37498,258.716153 248.253918,259.46875 245.996094,259.46875 L203.628906,259.46875 C202.212232,259.46875 200.485687,258.561207 198.449219,256.746094 C196.678377,254.753896 195.792969,252.606782 195.792969,250.304688 L195.792969,202.425781 C195.792969,198.884097 197.608055,196.072927 201.238281,193.992188 C202.787768,193.372393 204.093745,193.0625 205.15625,193.0625 C206.572924,193.106771 207.436196,193.128906 207.746094,193.128906 C214.696649,193.128906 226.649655,193.151041 243.605469,193.195312 C245.951835,193.195312 248.630193,192.199229 251.640625,190.207031 C255.270851,186.930973 257.085938,183.101584 257.085938,178.71875 C257.085938,175.265608 255.735691,171.989599 253.035156,168.890625 C250.290351,166.057277 246.881531,164.640625 242.808594,164.640625 L200.175781,164.640625 C195.881489,164.640625 192.804697,162.559917 190.945312,158.398438 C190.591144,157.24739 190.414062,156.207036 190.414062,155.277344 L190.414062,154.945312 C190.414062,151.713526 191.919256,149.079437 194.929688,147.042969 C196.434903,146.069006 198.183584,145.582031 200.175781,145.582031 Z M217.441406,212.652344 L217.441406,241.140625 L245,241.140625 C251.817742,241.140625 256.466133,237.776075 258.945312,231.046875 C259.388023,229.453117 259.609375,228.10287 259.609375,226.996094 C259.609375,223.365867 258.170587,219.979182 255.292969,216.835938 C252.636705,214.046861 249.028669,212.652344 244.46875,212.652344 L217.441406,212.652344 Z",id:"path-2"}),(0,e.createElement)("filter",{x:"-23.1%",y:"-22.3%",width:"146.2%",height:"170.8%",filterUnits:"objectBoundingBox",id:"filter-3"},(0,e.createElement)("feOffset",{dy:"15",in:"SourceAlpha",result:"shadowOffsetOuter1"}),(0,e.createElement)("feGaussianBlur",{stdDeviation:"11",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),(0,e.createElement)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0",in:"shadowBlurOuter1"})),(0,e.createElement)("circle",{id:"path-4",cx:"318.5",cy:"60.5",r:"55.5"}),(0,e.createElement)("filter",{x:"-65.8%",y:"-44.1%",width:"222.5%",height:"222.5%",filterUnits:"objectBoundingBox",id:"filter-5"},(0,e.createElement)("feOffset",{dx:"-5",dy:"19",in:"SourceAlpha",result:"shadowOffsetOuter1"}),(0,e.createElement)("feGaussianBlur",{stdDeviation:"19.5",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),(0,e.createElement)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.28161798 0",in:"shadowBlurOuter1"})),(0,e.createElement)("circle",{id:"path-6",cx:"319",cy:"61",r:"17"}),(0,e.createElement)("filter",{x:"-152.9%",y:"-111.8%",width:"388.2%",height:"388.2%",filterUnits:"objectBoundingBox",id:"filter-7"},(0,e.createElement)("feOffset",{dx:"-3",dy:"11",in:"SourceAlpha",result:"shadowOffsetOuter1"}),(0,e.createElement)("feGaussianBlur",{stdDeviation:"14.5",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),(0,e.createElement)("feColorMatrix",{values:"0 0 0 0 0.382304935 0 0 0 0 0.0324290316 0 0 0 0 0.516581633 0 0 0 0.654381793 0",in:"shadowBlurOuter1"})),(0,e.createElement)("circle",{id:"path-8",cx:"63.5",cy:"348.5",r:"9.5"}),(0,e.createElement)("filter",{x:"-147.4%",y:"-89.5%",width:"363.2%",height:"363.2%",filterUnits:"objectBoundingBox",id:"filter-9"},(0,e.createElement)("feOffset",{dx:"-3",dy:"8",in:"SourceAlpha",result:"shadowOffsetOuter1"}),(0,e.createElement)("feGaussianBlur",{stdDeviation:"7",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),(0,e.createElement)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.28161798 0",in:"shadowBlurOuter1"})),(0,e.createElement)("linearGradient",{x1:"79.408%",y1:"0%",x2:"6.263%",y2:"100%",id:"linearGradient-10"},(0,e.createElement)("stop",{stopColor:"#FF710F",offset:"0%"}),(0,e.createElement)("stop",{stopColor:"#CB16A9",offset:"100%"}))),(0,e.createElement)("g",{id:"EB-Logo",fill:"none",fillRule:"evenodd"},(0,e.createElement)("g",{id:"Group-5",transform:"translate(29 19)"},(0,e.createElement)("circle",{id:"Oval-2",fill:"url(#linearGradient-1)",cx:"187",cy:"208",r:"187"}),(0,e.createElement)("g",{id:"EB"},(0,e.createElement)("use",{fill:"#000",filter:"url(#filter-3)",xlinkHref:"#path-2"}),(0,e.createElement)("use",{fill:"#FFF",xlinkHref:"#path-2"})),(0,e.createElement)("g",{id:"Oval-3",opacity:"0.913"},(0,e.createElement)("use",{fill:"#000",filter:"url(#filter-5)",xlinkHref:"#path-4"}),(0,e.createElement)("use",{fill:"#FFF",xlinkHref:"#path-4"})),(0,e.createElement)("g",{id:"Oval-3"},(0,e.createElement)("use",{fill:"#000",filter:"url(#filter-7)",xlinkHref:"#path-6"}),(0,e.createElement)("use",{fill:"#A43DFF",xlinkHref:"#path-6"})),(0,e.createElement)("g",{id:"Oval-3-Copy-2",opacity:"0.913",transform:"rotate(-7 63.5 348.5)"},(0,e.createElement)("use",{fill:"#000",filter:"url(#filter-9)",xlinkHref:"#path-8"}),(0,e.createElement)("use",{fill:"#FFF",xlinkHref:"#path-8"})),(0,e.createElement)("circle",{id:"Oval-3-Copy-4",fill:"#F5A623",cx:"385",cy:"117",r:"12"}),(0,e.createElement)("circle",{id:"Oval-3-Copy-5",fill:"#D8D8D8",cx:"257",cy:"9",r:"9"}),(0,e.createElement)("path",{d:"M145.182623,334.548531 C139.966285,339.764869 137.156925,346.476118 136.753323,353.300766 C136.311922,360.746058 133.113592,367.759704 127.839945,373.033351 C122.604098,378.270418 115.653858,381.543128 108.259778,381.941852 C100.95349,382.335699 93.769137,385.480378 88.3930654,391.383204 C83.408402,396.856823 80.9099736,403.833889 80.8989995,410.813393 L80.8989995,410.914598 C80.9111929,417.89898 83.4144987,424.878484 88.4064781,430.352103 C99.6170933,442.645492 118.683918,442.977153 130.316425,431.343426 C135.532764,426.127088 138.340904,419.418278 138.745725,412.591191 C139.185907,405.144679 142.384237,398.132253 147.659103,392.857387 C152.894951,387.62032 159.843972,384.350049 167.239271,383.951325 C174.544339,383.557478 181.729912,380.41036 187.104764,374.508753 C192.077234,369.048547 194.575662,362.093429 194.59883,355.130996 L194.59883,354.934682 C194.575662,347.964933 192.073576,341.002499 187.092571,335.541074 C181.332407,329.223671 173.498145,326.06558 165.663883,326.06558 C158.251513,326.06558 150.839143,328.89323 145.182623,334.548531",id:"Fill-1",fill:"url(#linearGradient-10)",opacity:"0.898",transform:"rotate(34 137.749 382.946)"}),(0,e.createElement)("path",{d:"M220.972652,42 C213.584652,42.035 207.609652,48.035 207.609652,55.43 C207.609652,58.85 208.887652,61.971 210.992652,64.341 C213.289652,66.927 214.540652,70.274 214.540652,73.732 L214.539652,73.732 C214.539652,76.922 213.499652,80.038 211.513652,82.514 C209.037652,84.5 205.920652,85.541 202.731652,85.541 C199.272652,85.541 195.925652,84.29 193.340652,81.994 C190.969652,79.888 187.849652,78.609 184.429652,78.609 C176.801652,78.609 170.659652,84.969 171.014652,92.675 C171.330652,99.551 176.908652,105.132 183.784652,105.454 C187.483652,105.627 190.869652,104.303 193.393652,102.036 C195.949652,99.743 199.300652,98.537 202.733652,98.537 C206.191652,98.537 209.539652,99.788 212.125652,102.085 C214.494652,104.189 217.614652,105.469 221.035652,105.469 C222.732652,105.469 224.354652,105.152 225.849652,104.578 C225.856652,104.576 225.863652,104.574 225.869652,104.57 C226.071652,104.492 226.271652,104.411 226.467652,104.323 C226.485652,104.315 226.501652,104.307 226.519652,104.299 C226.705652,104.216 226.888652,104.13 227.070652,104.038 C227.097652,104.024 227.125652,104.009 227.152652,103.995 C227.322652,103.908 227.489652,103.818 227.656652,103.725 C227.693652,103.704 227.729652,103.681 227.765652,103.659 C227.920652,103.569 228.073652,103.479 228.223652,103.384 C228.270652,103.355 228.315652,103.323 228.361652,103.292 C228.499652,103.202 228.637652,103.111 228.772652,103.017 C228.828652,102.977 228.882652,102.936 228.936652,102.896 C229.058652,102.806 229.181652,102.717 229.301652,102.623 C229.366652,102.572 229.427652,102.52 229.491652,102.468 C229.598652,102.381 229.705652,102.295 229.809652,102.205 C229.882652,102.143 229.952652,102.077 230.023652,102.013 C230.115652,101.931 230.207652,101.848 230.296652,101.763 C230.377652,101.687 230.452652,101.608 230.530652,101.531 C230.608652,101.454 230.686652,101.377 230.762652,101.298 C230.847652,101.208 230.929652,101.116 231.012652,101.024 C231.076652,100.952 231.141652,100.883 231.204652,100.811 C231.294652,100.706 231.380652,100.599 231.467652,100.492 C231.518652,100.429 231.572652,100.366 231.621652,100.302 C231.715652,100.182 231.805652,100.06 231.894652,99.938 C231.934652,99.882 231.976652,99.829 232.015652,99.774 C232.110652,99.639 232.201652,99.501 232.291652,99.362 C232.321652,99.317 232.353652,99.271 232.383652,99.224 C232.478652,99.074 232.569652,98.921 232.658652,98.767 C232.679652,98.73 232.702652,98.694 232.723652,98.656 C232.818652,98.491 232.906652,98.322 232.994652,98.152 C233.008652,98.125 233.022652,98.099 233.037652,98.071 C233.129652,97.89 233.214652,97.707 233.298652,97.519 C233.305652,97.503 233.314652,97.486 233.321652,97.469 C233.409652,97.272 233.491652,97.072 233.569652,96.871 L233.578652,96.851 C234.152652,95.356 234.467652,93.733 234.467652,92.037 C234.467652,88.617 233.189652,85.496 231.083652,83.125 C228.787652,80.54 227.536652,77.191 227.536652,73.733 C227.536652,70.301 228.741652,66.949 231.035652,64.395 C233.302652,61.87 234.625652,58.484 234.453652,54.786 C234.131652,47.91 228.550652,42.332 221.673652,42.015 C221.486652,42.006 221.299652,42.001 221.113652,42 L220.972652,42 Z",id:"Fill-1",fill:"#FFF",opacity:"0.097"})))),Fe=()=>(0,e.createElement)("svg",{viewBox:"0 0 64 42",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{x1:"50%",y1:"-.962%",x2:"50%",y2:"102.035%",id:"linearGradient-1"},(0,e.createElement)("stop",{stopColor:"#1A6DFF",offset:"0%"}),(0,e.createElement)("stop",{stopColor:"#C822FF",offset:"100%"}))),(0,e.createElement)("g",{id:"Page-1",fill:"none",fillRule:"evenodd"},(0,e.createElement)("g",{id:"eb-wrapper",fill:"url(#linearGradient-1)",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M3,0 C1.347656,0 0,1.347656 0,3 L0,27 C0,28.652344 1.347656,30 3,30 L20.050781,30 C20.566406,36.699219 26.171875,42 33,42 C39.828125,42 45.433594,36.699219 45.949219,30 L61,30 C62.652344,30 64,28.652344 64,27 L64,3 C64,1.347656 62.652344,0 61,0 L3,0 Z M3,2 L61,2 C61.550781,2 62,2.449219 62,3 L62,27 C62,27.550781 61.550781,28 61,28 L45.949219,28 C45.460938,21.628906 40.371094,16.539063 34,16.050781 L34,5 C34,4.449219 33.554688,4 33,4 C32.445313,4 32,4.449219 32,5 L32,16.050781 C25.628906,16.539063 20.539063,21.628906 20.050781,28 L3,28 C2.449219,28 2,27.550781 2,27 L2,3 C2,2.449219 2.449219,2 3,2 Z M5,4 C4.445313,4 4,4.449219 4,5 C4,5.550781 4.445313,6 5,6 L7,6 C7.554688,6 8,5.550781 8,5 C8,4.449219 7.554688,4 7,4 L5,4 Z M17,4 C16.445313,4 16,4.449219 16,5 L16,25 C16,25.550781 16.445313,26 17,26 C17.554688,26 18,25.550781 18,25 L18,5 C18,4.449219 17.554688,4 17,4 Z M49,4 C48.445313,4 48,4.449219 48,5 L48,25 C48,25.550781 48.445313,26 49,26 C49.554688,26 50,25.550781 50,25 L50,5 C50,4.449219 49.554688,4 49,4 Z M5,9 C4.445313,9 4,9.449219 4,10 C4,10.550781 4.445313,11 5,11 L7,11 C7.554688,11 8,10.550781 8,10 C8,9.449219 7.554688,9 7,9 L5,9 Z M5,14 C4.445313,14 4,14.449219 4,15 C4,15.550781 4.445313,16 5,16 L7,16 C7.554688,16 8,15.550781 8,15 C8,14.449219 7.554688,14 7,14 L5,14 Z M33,18 C39.066406,18 44,22.933594 44,29 C44,35.066406 39.066406,40 33,40 C26.933594,40 22,35.066406 22,29 C22,22.933594 26.933594,18 33,18 Z M5,19 C4.445313,19 4,19.449219 4,20 C4,20.550781 4.445313,21 5,21 L7,21 C7.554688,21 8,20.550781 8,20 C8,19.449219 7.554688,19 7,19 L5,19 Z M33,22 C32.445313,22 32,22.449219 32,23 L32,28 L27,28 C26.445313,28 26,28.449219 26,29 C26,29.550781 26.445313,30 27,30 L32,30 L32,35 C32,35.550781 32.445313,36 33,36 C33.554688,36 34,35.550781 34,35 L34,30 L39,30 C39.554688,30 40,29.550781 40,29 C40,28.449219 39.554688,28 39,28 L34,28 L34,23 C34,22.449219 33.554688,22 33,22 Z M5,24 C4.445313,24 4,24.449219 4,25 C4,25.550781 4.445313,26 5,26 L7,26 C7.554688,26 8,25.550781 8,25 C8,24.449219 7.554688,24 7,24 L5,24 Z",id:"Shape"})))),ze=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"Слой_1",viewBox:"0 0 64 64"},(0,e.createElement)("linearGradient",{id:"SVGID_1__43625",gradientUnits:"userSpaceOnUse",x1:"32",y1:"6.667",x2:"32",y2:"57.872",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M44,57H20c-7.168,0-13-5.832-13-13V20c0-7.168,5.832-13,13-13h24c7.168,0,13,5.832,13,13v24 C57,51.168,51.168,57,44,57z M20,9C13.935,9,9,13.935,9,20v24c0,6.065,4.935,11,11,11h24c6.065,0,11-4.935,11-11V20 c0-6.065-4.935-11-11-11H20z",fill:"url(#SVGID_1__43625)"}),(0,e.createElement)("linearGradient",{id:"SVGID_2__43625",gradientUnits:"userSpaceOnUse",x1:"32",y1:"18.167",x2:"32",y2:"45.679",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("path",{d:"M32,45c-7.168,0-13-5.832-13-13c0-7.168,5.832-13,13-13c7.168,0,13,5.832,13,13 C45,39.168,39.168,45,32,45z M32,23c-4.962,0-9,4.038-9,9c0,4.963,4.038,9,9,9c4.963,0,9-4.037,9-9C41,27.038,36.963,23,32,23z",fill:"url(#SVGID_2__43625)"}),(0,e.createElement)("linearGradient",{id:"SVGID_3__43625",gradientUnits:"userSpaceOnUse",x1:"46",y1:"12.75",x2:"46",y2:"23.049",spreadMethod:"reflect"},(0,e.createElement)("stop",{offset:"0",stopColor:"#6dc7ff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#e6abff"})),(0,e.createElement)("circle",{cx:"46",cy:"18",r:"3",fill:"url(#SVGID_3__43625)"})),Ve=()=>(0,e.createElement)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 66 70"},(0,e.createElement)("linearGradient",{id:"SVGID_1_GALLERY",gradientUnits:"userSpaceOnUse",x1:"-11.021",y1:"35.1",x2:"79.881",y2:"35.1"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{className:"st0g",d:"M66.1,2.1H-0.1c-0.9,0-1.6,0.7-1.6,1.6v31.4v31.4c0,0.9,0.7,1.6,1.6,1.6h66.2c0.9,0.2,1.6-0.5,1.6-1.4V35.3 V3.7C67.7,2.8,67,2.1,66.1,2.1z M64.6,36.9v5.8v22.5H1.5V33.8V23.5v-18h63.1V36.9z"}),(0,e.createElement)("linearGradient",{id:"SVGID_2_GALLERY",gradientUnits:"userSpaceOnUse",x1:"-11.021",y1:"25.217",x2:"79.881",y2:"25.217"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{className:"st1g",d:"M12.4,33.2h15.7c1.7,0,3-1.4,3-3v-10c0-1.7-1.4-3-3-3H12.4c-1.7,0-3,1.4-3,3v10C9.4,31.9,10.8,33.2,12.4,33.2z M12,20.2c0-0.2,0.2-0.4,0.4-0.4h15.7c0.2,0,0.4,0.2,0.4,0.4v10c0,0.2-0.2,0.4-0.4,0.4H12.4c-0.2,0-0.4-0.2-0.4-0.4V20.2z"}),(0,e.createElement)("linearGradient",{id:"SVGID_3_GALLERY",gradientUnits:"userSpaceOnUse",x1:"-11.021",y1:"43.836",x2:"79.881",y2:"43.836"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{className:"st2g",d:"M12.4,51.8h15.7c1.7,0,3-1.4,3-3v-10c0-1.7-1.4-3-3-3H12.4c-1.7,0-3,1.4-3,3v10C9.4,50.5,10.8,51.8,12.4,51.8z M12,38.9c0-0.2,0.2-0.4,0.4-0.4h15.7c0.2,0,0.4,0.2,0.4,0.4v10c0,0.2-0.2,0.4-0.4,0.4H12.4c-0.2,0-0.4-0.2-0.4-0.4V38.9z"}),(0,e.createElement)("linearGradient",{id:"SVGID_4_GALLERY",gradientUnits:"userSpaceOnUse",x1:"-11.021",y1:"43.836",x2:"79.881",y2:"43.836"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{className:"st3g",d:"M37.5,51.8h15.7c1.7,0,3-1.4,3-3v-10c0-1.7-1.4-3-3-3H37.5c-1.7,0-3,1.4-3,3v10C34.5,50.5,35.9,51.8,37.5,51.8 z M37.1,38.9c0-0.2,0.2-0.4,0.4-0.4h15.7c0.2,0,0.4,0.2,0.4,0.4v10c0,0.2-0.2,0.4-0.4,0.4H37.5c-0.2,0-0.4-0.2-0.4-0.4V38.9z"}),(0,e.createElement)("linearGradient",{id:"SVGID_5_GALLERY",gradientUnits:"userSpaceOnUse",x1:"-11.021",y1:"25.217",x2:"79.881",y2:"25.217"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{className:"st4g",d:"M37.5,33.2h15.7c1.7,0,3-1.4,3-3v-10c0-1.7-1.4-3-3-3H37.5c-1.7,0-3,1.4-3,3v10C34.5,31.9,35.9,33.2,37.5,33.2 z M37.1,20.2c0-0.2,0.2-0.4,0.4-0.4h15.7c0.2,0,0.4,0.2,0.4,0.4v10c0,0.2-0.2,0.4-0.4,0.4h0l-4.7-4.9h-0.1l-2.5,2.2l-3.2-4 c0,0,0,0-0.1,0c0,0,0,0-0.1,0l-5,6.7c-0.2-0.1-0.3-0.2-0.3-0.4V20.2z"}),(0,e.createElement)("linearGradient",{id:"SVGID_6_GALLERY",gradientUnits:"userSpaceOnUse",x1:"-11.021",y1:"22.534",x2:"79.881",y2:"22.534"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("path",{className:"st5g",d:"M48.1,23.8c0.7,0,1.2-0.6,1.2-1.2s-0.6-1.2-1.2-1.2s-1.2,0.6-1.2,1.2C46.8,23.1,47.3,23.8,48.1,23.8z"})),Ue=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 83 63"},(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{id:"a",x1:"50%",x2:"50%",y1:".781%",y2:"100.93%"},(0,e.createElement)("stop",{offset:"0%",stopColor:"#6DC7FF"}),(0,e.createElement)("stop",{offset:"100%",stopColor:"#E6ABFF"})),(0,e.createElement)("linearGradient",{id:"b",x1:"50%",x2:"50%",y1:"-13.261%",y2:"419.291%"},(0,e.createElement)("stop",{offset:"0%",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"100%",stopColor:"#C822FF"})),(0,e.createElement)("linearGradient",{id:"c",x1:"50%",x2:"50%",y1:"3.125%",y2:"96.88%"},(0,e.createElement)("stop",{offset:"0%",stopColor:"#6DC7FF"}),(0,e.createElement)("stop",{offset:"100%",stopColor:"#E6ABFF"})),(0,e.createElement)("linearGradient",{id:"d",x1:"50%",x2:"50%",y1:".781%",y2:"100.93%"},(0,e.createElement)("stop",{offset:"0%",stopColor:"#6DC7FF"}),(0,e.createElement)("stop",{offset:"100%",stopColor:"#E6ABFF"})),(0,e.createElement)("linearGradient",{id:"e",x1:"50%",x2:"50%",y1:".782%",y2:"100.93%"},(0,e.createElement)("stop",{offset:"0%",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"100%",stopColor:"#C822FF"}))),(0,e.createElement)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},(0,e.createElement)("path",{fill:"url(#a)",fillRule:"nonzero",d:"M72.056 0H10.944C7.115 0 4 3.072 4 6.848v49.304C4 59.928 7.115 63 10.944 63h61.112C75.885 63 79 59.928 79 56.152V6.848C79 3.072 75.885 0 72.056 0zm4.166 56.152c0 2.265-1.87 4.109-4.166 4.109H10.944c-2.297 0-4.166-1.844-4.166-4.109V6.848c0-2.265 1.87-4.109 4.166-4.109h61.112c2.297 0 4.166 1.844 4.166 4.109v49.304z"}),(0,e.createElement)("path",{fill:"url(#b)",d:"M77.5 26a5.506 5.506 0 00-5.5 5.5c0 3.033 2.467 5.5 5.5 5.5s5.5-2.467 5.5-5.5-2.467-5.5-5.5-5.5z"}),(0,e.createElement)("circle",{cx:"77.5",cy:"31.5",r:"2.5",fill:"url(#c)"}),(0,e.createElement)("path",{fill:"url(#b)",d:"M5.5 26A5.506 5.506 0 000 31.5C0 34.533 2.467 37 5.5 37s5.5-2.467 5.5-5.5S8.533 26 5.5 26z"}),(0,e.createElement)("circle",{cx:"5.5",cy:"31.5",r:"2.5",fill:"url(#c)"}),(0,e.createElement)("g",null,(0,e.createElement)("path",{fill:"url(#d)",d:"M3 12.667h14.452V19H3v-6.333zm30.968-4.223l-6.194 4.223H25.71V6.333L33.968 0H35v8.444h-1.032z",transform:"translate(22 17)"}),(0,e.createElement)("path",{fill:"url(#e)",d:"M0 0h6v30H0V0zm16 0h6v30h-6V0zm18 0h6v30h-6V0z",transform:"translate(22 17)"})))),He=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 70 70",version:"1.1",viewBox:"0 0 70 70",xmlSpace:"preserve"},(0,e.createElement)("linearGradient",{x1:"-68.872",x2:"-62.187",y1:"35.19",y2:"35.19",gradientTransform:"matrix(-1 0 0 1 1.128 0)",gradientUnits:"userSpaceOnUse",id:"SVGID_1_SLIDER"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{fill:"url(#SVGID_1_SLIDER)",d:"M64.8 40.6c-.4 0-.7-.1-1-.4-.6-.6-.6-1.5 0-2.1l2.4-2.5-2.3-3.4c-.5-.7-.3-1.6.4-2.1s1.6-.3 2.1.4l3.6 5.4-4.1 4.3c-.3.2-.7.4-1.1.4z"}),(0,e.createElement)("g",null,(0,e.createElement)("linearGradient",{x1:"-132.008",x2:"-125.322",y1:"35.19",y2:"35.19",gradientTransform:"translate(132.008)",gradientUnits:"userSpaceOnUse",id:"SVGID_2_SLIDER"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{fill:"url(#SVGID_2_SLIDER)",d:"M5.2 40.6c-.4 0-.8-.2-1.1-.5L0 35.8l3.6-5.4c.5-.7 1.4-.9 2.1-.4.7.5.9 1.4.4 2.1l-2.3 3.4L6.3 38c.6.6.6 1.5 0 2.1-.4.3-.7.5-1.1.5z"})),(0,e.createElement)("g",null,(0,e.createElement)("linearGradient",{x1:"10.48",x2:"59.603",y1:"35",y2:"35",gradientUnits:"userSpaceOnUse",id:"SVGID_3_SLIDER"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{fill:"url(#SVGID_3_SLIDER)",d:"M53 65.2H17.1c-3.6 0-6.6-3-6.6-6.6V11.4c0-3.6 3-6.6 6.6-6.6H53c3.6 0 6.6 3 6.6 6.6v47.2c0 3.6-3 6.6-6.6 6.6zM17.1 7.8c-2 0-3.6 1.6-3.6 3.6v47.2c0 2 1.6 3.6 3.6 3.6H53c2 0 3.6-1.6 3.6-3.6V11.4c0-2-1.6-3.6-3.6-3.6H17.1z"}),(0,e.createElement)("linearGradient",{x1:"10.809",x2:"59.152",y1:"40.508",y2:"40.508",gradientUnits:"userSpaceOnUse",id:"SVGID_4_SLIDER"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{fill:"url(#SVGID_4_SLIDER)",d:"M33.2 53.8L23 41.3 13.2 53.7 10.8 51.8 23 36.6 33.5 49.4 57.1 27.2 59.2 29.4z"}),(0,e.createElement)("g",null,(0,e.createElement)("linearGradient",{x1:"39.404",x2:"49.259",y1:"21.195",y2:"21.195",gradientUnits:"userSpaceOnUse",id:"SVGID_5_SLIDER"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{fill:"url(#SVGID_5_SLIDER)",d:"M44.3 26.1c-2.7 0-4.9-2.2-4.9-4.9s2.2-4.9 4.9-4.9 4.9 2.2 4.9 4.9c.1 2.7-2.2 4.9-4.9 4.9zm0-7c-1.2 0-2.1 1-2.1 2.1 0 1.2 1 2.1 2.1 2.1s2.1-1 2.1-2.1c.1-1.2-.9-2.1-2.1-2.1z"})))),Ge=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 70 70",version:"1.1",viewBox:"0 0 70 70",xmlSpace:"preserve"},(0,e.createElement)("linearGradient",{x1:"-16.082",x2:"86.557",y1:"32.808",y2:"37.212",gradientUnits:"userSpaceOnUse",id:"SVGID_1_TYPED"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{d:"M63.4 0H6.6C3 0 0 3 0 6.6v56.8C0 67 3 70 6.6 70h56.8c3.6 0 6.6-3 6.6-6.6V6.6C70 3 67 0 63.4 0zM67 63.4c0 2-1.6 3.6-3.6 3.6H6.6c-2 0-3.6-1.6-3.6-3.6V6.6C3 4.6 4.6 3 6.6 3h56.8c2 0 3.6 1.6 3.6 3.6v56.8z",className:"st0t"}),(0,e.createElement)("linearGradient",{x1:"-16.763",x2:"85.875",y1:"48.693",y2:"53.097",gradientUnits:"userSpaceOnUse",id:"SVGID_2_TYPED"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{d:"M58.8 50.1H44.9c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h13.9c.8 0 1.5-.7 1.5-1.5s-.7-1.5-1.5-1.5z",className:"st1t"}),(0,e.createElement)("linearGradient",{x1:"-16.087",x2:"86.551",y1:"32.94",y2:"37.344",gradientUnits:"userSpaceOnUse",id:"SVGID_3_TYPED"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{d:"M45.4 25.2v-6.1c0-1.3-1.2-2.2-2.2-2.2H11.9c-1.3 0-2.2 1.2-2.2 2.2v6.1c0 .7.3 1.3.7 1.6.4.4 1.1.7 1.6.7h2.7c1.3 0 2.2-1.2 2.2-2.2v-.8H24V46h-3.2c-1.3 0-2.2 1.2-2.2 2.2v2.7c0 1.3 1.2 2.2 2.2 2.2H35c1.3 0 2.2-1.2 2.2-2.2v-2.6c.1-.5-.1-1-.5-1.4-.4-.5-1-.8-1.7-.8h-3.8V24.4h7.1v.8c0 1.3 1.2 2.2 2.2 2.2h2.7c1.3 0 2.2-1.1 2.2-2.2zm-5.9-3.3H30c-.7 0-1.2.5-1.2 1.2v24.1c0 .7.5 1.2 1.2 1.2h4.8v2.2H21.1v-2.2h4.2c.7 0 1.2-.5 1.2-1.2v-24c0-.7-.5-1.2-1.2-1.2h-9.6c-.7 0-1.2.5-1.2 1.2V25h-2.4v-5.7H43v5.6h-2.2v-1.8c-.1-.6-.6-1.2-1.3-1.2z",className:"st2t"})),je=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve",id:"SVG_INS_ORG"},(0,e.createElement)("linearGradient",{id:"a",x1:"-46.004",x2:"-32.933",y1:"634.121",y2:"647.192",gradientTransform:"matrix(32 0 0 -32 1519 20757)",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#FFC107"}),(0,e.createElement)("stop",{offset:"0.507",stopColor:"#F44336"}),(0,e.createElement)("stop",{offset:"0.99",stopColor:"#9C27B0"})),(0,e.createElement)("path",{fill:"url(#a)",d:"M352 0H160C71.648 0 0 71.648 0 160v192c0 88.352 71.648 160 160 160h192c88.352 0 160-71.648 160-160V160C512 71.648 440.352 0 352 0zm112 352c0 61.76-50.24 112-112 112H160c-61.76 0-112-50.24-112-112V160C48 98.24 98.24 48 160 48h192c61.76 0 112 50.24 112 112v192z"}),(0,e.createElement)("linearGradient",{id:"b",x1:"-42.297",x2:"-36.64",y1:"637.828",y2:"643.485",gradientTransform:"matrix(32 0 0 -32 1519 20757)",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#FFC107"}),(0,e.createElement)("stop",{offset:"0.507",stopColor:"#F44336"}),(0,e.createElement)("stop",{offset:"0.99",stopColor:"#9C27B0"})),(0,e.createElement)("path",{fill:"url(#b)",d:"M256 128c-70.688 0-128 57.312-128 128s57.312 128 128 128 128-57.312 128-128-57.312-128-128-128zm0 208c-44.096 0-80-35.904-80-80 0-44.128 35.904-80 80-80s80 35.872 80 80c0 44.096-35.904 80-80 80z"}),(0,e.createElement)("linearGradient",{id:"c",x1:"-35.546",x2:"-34.792",y1:"644.579",y2:"645.333",gradientTransform:"matrix(32 0 0 -32 1519 20757)",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#FFC107"}),(0,e.createElement)("stop",{offset:"0.507",stopColor:"#F44336"}),(0,e.createElement)("stop",{offset:"0.99",stopColor:"#9C27B0"})),(0,e.createElement)("circle",{cx:"393.6",cy:"118.4",r:"17.056",fill:"url(#c)"})),We=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 500 500",version:"1.1",viewBox:"0 0 500 500",xmlSpace:"preserve",className:"eb-instagram-save-icon"},(0,e.createElement)("path",{id:"INS_SAVE",d:"M156.4 348c-2.1 0-4.2-.4-6.1-1.4-5.1-2.4-8.4-7.6-8.4-13.2V101.3c0-10.8 8.8-19.7 19.7-19.7h190.6c10.8 0 19.6 8.8 19.6 19.7v232.1c0 5.6-3.3 10.8-8.4 13.2-5.1 2.4-11.2 1.6-15.5-2.1l-91-76.4-91 76.4c-2.8 2.3-6.1 3.5-9.5 3.5zm-6.4-22.3zm213.6 0zm-106.8-85.3c3.4 0 6.7 1.2 9.5 3.5l80.8 67.9V106.3H166.5v205.5l80.9-67.9c2.7-2.3 6-3.5 9.4-3.5zm-6.4 22.3zm12.8 0z",className:"st0"})),qe=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 66 70",version:"1.1",viewBox:"0 0 66 70",xmlSpace:"preserve"},(0,e.createElement)("linearGradient",{id:"SVGID_PARA_1",x1:"-16.218",x2:"89.025",y1:"15.344",y2:"18.043",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{d:"M68.4 13c-.3-.4-.7-.6-1.1-.6-.3 0-.5.1-.8.2-.6.5-.8 1.3-.4 1.9l2.3 3.3-2.4 2.5c-.5.5-.5 1.3 0 1.9.2.2.6.4.9.4.3 0 .7-.2 1-.5l3.9-4.1-3.4-5z",className:"parallax-st0"}),(0,e.createElement)("linearGradient",{id:"SVGID_PARA_2",x1:"-17.074",x2:"88.169",y1:"48.75",y2:"51.448",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{d:"M3.5 49.7l2.3-3.3c.4-.6.3-1.4-.4-1.9-.2-.2-.5-.2-.8-.2-.4 0-.9.2-1.1.6l-3.4 5 3.9 4c.3.3.6.5 1 .5.3 0 .7-.1.9-.4.5-.5.5-1.3 0-1.9l-2.4-2.4z",className:"parallax-st1"}),(0,e.createElement)("linearGradient",{id:"SVGID_PARA_3",x1:"-16.667",x2:"88.576",y1:"32.874",y2:"35.573",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{d:"M58 2L17.4.3c-2.7 0-4.8 2.2-4.8 4.8L10 62.3c0 2.7 2.2 4.8 4.8 4.8h.1l35.8-2.8h.1c2.5-.4 4.1-2 4.6-4.6L61 19l.5-3.6L62.7 7v-.2C62.7 4.1 60.6 2 58 2zm-7.6 59.5l-35.6 2.8c-1.1 0-1.9-.9-1.9-1.9l.7-15.9L26 32l9.5 16.6 21.9-24.2-3.6 26.1-1.2 8.8c-.3 1.3-.9 1.9-2.2 2.2zM36 43.7L26.5 27 13.8 41.8l1.6-36.7c0-1.1.9-2 1.9-2l40.6 1.7c1 0 1.9.8 1.9 1.9L58 19.3 36 43.7z",className:"parallax-st2"}),(0,e.createElement)("linearGradient",{id:"SVGID_PARA_4",x1:"-17.353",x2:"87.89",y1:"59.614",y2:"62.312",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{d:"M60.5 52.9c-.6-.1-1.3.4-1.4 1l-1.6 10.8c-.2 1-1 1.8-2.1 1.9l-9.8.9c-.7.1-1.1.6-1.1 1.3.1.6.6 1.1 1.2 1.1h.1l9.8-.9c2.2-.2 3.9-1.8 4.2-4l1.6-10.8c.2-.6-.3-1.2-.9-1.3z",className:"parallax-st3"}),(0,e.createElement)("linearGradient",{id:"SVGID_PARA_5",x1:"-16.284",x2:"88.959",y1:"17.925",y2:"20.623",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{d:"M42.8 17.1c-.1-.3-.3-.5-.5-.8-.2-.2-.3-.4-.5-.5-.2-.1-.3-.3-.5-.4-.2-.1-.3-.2-.5-.3-.2-.1-.3-.2-.5-.2-.2-.1-.3-.1-.5-.1-.1 0-.2-.1-.3-.1h-.7c-.2 0-.4 0-.5.1-.2 0-.4.1-.5.2-.2.1-.4.2-.5.3-.2.1-.4.2-.5.4-.2.2-.4.3-.5.5-.2.2-.4.5-.6.8-.3.5-.5 1-.6 1.6 0 .2-.1.5-.1.7v1.1c.1.6.2 1.1.5 1.5.1.3.3.5.5.8.2.2.3.4.5.5.2.1.3.2.5.4.2.1.3.2.5.3.2.1.3.1.5.2h1.1c.2 0 .4 0 .5-.1.2 0 .4-.1.5-.1.2-.1.4-.1.5-.2.2-.1.4-.2.5-.3.2-.1.4-.3.5-.4.2-.2.4-.3.5-.5.2-.2.4-.5.6-.8.3-.4.5-.9.6-1.4 0-.2.1-.4.1-.6v-1c-.2-.7-.4-1.2-.6-1.6zM40.5 20c-.1.3-.3.5-.6.7-.2.1-.3.2-.5.3-.2.1-.3.1-.5.1h-.1c-.2 0-.3 0-.5-.1s-.4-.2-.5-.3c-.2-.2-.4-.5-.5-.8-.1-.2-.1-.5-.1-.8 0-.2.1-.4.2-.6.1-.3.3-.6.6-.8.2-.1.3-.3.5-.3.2-.1.3-.1.5-.1h.1c.2 0 .3 0 .4.1.2.1.4.2.5.3.2.2.4.4.5.7.1.2.1.5.1.8.1.3 0 .6-.1.8z",className:"parallax-st4"})),Ze=()=>(0,e.createElement)("svg",{className:"eb-category-icon",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"20",height:"20",viewBox:"0 0 374 374"},(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{id:"a",x1:"50%",x2:"50%",y1:"0%",y2:"100%"},(0,e.createElement)("stop",{offset:"0%",stopColor:"#2460FF"}),(0,e.createElement)("stop",{offset:"100%",stopColor:"#B80AFF"})),(0,e.createElement)("path",{id:"c",d:"M135.028 96h103.944l.497.21h.373c6.217 0 11.273 2.692 15.169 8.077 1.326 2.237 1.989 4.545 1.989 6.923 0 5.804-3.398 10.28-10.195 13.426-2.321.91-4.642 1.364-6.963 1.364H133.909c-4.973 0-9.366-1.923-13.179-5.77-2.487-2.796-3.73-5.664-3.73-8.6v-1.26c0-4.615 2.735-8.566 8.206-11.853 2.984-1.538 5.927-2.307 8.828-2.307h.497l.497-.21zm1.242 77l58.078.214c3.862 0 7.995 1.568 12.397 4.705 3.503 3.208 5.255 6.701 5.255 10.48 0 5.275-3.1 9.588-9.298 12.939-3.054 1.425-6.019 2.138-8.893 2.138h-58.752c-5.75 0-10.735-2.281-14.958-6.844-2.066-2.566-3.099-5.132-3.099-7.699v-1.283c0-4.848 3.19-9.018 9.567-12.511 3.234-1.284 6.289-1.925 9.163-1.925h.27c.18 0 .27-.071.27-.214zm105.362 0h.736c5.685 0 10.14 2.968 13.369 8.905.842 2.12 1.263 4.17 1.263 6.148 0 5.936-2.912 10.495-8.737 13.675-2.105.848-3.965 1.272-5.579 1.272h-1.473c-4.772 0-8.843-2.509-12.211-7.527-1.333-2.544-2-5.052-2-7.526 0-5.795 2.877-10.318 8.632-13.569 2.175-.919 4.175-1.378 6-1.378zm-106.604 75h103.944c0 .141 1.284.318 3.854.53 4.31.919 7.584 2.58 9.822 4.982 2.901 2.898 4.352 6.22 4.352 9.965 0 5.724-3.398 10.247-10.195 13.569-2.073.636-3.482.954-4.228.954H131.423c-2.901 0-6.383-1.66-10.444-4.982-2.653-3.04-3.979-6.113-3.979-9.223v-.954c0-5.23 3.108-9.505 9.325-12.827 1.824-.919 4.642-1.555 8.455-1.908 0-.07.083-.106.248-.106z"}),(0,e.createElement)("filter",{id:"b",width:"157.9%",height:"144.5%",x:"-28.9%",y:"-14%",filterUnits:"objectBoundingBox"},(0,e.createElement)("feOffset",{dy:"15",in:"SourceAlpha",result:"shadowOffsetOuter1"}),(0,e.createElement)("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"11"}),(0,e.createElement)("feColorMatrix",{in:"shadowBlurOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}))),(0,e.createElement)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},(0,e.createElement)("g",{transform:"translate(-69 -69)"},(0,e.createElement)("g",{transform:"translate(69 69)"},(0,e.createElement)("circle",{cx:"187",cy:"187",r:"187",fill:"url(#a)"}),(0,e.createElement)("g",null,(0,e.createElement)("use",{fill:"#000",filter:"url(#b)",xlinkHref:"#c"}),(0,e.createElement)("use",{fill:"#FFF",xlinkHref:"#c"})))))),Qe=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 66 70"},(0,e.createElement)("linearGradient",{id:"a"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#c822ff"})),(0,e.createElement)("linearGradient",{id:"toggle-b",x1:"1.959",x2:"68.382",y1:"47.1",y2:"47.1",gradientUnits:"userSpaceOnUse",xlinkHref:"#a"}),(0,e.createElement)("linearGradient",{id:"toggle-c",x1:"1.959",x2:"68.382",y1:"47.15",y2:"47.15",gradientUnits:"userSpaceOnUse",xlinkHref:"#a"}),(0,e.createElement)("linearGradient",{id:"d",x1:"1.959",x2:"68.382",y1:"7.5",y2:"7.5",gradientUnits:"userSpaceOnUse",xlinkHref:"#a"}),(0,e.createElement)("linearGradient",{id:"e",x1:"1.959",x2:"68.382",y1:"7.6",y2:"7.6",gradientUnits:"userSpaceOnUse",xlinkHref:"#a"}),(0,e.createElement)("linearGradient",{id:"f",x1:"1.959",x2:"68.382",y1:"36.6",y2:"36.6",gradientUnits:"userSpaceOnUse",xlinkHref:"#a"}),(0,e.createElement)("linearGradient",{id:"g",x1:"1.959",x2:"68.382",y1:"43.3",y2:"43.3",gradientUnits:"userSpaceOnUse",xlinkHref:"#a"}),(0,e.createElement)("linearGradient",{id:"h",x1:"1.959",x2:"68.382",y1:"49.95",y2:"49.95",gradientUnits:"userSpaceOnUse",xlinkHref:"#a"}),(0,e.createElement)("path",{fill:"url(#toggle-b)",d:"M26.5 24.2H4.6c-2.1 0-3.7 1.6-3.7 3.7v38.5c0 2 1.6 3.6 3.7 3.6h21.9c2.1 0 3.7-1.6 3.7-3.7V28.1c-.1-2.3-1.7-3.9-3.7-3.9zm.9 42.1c0 .5-.5.9-.9.9H4.6c-.5 0-.9-.5-.9-.9V28.1c0-.5.5-.9.9-.9h21.9c.5 0 .9.5.9.9z"}),(0,e.createElement)("path",{fill:"url(#toggle-c)",d:"M61.5 24.2H39.6c-2.1 0-3.7 1.6-3.7 3.7v38.5c0 2.1 1.6 3.7 3.7 3.7h21.9c2.1 0 3.7-1.6 3.7-3.7V28.1c.2-2.3-1.7-3.9-3.7-3.9zm.9 42.1c0 .5-.5.9-.9.9H39.6c-.5 0-.9-.5-.9-.9V28.1c0-.5.5-.9.9-.9h21.9c.5 0 .9.5.9.9z"}),(0,e.createElement)("path",{fill:"url(#d)",d:"M24.8 15h18.9c2.1 0 3.9-1.6 3.9-3.9V3.9C47.6 1.8 46 0 43.7 0H24.8c-2 0-3.9 1.6-3.9 3.9V11c0 2.4 1.6 4 3.9 4zM23.7 4.1c0-.5.5-.9.9-.9h18.9c.5 0 .9.5.9.9v7.1c0 .5-.5.9-.9.9H24.6c-.5 0-.9-.5-.9-.9z"}),(0,e.createElement)("path",{fill:"url(#e)",d:"M36.8 10.4H42.3V4.8H36.8V9z"}),(0,e.createElement)("path",{fill:"url(#f)",d:"M56.6 35.2H44.4V38H56.6z"}),(0,e.createElement)("path",{fill:"url(#g)",d:"M56.6 41.9H44.4v2.8H56.6z"}),(0,e.createElement)("path",{fill:"url(#h)",d:"M56.6 48.6H44.4v2.7H56.6z"}),(0,e.createElement)("path",{fill:"url(#f)",d:"M21.4 35.2H9.2V38H21.6v-2.8z"}),(0,e.createElement)("path",{fill:"url(#g)",d:"M21.4 41.9H9.2v2.8H21.6v-2.8z"}),(0,e.createElement)("path",{fill:"url(#h)",d:"M21.4 48.6H9.2v2.7H21.6v-2.7z"})),Xe=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve",style:{width:14}},(0,e.createElement)("path",{d:"M92.6 431.3c5.1 0 6.1-.5 10.7-1.5l91.9-18.4c9.7-2.5 19.4-7.1 27.1-14.8L444.9 174c34.2-34.2 34.2-92.9 0-127.1L426 27c-34.2-34.2-93.4-34.2-127.6 0L75.8 250.1c-7.2 7.1-12.3 17.4-14.8 27.1l-19.4 92.9c-2.5 17.4 2.6 34.2 14.8 46.5 9.7 9.6 24 14.7 36.2 14.7zM110 286.9L332.6 63.8c14.8-14.8 41.9-14.8 56.2 0l19.4 19.4c17.4 17.4 17.4 41.9 0 58.7L186.1 365l-94.4 15.8 18.3-93.9zm0 0M442.8 463H66.1c-14.8 0-24.5 9.7-24.5 24.5S53.9 512 66.1 512h374.7c14.8 0 27.1-9.7 27.1-24.5-.6-14.8-12.8-24.5-25.1-24.5zm0 0",className:"eb-typography-icon"})),Ke=t=>{let{color:a}=t;return(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",style:{width:24},enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve"},(0,e.createElement)("path",{fill:a||"#b7b7b7",d:"M175.4 249c22.6 16.5 50.5 26.1 80.6 26.1 73.5 0 137.6-63.6 137.6-137.6C393.6 61.7 331.9 0 256 0S118.4 61.7 118.4 137.6c0 45.7 22.4 86.4 57 111.4zm0 0M407.4 285.6c-38.9 39.8-92.8 64.9-151.4 64.9-45.3 0-88.5-14-124.8-40.5-9.9-7.2-19.1-15.1-27.5-23.7C41.2 332.9.5 407.4.5 491.3c0 10.8 8.8 19.7 19.7 19.7h471.6c10.8 0 19.7-8.8 19.7-19.7 0-84.3-41-159.2-104.1-205.7z"}))},Ye=t=>{let{color:a}=t;return(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve"},(0,e.createElement)("path",{d:"M224.9 72.9H36.3C16.3 72.9 0 89.2 0 109.2c0 19.9 16.3 36.3 36.3 36.3h188.6c19.9 0 36.3-16.3 36.3-36.3 0-20-16.3-36.3-36.3-36.3zm0 0M372.5 205.9H36.3c-20 0-36.3 16.3-36.3 36.3 0 19.9 16.3 36.3 36.3 36.3h336.2c19.9 0 36.3-16.3 36.3-36.3 0-19.9-16.4-36.3-36.3-36.3zm0 0M475.7 339H36.3C16.3 339 0 355.3 0 375.3c0 20 16.3 36.3 36.3 36.3h439.4c19.9 0 36.3-16.3 36.3-36.3 0-20-16.3-36.3-36.3-36.3zm0 0",fill:a||"#a9a9a9"}))},Je=t=>{let{color:a}=t;return(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve"},(0,e.createElement)("path",{d:"M475.7 78.1H235.1c-20 0-36.3 16.3-36.3 36.3 0 19.9 16.3 36.3 36.3 36.3h240.6c19.9 0 36.3-16.3 36.3-36.3 0-20-16.3-36.3-36.3-36.3zm0 0M475.7 211.2H115.9c-20 0-36.3 16.3-36.3 36.3 0 19.9 16.3 36.3 36.3 36.3h359.8c19.9 0 36.3-16.3 36.3-36.3 0-20-16.3-36.3-36.3-36.3zm0 0M475.7 344.2H36.3c-20 0-36.3 16.3-36.3 36.3 0 20 16.3 36.3 36.3 36.3h439.4c19.9 0 36.3-16.3 36.3-36.3 0-19.9-16.3-36.3-36.3-36.3zm0 0",fill:a||"#a9a9a9"}))},et=t=>{let{color:a}=t;return(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve"},(0,e.createElement)("path",{d:"M350.3 86.6H161.7c-20 0-36.3 16.3-36.3 36.3 0 19.9 16.3 36.3 36.3 36.3h188.6c19.9 0 36.3-16.3 36.3-36.3 0-19.9-16.3-36.3-36.3-36.3zm0 0M424.1 219.7H87.9c-20 0-36.3 16.3-36.3 36.3 0 19.9 16.3 36.3 36.3 36.3h336.2c19.9 0 36.3-16.3 36.3-36.3 0-20-16.4-36.3-36.3-36.3zm0 0M475.7 352.8H36.3c-20 0-36.3 16.3-36.3 36.3 0 20 16.3 36.3 36.3 36.3h439.4c19.9 0 36.3-16.3 36.3-36.3 0-20-16.3-36.3-36.3-36.3zm0 0",fill:a||"#a9a9a9"}))},tt=t=>{let{color:a}=t;return(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve"},(0,e.createElement)("path",{d:"M475.7 86.6H36.3C16.3 86.6 0 103 0 122.9s16.3 36.3 36.3 36.3h439.4c19.9 0 36.3-16.3 36.3-36.3 0-19.9-16.3-36.3-36.3-36.3zm0 0M475.7 219.7H36.3C16.3 219.7 0 236 0 256c0 19.9 16.3 36.3 36.3 36.3h439.4c19.9 0 36.3-16.3 36.3-36.3 0-20-16.3-36.3-36.3-36.3zm0 0M475.7 352.8H36.3c-20 0-36.3 16.3-36.3 36.3 0 20 16.3 36.3 36.3 36.3h439.4c19.9 0 36.3-16.3 36.3-36.3 0-20-16.3-36.3-36.3-36.3zm0 0",fill:a||"#a9a9a9"}))},at=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 90"},(0,e.createElement)("linearGradient",{id:"colIcon__a",gradientUnits:"userSpaceOnUse",x1:.378,y1:45.031,x2:92.875,y2:45.031},(0,e.createElement)("stop",{offset:0,stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:1,stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M16.6 21.4H3.3c-1.8 0-3.2 1.4-3.2 3.2v40.9c0 1.8 1.4 3.2 3.2 3.2h13.3c1.8 0 3.2-1.4 3.2-3.2V24.8c0-2-1.4-3.4-3.2-3.4zm.8 44c0 .4-.4.8-.8.8H3.3c-.4 0-.8-.4-.8-.8V24.8c0-.4.4-.8.8-.8h13.3c.4 0 .8.4.8.8v40.6z",fill:"url(#colIcon__a)"}),(0,e.createElement)("linearGradient",{id:"colIcon__b",gradientUnits:"userSpaceOnUse",x1:-1.047,y1:45.119,x2:91.45,y2:45.119},(0,e.createElement)("stop",{offset:0,stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:1,stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M57.3 21.4H26.7c-1.8 0-3.2 1.4-3.2 3.2v40.9c0 1.8 1.4 3.2 3.2 3.2h30.6c1.8 0 3.2-1.4 3.2-3.2V24.8c.2-2-1.5-3.4-3.2-3.4zm.8 44.1c0 .4-.4.8-.8.8H26.7c-.4 0-.8-.4-.8-.8V24.8c0-.4.4-.8.8-.8h30.6c.4 0 .8.4.8.8v40.7z",fill:"url(#colIcon__b)"}),(0,e.createElement)("linearGradient",{id:"colIcon__c",gradientUnits:"userSpaceOnUse",x1:-2.372,y1:45.031,x2:90.126,y2:45.031},(0,e.createElement)("stop",{offset:0,stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:1,stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M86.7 21.4H67.5c-1.8 0-3.2 1.4-3.2 3.2v40.9c0 1.8 1.4 3.2 3.2 3.2h19.2c1.8 0 3.2-1.4 3.2-3.2V24.8c0-2-1.5-3.4-3.2-3.4zm.8 44c0 .4-.4.8-.8.8H67.5c-.4 0-.8-.4-.8-.8V24.8c0-.4.4-.8.8-.8h19.2c.4 0 .8.4.8.8v40.6z",fill:"url(#colIcon__c)"})),nt=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 90"},(0,e.createElement)("linearGradient",{id:"rowIcon__a",gradientUnits:"userSpaceOnUse",x1:33.608,y1:-45.802,x2:59.689,y2:-45.802},(0,e.createElement)("stop",{offset:0,stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:1,stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M46.6-32.8c-7.2 0-13-5.8-13-13s5.8-13 13-13 13 5.8 13 13-5.8 13-13 13zm0-22.9c-5.4 0-9.9 4.4-9.9 9.9s4.4 9.9 9.9 9.9 9.9-4.4 9.9-9.9-4.4-9.9-9.9-9.9z",fill:"url(#rowIcon__a)"}),(0,e.createElement)("g",null,(0,e.createElement)("linearGradient",{id:"rowIcon__b",gradientUnits:"userSpaceOnUse",x1:-.17,y1:43.301,x2:88.808,y2:43.301},(0,e.createElement)("stop",{offset:0,stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:1,stopColor:"#c822ff"})),(0,e.createElement)("path",{d:"M86.8 25.9H58.5c-.5-7-6.4-12.6-13.5-12.6-7.2 0-13 5.6-13.5 12.6H3.3c-1.8 0-3.2 1.4-3.2 3.2V70c0 1.8 1.4 3.2 3.2 3.2h83.5c1.8 0 3.2-1.4 3.2-3.2V29.3c0-2-1.5-3.4-3.2-3.4zM45 15.9c6.1 0 11.1 5 11.1 11.1s-5 11-11.1 11-11.1-5-11.1-11.1 5-11 11.1-11zm42.5 54c0 .4-.4.8-.8.8H3.3c-.4 0-.8-.4-.8-.8V29.3c0-.4.4-.8.8-.8h28.3c.8 6.7 6.5 12 13.5 12s12.7-5.3 13.5-12h28.3c.4 0 .8.4.8.8v40.6z",fill:"url(#rowIcon__b)"}),(0,e.createElement)("linearGradient",{id:"rowIcon__c",gradientUnits:"userSpaceOnUse",x1:-.17,y1:26.95,x2:88.808,y2:26.95},(0,e.createElement)("stop",{offset:0,stopColor:"#1a6dff"}),(0,e.createElement)("stop",{offset:1,stopColor:"#c822ff"})),(0,e.createElement)("path",{fill:"url(#rowIcon__c)",d:"M43.8 32.5h2.5v-4.3h4.2v-2.5h-4.2v-4.3h-2.5v4.3h-4.3v2.5h4.3z"}))),it=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 90 48",xmlSpace:"preserve"},(0,e.createElement)("path",{className:"colLayouts__st0",d:"M88 48H2c-1.1 0-2-.9-2-2V2C0 .9.9 0 2 0h86c1.1 0 2 .9 2 2v44c0 1.1-.9 2-2 2z"})),st=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 90 48",xmlSpace:"preserve"},(0,e.createElement)("path",{className:"colLayouts__st0",d:"M41.3 48H2c-1.1 0-2-.9-2-2V2C0 .9.9 0 2 0h39.2c1.1 0 2 .9 2 2v44c.1 1.1-.8 2-1.9 2zM88 48H48.7c-1.1 0-2-.9-2-2V2c0-1.1.9-2 2-2H88c1.1 0 2 .9 2 2v44c0 1.1-.9 2-2 2z"})),rt=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 90 48",xmlSpace:"preserve"},(0,e.createElement)("path",{className:"colLayouts__st0",d:"M26.2 48H2c-1.1 0-2-.9-2-2V2C0 .9.9 0 2 0h24.2c1.1 0 2 .9 2 2v44c.1 1.1-.9 2-2 2zM57.1 48H32.9c-1.1 0-2-.9-2-2V2c0-1.1.9-2 2-2h24.2c1.1 0 2 .9 2 2v44c0 1.1-.9 2-2 2zM88 48H63.8c-1.1 0-2-.9-2-2V2c0-1.1.9-2 2-2H88c1.1 0 2 .9 2 2v44c0 1.1-.9 2-2 2z"})),ot=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 90 48",xmlSpace:"preserve"},(0,e.createElement)("path",{className:"colLayouts__st0",d:"M19 48H2c-1.1 0-2-.9-2-2V2C0 .9.9 0 2 0h17c1.1 0 2 .9 2 2v44c0 1.1-.9 2-2 2zM42 48H25c-1.1 0-2-.9-2-2V2c0-1.1.9-2 2-2h17c1.1 0 2 .9 2 2v44c0 1.1-.9 2-2 2zM64.9 48H48c-1.1 0-2-.9-2-2V2c0-1.1.9-2 2-2h16.9c1.1 0 2 .9 2 2v44c.1 1.1-.8 2-2 2zM87.9 48H71c-1.1 0-2-.9-2-2V2c0-1.1.9-2 2-2h16.9c1.1 0 2 .9 2 2v44c.1 1.1-.9 2-2 2z"})),lt=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 90 48",xmlSpace:"preserve"},(0,e.createElement)("path",{className:"colLayouts__st0",d:"M24.1 48H2c-1.1 0-2-.9-2-2V2C0 .9.9 0 2 0h22c1.1 0 2 .9 2 2v44c.1 1.1-.8 2-1.9 2zM87.9 48H30.2c-1.1 0-2-.9-2-2V2c0-1.1.9-2 2-2h57.7c1.1 0 2 .9 2 2v44c.1 1.1-.9 2-2 2z"})),ct=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 90 48",xmlSpace:"preserve"},(0,e.createElement)("path",{className:"colLayouts__st0",d:"M60.6 48H2c-1.1 0-2-.9-2-2V2C0 .9.9 0 2 0h58.6c1.1 0 2 .9 2 2v44c0 1.1-.9 2-2 2zM87.9 48H66.7c-1.1 0-2-.9-2-2V2c0-1.1.9-2 2-2h21.2c1.1 0 2 .9 2 2v44c.1 1.1-.9 2-2 2z"})),ut=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 90 48",xmlSpace:"preserve"},(0,e.createElement)("path",{className:"colLayouts__st0",d:"M20.1 48H2c-1.1 0-2-.9-2-2V2C0 .9.9 0 2 0h18.1c1.1 0 2 .9 2 2v44c.1 1.1-.8 2-2 2zM44.6 48H26.5c-1.1 0-2-.9-2-2V2c0-1.1.9-2 2-2h18.1c1.1 0 2 .9 2 2v44c0 1.1-.9 2-2 2zM87.9 48h-37c-1.1 0-2-.9-2-2V2c0-1.1.9-2 2-2h37c1.1 0 2 .9 2 2v44c.1 1.1-.9 2-2 2z"})),ft=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 90 48",xmlSpace:"preserve"},(0,e.createElement)("path",{className:"colLayouts__st0",d:"M69.8 48h18.1c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2H69.8c-1.1 0-2 .9-2 2v44c0 1.1.9 2 2 2zM45.4 48h18.1c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2H45.4c-1.1 0-2 .9-2 2v44c0 1.1.9 2 2 2zM2 48h37c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2H2C.9 0 0 .9 0 2v44c0 1.1.9 2 2 2z"})),ht=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 90 48",xmlSpace:"preserve"},(0,e.createElement)("path",{className:"colLayouts__st0",d:"M69.8 48h18.1c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2H69.8c-1.1 0-2 .9-2 2v44c0 1.1.9 2 2 2zM2 48h18.1c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2H2C.9 0 0 .9 0 2v44c0 1.1.9 2 2 2zM26.4 48h37c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2h-37c-1.1 0-2 .9-2 2v44c0 1.1.9 2 2 2z"})),dt=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 90 48",xmlSpace:"preserve"},(0,e.createElement)("path",{className:"colLayouts__st0",d:"M20.3 48h12.6c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2H20.3c-1.1 0-2 .9-2 2v44c0 1.1.9 2 2 2zM38.7 48h12.6c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2H38.7c-1.1 0-2 .9-2 2v44c-.1 1.1.9 2 2 2zM57.1 48h12.6c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2H57.1c-1.1 0-2 .9-2 2v44c0 1.1.9 2 2 2zM75.4 48H88c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2H75.4c-1.1 0-2 .9-2 2v44c0 1.1.9 2 2 2zM2 48h12.6c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2H2C.9 0 0 .9 0 2v44c0 1.1.9 2 2 2z"})),pt=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 90 48",xmlSpace:"preserve"},(0,e.createElement)("path",{className:"colLayouts__st0",d:"M17.3 48H27c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2h-9.7c-1.1 0-2 .9-2 2v44c-.1 1.1.8 2 2 2zM32.4 48h9.7c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2h-9.7c-1.1 0-2 .9-2 2v44c0 1.1.9 2 2 2zM47.8 48h9.7c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2h-9.7c-1.1 0-2 .9-2 2v44c-.1 1.1.8 2 2 2zM62.9 48h9.7c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2h-9.7c-1.1 0-2 .9-2 2v44c-.1 1.1.8 2 2 2zM78.3 48H88c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2h-9.7c-1.1 0-2 .9-2 2v44c-.1 1.1.9 2 2 2zM2 48h9.7c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2H2C.9 0 0 .9 0 2v44c0 1.1.9 2 2 2z"})),mt=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 90 48",xmlSpace:"preserve"},(0,e.createElement)("path",{className:"colLayouts__st0",d:"M19.2 48h51.5c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2H19.2c-1.1 0-2 .9-2 2v44c0 1.1.9 2 2 2zM77.1 48H88c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2H77.1c-1.1 0-2 .9-2 2v44c-.1 1.1.8 2 2 2zM2 48h11.1c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2H2C.9 0 0 .9 0 2v44c0 1.1.9 2 2 2z"})),gt=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 66 70",version:"1.1",viewBox:"0 0 66 70",xmlSpace:"preserve"},(0,e.createElement)("linearGradient",{id:"SVGID_1_",x1:"-6.254",x2:"50.81",y1:"45.89",y2:"11.805",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{d:"M17.7 18.8H55.599999999999994V21.7H17.7z",fill:"url(#SVGID_1_)"}),(0,e.createElement)("linearGradient",{id:"SVGID_2_",x1:"-13.111",x2:"43.953",y1:"34.411",y2:"0.326",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{d:"M8.7 18.5H12.299999999999999V22.1H8.7z",fill:"url(#SVGID_2_)"}),(0,e.createElement)("g",null,(0,e.createElement)("linearGradient",{id:"SVGID_3_",x1:"-1.304",x2:"55.76",y1:"54.177",y2:"20.092",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{d:"M17.7 30.1H55.599999999999994V33H17.7z",fill:"url(#SVGID_3_)"}),(0,e.createElement)("g",null,(0,e.createElement)("linearGradient",{id:"SVGID_4_",x1:"-8.161",x2:"48.903",y1:"42.698",y2:"8.613",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{d:"M8.7 29.7H12.299999999999999V33.3H8.7z",fill:"url(#SVGID_4_)"}))),(0,e.createElement)("g",null,(0,e.createElement)("linearGradient",{id:"SVGID_5_",x1:"2.815",x2:"59.879",y1:"61.073",y2:"26.988",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{d:"M17.9 41.3H48.9V44.199999999999996H17.9z",fill:"url(#SVGID_5_)"}),(0,e.createElement)("g",null,(0,e.createElement)("linearGradient",{id:"SVGID_6_",x1:"-3.143",x2:"53.921",y1:"51.098",y2:"17.013",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{d:"M9 41H12.6V44.6H9z",fill:"url(#SVGID_6_)"}))),(0,e.createElement)("g",null,(0,e.createElement)("linearGradient",{id:"SVGID_7_",x1:"-0.708",x2:"56.356",y1:"55.175",y2:"21.09",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{offset:"0",stopColor:"#1A6DFF"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#C822FF"})),(0,e.createElement)("path",{d:"M60.5 68.9H5.6c-3 0-5.5-2.5-5.5-5.5V6.6c0-3 2.5-5.5 5.5-5.5h54.9c3 0 5.5 2.5 5.5 5.5v56.8c0 3-2.5 5.5-5.5 5.5zM5.6 4.1c-1.4 0-2.5 1.1-2.5 2.5v56.8c0 1.4 1.1 2.5 2.5 2.5h54.9c1.4 0 2.5-1.1 2.5-2.5V6.6c0-1.4-1.1-2.5-2.5-2.5H5.6z",fill:"url(#SVGID_7_)"})));function bt(a){let{resRequiredProps:n,controlName:s,noBorder:r,noShadow:o,noBdrHover:l,noShdowHover:c}=a;const{setAttributes:u,attributes:f,objAttributes:h}=n,{[`${s}borderStyle`]:d,[`${s}borderColor`]:p,[`${s}shadowType`]:g,[`${s}shadowColor`]:b,[`${s}hOffset`]:y,[`${s}vOffset`]:v,[`${s}blur`]:x,[`${s}spread`]:C,[`${s}hoverShadowColor`]:S,[`${s}hoverHOffset`]:w,[`${s}hoverVOffset`]:k,[`${s}hoverBlur`]:_,[`${s}hoverSpread`]:O,[`${s}inset`]:E,[`${s}BorderType`]:M,[`${s}HborderStyle`]:$,[`${s}HborderColor`]:P,[`${s}borderTransition`]:T,[`${s}radiusTransition`]:A,[`${s}shadowTransition`]:B}=f;return(0,e.createElement)(e.Fragment,null,!0!==r&&(0,e.createElement)(e.Fragment,null,!l&&(0,e.createElement)(i.BaseControl,{id:"eb-infobox-border-hover-ptions"},(0,e.createElement)(i.ButtonGroup,{id:"eb-infobox-border-hover-ptions"},[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"}].map(((t,a)=>{let{value:n,label:r}=t;return(0,e.createElement)(i.Button,{key:a,isSecondary:M!==n,isPrimary:M===n,onClick:()=>u({[`${s}BorderType`]:n})},r)})))),("normal"===M||l)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Border Style","essential-blocks"),value:d,options:[{label:(0,t.__)("None","essential-blocks"),value:"none"},{label:(0,t.__)("Dashed","essential-blocks"),value:"dashed"},{label:(0,t.__)("Solid","essential-blocks"),value:"solid"},{label:(0,t.__)("Dotted","essential-blocks"),value:"dotted"},{label:(0,t.__)("Double","essential-blocks"),value:"double"},{label:(0,t.__)("Groove","essential-blocks"),value:"groove"},{label:(0,t.__)("Inset","essential-blocks"),value:"inset"},{label:(0,t.__)("Outset","essential-blocks"),value:"outset"},{label:(0,t.__)("Ridge","essential-blocks"),value:"ridge"}],onChange:e=>u({[`${s}borderStyle`]:e})}),"none"!==d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(m,{defaultColor:(h[`${s}borderColor`]||{}).default,label:(0,t.__)("Border Color","essential-blocks"),color:p,onChange:e=>u({[`${s}borderColor`]:e})}),(0,e.createElement)(Se,{resRequiredProps:n,controlName:`${s}Bdr_`,baseLabel:"Border Width"})),(0,e.createElement)(Se,{forBorderRadius:!0,resRequiredProps:n,controlName:`${s}Rds_`,baseLabel:"Border Radius"})),"hover"===M&&!l&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Border Style","essential-blocks"),value:$,options:[{label:(0,t.__)("None","essential-blocks"),value:"none"},{label:(0,t.__)("Dashed","essential-blocks"),value:"dashed"},{label:(0,t.__)("Solid","essential-blocks"),value:"solid"},{label:(0,t.__)("Dotted","essential-blocks"),value:"dotted"},{label:(0,t.__)("Double","essential-blocks"),value:"double"},{label:(0,t.__)("Groove","essential-blocks"),value:"groove"},{label:(0,t.__)("Inset","essential-blocks"),value:"inset"},{label:(0,t.__)("Outset","essential-blocks"),value:"outset"},{label:(0,t.__)("Ridge","essential-blocks"),value:"ridge"}],onChange:e=>u({[`${s}HborderStyle`]:e})}),"none"!==$&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(m,{defaultColor:(h[`${s}HborderColor`]||{}).default,label:(0,t.__)("Border Color","essential-blocks"),color:P,onChange:e=>u({[`${s}HborderColor`]:e})}),(0,e.createElement)(Se,{resRequiredProps:n,controlName:`${s}HBdr_`,baseLabel:"Border Width"}),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Border Transition","essential-blocks"),value:T,onChange:e=>u({[`${s}borderTransition`]:e}),step:.01,min:0,max:5})),(0,e.createElement)(Se,{forBorderRadius:!0,resRequiredProps:n,controlName:`${s}HRds_`,baseLabel:"Border Radius"}),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Border Radius Transition","essential-blocks"),value:A,onChange:e=>u({[`${s}radiusTransition`]:e}),step:.01,min:0,max:5}))),!0!==o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.BaseControl,{label:(0,t.__)("Box Shadow","essential-blocks"),className:"eb-typography-base"},(0,e.createElement)(i.Dropdown,{className:"eb-typography-dropdown",contentClassName:"my-popover-content-classname",position:"bottom right",renderToggle:t=>{let{isOpen:a,onToggle:n}=t;return(0,e.createElement)(i.Button,{isSmall:!0,onClick:n,"aria-expanded":a},(0,e.createElement)(Xe,null))},renderContent:()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"eb-panel-control",style:{minWidth:"230px",padding:"10px"}},!c&&(0,e.createElement)(i.BaseControl,{id:"eb-infobox-shadow-hover-ptions"},(0,e.createElement)(i.ButtonGroup,{id:"eb-infobox-shadow-hover-ptions"},[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"}].map(((t,a)=>{let{value:n,label:r}=t;return(0,e.createElement)(i.Button,{key:a,isSecondary:g!==n,isPrimary:g===n,onClick:()=>u({[`${s}shadowType`]:n})},r)})))),(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Inset","essential-blocks"),checked:E,onChange:()=>u({[`${s}inset`]:!E})}),("normal"===g||c)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(m,{defaultColor:(h[`${s}shadowColor`]||{}).default,label:(0,t.__)("Shadow Color","essential-blocks"),color:b,onChange:e=>u({[`${s}shadowColor`]:e})}),(0,e.createElement)(be,{onReset:()=>u({[`${s}hOffset`]:void 0})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Horizontal Offset","essential-blocks"),value:y,onChange:e=>u({[`${s}hOffset`]:e}),min:0,max:200})),(0,e.createElement)(be,{onReset:()=>u({[`${s}vOffset`]:void 0})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Vertical Offset","essential-blocks"),value:v,onChange:e=>u({[`${s}vOffset`]:e}),min:0,max:200})),(0,e.createElement)(be,{onReset:()=>u({[`${s}blur`]:void 0})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Shadow Blur","essential-blocks"),value:x,onChange:e=>u({[`${s}blur`]:e}),min:0,max:200})),(0,e.createElement)(be,{onReset:()=>u({[`${s}spread`]:void 0})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Shadow Spread","essential-blocks"),value:C,onChange:e=>u({[`${s}spread`]:e}),min:0,max:200}))),"hover"===g&&!c&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(m,{defaultColor:(h[`${s}hoverShadowColor`]||{}).default,label:(0,t.__)("Hover Shadow Color","essential-blocks"),color:S,onChange:e=>u({[`${s}hoverShadowColor`]:e})}),(0,e.createElement)(be,{onReset:()=>u({[`${s}hoverHOffset`]:void 0})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Horizontal Offset","essential-blocks"),value:w,onChange:e=>u({[`${s}hoverHOffset`]:e}),min:0,max:200})),(0,e.createElement)(be,{onReset:()=>u({[`${s}hoverVOffset`]:void 0})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Vertical Offset","essential-blocks"),value:k,onChange:e=>u({[`${s}hoverVOffset`]:e}),min:0,max:200})),(0,e.createElement)(be,{onReset:()=>u({[`${s}hoverBlur`]:void 0})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Shadow Blur","essential-blocks"),value:_,onChange:e=>u({[`${s}hoverBlur`]:e}),min:0,max:200})),(0,e.createElement)(be,{onReset:()=>u({[`${s}hoverSpread`]:void 0})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Shadow Spread","essential-blocks"),value:O,onChange:e=>u({[`${s}hoverSpread`]:e}),min:0,max:200})),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Shadow Transition","essential-blocks"),value:B,onChange:e=>u({[`${s}shadowTransition`]:e}),step:.01,min:0,max:5}))))}))))}function yt(e){return yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yt(e)}function vt(e){var t=function(e,t){if("object"!==yt(e)||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,"string");if("object"!==yt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===yt(t)?t:String(t)}function xt(e,t,a){return(t=vt(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Ct(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function St(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(a),!0).forEach((function(t){xt(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ct(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function kt(e,t){if(e){if("string"==typeof e)return wt(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?wt(e,t):void 0}}function _t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,i,_x,s,r=[],_n=!0,o=!1;try{if(_x=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;_n=!1}else for(;!(_n=(n=_x.call(a)).done)&&(r.push(n.value),r.length!==t);_n=!0);}catch(e){o=!0,i=e}finally{try{if(!_n&&null!=a.return&&(s=a.return(),Object(s)!==s))return}finally{if(o)throw i}}return r}}(e,t)||kt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ot=a(366);function Et(e,t){if(null==e)return{};var a,n,i=(0,Ot.Z)(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)a=s[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}var Mt=a(196),$t=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Pt(e){var t=e.defaultInputValue,a=void 0===t?"":t,n=e.defaultMenuIsOpen,i=void 0!==n&&n,s=e.defaultValue,r=void 0===s?null:s,o=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,f=e.onMenuClose,h=e.onMenuOpen,d=e.value,p=Et(e,$t),m=_t((0,Mt.useState)(void 0!==o?o:a),2),g=m[0],b=m[1],y=_t((0,Mt.useState)(void 0!==l?l:i),2),v=y[0],x=y[1],C=_t((0,Mt.useState)(void 0!==d?d:r),2),S=C[0],w=C[1],k=(0,Mt.useCallback)((function(e,t){"function"==typeof c&&c(e,t),w(e)}),[c]),_=(0,Mt.useCallback)((function(e,t){var a;"function"==typeof u&&(a=u(e,t)),b(void 0!==a?a:e)}),[u]),O=(0,Mt.useCallback)((function(){"function"==typeof h&&h(),x(!0)}),[h]),E=(0,Mt.useCallback)((function(){"function"==typeof f&&f(),x(!1)}),[f]),M=void 0!==o?o:g,$=void 0!==l?l:v,P=void 0!==d?d:S;return St(St({},p),{},{inputValue:M,menuIsOpen:$,onChange:k,onInputChange:_,onMenuClose:E,onMenuOpen:O,value:P})}var Tt=a(462);function At(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bt(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vt(n.key),n)}}function Rt(e,t,a){return t&&Bt(e.prototype,t),a&&Bt(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}var It=a(611);function Dt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,It.Z)(e,t)}function Nt(e){return Nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nt(e)}var Lt=a(326);function Ft(e,t){if(t&&("object"===yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,Lt.Z)(e)}function zt(e){return function(e){if(Array.isArray(e))return wt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Vt=function(){function e(e){var t=this;this._insertTag=function(e){var a;a=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,a),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{a.insertRule(e,a.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ut=Math.abs,Ht=String.fromCharCode,Gt=Object.assign;function jt(e){return e.trim()}function Wt(e,t,a){return e.replace(t,a)}function qt(e,t){return e.indexOf(t)}function Zt(e,t){return 0|e.charCodeAt(t)}function Qt(e,t,a){return e.slice(t,a)}function Xt(e){return e.length}function Kt(e){return e.length}function Yt(e,t){return t.push(e),e}var Jt=1,ea=1,ta=0,aa=0,na=0,ia="";function sa(e,t,a,n,i,s,r){return{value:e,root:t,parent:a,type:n,props:i,children:s,line:Jt,column:ea,length:r,return:""}}function ra(e,t){return Gt(sa("",null,null,"",null,null,0),e,{length:-e.length},t)}function oa(){return na=aa>0?Zt(ia,--aa):0,ea--,10===na&&(ea=1,Jt--),na}function la(){return na=aa<ta?Zt(ia,aa++):0,ea++,10===na&&(ea=1,Jt++),na}function ca(){return Zt(ia,aa)}function ua(){return aa}function fa(e,t){return Qt(ia,e,t)}function ha(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function da(e){return Jt=ea=1,ta=Xt(ia=e),aa=0,[]}function pa(e){return ia="",e}function ma(e){return jt(fa(aa-1,ya(91===e?e+2:40===e?e+1:e)))}function ga(e){for(;(na=ca())&&na<33;)la();return ha(e)>2||ha(na)>3?"":" "}function ba(e,t){for(;--t&&la()&&!(na<48||na>102||na>57&&na<65||na>70&&na<97););return fa(e,ua()+(t<6&&32==ca()&&32==la()))}function ya(e){for(;la();)switch(na){case e:return aa;case 34:case 39:34!==e&&39!==e&&ya(na);break;case 40:41===e&&ya(e);break;case 92:la()}return aa}function va(e,t){for(;la()&&e+na!==57&&(e+na!==84||47!==ca()););return"/*"+fa(t,aa-1)+"*"+Ht(47===e?e:la())}function xa(e){for(;!ha(ca());)la();return fa(e,aa)}var Ca="-ms-",Sa="-moz-",wa="-webkit-",ka="comm",_a="rule",Oa="decl",Ea="@keyframes";function Ma(e,t){for(var a="",n=Kt(e),i=0;i<n;i++)a+=t(e[i],i,e,t)||"";return a}function $a(e,t,a,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Oa:return e.return=e.return||e.value;case ka:return"";case Ea:return e.return=e.value+"{"+Ma(e.children,n)+"}";case _a:e.value=e.props.join(",")}return Xt(a=Ma(e.children,n))?e.return=e.value+"{"+a+"}":""}function Pa(e){return pa(Ta("",null,null,null,[""],e=da(e),0,[0],e))}function Ta(e,t,a,n,i,s,r,o,l){for(var c=0,u=0,f=r,h=0,d=0,p=0,m=1,g=1,b=1,y=0,v="",x=i,C=s,S=n,w=v;g;)switch(p=y,y=la()){case 40:if(108!=p&&58==Zt(w,f-1)){-1!=qt(w+=Wt(ma(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=ma(y);break;case 9:case 10:case 13:case 32:w+=ga(p);break;case 92:w+=ba(ua()-1,7);continue;case 47:switch(ca()){case 42:case 47:Yt(Ba(va(la(),ua()),t,a),l);break;default:w+="/"}break;case 123*m:o[c++]=Xt(w)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(w=Wt(w,/\f/g,"")),d>0&&Xt(w)-f&&Yt(d>32?Ra(w+";",n,a,f-1):Ra(Wt(w," ","")+";",n,a,f-2),l);break;case 59:w+=";";default:if(Yt(S=Aa(w,t,a,c,u,i,o,v,x=[],C=[],f),s),123===y)if(0===u)Ta(w,t,S,S,x,s,f,o,C);else switch(99===h&&110===Zt(w,3)?100:h){case 100:case 108:case 109:case 115:Ta(e,S,S,n&&Yt(Aa(e,S,S,0,0,i,o,v,i,x=[],f),C),i,C,f,o,n?x:C);break;default:Ta(w,S,S,S,[""],C,0,o,C)}}c=u=d=0,m=b=1,v=w="",f=r;break;case 58:f=1+Xt(w),d=p;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==oa())continue;switch(w+=Ht(y),y*m){case 38:b=u>0?1:(w+="\f",-1);break;case 44:o[c++]=(Xt(w)-1)*b,b=1;break;case 64:45===ca()&&(w+=ma(la())),h=ca(),u=f=Xt(v=w+=xa(ua())),y++;break;case 45:45===p&&2==Xt(w)&&(m=0)}}return s}function Aa(e,t,a,n,i,s,r,o,l,c,u){for(var f=i-1,h=0===i?s:[""],d=Kt(h),p=0,m=0,g=0;p<n;++p)for(var b=0,y=Qt(e,f+1,f=Ut(m=r[p])),v=e;b<d;++b)(v=jt(m>0?h[b]+" "+y:Wt(y,/&\f/g,h[b])))&&(l[g++]=v);return sa(e,t,a,0===i?_a:o,l,c,u)}function Ba(e,t,a){return sa(e,t,a,ka,Ht(na),Qt(e,2,-2),0)}function Ra(e,t,a,n){return sa(e,t,a,Oa,Qt(e,0,n),Qt(e,n+1,-1),n)}var Ia=function(e,t,a){for(var n=0,i=0;n=i,i=ca(),38===n&&12===i&&(t[a]=1),!ha(i);)la();return fa(e,aa)},Da=new WeakMap,Na=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,a=e.parent,n=e.column===a.column&&e.line===a.line;"rule"!==a.type;)if(!(a=a.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Da.get(a))&&!n){Da.set(e,!0);for(var i=[],s=function(e,t){return pa(function(e,t){var a=-1,n=44;do{switch(ha(n)){case 0:38===n&&12===ca()&&(t[a]=1),e[a]+=Ia(aa-1,t,a);break;case 2:e[a]+=ma(n);break;case 4:if(44===n){e[++a]=58===ca()?"&\f":"",t[a]=e[a].length;break}default:e[a]+=Ht(n)}}while(n=la());return e}(da(e),t))}(t,i),r=a.props,o=0,l=0;o<s.length;o++)for(var c=0;c<r.length;c++,l++)e.props[l]=i[o]?s[o].replace(/&\f/g,r[c]):r[c]+" "+s[o]}}},La=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Fa(e,t){switch(function(e,t){return 45^Zt(e,0)?(((t<<2^Zt(e,0))<<2^Zt(e,1))<<2^Zt(e,2))<<2^Zt(e,3):0}(e,t)){case 5103:return wa+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return wa+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return wa+e+Sa+e+Ca+e+e;case 6828:case 4268:return wa+e+Ca+e+e;case 6165:return wa+e+Ca+"flex-"+e+e;case 5187:return wa+e+Wt(e,/(\w+).+(:[^]+)/,wa+"box-$1$2"+Ca+"flex-$1$2")+e;case 5443:return wa+e+Ca+"flex-item-"+Wt(e,/flex-|-self/,"")+e;case 4675:return wa+e+Ca+"flex-line-pack"+Wt(e,/align-content|flex-|-self/,"")+e;case 5548:return wa+e+Ca+Wt(e,"shrink","negative")+e;case 5292:return wa+e+Ca+Wt(e,"basis","preferred-size")+e;case 6060:return wa+"box-"+Wt(e,"-grow","")+wa+e+Ca+Wt(e,"grow","positive")+e;case 4554:return wa+Wt(e,/([^-])(transform)/g,"$1"+wa+"$2")+e;case 6187:return Wt(Wt(Wt(e,/(zoom-|grab)/,wa+"$1"),/(image-set)/,wa+"$1"),e,"")+e;case 5495:case 3959:return Wt(e,/(image-set\([^]*)/,wa+"$1$`$1");case 4968:return Wt(Wt(e,/(.+:)(flex-)?(.*)/,wa+"box-pack:$3"+Ca+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+wa+e+e;case 4095:case 3583:case 4068:case 2532:return Wt(e,/(.+)-inline(.+)/,wa+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Xt(e)-1-t>6)switch(Zt(e,t+1)){case 109:if(45!==Zt(e,t+4))break;case 102:return Wt(e,/(.+:)(.+)-([^]+)/,"$1"+wa+"$2-$3$1"+Sa+(108==Zt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~qt(e,"stretch")?Fa(Wt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Zt(e,t+1))break;case 6444:switch(Zt(e,Xt(e)-3-(~qt(e,"!important")&&10))){case 107:return Wt(e,":",":"+wa)+e;case 101:return Wt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+wa+(45===Zt(e,14)?"inline-":"")+"box$3$1"+wa+"$2$3$1"+Ca+"$2box$3")+e}break;case 5936:switch(Zt(e,t+11)){case 114:return wa+e+Ca+Wt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return wa+e+Ca+Wt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return wa+e+Ca+Wt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return wa+e+Ca+e+e}return e}var za=[function(e,t,a,n){if(e.length>-1&&!e.return)switch(e.type){case Oa:e.return=Fa(e.value,e.length);break;case Ea:return Ma([ra(e,{value:Wt(e.value,"@","@"+wa)})],n);case _a:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ma([ra(e,{props:[Wt(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Ma([ra(e,{props:[Wt(t,/:(plac\w+)/,":"+wa+"input-$1")]}),ra(e,{props:[Wt(t,/:(plac\w+)/,":-moz-$1")]}),ra(e,{props:[Wt(t,/:(plac\w+)/,Ca+"input-$1")]})],n)}return""}))}}],Va=function(e){var t=e.key;if("css"===t){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,i,s=e.stylisPlugins||za,r={},o=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),a=1;a<t.length;a++)r[t[a]]=!0;o.push(e)}));var l,c,u,f,h=[$a,(f=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],d=(c=[Na,La].concat(s,h),u=Kt(c),function(e,t,a,n){for(var i="",s=0;s<u;s++)i+=c[s](e,t,a,n)||"";return i});i=function(e,t,a,n){l=a,Ma(Pa(e?e+"{"+t.styles+"}":t.styles),d),n&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Vt({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:r,registered:{},insert:i};return p.sheet.hydrate(o),p},Ua=function(e,t,a){var n=e.key+"-"+t.name;!1===a&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Ha={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ga(e){var t=Object.create(null);return function(a){return void 0===t[a]&&(t[a]=e(a)),t[a]}}var ja=/[A-Z]|^ms/g,Wa=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qa=function(e){return 45===e.charCodeAt(1)},Za=function(e){return null!=e&&"boolean"!=typeof e},Qa=Ga((function(e){return qa(e)?e:e.replace(ja,"-$&").toLowerCase()})),Xa=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Wa,(function(e,t,a){return Ya={name:t,styles:a,next:Ya},t}))}return 1===Ha[e]||qa(e)||"number"!=typeof t||0===t?t:t+"px"};function Ka(e,t,a){if(null==a)return"";if(void 0!==a.__emotion_styles)return a;switch(typeof a){case"boolean":return"";case"object":if(1===a.anim)return Ya={name:a.name,styles:a.styles,next:Ya},a.name;if(void 0!==a.styles){var n=a.next;if(void 0!==n)for(;void 0!==n;)Ya={name:n.name,styles:n.styles,next:Ya},n=n.next;return a.styles+";"}return function(e,t,a){var n="";if(Array.isArray(a))for(var i=0;i<a.length;i++)n+=Ka(e,t,a[i])+";";else for(var s in a){var r=a[s];if("object"!=typeof r)null!=t&&void 0!==t[r]?n+=s+"{"+t[r]+"}":Za(r)&&(n+=Qa(s)+":"+Xa(s,r)+";");else if(!Array.isArray(r)||"string"!=typeof r[0]||null!=t&&void 0!==t[r[0]]){var o=Ka(e,t,r);switch(s){case"animation":case"animationName":n+=Qa(s)+":"+o+";";break;default:n+=s+"{"+o+"}"}}else for(var l=0;l<r.length;l++)Za(r[l])&&(n+=Qa(s)+":"+Xa(s,r[l])+";")}return n}(e,t,a);case"function":if(void 0!==e){var i=Ya,s=a(e);return Ya=i,Ka(e,t,s)}}if(null==t)return a;var r=t[a];return void 0!==r?r:a}var Ya,Ja=/label:\s*([^\s;\n{]+)\s*(;|$)/g,en=function(e,t,a){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";Ya=void 0;var s=e[0];null==s||void 0===s.raw?(n=!1,i+=Ka(a,t,s)):i+=s[0];for(var r=1;r<e.length;r++)i+=Ka(a,t,e[r]),n&&(i+=s[r]);Ja.lastIndex=0;for(var o,l="";null!==(o=Ja.exec(i));)l+="-"+o[1];var c=function(e){for(var t,a=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),a=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&a)+(59797*(a>>>16)<<16);switch(i){case 3:a^=(255&e.charCodeAt(n+2))<<16;case 2:a^=(255&e.charCodeAt(n+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(n)))+(59797*(a>>>16)<<16)}return(((a=1540483477*(65535&(a^=a>>>13))+(59797*(a>>>16)<<16))^a>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:Ya}},tn=!!Mt.useInsertionEffect&&Mt.useInsertionEffect,an=tn||function(e){return e()},nn=(tn||Mt.useLayoutEffect,{}.hasOwnProperty),sn=Mt.createContext("undefined"!=typeof HTMLElement?Va({key:"css"}):null);sn.Provider;var rn=function(e){return(0,Mt.forwardRef)((function(t,a){var n=(0,Mt.useContext)(sn);return e(t,n,a)}))},on=Mt.createContext({}),ln="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",cn=function(e){var t=e.cache,a=e.serialized,n=e.isStringTag;return Ua(t,a,n),an((function(){return function(e,t,a){Ua(e,t,a);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,a,n)})),null},un=rn((function(e,t,a){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var i=e[ln],s=[n],r="";"string"==typeof e.className?r=function(e,t,a){var n="";return a.split(" ").forEach((function(a){void 0!==e[a]?t.push(e[a]+";"):n+=a+" "})),n}(t.registered,s,e.className):null!=e.className&&(r=e.className+" ");var o=en(s,void 0,Mt.useContext(on));r+=t.key+"-"+o.name;var l={};for(var c in e)nn.call(e,c)&&"css"!==c&&c!==ln&&(l[c]=e[c]);return l.ref=a,l.className=r,Mt.createElement(Mt.Fragment,null,Mt.createElement(cn,{cache:t,serialized:o,isStringTag:"string"==typeof i}),Mt.createElement(i,l))})),fn=un,hn=(a(679),function(e,t){var a=arguments;if(null==t||!nn.call(t,"css"))return Mt.createElement.apply(void 0,a);var n=a.length,i=new Array(n);i[0]=fn,i[1]=function(e,t){var a={};for(var n in t)nn.call(t,n)&&(a[n]=t[n]);return a[ln]=e,a}(e,t);for(var s=2;s<n;s++)i[s]=a[s];return Mt.createElement.apply(null,i)});function dn(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return en(t)}var pn=a(850);Math.min,Math.max;function mn(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function gn(e){return mn(e).getComputedStyle(e)}function bn(e){return e instanceof mn(e).Node}function yn(e){return bn(e)?(e.nodeName||"").toLowerCase():""}function vn(e){return e instanceof mn(e).HTMLElement}function xn(e){return e instanceof mn(e).Element}function Cn(e){return"undefined"!=typeof ShadowRoot&&(e instanceof mn(e).ShadowRoot||e instanceof ShadowRoot)}function Sn(e){const{overflow:t,overflowX:a,overflowY:n,display:i}=gn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+a)&&!["inline","contents"].includes(i)}["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),Math.min,Math.max;const wn=Math.round;function kn(e){return xn(e)?e:e.contextElement}const On={x:1,y:1};function En(e){const t=kn(e);if(!vn(t))return On;const a=t.getBoundingClientRect(),{width:n,height:i,fallback:s}=function(e){const t=gn(e);let a=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=vn(e),s=i?e.offsetWidth:a,r=i?e.offsetHeight:n,o=wn(a)!==s||wn(n)!==r;return o&&(a=s,n=r),{width:a,height:n,fallback:o}}(t);let r=(s?wn(a.width):a.width)/n,o=(s?wn(a.height):a.height)/i;return r&&Number.isFinite(r)||(r=1),o&&Number.isFinite(o)||(o=1),{x:r,y:o}}const Mn={x:0,y:0};function $n(e,t,a){var n,i;if(void 0===t&&(t=!0),"undefined"==typeof CSS||!CSS.supports||!CSS.supports("-webkit-backdrop-filter","none"))return Mn;const s=e?mn(e):window;return!a||t&&a!==s?Mn:{x:(null==(n=s.visualViewport)?void 0:n.offsetLeft)||0,y:(null==(i=s.visualViewport)?void 0:i.offsetTop)||0}}function Pn(e,t,a,n){void 0===t&&(t=!1),void 0===a&&(a=!1);const i=e.getBoundingClientRect(),s=kn(e);let r=On;t&&(n?xn(n)&&(r=En(n)):r=En(e));const o=$n(s,a,n);let l=(i.left+o.x)/r.x,c=(i.top+o.y)/r.y,u=i.width/r.x,f=i.height/r.y;if(s){const e=mn(s),t=n&&xn(n)?mn(n):n;let a=e.frameElement;for(;a&&n&&t!==e;){const e=En(a),t=a.getBoundingClientRect(),n=getComputedStyle(a);t.x+=(a.clientLeft+parseFloat(n.paddingLeft))*e.x,t.y+=(a.clientTop+parseFloat(n.paddingTop))*e.y,l*=e.x,c*=e.y,u*=e.x,f*=e.y,l+=t.x,c+=t.y,a=mn(a).frameElement}}return h={width:u,height:f,x:l,y:c},{...h,top:h.y,left:h.x,right:h.x+h.width,bottom:h.y+h.height};var h}function Tn(e){if("html"===yn(e))return e;const t=e.assignedSlot||e.parentNode||Cn(e)&&e.host||function(e){return((bn(e)?e.ownerDocument:e.document)||window.document).documentElement}(e);return Cn(t)?t.host:t}function An(e){const t=Tn(e);return function(e){return["html","body","#document"].includes(yn(e))}(t)?t.ownerDocument.body:vn(t)&&Sn(t)?t:An(t)}function Bn(e,t){var a;void 0===t&&(t=[]);const n=An(e),i=n===(null==(a=e.ownerDocument)?void 0:a.body),s=mn(n);return i?t.concat(s,s.visualViewport||[],Sn(n)?n:[]):t.concat(n,Bn(n))}const Rn=Mt.useLayoutEffect;var In=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Dn=function(){};function Nn(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ln(e,t){for(var a=arguments.length,n=new Array(a>2?a-2:0),i=2;i<a;i++)n[i-2]=arguments[i];var s=[].concat(n);if(t&&e)for(var r in t)t.hasOwnProperty(r)&&t[r]&&s.push("".concat(Nn(e,r)));return s.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Fn=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===yt(e)&&null!==e?[e]:[];var t},zn=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,St({},Et(e,In))},Vn=function(e,t,a){var n=e.cx,i=e.getStyles,s=e.getClassNames,r=e.className;return{css:i(t,e),className:n(null!=a?a:{},s(t,e),r)}};function Un(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Hn(e){return Un(e)?window.pageYOffset:e.scrollTop}function Gn(e,t){Un(e)?window.scrollTo(0,t):e.scrollTop=t}function jn(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Dn,i=Hn(e),s=t-i,r=0;!function t(){var o,l=(o=r+=10,s*((o=o/a-1)*o*o+1)+i);Gn(e,l),r<a?window.requestAnimationFrame(t):n(e)}()}function Wn(e,t){var a=e.getBoundingClientRect(),n=t.getBoundingClientRect(),i=t.offsetHeight/3;n.bottom+i>a.bottom?Gn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):n.top-i<a.top&&Gn(e,Math.max(t.offsetTop-i,0))}function qn(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Zn=!1,Qn={get passive(){return Zn=!0}},Xn="undefined"!=typeof window?window:{};Xn.addEventListener&&Xn.removeEventListener&&(Xn.addEventListener("p",Dn,Qn),Xn.removeEventListener("p",Dn,!1));var Kn=Zn;function Yn(e){return null!=e}function Jn(e,t,a){return e?t:a}var ei=function(e){return"auto"===e?"bottom":e},ti=(0,Mt.createContext)(null),ai=function(e){var t=e.children,a=e.minMenuHeight,n=e.maxMenuHeight,i=e.menuPlacement,s=e.menuPosition,r=e.menuShouldScrollIntoView,o=e.theme,l=((0,Mt.useContext)(ti)||{}).setPortalPlacement,c=(0,Mt.useRef)(null),u=_t((0,Mt.useState)(n),2),f=u[0],h=u[1],d=_t((0,Mt.useState)(null),2),p=d[0],m=d[1],g=o.spacing.controlHeight;return Rn((function(){var e=c.current;if(e){var t="fixed"===s,o=function(e){var t=e.maxHeight,a=e.menuEl,n=e.minHeight,i=e.placement,s=e.shouldScroll,r=e.isFixedPosition,o=e.controlHeight,l=function(e){var t=getComputedStyle(e),a="absolute"===t.position,n=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!a||"static"!==t.position)&&n.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(a),c={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return c;var u,f=l.getBoundingClientRect().height,h=a.getBoundingClientRect(),d=h.bottom,p=h.height,m=h.top,g=a.offsetParent.getBoundingClientRect().top,b=r||Un(u=l)?window.innerHeight:u.clientHeight,y=Hn(l),v=parseInt(getComputedStyle(a).marginBottom,10),x=parseInt(getComputedStyle(a).marginTop,10),C=g-x,S=b-m,w=C+y,k=f-y-m,_=d-b+y+v,O=y+m-x,E=160;switch(i){case"auto":case"bottom":if(S>=p)return{placement:"bottom",maxHeight:t};if(k>=p&&!r)return s&&jn(l,_,E),{placement:"bottom",maxHeight:t};if(!r&&k>=n||r&&S>=n)return s&&jn(l,_,E),{placement:"bottom",maxHeight:r?S-v:k-v};if("auto"===i||r){var M=t,$=r?C:w;return $>=n&&(M=Math.min($-v-o,t)),{placement:"top",maxHeight:M}}if("bottom"===i)return s&&Gn(l,_),{placement:"bottom",maxHeight:t};break;case"top":if(C>=p)return{placement:"top",maxHeight:t};if(w>=p&&!r)return s&&jn(l,O,E),{placement:"top",maxHeight:t};if(!r&&w>=n||r&&C>=n){var P=t;return(!r&&w>=n||r&&C>=n)&&(P=r?C-x:w-x),s&&jn(l,O,E),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}({maxHeight:n,menuEl:e,minHeight:a,placement:i,shouldScroll:r&&!t,isFixedPosition:t,controlHeight:g});h(o.maxHeight),m(o.placement),null==l||l(o.placement)}}),[n,i,s,r,a,l,g]),t({ref:c,placerProps:St(St({},e),{},{placement:p||ei(i),maxHeight:f})})},ni=function(e,t){var a=e.theme,n=a.spacing.baseUnit,i=a.colors;return St({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px")})},ii=ni,si=ni,ri=function(e){var t=e.children,a=e.innerProps;return hn("div",(0,Tt.Z)({},Vn(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),t)};ri.defaultProps={children:"No options"};var oi=function(e){var t=e.children,a=e.innerProps;return hn("div",(0,Tt.Z)({},Vn(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),t)};oi.defaultProps={children:"Loading..."};var li,ci,ui,fi=["size"],hi={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},di=function(e){var t=e.size,a=Et(e,fi);return hn("svg",(0,Tt.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:hi},a))},pi=function(e){return hn(di,(0,Tt.Z)({size:20},e),hn("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},mi=function(e){return hn(di,(0,Tt.Z)({size:20},e),hn("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},gi=function(e,t){var a=e.isFocused,n=e.theme,i=n.spacing.baseUnit,s=n.colors;return St({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:a?s.neutral60:s.neutral20,padding:2*i,":hover":{color:a?s.neutral80:s.neutral40}})},bi=gi,yi=gi,vi=function(){var e=dn.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(li||(ci=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],ui||(ui=ci.slice(0)),li=Object.freeze(Object.defineProperties(ci,{raw:{value:Object.freeze(ui)}})))),xi=function(e){var t=e.delay,a=e.offset;return hn("span",{css:dn({animation:"".concat(vi," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Ci=function(e){var t=e.innerProps,a=e.isRtl;return hn("div",(0,Tt.Z)({},Vn(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),hn(xi,{delay:0,offset:a}),hn(xi,{delay:160,offset:!0}),hn(xi,{delay:320,offset:!a}))};Ci.defaultProps={size:4};var Si=["data"],wi=["innerRef","isDisabled","isHidden","inputClassName"],ki={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},_i={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":St({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ki)},Oi=function(e){return St({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ki)},Ei=function(e){var t=e.children,a=e.innerProps;return hn("div",a,t)},Mi={ClearIndicator:function(e){var t=e.children,a=e.innerProps;return hn("div",(0,Tt.Z)({},Vn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),t||hn(pi,null))},Control:function(e){var t=e.children,a=e.isDisabled,n=e.isFocused,i=e.innerRef,s=e.innerProps,r=e.menuIsOpen;return hn("div",(0,Tt.Z)({ref:i},Vn(e,"control",{control:!0,"control--is-disabled":a,"control--is-focused":n,"control--menu-is-open":r}),s),t)},DropdownIndicator:function(e){var t=e.children,a=e.innerProps;return hn("div",(0,Tt.Z)({},Vn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),t||hn(mi,null))},DownChevron:mi,CrossIcon:pi,Group:function(e){var t=e.children,a=e.cx,n=e.getStyles,i=e.getClassNames,s=e.Heading,r=e.headingProps,o=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return hn("div",(0,Tt.Z)({},Vn(e,"group",{group:!0}),o),hn(s,(0,Tt.Z)({},r,{selectProps:u,theme:c,getStyles:n,getClassNames:i,cx:a}),l),hn("div",null,t))},GroupHeading:function(e){var t=zn(e);t.data;var a=Et(t,Si);return hn("div",(0,Tt.Z)({},Vn(e,"groupHeading",{"group-heading":!0}),a))},IndicatorsContainer:function(e){var t=e.children,a=e.innerProps;return hn("div",(0,Tt.Z)({},Vn(e,"indicatorsContainer",{indicators:!0}),a),t)},IndicatorSeparator:function(e){var t=e.innerProps;return hn("span",(0,Tt.Z)({},t,Vn(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,a=e.value,n=zn(e),i=n.innerRef,s=n.isDisabled,r=n.isHidden,o=n.inputClassName,l=Et(n,wi);return hn("div",(0,Tt.Z)({},Vn(e,"input",{"input-container":!0}),{"data-value":a||""}),hn("input",(0,Tt.Z)({className:t({input:!0},o),ref:i,style:Oi(r),disabled:s},l)))},LoadingIndicator:Ci,Menu:function(e){var t=e.children,a=e.innerRef,n=e.innerProps;return hn("div",(0,Tt.Z)({},Vn(e,"menu",{menu:!0}),{ref:a},n),t)},MenuList:function(e){var t=e.children,a=e.innerProps,n=e.innerRef,i=e.isMulti;return hn("div",(0,Tt.Z)({},Vn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:n},a),t)},MenuPortal:function(e){var t=e.appendTo,a=e.children,n=e.controlElement,i=e.innerProps,s=e.menuPlacement,r=e.menuPosition,o=(0,Mt.useRef)(null),l=(0,Mt.useRef)(null),c=_t((0,Mt.useState)(ei(s)),2),u=c[0],f=c[1],h=(0,Mt.useMemo)((function(){return{setPortalPlacement:f}}),[]),d=_t((0,Mt.useState)(null),2),p=d[0],m=d[1],g=(0,Mt.useCallback)((function(){if(n){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(n),t="fixed"===r?0:window.pageYOffset,a=e[u]+t;a===(null==p?void 0:p.offset)&&e.left===(null==p?void 0:p.rect.left)&&e.width===(null==p?void 0:p.rect.width)||m({offset:a,rect:e})}}),[n,r,u,null==p?void 0:p.offset,null==p?void 0:p.rect.left,null==p?void 0:p.rect.width]);Rn((function(){g()}),[g]);var b=(0,Mt.useCallback)((function(){"function"==typeof l.current&&(l.current(),l.current=null),n&&o.current&&(l.current=function(e,t,a,n){void 0===n&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=!0,animationFrame:o=!1}=n,l=i||s?[...xn(e)?Bn(e):e.contextElement?Bn(e.contextElement):[],...Bn(t)]:[];l.forEach((e=>{const t=!xn(e)&&e.toString().includes("V");!i||o&&!t||e.addEventListener("scroll",a,{passive:!0}),s&&e.addEventListener("resize",a)}));let c,u=null;r&&(u=new ResizeObserver((()=>{a()})),xn(e)&&!o&&u.observe(e),xn(e)||!e.contextElement||o||u.observe(e.contextElement),u.observe(t));let f=o?Pn(e):null;return o&&function t(){const n=Pn(e);!f||n.x===f.x&&n.y===f.y&&n.width===f.width&&n.height===f.height||a(),f=n,c=requestAnimationFrame(t)}(),a(),()=>{var e;l.forEach((e=>{i&&e.removeEventListener("scroll",a),s&&e.removeEventListener("resize",a)})),null==(e=u)||e.disconnect(),u=null,o&&cancelAnimationFrame(c)}}(n,o.current,g,{elementResize:"ResizeObserver"in window}))}),[n,g]);Rn((function(){b()}),[b]);var y=(0,Mt.useCallback)((function(e){o.current=e,b()}),[b]);if(!t&&"fixed"!==r||!p)return null;var v=hn("div",(0,Tt.Z)({ref:y},Vn(St(St({},e),{},{offset:p.offset,position:r,rect:p.rect}),"menuPortal",{"menu-portal":!0}),i),a);return hn(ti.Provider,{value:h},t?(0,pn.createPortal)(v,t):v)},LoadingMessage:oi,NoOptionsMessage:ri,MultiValue:function(e){var t=e.children,a=e.components,n=e.data,i=e.innerProps,s=e.isDisabled,r=e.removeProps,o=e.selectProps,l=a.Container,c=a.Label,u=a.Remove;return hn(l,{data:n,innerProps:St(St({},Vn(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),i),selectProps:o},hn(c,{data:n,innerProps:St({},Vn(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:o},t),hn(u,{data:n,innerProps:St(St({},Vn(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},r),selectProps:o}))},MultiValueContainer:Ei,MultiValueLabel:Ei,MultiValueRemove:function(e){var t=e.children,a=e.innerProps;return hn("div",(0,Tt.Z)({role:"button"},a),t||hn(pi,{size:14}))},Option:function(e){var t=e.children,a=e.isDisabled,n=e.isFocused,i=e.isSelected,s=e.innerRef,r=e.innerProps;return hn("div",(0,Tt.Z)({},Vn(e,"option",{option:!0,"option--is-disabled":a,"option--is-focused":n,"option--is-selected":i}),{ref:s,"aria-disabled":a},r),t)},Placeholder:function(e){var t=e.children,a=e.innerProps;return hn("div",(0,Tt.Z)({},Vn(e,"placeholder",{placeholder:!0}),a),t)},SelectContainer:function(e){var t=e.children,a=e.innerProps,n=e.isDisabled,i=e.isRtl;return hn("div",(0,Tt.Z)({},Vn(e,"container",{"--is-disabled":n,"--is-rtl":i}),a),t)},SingleValue:function(e){var t=e.children,a=e.isDisabled,n=e.innerProps;return hn("div",(0,Tt.Z)({},Vn(e,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),n),t)},ValueContainer:function(e){var t=e.children,a=e.innerProps,n=e.isMulti,i=e.hasValue;return hn("div",(0,Tt.Z)({},Vn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":i}),a),t)}},$i=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Pi(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!((n=e[a])===(i=t[a])||$i(n)&&$i(i)))return!1;var n,i;return!0}for(var Ti={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Ai=function(e){return hn("span",(0,Tt.Z)({css:Ti},e))},Bi={guidance:function(e){var t=e.isSearchable,a=e.isMulti,n=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(n?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,a=e.label,n=void 0===a?"":a,i=e.labels,s=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(n,s?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,a=e.focused,n=e.options,i=e.label,s=void 0===i?"":i,r=e.selectValue,o=e.isDisabled,l=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&r)return"value ".concat(s," focused, ").concat(c(r,a),".");if("menu"===t){var u=o?" disabled":"",f="".concat(l?"selected":"focused").concat(u);return"option ".concat(s," ").concat(f,", ").concat(c(n,a),".")}return""},onFilter:function(e){var t=e.inputValue,a=e.resultsMessage;return"".concat(a).concat(t?" for search term "+t:"",".")}},Ri=function(e){var t=e.ariaSelection,a=e.focusedOption,n=e.focusedValue,i=e.focusableOptions,s=e.isFocused,r=e.selectValue,o=e.selectProps,l=e.id,c=o.ariaLiveMessages,u=o.getOptionLabel,f=o.inputValue,h=o.isMulti,d=o.isOptionDisabled,p=o.isSearchable,m=o.menuIsOpen,g=o.options,b=o.screenReaderStatus,y=o.tabSelectsValue,v=o["aria-label"],x=o["aria-live"],C=(0,Mt.useMemo)((function(){return St(St({},Bi),c||{})}),[c]),S=(0,Mt.useMemo)((function(){var e,a="";if(t&&C.onChange){var n=t.option,i=t.options,s=t.removedValue,o=t.removedValues,l=t.value,c=s||n||(e=l,Array.isArray(e)?null:e),f=c?u(c):"",h=i||o||void 0,p=h?h.map(u):[],m=St({isDisabled:c&&d(c,r),label:f,labels:p},t);a=C.onChange(m)}return a}),[t,C,d,r,u]),w=(0,Mt.useMemo)((function(){var e="",t=a||n,s=!!(a&&r&&r.includes(a));if(t&&C.onFocus){var o={focused:t,label:u(t),isDisabled:d(t,r),isSelected:s,options:i,context:t===a?"menu":"value",selectValue:r};e=C.onFocus(o)}return e}),[a,n,u,d,C,i,r]),k=(0,Mt.useMemo)((function(){var e="";if(m&&g.length&&C.onFilter){var t=b({count:i.length});e=C.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,m,C,g,b]),_=(0,Mt.useMemo)((function(){var e="";if(C.guidance){var t=n?"value":m?"menu":"input";e=C.guidance({"aria-label":v,context:t,isDisabled:a&&d(a,r),isMulti:h,isSearchable:p,tabSelectsValue:y})}return e}),[v,a,n,h,d,p,m,C,r,y]),O="".concat(w," ").concat(k," ").concat(_),E=hn(Mt.Fragment,null,hn("span",{id:"aria-selection"},S),hn("span",{id:"aria-context"},O)),M="initial-input-focus"===(null==t?void 0:t.action);return hn(Mt.Fragment,null,hn(Ai,{id:l},M&&E),hn(Ai,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text"},s&&!M&&E))},Ii=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Di=new RegExp("["+Ii.map((function(e){return e.letters})).join("")+"]","g"),Ni={},Li=0;Li<Ii.length;Li++)for(var Fi=Ii[Li],zi=0;zi<Fi.letters.length;zi++)Ni[Fi.letters[zi]]=Fi.base;var Vi=function(e){return e.replace(Di,(function(e){return Ni[e]}))},Ui=function(e,t){void 0===t&&(t=Pi);var a=null;function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(a&&a.lastThis===this&&t(n,a.lastArgs))return a.lastResult;var s=e.apply(this,n);return a={lastResult:s,lastArgs:n,lastThis:this},s}return n.clear=function(){a=null},n}(Vi),Hi=function(e){return e.replace(/^\s+|\s+$/g,"")},Gi=function(e){return"".concat(e.label," ").concat(e.value)},ji=["innerRef"];function Wi(e){var t=e.innerRef,a=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];var i=Object.entries(e).filter((function(e){var t=_t(e,1)[0];return!a.includes(t)}));return i.reduce((function(e,t){var a=_t(t,2),n=a[0],i=a[1];return e[n]=i,e}),{})}(Et(e,ji),"onExited","in","enter","exit","appear");return hn("input",(0,Tt.Z)({ref:t},a,{css:dn({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var qi=["boxSizing","height","overflow","paddingRight","position"],Zi={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Qi(e){e.preventDefault()}function Xi(e){e.stopPropagation()}function Ki(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;0===e?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function Yi(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ji=!("undefined"==typeof window||!window.document||!window.document.createElement),es=0,ts={capture:!1,passive:!1},as=function(){return document.activeElement&&document.activeElement.blur()},ns={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function is(e){var t=e.children,a=e.lockEnabled,n=e.captureEnabled,i=function(e){var t=e.isEnabled,a=e.onBottomArrive,n=e.onBottomLeave,i=e.onTopArrive,s=e.onTopLeave,r=(0,Mt.useRef)(!1),o=(0,Mt.useRef)(!1),l=(0,Mt.useRef)(0),c=(0,Mt.useRef)(null),u=(0,Mt.useCallback)((function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,f=l.scrollHeight,h=l.clientHeight,d=c.current,p=t>0,m=f-h-u,g=!1;m>t&&r.current&&(n&&n(e),r.current=!1),p&&o.current&&(s&&s(e),o.current=!1),p&&t>m?(a&&!r.current&&a(e),d.scrollTop=f,g=!0,r.current=!0):!p&&-t>u&&(i&&!o.current&&i(e),d.scrollTop=0,g=!0,o.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[a,n,i,s]),f=(0,Mt.useCallback)((function(e){u(e,e.deltaY)}),[u]),h=(0,Mt.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),d=(0,Mt.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)}),[u]),p=(0,Mt.useCallback)((function(e){if(e){var t=!!Kn&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",d,t)}}),[d,h,f]),m=(0,Mt.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",d,!1))}),[d,h,f]);return(0,Mt.useEffect)((function(){if(t){var e=c.current;return p(e),function(){m(e)}}}),[t,p,m]),function(e){c.current=e}}({isEnabled:void 0===n||n,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),s=function(e){var t=e.isEnabled,a=e.accountForScrollbars,n=void 0===a||a,i=(0,Mt.useRef)({}),s=(0,Mt.useRef)(null),r=(0,Mt.useCallback)((function(e){if(Ji){var t=document.body,a=t&&t.style;if(n&&qi.forEach((function(e){var t=a&&a[e];i.current[e]=t})),n&&es<1){var s=parseInt(i.current.paddingRight,10)||0,r=document.body?document.body.clientWidth:0,o=window.innerWidth-r+s||0;Object.keys(Zi).forEach((function(e){var t=Zi[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(o,"px"))}t&&Yi()&&(t.addEventListener("touchmove",Qi,ts),e&&(e.addEventListener("touchstart",Ki,ts),e.addEventListener("touchmove",Xi,ts))),es+=1}}),[n]),o=(0,Mt.useCallback)((function(e){if(Ji){var t=document.body,a=t&&t.style;es=Math.max(es-1,0),n&&es<1&&qi.forEach((function(e){var t=i.current[e];a&&(a[e]=t)})),t&&Yi()&&(t.removeEventListener("touchmove",Qi,ts),e&&(e.removeEventListener("touchstart",Ki,ts),e.removeEventListener("touchmove",Xi,ts)))}}),[n]);return(0,Mt.useEffect)((function(){if(t){var e=s.current;return r(e),function(){o(e)}}}),[t,r,o]),function(e){s.current=e}}({isEnabled:a});return hn(Mt.Fragment,null,a&&hn("div",{onClick:as,css:ns}),t((function(e){i(e),s(e)})))}var ss={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},rs=function(e){var t=e.name,a=e.onFocus;return hn("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:ss,value:"",onChange:function(){}})},os={clearIndicator:yi,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var a=e.isDisabled,n=e.isFocused,i=e.theme,s=i.colors,r=i.borderRadius;return St({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:a?s.neutral5:s.neutral0,borderColor:a?s.neutral10:n?s.primary:s.neutral20,borderRadius:r,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:n?s.primary:s.neutral30}})},dropdownIndicator:bi,group:function(e,t){var a=e.theme.spacing;return t?{}:{paddingBottom:2*a.baseUnit,paddingTop:2*a.baseUnit}},groupHeading:function(e,t){var a=e.theme,n=a.colors,i=a.spacing;return St({label:"group",cursor:"default",display:"block"},t?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var a=e.isDisabled,n=e.theme,i=n.spacing.baseUnit,s=n.colors;return St({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:a?s.neutral10:s.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var a=e.isDisabled,n=e.value,i=e.theme,s=i.spacing,r=i.colors;return St(St({visibility:a?"hidden":"visible",transform:n?"translateZ(0)":""},_i),t?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:r.neutral80})},loadingIndicator:function(e,t){var a=e.isFocused,n=e.size,i=e.theme,s=i.colors,r=i.spacing.baseUnit;return St({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},t?{}:{color:a?s.neutral60:s.neutral20,padding:2*r})},loadingMessage:si,menu:function(e,t){var a,n=e.placement,i=e.theme,s=i.borderRadius,r=i.spacing,o=i.colors;return St((xt(a={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),xt(a,"position","absolute"),xt(a,"width","100%"),xt(a,"zIndex",1),a),t?{}:{backgroundColor:o.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:r.menuGutter,marginTop:r.menuGutter})},menuList:function(e,t){var a=e.maxHeight,n=e.theme.spacing.baseUnit;return St({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:n,paddingTop:n})},menuPortal:function(e){var t=e.rect,a=e.offset,n=e.position;return{left:t.left,position:n,top:a,width:t.width,zIndex:1}},multiValue:function(e,t){var a=e.theme,n=a.spacing,i=a.borderRadius,s=a.colors;return St({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:s.neutral10,borderRadius:i/2,margin:n.baseUnit/2})},multiValueLabel:function(e,t){var a=e.theme,n=a.borderRadius,i=a.colors,s=e.cropWithEllipsis;return St({overflow:"hidden",textOverflow:s||void 0===s?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:n/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var a=e.theme,n=a.spacing,i=a.borderRadius,s=a.colors,r=e.isFocused;return St({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:r?s.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},noOptionsMessage:ii,option:function(e,t){var a=e.isDisabled,n=e.isFocused,i=e.isSelected,s=e.theme,r=s.spacing,o=s.colors;return St({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?o.primary:n?o.primary25:"transparent",color:a?o.neutral20:i?o.neutral0:"inherit",padding:"".concat(2*r.baseUnit,"px ").concat(3*r.baseUnit,"px"),":active":{backgroundColor:a?void 0:i?o.primary:o.primary50}})},placeholder:function(e,t){var a=e.theme,n=a.spacing,i=a.colors;return St({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},singleValue:function(e,t){var a=e.isDisabled,n=e.theme,i=n.spacing,s=n.colors;return St({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:a?s.neutral40:s.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var a=e.theme.spacing,n=e.isMulti,i=e.hasValue,s=e.selectProps.controlShouldRenderValue;return St({alignItems:"center",display:n&&i&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(2*a.baseUnit,"px")})}},ls={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},cs={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:qn(),captureMenuScroll:!qn(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var a=St({ignoreCase:!0,ignoreAccents:!0,stringify:Gi,trim:!0,matchFrom:"any"},void 0),n=a.ignoreCase,i=a.ignoreAccents,s=a.stringify,r=a.trim,o=a.matchFrom,l=r?Hi(t):t,c=r?Hi(s(e)):s(e);return n&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=Ui(l),c=Vi(c)),"start"===o?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function us(e,t,a,n){return{type:"option",data:t,isDisabled:gs(e,t,a),isSelected:bs(e,t,a),label:ps(e,t),value:ms(e,t),index:n}}function fs(e,t){return e.options.map((function(a,n){if("options"in a){var i=a.options.map((function(a,n){return us(e,a,t,n)})).filter((function(t){return ds(e,t)}));return i.length>0?{type:"group",data:a,options:i,index:n}:void 0}var s=us(e,a,t,n);return ds(e,s)?s:void 0})).filter(Yn)}function hs(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,zt(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function ds(e,t){var a=e.inputValue,n=void 0===a?"":a,i=t.data,s=t.isSelected,r=t.label,o=t.value;return(!vs(e)||!s)&&ys(e,{label:r,value:o,data:i},n)}var ps=function(e,t){return e.getOptionLabel(t)},ms=function(e,t){return e.getOptionValue(t)};function gs(e,t,a){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,a)}function bs(e,t,a){if(a.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,a);var n=ms(e,t);return a.some((function(t){return ms(e,t)===n}))}function ys(e,t,a){return!e.filterOption||e.filterOption(t,a)}var vs=function(e){var t=e.hideSelectedOptions,a=e.isMulti;return void 0===t?a:t},xs=1,Cs=function(e){Dt(i,e);var t,a,n=(t=i,a=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(e){return!1}}(),function(){var e,n=Nt(t);if(a){var i=Nt(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return Ft(this,e)});function i(e){var t;if(At(this,i),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,a){var n=t.props,i=n.onChange,s=n.name;a.name=s,t.ariaOnChange(e,a),i(e,a)},t.setValue=function(e,a,n){var i=t.props,s=i.closeMenuOnSelect,r=i.isMulti,o=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:o}),s&&(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:a,option:n})},t.selectOption=function(e){var a=t.props,n=a.blurInputOnSelect,i=a.isMulti,s=a.name,r=t.state.selectValue,o=i&&t.isOptionSelected(e,r),l=t.isOptionDisabled(e,r);if(o){var c=t.getOptionValue(e);t.setValue(r.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:s});i?t.setValue([].concat(zt(r),[e]),"select-option",e):t.setValue(e,"select-option")}n&&t.blurInput()},t.removeValue=function(e){var a=t.props.isMulti,n=t.state.selectValue,i=t.getOptionValue(e),s=n.filter((function(e){return t.getOptionValue(e)!==i})),r=Jn(a,s,s[0]||null);t.onChange(r,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Jn(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,a=t.state.selectValue,n=a[a.length-1],i=a.slice(0,a.length-1),s=Jn(e,i,i[0]||null);t.onChange(s,{action:"pop-value",removedValue:n})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return Ln.apply(void 0,[t.props.classNamePrefix].concat(a))},t.getOptionLabel=function(e){return ps(t.props,e)},t.getOptionValue=function(e){return ms(t.props,e)},t.getStyles=function(e,a){var n=t.props.unstyled,i=os[e](a,n);i.boxSizing="border-box";var s=t.props.styles[e];return s?s(i,a):i},t.getClassNames=function(e,a){var n,i;return null===(n=(i=t.props.classNames)[e])||void 0===n?void 0:n.call(i,a)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,St(St({},Mi),e.components);var e},t.buildCategorizedOptions=function(){return fs(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return hs(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,a){t.setState({ariaSelection:St({value:e},a)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var a=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():a&&t.openMenu("first"):(a&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var a=t.props,n=a.isMulti,i=a.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!n}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Un(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var a=e.touches,n=a&&a.item(0);n&&(t.initialTouchX=n.clientX,t.initialTouchY=n.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var a=e.touches,n=a&&a.item(0);if(n){var i=Math.abs(n.clientX-t.initialTouchX),s=Math.abs(n.clientY-t.initialTouchY);t.userIsDragging=i>5||s>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var a=t.props.inputValue,n=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(n,{action:"input-change",prevInputValue:a}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var a=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:a}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return vs(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var a=t.props,n=a.isMulti,i=a.backspaceRemovesValue,s=a.escapeClearsValue,r=a.inputValue,o=a.isClearable,l=a.isDisabled,c=a.menuIsOpen,u=a.onKeyDown,f=a.tabSelectsValue,h=a.openMenuOnFocus,d=t.state,p=d.focusedOption,m=d.focusedValue,g=d.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||r)return;t.focusValue("previous");break;case"ArrowRight":if(!n||r)return;t.focusValue("next");break;case"Delete":case"Backspace":if(r)return;if(m)t.removeValue(m);else{if(!i)return;n?t.popValue():o&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!f||!p||h&&t.isOptionSelected(p,g))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(c){if(!p)return;if(t.isComposing)return;t.selectOption(p);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:r}),t.onMenuClose()):o&&s&&t.clearValue();break;case" ":if(r)return;if(!c){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++xs),t.state.selectValue=Fn(e.value),e.menuIsOpen&&t.state.selectValue.length){var a=t.buildFocusableOptions(),s=a.indexOf(t.state.selectValue[0]);t.state.focusedOption=a[s]}return t}return Rt(i,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Wn(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,a=t.isDisabled,n=t.menuIsOpen,i=this.state.isFocused;(i&&!a&&e.isDisabled||i&&n&&!e.menuIsOpen)&&this.focusInput(),i&&a&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||a||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Wn(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,a=this.state,n=a.selectValue,i=a.isFocused,s=this.buildFocusableOptions(),r="first"===e?0:s.length-1;if(!this.props.isMulti){var o=s.indexOf(n[0]);o>-1&&(r=o)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:s[r]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,a=t.selectValue,n=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=a.indexOf(n);n||(i=-1);var s=a.length-1,r=-1;if(a.length){switch(e){case"previous":r=0===i?0:-1===i?s:i-1;break;case"next":i>-1&&i<s&&(r=i+1)}this.setState({inputIsHidden:-1!==r,focusedValue:a[r]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,a=this.state.focusedOption,n=this.getFocusableOptions();if(n.length){var i=0,s=n.indexOf(a);a||(s=-1),"up"===e?i=s>0?s-1:n.length-1:"down"===e?i=(s+1)%n.length:"pageup"===e?(i=s-t)<0&&(i=0):"pagedown"===e?(i=s+t)>n.length-1&&(i=n.length-1):"last"===e&&(i=n.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:n[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ls):St(St({},ls),this.props.theme):ls}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,a=this.getStyles,n=this.getClassNames,i=this.getValue,s=this.selectOption,r=this.setValue,o=this.props,l=o.isMulti,c=o.isRtl,u=o.options;return{clearValue:e,cx:t,getStyles:a,getClassNames:n,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:s,selectProps:o,setValue:r,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,a=e.isMulti;return void 0===t?a:t}},{key:"isOptionDisabled",value:function(e,t){return gs(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return bs(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ys(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var a=this.props.inputValue,n=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:a,selectValue:n})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,a=e.isSearchable,n=e.inputId,i=e.inputValue,s=e.tabIndex,r=e.form,o=e.menuIsOpen,l=e.required,c=this.getComponents().Input,u=this.state,f=u.inputIsHidden,h=u.ariaSelection,d=this.commonProps,p=n||this.getElementId("input"),m=St(St(St({"aria-autocomplete":"list","aria-expanded":o,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox"},o&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?Mt.createElement(c,(0,Tt.Z)({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:p,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:r,type:"text",value:i},m)):Mt.createElement(Wi,(0,Tt.Z)({id:p,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Dn,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:r,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),a=t.MultiValue,n=t.MultiValueContainer,i=t.MultiValueLabel,s=t.MultiValueRemove,r=t.SingleValue,o=t.Placeholder,l=this.commonProps,c=this.props,u=c.controlShouldRenderValue,f=c.isDisabled,h=c.isMulti,d=c.inputValue,p=c.placeholder,m=this.state,g=m.selectValue,b=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!u)return d?null:Mt.createElement(o,(0,Tt.Z)({},l,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),p);if(h)return g.map((function(t,r){var o=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return Mt.createElement(a,(0,Tt.Z)({},l,{components:{Container:n,Label:i,Remove:s},isFocused:o,isDisabled:f,key:c,index:r,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(d)return null;var v=g[0];return Mt.createElement(r,(0,Tt.Z)({},l,{data:v,isDisabled:f}),this.formatOptionLabel(v,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,a=this.props,n=a.isDisabled,i=a.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||n||!this.hasValue()||i)return null;var r={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Mt.createElement(e,(0,Tt.Z)({},t,{innerProps:r,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,a=this.props,n=a.isDisabled,i=a.isLoading,s=this.state.isFocused;return e&&i?Mt.createElement(e,(0,Tt.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:n,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,a=e.IndicatorSeparator;if(!t||!a)return null;var n=this.commonProps,i=this.props.isDisabled,s=this.state.isFocused;return Mt.createElement(a,(0,Tt.Z)({},n,{isDisabled:i,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,a=this.props.isDisabled,n=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Mt.createElement(e,(0,Tt.Z)({},t,{innerProps:i,isDisabled:a,isFocused:n}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),a=t.Group,n=t.GroupHeading,i=t.Menu,s=t.MenuList,r=t.MenuPortal,o=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,u=this.commonProps,f=this.state.focusedOption,h=this.props,d=h.captureMenuScroll,p=h.inputValue,m=h.isLoading,g=h.loadingMessage,b=h.minMenuHeight,y=h.maxMenuHeight,v=h.menuIsOpen,x=h.menuPlacement,C=h.menuPosition,S=h.menuPortalTarget,w=h.menuShouldBlockScroll,k=h.menuShouldScrollIntoView,_=h.noOptionsMessage,O=h.onMenuScrollToTop,E=h.onMenuScrollToBottom;if(!v)return null;var M,$=function(t,a){var n=t.type,i=t.data,s=t.isDisabled,r=t.isSelected,o=t.label,l=t.value,h=f===i,d=s?void 0:function(){return e.onOptionHover(i)},p=s?void 0:function(){return e.selectOption(i)},m="".concat(e.getElementId("option"),"-").concat(a),g={id:m,onClick:p,onMouseMove:d,onMouseOver:d,tabIndex:-1};return Mt.createElement(c,(0,Tt.Z)({},u,{innerProps:g,data:i,isDisabled:s,isSelected:r,key:m,label:o,type:n,value:l,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())M=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,s=t.options,r=t.index,o="".concat(e.getElementId("group"),"-").concat(r),l="".concat(o,"-heading");return Mt.createElement(a,(0,Tt.Z)({},u,{key:o,data:i,options:s,Heading:n,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return $(e,"".concat(r,"-").concat(e.index))})))}if("option"===t.type)return $(t,"".concat(t.index))}));else if(m){var P=g({inputValue:p});if(null===P)return null;M=Mt.createElement(o,u,P)}else{var T=_({inputValue:p});if(null===T)return null;M=Mt.createElement(l,u,T)}var A={minMenuHeight:b,maxMenuHeight:y,menuPlacement:x,menuPosition:C,menuShouldScrollIntoView:k},B=Mt.createElement(ai,(0,Tt.Z)({},u,A),(function(t){var a=t.ref,n=t.placerProps,r=n.placement,o=n.maxHeight;return Mt.createElement(i,(0,Tt.Z)({},u,A,{innerRef:a,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:r}),Mt.createElement(is,{captureEnabled:d,onTopArrive:O,onBottomArrive:E,lockEnabled:w},(function(t){return Mt.createElement(s,(0,Tt.Z)({},u,{innerRef:function(a){e.getMenuListRef(a),t(a)},isLoading:m,maxHeight:o,focusedOption:f}),M)})))}));return S||"fixed"===C?Mt.createElement(r,(0,Tt.Z)({},u,{appendTo:S,controlElement:this.controlRef,menuPlacement:x,menuPosition:C}),B):B}},{key:"renderFormField",value:function(){var e=this,t=this.props,a=t.delimiter,n=t.isDisabled,i=t.isMulti,s=t.name,r=t.required,o=this.state.selectValue;if(r&&!this.hasValue()&&!n)return Mt.createElement(rs,{name:s,onFocus:this.onValueInputFocus});if(s&&!n){if(i){if(a){var l=o.map((function(t){return e.getOptionValue(t)})).join(a);return Mt.createElement("input",{name:s,type:"hidden",value:l})}var c=o.length>0?o.map((function(t,a){return Mt.createElement("input",{key:"i-".concat(a),name:s,type:"hidden",value:e.getOptionValue(t)})})):Mt.createElement("input",{name:s,type:"hidden",value:""});return Mt.createElement("div",null,c)}var u=o[0]?this.getOptionValue(o[0]):"";return Mt.createElement("input",{name:s,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,a=t.ariaSelection,n=t.focusedOption,i=t.focusedValue,s=t.isFocused,r=t.selectValue,o=this.getFocusableOptions();return Mt.createElement(Ri,(0,Tt.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:n,focusedValue:i,isFocused:s,selectValue:r,focusableOptions:o}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,a=e.IndicatorsContainer,n=e.SelectContainer,i=e.ValueContainer,s=this.props,r=s.className,o=s.id,l=s.isDisabled,c=s.menuIsOpen,u=this.state.isFocused,f=this.commonProps=this.getCommonProps();return Mt.createElement(n,(0,Tt.Z)({},f,{className:r,innerProps:{id:o,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:u}),this.renderLiveRegion(),Mt.createElement(t,(0,Tt.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:u,menuIsOpen:c}),Mt.createElement(i,(0,Tt.Z)({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),Mt.createElement(a,(0,Tt.Z)({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=t.prevProps,n=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,s=t.ariaSelection,r=t.isFocused,o=t.prevWasFocused,l=e.options,c=e.value,u=e.menuIsOpen,f=e.inputValue,h=e.isMulti,d=Fn(c),p={};if(a&&(c!==a.value||l!==a.options||u!==a.menuIsOpen||f!==a.inputValue)){var m=u?function(e,t){return hs(fs(e,t))}(e,d):[],g=n?function(e,t){var a=e.focusedValue,n=e.selectValue.indexOf(a);if(n>-1){if(t.indexOf(a)>-1)return a;if(n<t.length)return t[n]}return null}(t,d):null,b=function(e,t){var a=e.focusedOption;return a&&t.indexOf(a)>-1?a:t[0]}(t,m);p={selectValue:d,focusedOption:b,focusedValue:g,clearFocusValueOnUpdate:!1}}var y=null!=i&&e!==a?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},v=s,x=r&&o;return r&&!x&&(v={value:Jn(h,d,d[0]||null),options:d,action:"initial-input-focus"},x=!o),"initial-input-focus"===(null==s?void 0:s.action)&&(v=null),St(St(St({},p),y),{},{prevProps:e,ariaSelection:v,prevWasFocused:x})}}]),i}(Mt.Component);Cs.defaultProps=cs;var Ss=(0,Mt.forwardRef)((function(e,t){var a=Pt(e);return Mt.createElement(Cs,(0,Tt.Z)({ref:t},a))})),ws=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"],ks=(0,Mt.forwardRef)((function(e,t){var a=function(e){var t=e.defaultOptions,a=void 0!==t&&t,n=e.cacheOptions,i=void 0!==n&&n,s=e.loadOptions;e.options;var r=e.isLoading,o=void 0!==r&&r,l=e.onInputChange,c=e.filterOption,u=void 0===c?null:c,f=Et(e,ws),h=f.inputValue,d=(0,Mt.useRef)(void 0),p=(0,Mt.useRef)(!1),m=_t((0,Mt.useState)(Array.isArray(a)?a:void 0),2),g=m[0],b=m[1],y=_t((0,Mt.useState)(void 0!==h?h:""),2),v=y[0],x=y[1],C=_t((0,Mt.useState)(!0===a),2),S=C[0],w=C[1],k=_t((0,Mt.useState)(void 0),2),_=k[0],O=k[1],E=_t((0,Mt.useState)([]),2),M=E[0],$=E[1],P=_t((0,Mt.useState)(!1),2),T=P[0],A=P[1],B=_t((0,Mt.useState)({}),2),R=B[0],I=B[1],D=_t((0,Mt.useState)(void 0),2),N=D[0],L=D[1],F=_t((0,Mt.useState)(void 0),2),z=F[0],V=F[1];i!==z&&(I({}),V(i)),a!==N&&(b(Array.isArray(a)?a:void 0),L(a)),(0,Mt.useEffect)((function(){return p.current=!0,function(){p.current=!1}}),[]);var U=(0,Mt.useCallback)((function(e,t){if(!s)return t();var a=s(e,t);a&&"function"==typeof a.then&&a.then(t,(function(){return t()}))}),[s]);(0,Mt.useEffect)((function(){!0===a&&U(v,(function(e){p.current&&(b(e||[]),w(!!d.current))}))}),[]);var H=(0,Mt.useCallback)((function(e,t){var a=function(e,t,a){if(a){var n=a(e,t);if("string"==typeof n)return n}return e}(e,t,l);if(!a)return d.current=void 0,x(""),O(""),$([]),w(!1),void A(!1);if(i&&R[a])x(a),O(a),$(R[a]),w(!1),A(!1);else{var n=d.current={};x(a),w(!0),A(!_),U(a,(function(e){p&&n===d.current&&(d.current=void 0,w(!1),O(a),$(e||[]),A(!1),I(e?St(St({},R),{},xt({},a,e)):R))}))}}),[i,U,_,R,l]),G=T?[]:v&&_?M:g||[];return St(St({},f),{},{options:G,isLoading:S||o,onInputChange:H,filterOption:u})}(e),n=Pt(a);return Mt.createElement(Cs,(0,Tt.Z)({ref:t},n))})),_s=ks;(0,t.__)("Post","essential-blocks");const Os=[{label:(0,t.__)("Date","essential-blocks"),value:"date"},{label:(0,t.__)("Modified Date","essential-blocks"),value:"modified"},{label:(0,t.__)("Title","essential-blocks"),value:"title"},{label:(0,t.__)("ID","essential-blocks"),value:"id"},{label:(0,t.__)("Parent","essential-blocks"),value:"parent"},{label:(0,t.__)("Random Order (Pro)","essential-blocks"),value:"rand",isPro:!0},{label:(0,t.__)("Menu Order (Pro)","essential-blocks"),value:"menu_order",isPro:!0},{label:(0,t.__)("Comment Count (Pro)","essential-blocks"),value:"comment_count",isPro:!0}],Es=[{label:(0,t.__)("Desc","essential-blocks"),value:"desc"},{label:(0,t.__)("Asc","essential-blocks"),value:"asc"}],Ms=((0,t.__)("Load More Button"),(0,t.__)("Pagination"),[{label:(0,t.__)((0,e.createElement)(i.Dashicon,{icon:"editor-alignleft"})),value:"left"},{label:(0,t.__)((0,e.createElement)(i.Dashicon,{icon:"editor-aligncenter"})),value:"center"},{label:(0,t.__)((0,e.createElement)(i.Dashicon,{icon:"editor-alignright"})),value:"right"}]),$s=window.wp.apiFetch;var Ps=a.n($s);const Ts=EssentialBlocksLocalize.rest_rootURL;Ps().use(Ps().createRootURLMiddleware(Ts));const As=e=>{const t=Fs(e),a=e.rest_namespace?e.rest_namespace:"wp/v2";let n=[];return Ps()({path:`/${a}/${e.rest_base?e.rest_base:"posts"}?${t}&_embed`}).then((e=>(null!=e&&e.length>0&&e.forEach((e=>{let t={};Object.keys(e).forEach((a=>{t[a]=e[a]})),n=[...n,t]})),n)),(e=>{console.log("error",e)}))},Bs=()=>{let e=[];return Ps()({path:"/wp/v2/users?per_page=-1"}).then((t=>(null!=t&&t.length>0&&t.forEach((t=>{let a={},n=["id","link","name","slug"];Object.keys(t).forEach((e=>{n.includes(e)&&(a[e]=t[e])})),e=[...e,a]})),e)),(e=>{console.log("error",e)}))},Rs=e=>{let t=[];return Ps()({path:`/wp/v2/taxonomies?type=${e.source?e.source:"post"}&per_page=-1`}).then((e=>(null!=e&&Object.keys(e).length>0&&Object.keys(e).forEach((a=>{let n={},i=["name","slug","rest_base","rest_namespace"];Object.keys(e[a]).forEach((t=>{i.includes(t)&&(n[t]=e[a][t])})),t.push(n)})),t)),(e=>{console.log("error",e)}))},Is=e=>{let t=[];return Ps()({path:`/wp/v2/${e}?per_page=-1`}).then((e=>(null!=e&&Object.keys(e).length>0&&Object.keys(e).forEach((a=>{let n={};Object.keys(e[a]).forEach((t=>{"name"===t&&(n.label=e[a][t]),"id"===t&&(n.value=e[a][t])})),t.push(n)})),t)),(e=>{console.log("error",e)}))},Ds=e=>{const t=e.rest_namespace?e.rest_namespace:"wp/v2";let a=[];return Ps()({path:`/${t}/${e.rest_base?e.rest_base:"posts"}/?per_page=5`}).then((e=>(null!=e&&e.length>0&&e.forEach((e=>{let t={},n=["id","title"];Object.keys(e).forEach((a=>{n.includes(a)&&(t[a]=e[a])})),a=[...a,t]})),a)),(e=>{console.log("error",e)}))},Ns=(e,t)=>{let a=[];const n=t.rest_namespace?t.rest_namespace:"wp/v2";return Ps()({path:`/${n}/search/?search=${e}&type=post&subtype=${t.source?t.source:"post"}`}).then((e=>(null!=e&&e.length>0&&e.forEach((e=>{let t={},n=["id","title"];Object.keys(e).forEach((a=>{n.includes(a)&&(t[a]=e[a])})),a=[...a,t]})),a)),(e=>{console.log("error",e)}))},Ls=e=>{const t=Fs(e),a=e.rest_namespace?e.rest_namespace:"wp/v2";return Ps()({path:`/${a}/${e.rest_base?e.rest_base:"posts"}?${t}`,parse:!1}).then((e=>e.headers.get("X-WP-Total")),(e=>{console.log("error",e)}))},Fs=e=>{let t={};return Object.keys(e).forEach((a=>{if(["source","sourceIndex","author","taxonomies","per_page","offset","orderby","order","include","exclude","category","tag","exclude_current"].includes(a)){if("taxonomies"===a){const n=e[a];"object"==typeof n&&Object.keys(n).length>0&&Object.keys(n).map((e=>{if(fe(n[e].value)){const a=JSON.parse(n[e].value);if(a.length>0){const i=[];"object"==typeof a&&Object.keys(a).map((e=>{i.push(a[e].value)})),t[n[e].rest_base]=i.join(",")}}}))}if(e[a]&&e[a].length>0)if(fe(e[a])){let n=JSON.parse(e[a]),i=[];n.length>0&&(n.forEach((e=>{"object"==typeof e&&i.push(e.value)})),t[a]=i.join(","))}else"0"!==e[a]&&(t[a]=e[a]);if("exclude_current"===a&&e.exclude_current){const e=wp.data.select("core/editor").getCurrentPostId();if("number"==typeof e)if(t.exclude){let a=t.exclude.split(",");-1===a.indexOf(e.toString())&&a.push(e.toString()),t.exclude=a.join(",")}else t.exclude=e.toString()}}})),Object.keys(t).map((e=>e+"="+t[e])).join("&")},zs=t=>{const{options:a,onChange:n,selectType:s="selectcontrol"}=t,[r,o]=(0,e.useState)(!1),l=e=>{let t="";t="object"==typeof e?a.filter((t=>t.value===e.value)):a.filter((t=>t.value===e)),"false"===EssentialBlocksLocalize.is_pro_active&&t[0]&&t[0].isPro?o(!0):(o(!1),n(e))};return(0,e.createElement)(e.Fragment,null,"selectcontrol"===s&&(0,e.createElement)(i.SelectControl,(0,Tt.Z)({},t,{onChange:e=>l(e)})),"select2"===s&&(0,e.createElement)(Ss,(0,Tt.Z)({},t,{onChange:e=>l(e)})),r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"eb-is-pro-message"},(0,e.createElement)("span",{className:"dashicons dashicons-lock"}),(0,e.createElement)("span",null,(0,e.createElement)("a",{href:EssentialBlocksLocalize?.upgrade_pro_url,target:"_blank"},"Upgrade to pro")," ","for this premium feature!"))))};function Vs(a){const{attributes:n,setAttributes:s,initialOpen:r,isEdit:o}=a,{queryData:l,queryResults:c,postTerms:u}=n,[f,h]=(0,e.useState)([]),[d,p]=(0,e.useState)([]),[m,g]=(0,e.useState)({}),[y,v]=(0,e.useState)(!1),[x,C]=(0,e.useState)(!1),[S,w]=(0,e.useState)({}),[k,_]=(0,e.useState)({}),[O,E]=(0,e.useState)({}),M=(0,b.useSelect)((e=>{const t=e("core").getPostTypes({per_page:-1});if(!t||0===t.length||null===t)return[{label:"Post",value:"posts"}];if("object"==typeof t||t.length>0){const e=[];return t.map(((t,a)=>{"attachment"!==t.slug&&t.viewable&&e.push({label:t.name,value:parseInt(e.length),post_type:t.slug,rest_base:t.rest_base,rest_namespace:t.rest_namespace})})),e}return t}),[]);(0,e.useEffect)((()=>{w(M)}),[M]),(0,e.useEffect)((()=>{if(v(!0),void 0!==l&&Object.keys(l).length>0){const e={...l};"posts"===e.source&&(e.source="post",e.rest_base="posts",e.rest_namespace="wp/v2"),e.categories&&(e.taxonomies={...e.taxonomies,category:{name:"Categories",rest_base:"categories",rest_namespace:"wp/v2",value:e.categories}}),e.tags&&(e.taxonomies={...e.taxonomies,post_tag:{name:"Tags",rest_base:"tags",rest_namespace:"wp/v2",value:e.tags}}),delete e.categories,delete e.tags,g({...e})}else g({source:"post",sourceIndex:0,rest_base:"posts",rest_namespace:"wp/v2",author:"",taxonomies:{},per_page:"6",offset:"0",orderby:"date",order:"desc",include:"",exclude:"",exclude_current:!1});return Bs().then((e=>{let t=[];e.length>0&&e.forEach((e=>{let a={};Object.keys(e).forEach((t=>{"name"===t&&(a.label=e[t]),"id"===t&&(a.value=e[t])})),t.push(a)})),h(t)})),()=>{v(!1)}}),[]),(0,e.useEffect)((()=>{y&&JSON.stringify(l)!==JSON.stringify(m)&&g(l)}),[l]),(0,e.useEffect)((()=>{y&&(C(!0),As(m).then((e=>{s({queryData:m}),s({queryResults:e}),C(!1)})),Ds(m).then((e=>{let t=[];e.length>0&&e.forEach((e=>{let a={};Object.keys(e).forEach((t=>{"title"===t&&(a.label=e[t].rendered),"id"===t&&(a.value=e[t])})),t.push(a)})),p(t)})))}),[m]),(0,e.useEffect)((()=>{Rs(m).then((e=>{_(e);const t={};let a={};e.length>0&&e.map(((e,n)=>{Is(e.rest_base).then((a=>{t[e.slug]={name:e.name,rest_base:e.rest_base,rest_namespace:e.rest_namespace,slug:e.slug,values:a}})),a[e.slug]={label:e.name,value:e.slug}})),u&&s({postTerms:{...a}}),E(t)}))}),[m?.source]);const $=e=>Ns(e,m).then((e=>{let t=[];return e.length>0&&e.forEach((e=>{let a={};Object.keys(e).forEach((t=>{"title"===t&&(a.label=e[t]),"id"===t&&(a.value=e[t])})),t.push(a)})),t}));return o?null:(0,e.createElement)(i.PanelBody,{title:(0,t.__)("Query","essential-blocks"),initialOpen:r},void 0!==m&&y&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Source","essential-blocks"),value:m.sourceIndex,options:S,onChange:e=>(e=>{let t={...m};t.source=M[e].post_type?M[e].post_type:"post",t.rest_base=M[e].rest_base?M[e].rest_base:"posts",t.rest_namespace=M[e].rest_namespace?M[e].rest_namespace:"wp/v2",t.sourceIndex=M[e].value?M[e].value:0,t.taxonomies={},g(t)})(e),disabled:x}),(0,e.createElement)("div",{className:"eb-control-item-wrapper"},(0,e.createElement)(i.PanelRow,null,"Author"),(0,e.createElement)(Ss,{name:"select-author",value:m.author.length>0?JSON.parse(m.author):"",onChange:e=>(e=>{let t={...m};t.author=JSON.stringify(e),g(t)})(e),options:f,isMulti:"true",isDisabled:x})),Object.keys(O).length>0&&Object.keys(O).map(((t,a)=>{const n=O[t].slug,s=O[t].name,r=m.taxonomies&&m.taxonomies[n]?m.taxonomies[n]:{},o=r.value?JSON.parse(r.value):"";return(0,e.createElement)("div",{className:"eb-control-item-wrapper"},(0,e.createElement)(i.PanelRow,null,s),(0,e.createElement)(Ss,{name:"select-categories",value:o,onChange:e=>((e,t)=>{let a={...m};a.taxonomies={...a.taxonomies,[e]:{...O[e],value:JSON.stringify(t)}},delete a.taxonomies[e].values,g(a)})(n,e),options:O[t].values,isMulti:"true",isDisabled:x}))})),(0,e.createElement)("div",{className:"eb-control-item-wrapper"},(0,e.createElement)(i.PanelRow,null,"Include"),(0,e.createElement)(_s,{cacheOptions:!0,value:m.include.length>0?JSON.parse(m.include):"",defaultOptions:d,placeholder:`Search for ${m.source?m.source:"Posts"}`,loadOptions:$,onChange:e=>(e=>{let t={...m};t.include=JSON.stringify(e),g(t)})(e),isMulti:"true",isDisabled:x})),(0,e.createElement)("div",{className:"eb-control-item-wrapper"},(0,e.createElement)(i.PanelRow,null," Exclude"),(0,e.createElement)(_s,{cacheOptions:!0,value:m.exclude.length>0?JSON.parse(m.exclude):"",defaultOptions:d,placeholder:`Search for ${m.source?m.source:"Posts"}`,loadOptions:$,onChange:e=>(e=>{let t={...m};t.exclude=JSON.stringify(e),g(t)})(e),isMulti:"true",isDisabled:x})),(0,e.createElement)(i.TextControl,{label:"Posts Per Page",type:"number",value:m.per_page,onChange:e=>(e=>{let t={...m};t.per_page=e,g(t)})(e),disabled:x}),(0,e.createElement)(i.TextControl,{label:"Offset",type:"number",value:m.offset,onChange:e=>(e=>{let t={...m};t.offset=e,g(t)})(e),disabled:x}),(0,e.createElement)(zs,{label:(0,t.__)("Order By","essential-blocks"),value:m.orderby,options:(0,X.applyFilters)("eb_custom_query_orderby_filter",Os),onChange:e=>(e=>{let t={...m};t.orderby=e,g(t)})(e),disabled:x}),(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Order","essential-blocks"),value:m.order,options:Es,onChange:e=>(e=>{let t={...m};t.order=e,g(t)})(e),disabled:x}),(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Exclude Current Post?"),checked:m.exclude_current,onChange:()=>(e=>{let t={...m};t.exclude_current=e,g(t)})(!m.exclude_current)})))}function Us(a){const{loadMoreOptions:n,queryData:s,setAttributes:r,initialOpen:o}=a,[l,c]=(0,e.useState)({}),[u,f]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{f(!0),void 0!==n&&Object.keys(n).length>0?c({...n,prevTxt:n.prevTxt||"<",nextTxt:n.nextTxt||">"}):c({enableMorePosts:!1,loadMoreType:"1",loadMoreButtonTxt:"Load More",alignment:"center",prevTxt:"<",nextTxt:">"})}),[]),(0,e.useEffect)((()=>{r({loadMoreOptions:l})}),[l]),(0,e.useEffect)((()=>{if(void 0!==s&&Object.keys(s).length>0){const e={...s,per_page:""};Ls(e).then((e=>{c({...n,totalPosts:e})}))}}),[s]),(0,e.createElement)(i.PanelBody,{title:(0,t.__)("Load More Settings","essential-blocks"),initialOpen:o},u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Enable Load More Option?","essential-blocks"),checked:l.enableMorePosts,onChange:()=>c({...l,enableMorePosts:!l.enableMorePosts})}),l.enableMorePosts&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.RadioControl,{label:"More Posts Type?",selected:l.loadMoreType,options:[{label:"Button",value:"1"},{label:"Pagination",value:"2"},{label:"Prev-Next",value:"3"}],onChange:e=>c({...l,loadMoreType:e})}),"1"===l.loadMoreType&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.TextControl,{label:(0,t.__)("Button Text","essential-blocks"),value:l.loadMoreButtonTxt,onChange:e=>c({...l,loadMoreButtonTxt:e})})),("2"===l.loadMoreType||"3"===l.loadMoreType)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.TextControl,{label:(0,t.__)("Previous Button Text","essential-blocks"),value:l.prevTxt,onChange:e=>c({...l,prevTxt:e})}),(0,e.createElement)(i.TextControl,{label:(0,t.__)("Next Button Text","essential-blocks"),value:l.nextTxt,onChange:e=>c({...l,nextTxt:e})})),(0,e.createElement)(i.BaseControl,{label:(0,t.__)("Alignment","essential-blocks"),id:"essential-blocks"},(0,e.createElement)(i.ButtonGroup,{id:"essential-blocks"},Ms.map(((t,a)=>(0,e.createElement)(i.Button,{key:a,isLarge:!0,isPrimary:l.alignment===t.value,isSecondary:l.alignment!==t.value,onClick:()=>c({...l,alignment:t.value})},t.label))))))))}const Hs=[{label:(0,t.__)("Product ID","essential-blocks"),value:"ID"},{label:(0,t.__)("Product Title","essential-blocks"),value:"title"},{label:(0,t.__)("Product Slug","essential-blocks"),value:"slug"},{label:(0,t.__)("Price","essential-blocks"),value:"price"},{label:(0,t.__)("Popular","essential-blocks"),value:"popular"},{label:(0,t.__)("Rating","essential-blocks"),value:"rating"},{label:(0,t.__)("Date","essential-blocks"),value:"date"},{label:(0,t.__)("Random Order (Pro)","essential-blocks"),value:"rand",isPro:!0}],Gs=[{label:(0,t.__)("Ascending","essential-blocks"),value:"asc"},{label:(0,t.__)("Descending","essential-blocks"),value:"desc"}],js=EssentialBlocksLocalize.rest_rootURL;Ps().use(Ps().createRootURLMiddleware(js));const Ws=()=>{let e=[];return Ps()({path:"/wc/v3/products/categories?per_page=-1"}).then((t=>(null!=t&&t.length>0&&t.forEach((t=>{let a={},n=["id","link","name","slug","parent"];Object.keys(t).forEach((e=>{n.includes(e)&&(a[e]=t[e])})),e=[...e,a]})),e)),(e=>{console.log("error",e)}))},qs=()=>{let e=[];return Ps()({path:"/wc/v3/products/tags?per_page=-1"}).then((t=>(null!=t&&t.length>0&&t.forEach((t=>{let a={},n=["id","name","slug"];Object.keys(t).forEach((e=>{n.includes(e)&&(a[e]=t[e])})),e=[...e,a]})),e)),(e=>{console.log("error",e)}))},Zs=e=>{let t={...e};if(t.category){let e=JSON.parse(t.category).map((e=>e.value));t.category=e}if(t.tag){let e=JSON.parse(t.tag).map((e=>e.value));t.tag=e}const a=Qs(t);let n=[];return Ps()({path:`/essential-blocks/v1/products?${a}`}).then((e=>(null!=e&&e.length>0&&e.forEach((e=>{let t={};Object.keys(e).forEach((a=>{t[a]=e[a]})),n=[...n,t]})),n)),(e=>{console.log("error",e)}))},Qs=e=>{let t={};return Object.keys(e).forEach((a=>{if(e[a]&&e[a].length>0)if(function(e){try{var t=JSON.parse(e);if(t&&"object"==typeof t)return!0}catch(e){}return!1}(e[a])){let n=JSON.parse(e[a]),i=[];n.length>0&&(n.forEach((e=>{"object"==typeof e&&i.push(e.value)})),t[a]=i.join(","))}else"0"!==e[a]&&(t[a]=e[a])})),Object.keys(t).map((e=>e+"="+t[e])).join("&")};function Xs(a){const{queryData:n,queryResults:s,setAttributes:r,isEdit:o}=a,[l,c]=(0,e.useState)({}),[u,f]=(0,e.useState)(!1),[h,d]=(0,e.useState)([]),[p,m]=(0,e.useState)([]);(0,e.useEffect)((()=>(f(!0),void 0!==n&&Object.keys(n).length>0?c({...n,source:"products",rest_base:"products",rest_namespace:"wc/v3"}):c({source:"products",rest_base:"products",rest_namespace:"wc/v3",category:"",tag:"",per_page:"4",offset:"0",orderby:JSON.stringify([{label:(0,t.__)("Date","essential-blocks"),value:"date"}]),order:JSON.stringify([{label:(0,t.__)("Descending","essential-blocks"),value:"desc"}])}),Ws().then((e=>{let t=[];e.length>0&&e.forEach((e=>{let a={};Object.keys(e).forEach((t=>{"name"===t&&(a.label=e[t]),"id"===t&&(a.value=e[t])})),t.push(a)})),d(t)})),qs().then((e=>{let t=[];e.length>0&&e.forEach((e=>{let a={};Object.keys(e).forEach((t=>{"name"===t&&(a.label=e[t]),"id"===t&&(a.value=e[t])})),t.push(a)})),m(t)})),()=>{f(!1)})),[]),(0,e.useEffect)((()=>{u&&Zs(l).then((e=>{r({queryData:l}),r({queryResults:e})}))}),[l]);const g=(e,t,a,n)=>{const i={...l};i[t]=a&&n?JSON.stringify([e]):a?JSON.stringify(e):e,c(i)},b=(e,t)=>{const a={...l};a[t]=e<0?0:e,c(a)};return o?null:(0,e.createElement)(i.PanelBody,{title:a.title,initialOpen:a.initialOpen},void 0!==l&&u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"eb-control-item-wrapper"},(0,e.createElement)(i.PanelRow,null,(0,t.__)("Order By","essential-blocks")),(0,e.createElement)(zs,{name:"select-order-by",value:void 0!==l.orderby&&l.orderby.length>0?JSON.parse(l.orderby):"",onChange:e=>g(e,"orderby",!0,!0),options:Hs,isMulti:!1,selectType:"select2"})),(0,e.createElement)("div",{className:"eb-control-item-wrapper"},(0,e.createElement)(i.PanelRow,null,(0,t.__)("Order","essential-blocks")),(0,e.createElement)(Ss,{name:"select-order",value:void 0!==l.order&&l.order.length>0?JSON.parse(l.order):"",onChange:e=>g(e,"order",!0,!0),options:Gs,isMulti:!1})),(0,e.createElement)(i.TextControl,{label:(0,t.__)("Products Per Page","essential-blocks"),type:"number",value:l.per_page,onChange:e=>b(e,"per_page")}),(0,e.createElement)(i.TextControl,{label:(0,t.__)("Offset","essential-blocks"),type:"number",value:l.offset,onChange:e=>b(e,"offset")}),(0,e.createElement)("div",{className:"eb-control-item-wrapper"},(0,e.createElement)(i.PanelRow,null,(0,t.__)("Product Categories","essential-blocks")),(0,e.createElement)(Ss,{name:"select-categories",value:void 0!==l.category&&l.category.length>0?JSON.parse(l.category):"",onChange:e=>g(e,"category",!0),options:h,isMulti:!0})),(0,e.createElement)("div",{className:"eb-control-item-wrapper"},(0,e.createElement)(i.PanelRow,null,(0,t.__)("Product Tags","essential-blocks")),(0,e.createElement)(Ss,{name:"select-tags",value:void 0!==l.tag&&l.tag.length>0?JSON.parse(l.tag):"",onChange:e=>g(e,"tag",!0),options:p,isMulti:!0}))))}function Ks(t){let{children:a,resRequiredProps:n,label:i,controlName:s,onReset:r,noUnits:o}=t;const{setAttributes:l,resOption:c,objAttributes:u}=n;r=()=>{o?("Desktop"==c&&l({[`${s}Range`]:u[`${s}Range`].default}),"Tablet"==c&&l({[`TAB${s}Range`]:u[`TAB${s}Range`].default}),"Mobile"==c&&l({[`MOB${s}Range`]:u[`MOB${s}Range`].default})):("Desktop"==c&&l({[`${s}Range`]:u[`${s}Range`].default,[`${s}Unit`]:u[`${s}Unit`].default||"px"}),"Tablet"==c&&l({[`TAB${s}Range`]:u[`TAB${s}Range`].default,[`TAB${s}Unit`]:u[`TAB${s}Unit`].default||"px"}),"Mobile"==c&&l({[`MOB${s}Range`]:u[`MOB${s}Range`].default,[`MOB${s}Unit`]:u[`MOB${s}Unit`].default||"px"}))};const f=()=>{const{editor_type:e}=eb_conditional_localize||{};return"edit-site"===e?(0,b.dispatch)("core/edit-site").__experimentalSetPreviewDeviceType:("edit-post"===e||console.log("---fallen back, please check style handler"),(0,b.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType)};return(0,e.createElement)("div",{className:"responsive-btn-wrapper"},(0,e.createElement)("div",{className:"responsive-btn"},(0,e.createElement)("span",{className:"responsive-btn-label components-base-control__label"},i),(0,e.createElement)("span",{onClick:()=>N({setPreviewDeviceType:f(),setAttributes:l}),className:"typoResButton dashicons dashicons-desktop "+("Desktop"===c?"active":" ")}),(0,e.createElement)("span",{onClick:()=>L({setPreviewDeviceType:f(),setAttributes:l}),className:"typoResButton dashicons dashicons-tablet "+("Tablet"===c?"active":" ")}),(0,e.createElement)("span",{onClick:()=>F({setPreviewDeviceType:f(),setAttributes:l}),className:"typoResButton dashicons dashicons-smartphone "+("Mobile"===c?"active":" ")})),(0,e.createElement)("div",{className:"eb-component-wrapper"},a,(0,e.createElement)("button",{className:"eb-range-reset-button",onClick:r},(0,e.createElement)("span",{className:"dashicon dashicons dashicons-image-rotate"}))))}const Ys=t=>{let{baseLabel:a,controlName:n,resRequiredProps:s,units:r,min:o,max:l,step:c,noUnits:u}=t;const{attributes:f,setAttributes:d,resOption:p}=s;let m,g,b,y;const{[`${n}Range`]:v,[`TAB${n}Range`]:x,[`MOB${n}Range`]:C}=f;return u||(m=f[`${n}Unit`],g=f[`TAB${n}Unit`],b=f[`MOB${n}Unit`],y=[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}]),(0,e.createElement)("div",{className:"responsiveRangeControllerWrapper"},u?(0,e.createElement)(e.Fragment,null,"Desktop"==p&&(0,e.createElement)(Ks,{noUnits:u,label:a,resRequiredProps:s,controlName:n},(0,e.createElement)(i.RangeControl,{value:v,onChange:e=>d({[`${n}Range`]:e}),step:c||1,min:o||0,max:l||100})),"Tablet"==p&&(0,e.createElement)(Ks,{noUnits:u,label:a,resRequiredProps:s,controlName:n},(0,e.createElement)(i.RangeControl,{value:x,onChange:e=>d({[`TAB${n}Range`]:e}),step:c||1,min:o||0,max:l||100})),"Mobile"==p&&(0,e.createElement)(Ks,{noUnits:u,label:a,resRequiredProps:s,controlName:n},(0,e.createElement)(i.RangeControl,{value:C,onChange:e=>d({[`MOB${n}Range`]:e}),step:c||1,min:o||0,max:l||100}))):(0,e.createElement)(e.Fragment,null,"Desktop"==p&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:m,unitTypes:r||y,onClick:e=>d({[`${n}Unit`]:e})}),(0,e.createElement)(Ks,{label:a,resRequiredProps:s,controlName:n},(0,e.createElement)(i.RangeControl,{value:v,onChange:e=>d({[`${n}Range`]:e}),step:"em"===m?.1:c,min:"px"===m?o:0,max:"px"===m?l:100}))),"Tablet"==p&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:g,unitTypes:r||y,onClick:e=>d({[`TAB${n}Unit`]:e})}),(0,e.createElement)(Ks,{label:a,resRequiredProps:s,controlName:n},(0,e.createElement)(i.RangeControl,{value:x,onChange:e=>d({[`TAB${n}Range`]:e}),step:"em"===g?.1:c,min:"px"===g?o:0,max:"px"===g?l:100}))),"Mobile"==p&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:b,unitTypes:r||y,onClick:e=>d({[`MOB${n}Unit`]:e})}),(0,e.createElement)(Ks,{label:a,resRequiredProps:s,controlName:n},(0,e.createElement)(i.RangeControl,{value:C,onChange:e=>d({[`MOB${n}Range`]:e}),step:"em"===b?.1:c,min:"px"===b?o:0,max:"px"===b?l:100})))))};function Js(t){let{children:a,resBtnProps:{label:n,resRequiredProps:i,controlName:s}}=t;const{setAttributes:r,resOption:o,objAttributes:l,attributes:c}=i,u=`${s}Option`,f=`TAB${s}Option`,h=`MOB${s}Option`,d=()=>{const{editor_type:e}=eb_conditional_localize||{};return"edit-site"===e?(0,b.dispatch)("core/edit-site").__experimentalSetPreviewDeviceType:("edit-post"===e||console.log("---fallen back, please check style handler"),(0,b.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType)};return(0,e.createElement)("div",{className:"responsive-btn-wrapper"},(0,e.createElement)("div",{className:"responsive-btn"},(0,e.createElement)("span",{className:"responsive-btn-label components-base-control__label"},n),(0,e.createElement)("span",{onClick:()=>N({setPreviewDeviceType:d(),setAttributes:r}),className:"typoResButton dashicons dashicons-desktop "+("Desktop"===o?"active":" ")}),(0,e.createElement)("span",{onClick:()=>L({setPreviewDeviceType:d(),setAttributes:r}),className:"typoResButton dashicons dashicons-tablet "+("Tablet"===o?"active":" ")}),(0,e.createElement)("span",{onClick:()=>F({setPreviewDeviceType:d(),setAttributes:r}),className:"typoResButton dashicons dashicons-smartphone "+("Mobile"===o?"active":" ")})),(0,e.createElement)("div",{className:"eb-component-wrapper"},a,(0,e.createElement)("button",{className:"eb-range-reset-button",onClick:()=>{"Desktop"===o?r({[u]:l[u].default}):"Tablet"===o?r({[f]:l[f].default}):"Mobile"===o&&r({[h]:l[h].default})}},(0,e.createElement)("span",{className:"dashicon dashicons dashicons-image-rotate"}))))}const er=t=>{let{baseLabel:a,controlName:n,resRequiredProps:s,options:r}=t;const{attributes:o,setAttributes:l,resOption:c}=s,u={label:a,resRequiredProps:s,options:r,controlName:n},f=`${n}Option`,h=`TAB${n}Option`,d=`MOB${n}Option`,p=r[0].value,m=o[f]||p,g=o[h]||m,b=o[d]||g;return"Desktop"==c?(0,e.createElement)("div",{className:"responsiveSelectControl "+(o[f]?"":"jhapsha")},(0,e.createElement)(Js,{resBtnProps:u},(0,e.createElement)(i.SelectControl,{value:m,options:r,onChange:e=>l({[f]:e})}))):"Tablet"==c?(0,e.createElement)("div",{className:"responsiveSelectControl "+(o[h]?"":"jhapsha")},(0,e.createElement)(Js,{resBtnProps:u},(0,e.createElement)(i.SelectControl,{value:g,options:r,onChange:e=>l({[h]:e})}))):"Mobile"==c?(0,e.createElement)("div",{className:"responsiveSelectControl "+(o[d]?"":"jhapsha")},(0,e.createElement)(Js,{resBtnProps:u},(0,e.createElement)(i.SelectControl,{value:b,options:r,onChange:e=>l({[d]:e})}))):void 0};var tr=a(862),ar=a.n(tr);function nr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),n.forEach((function(t){xt(e,t,a[t])}))}return e}var ir=a(143),sr=a.n(ir),rr=a(697),or=a.n(rr),lr=function(){function e(){At(this,e),xt(this,"refs",{})}return Rt(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var a=this.getIndex(e,t);-1!==a&&this.refs[e].splice(a,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find((function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(cr)}}]),e}();function cr(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function ur(e,t){return Object.keys(e).reduce((function(a,n){return-1===t.indexOf(n)&&(a[n]=e[n]),a}),{})}var fr={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},hr=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function dr(e,t){Object.keys(t).forEach((function(a){e.style[a]=t[a]}))}function pr(e,t){e.style["".concat(hr,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function mr(e,t){e.style["".concat(hr,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function gr(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function br(e,t,a){return Math.max(e,Math.min(a,t))}function yr(e){return"px"===e.substr(-2)?parseFloat(e):0}function vr(e,t){var a=t.displayName||t.name;return a?"".concat(e,"(").concat(a,")"):e}function xr(e,t){var a=e.getBoundingClientRect();return{top:a.top+t.top,left:a.left+t.left}}function Cr(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function Sr(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var n={left:a.left+e.offsetLeft,top:a.top+e.offsetTop};return e.parentNode===t?n:Sr(e.parentNode,t,n)}}function wr(e){var t=e.lockOffset,a=e.width,n=e.height,i=t,s=t,r="px";if("string"==typeof t){var o=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);sr()(null!==o,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),i=parseFloat(t),s=parseFloat(t),r=o[1]}return sr()(isFinite(i)&&isFinite(s),"lockOffset value should be a finite. Given %s",t),"%"===r&&(i=i*a/100,s=s*n/100),{x:i,y:s}}function kr(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),a=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return a.test(t[e])}))}(e)?e:kr(e.parentNode):null}var _r={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Or(e){var t,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return a=t=function(t){function a(){var e,t;At(this,a);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return t=Ft(this,(e=Nt(a)).call.apply(e,[this].concat(i))),xt((0,Lt.Z)((0,Lt.Z)(t)),"wrappedInstance",(0,Mt.createRef)()),t}return Dt(a,t),Rt(a,[{key:"componentDidMount",value:function(){(0,pn.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return sr()(n.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=n.withRef?this.wrappedInstance:null;return(0,Mt.createElement)(e,(0,Tt.Z)({ref:t},this.props))}}]),a}(Mt.Component),xt(t,"displayName",vr("sortableHandle",e)),a}function Er(e){return null!=e.sortableHandle}var Mr=function(){function e(t,a){At(this,e),this.container=t,this.onScrollCallback=a}return Rt(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,a=e.translate,n=e.minTranslate,i=e.maxTranslate,s=e.width,r=e.height,o={x:0,y:0},l={x:1,y:1},c=this.container,u=c.scrollTop,f=c.scrollLeft,h=c.scrollHeight,d=c.scrollWidth,p=0===u,m=h-u-c.clientHeight==0,g=0===f,b=d-f-c.clientWidth==0;a.y>=i.y-r/2&&!m?(o.y=1,l.y=10*Math.abs((i.y-r/2-a.y)/r)):a.x>=i.x-s/2&&!b?(o.x=1,l.x=10*Math.abs((i.x-s/2-a.x)/s)):a.y<=n.y+r/2&&!p?(o.y=-1,l.y=10*Math.abs((a.y-r/2-n.y)/r)):a.x<=n.x+s/2&&!g&&(o.x=-1,l.x=10*Math.abs((a.x-s/2-n.x)/s)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===o.x&&0===o.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:l.x*o.x,top:l.y*o.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}(),$r={axis:or().oneOf(["x","y","xy"]),contentWindow:or().any,disableAutoscroll:or().bool,distance:or().number,getContainer:or().func,getHelperDimensions:or().func,helperClass:or().string,helperContainer:or().oneOfType([or().func,"undefined"==typeof HTMLElement?or().any:or().instanceOf(HTMLElement)]),hideSortableGhost:or().bool,keyboardSortingTransitionDuration:or().number,lockAxis:or().string,lockOffset:or().oneOfType([or().number,or().string,or().arrayOf(or().oneOfType([or().number,or().string]))]),lockToContainerEdges:or().bool,onSortEnd:or().func,onSortMove:or().func,onSortOver:or().func,onSortStart:or().func,pressDelay:or().number,pressThreshold:or().number,keyCodes:or().shape({lift:or().arrayOf(or().number),drop:or().arrayOf(or().number),cancel:or().arrayOf(or().number),up:or().arrayOf(or().number),down:or().arrayOf(or().number)}),shouldCancelStart:or().func,transitionDuration:or().number,updateBeforeSortStart:or().func,useDragHandle:or().bool,useWindowAsScrollContainer:or().bool},Pr={lift:[32],drop:[32],cancel:[27],up:[38,37],down:[40,39]},Tr={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Pr,shouldCancelStart:function(e){return-1!==[_r.Input,_r.Textarea,_r.Select,_r.Option,_r.Button].indexOf(e.target.tagName)||!!gr(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},Ar=Object.keys($r),Br=(0,Mt.createContext)({manager:{}});function Rr(e){var t,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return a=t=function(t){function a(e){var t;At(this,a),t=Ft(this,Nt(a).call(this,e)),xt((0,Lt.Z)((0,Lt.Z)(t)),"state",{}),xt((0,Lt.Z)((0,Lt.Z)(t)),"handleStart",(function(e){var a=t.props,n=a.distance,i=a.shouldCancelStart;if(2!==e.button&&!i(e)){t.touched=!0,t.position=Cr(e);var s=gr(e.target,(function(e){return null!=e.sortableInfo}));if(s&&s.sortableInfo&&t.nodeIsChild(s)&&!t.state.sorting){var r=t.props.useDragHandle,o=s.sortableInfo,l=o.index,c=o.collection;if(o.disabled)return;if(r&&!gr(e.target,Er))return;t.manager.active={collection:c,index:l},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==_r.Anchor||e.preventDefault(),n||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),xt((0,Lt.Z)((0,Lt.Z)(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),xt((0,Lt.Z)((0,Lt.Z)(t)),"handleMove",(function(e){var a=t.props,n=a.distance,i=a.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var s=Cr(e),r={x:t.position.x-s.x,y:t.position.y-s.y},o=Math.abs(r.x)+Math.abs(r.y);t.delta=r,n||i&&!(o>=i)?n&&o>=n&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),xt((0,Lt.Z)((0,Lt.Z)(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),xt((0,Lt.Z)((0,Lt.Z)(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),xt((0,Lt.Z)((0,Lt.Z)(t)),"handlePress",(function(e){try{var a=t.manager.getActive(),n=function(){if(a){var n=function(){var a,n,i=h.sortableInfo.index,c=(a=h,{bottom:yr((n=window.getComputedStyle(a)).marginBottom),left:yr(n.marginLeft),right:yr(n.marginRight),top:yr(n.marginTop)}),m=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:yr(t.gridColumnGap),y:yr(t.gridRowGap)}:{x:0,y:0}}(t.container),g=t.scrollContainer.getBoundingClientRect(),b=r({index:i,node:h,collection:d});if(t.node=h,t.margin=c,t.gridGap=m,t.width=b.width,t.height=b.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=h.getBoundingClientRect(),t.containerBoundingRect=g,t.index=i,t.newIndex=i,t.axis={x:s.indexOf("x")>=0,y:s.indexOf("y")>=0},t.offsetEdge=Sr(h,t.container),t.initialOffset=Cr(p?nr({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(function(e){var t="input, textarea, select, canvas, [contenteditable]",a=e.querySelectorAll(t),n=e.cloneNode(!0);return zt(n.querySelectorAll(t)).forEach((function(e,t){"file"!==e.type&&(e.value=a[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===_r.Canvas&&a[t].width>0&&a[t].height>0&&e.getContext("2d").drawImage(a[t],0,0)})),n}(h)),dr(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-c.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-c.top,"px"),width:"".concat(t.width,"px")}),p&&t.helper.focus(),l&&(t.sortableGhost=h,dr(h,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},p){var y=f?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,v=y.top,x=y.left,C=y.width,S=v+y.height,w=x+C;t.axis.x&&(t.minTranslate.x=x-t.boundingClientRect.left,t.maxTranslate.x=w-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=v-t.boundingClientRect.top,t.maxTranslate.y=S-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(f?0:g.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(f?t.contentWindow.innerWidth:g.left+g.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(f?0:g.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(f?t.contentWindow.innerHeight:g.top+g.height)-t.boundingClientRect.top-t.height/2);o&&o.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?e.target:t.contentWindow,p?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(fr.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),fr.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:i}),u&&u({node:h,index:i,collection:d,isKeySorting:p,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),p&&t.keyMove(0)},i=t.props,s=i.axis,r=i.getHelperDimensions,o=i.helperClass,l=i.hideSortableGhost,c=i.updateBeforeSortStart,u=i.onSortStart,f=i.useWindowAsScrollContainer,h=a.node,d=a.collection,p=t.manager.isKeySorting,m=function(){if("function"==typeof c){t._awaitingUpdateBeforeSortStart=!0;var a=function(t,a){try{var n=(i=h.sortableInfo.index,Promise.resolve(c({collection:d,index:i,node:h,isKeySorting:p},e)).then((function(){})))}catch(e){return a(!0,e)}var i;return n&&n.then?n.then(a.bind(null,!1),a.bind(null,!0)):a(!1,value)}(0,(function(e,a){if(t._awaitingUpdateBeforeSortStart=!1,e)throw a;return a}));if(a&&a.then)return a.then((function(){}))}}();return m&&m.then?m.then(n):n()}}();return Promise.resolve(n&&n.then?n.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),xt((0,Lt.Z)((0,Lt.Z)(t)),"handleSortMove",(function(e){var a=t.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),a&&a(e)})),xt((0,Lt.Z)((0,Lt.Z)(t)),"handleSortEnd",(function(e){var a=t.props,n=a.hideSortableGhost,i=a.onSortEnd,s=t.manager,r=s.active.collection,o=s.isKeySorting,l=t.manager.getOrderedRefs();t.listenerNode&&(o?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(fr.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),fr.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),n&&t.sortableGhost&&dr(t.sortableGhost,{opacity:"",visibility:""});for(var c=0,u=l.length;c<u;c++){var f=l[c],h=f.node;f.edgeOffset=null,f.boundingClientRect=null,pr(h,null),mr(h,null),f.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof i&&i({collection:r,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:o,nodes:l},e),t.touched=!1})),xt((0,Lt.Z)((0,Lt.Z)(t)),"autoscroll",(function(){var e=t.props.disableAutoscroll,a=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(a){var n=nr({},t.translate),i=0,s=0;return t.axis.x&&(n.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),i=t.translate.x-n.x),t.axis.y&&(n.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),s=t.translate.y-n.y),t.translate=n,pr(t.helper,t.translate),t.scrollContainer.scrollLeft+=i,void(t.scrollContainer.scrollTop+=s)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}})),xt((0,Lt.Z)((0,Lt.Z)(t)),"onAutoScroll",(function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()})),xt((0,Lt.Z)((0,Lt.Z)(t)),"handleKeyDown",(function(e){var a=e.keyCode,n=t.props,i=n.shouldCancelStart,s=n.keyCodes,r=nr({},Pr,void 0===s?{}:s);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||r.lift.includes(a)&&!i(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),r.lift.includes(a)&&!t.manager.active?t.keyLift(e):r.drop.includes(a)&&t.manager.active?t.keyDrop(e):r.cancel.includes(a)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):r.up.includes(a)?t.keyMove(-1):r.down.includes(a)&&t.keyMove(1))})),xt((0,Lt.Z)((0,Lt.Z)(t)),"keyLift",(function(e){var a=e.target,n=gr(a,(function(e){return null!=e.sortableInfo})).sortableInfo,i=n.index,s=n.collection;t.initialFocusedNode=a,t.manager.isKeySorting=!0,t.manager.active={index:i,collection:s},t.handlePress(e)})),xt((0,Lt.Z)((0,Lt.Z)(t)),"keyMove",(function(e){var a=t.manager.getOrderedRefs(),n=a[a.length-1].node.sortableInfo.index,i=t.newIndex+e,s=t.newIndex;if(!(i<0||i>n)){t.prevIndex=s,t.newIndex=i;var r=function(e,t,a){return e<a&&e>t?e-1:e>a&&e<t?e+1:e}(t.newIndex,t.prevIndex,t.index),o=a.find((function(e){return e.node.sortableInfo.index===r})),l=o.node,c=t.containerScrollDelta,u=o.boundingClientRect||xr(l,c),f=o.translate||{x:0,y:0},h=u.top+f.y-c.top,d=u.left+f.x-c.left,p=s<i,m=p&&t.axis.x?l.offsetWidth-t.width:0,g=p&&t.axis.y?l.offsetHeight-t.height:0;t.handleSortMove({pageX:d+m,pageY:h+g,ignoreTransition:0===e})}})),xt((0,Lt.Z)((0,Lt.Z)(t)),"keyDrop",(function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()})),xt((0,Lt.Z)((0,Lt.Z)(t)),"handleKeyEnd",(function(e){t.manager.active&&t.keyDrop(e)})),xt((0,Lt.Z)((0,Lt.Z)(t)),"isValidSortingTarget",(function(e){var a=t.props.useDragHandle,n=e.target,i=gr(n,(function(e){return null!=e.sortableInfo}));return i&&i.sortableInfo&&!i.sortableInfo.disabled&&(a?Er(n):n.sortableInfo)}));var n=new lr;return function(e){sr()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),t.manager=n,t.wrappedInstance=(0,Mt.createRef)(),t.sortableContextValue={manager:n},t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return Dt(a,t),Rt(a,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,a=this.getContainer();Promise.resolve(a).then((function(a){e.container=a,e.document=e.container.ownerDocument||document;var n=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof n?n():n,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:kr(e.container)||e.container,e.autoScroller=new Mr(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return fr[t].forEach((function(a){return e.container.addEventListener(a,e.events[t],!1)}))})),e.container.addEventListener("keydown",e.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(t){return fr[t].forEach((function(a){return e.container.removeEventListener(a,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,a=t.lockAxis,n=t.lockOffset,i=t.lockToContainerEdges,s=t.transitionDuration,r=t.keyboardSortingTransitionDuration,o=void 0===r?s:r,l=this.manager.isKeySorting,c=e.ignoreTransition,u=Cr(e),f={x:u.x-this.initialOffset.x,y:u.y-this.initialOffset.y};if(f.y-=window.pageYOffset-this.initialWindowScroll.top,f.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=f,i){var h=function(e){var t=e.height,a=e.width,n=e.lockOffset,i=Array.isArray(n)?n:[n,n];sr()(2===i.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",n);var s=_t(i,2),r=s[0],o=s[1];return[wr({height:t,lockOffset:r,width:a}),wr({height:t,lockOffset:o,width:a})]}({height:this.height,lockOffset:n,width:this.width}),d=_t(h,2),p=d[0],m=d[1],g={x:this.width/2-p.x,y:this.height/2-p.y},b={x:this.width/2-m.x,y:this.height/2-m.y};f.x=br(this.minTranslate.x+g.x,this.maxTranslate.x-b.x,f.x),f.y=br(this.minTranslate.y+g.y,this.maxTranslate.y-b.y,f.y)}"x"===a?f.y=0:"y"===a&&(f.x=0),l&&o&&!c&&mr(this.helper,o),pr(this.helper,f)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,a=e.hideSortableGhost,n=e.onSortOver,i=this.containerScrollDelta,s=this.windowScrollDelta,r=this.manager.getOrderedRefs(),o=this.offsetEdge.left+this.translate.x+i.left,l=this.offsetEdge.top+this.translate.y+i.top,c=this.manager.isKeySorting,u=this.newIndex;this.newIndex=null;for(var f=0,h=r.length;f<h;f++){var d=r[f].node,p=d.sortableInfo.index,m=d.offsetWidth,g=d.offsetHeight,b={height:this.height>g?g/2:this.height/2,width:this.width>m?m/2:this.width/2},y=c&&p>this.index&&p<=u,v=c&&p<this.index&&p>=u,x={x:0,y:0},C=r[f].edgeOffset;C||(C=Sr(d,this.container),r[f].edgeOffset=C,c&&(r[f].boundingClientRect=xr(d,i)));var S=f<r.length-1&&r[f+1],w=f>0&&r[f-1];S&&!S.edgeOffset&&(S.edgeOffset=Sr(S.node,this.container),c&&(S.boundingClientRect=xr(S.node,i))),p!==this.index?(t&&mr(d,t),this.axis.x?this.axis.y?v||p<this.index&&(o+s.left-b.width<=C.left&&l+s.top<=C.top+b.height||l+s.top+b.height<=C.top)?(x.x=this.width+this.marginOffset.x,C.left+x.x>this.containerBoundingRect.width-b.width&&S&&(x.x=S.edgeOffset.left-C.left,x.y=S.edgeOffset.top-C.top),null===this.newIndex&&(this.newIndex=p)):(y||p>this.index&&(o+s.left+b.width>=C.left&&l+s.top+b.height>=C.top||l+s.top+b.height>=C.top+g))&&(x.x=-(this.width+this.marginOffset.x),C.left+x.x<this.containerBoundingRect.left+b.width&&w&&(x.x=w.edgeOffset.left-C.left,x.y=w.edgeOffset.top-C.top),this.newIndex=p):y||p>this.index&&o+s.left+b.width>=C.left?(x.x=-(this.width+this.marginOffset.x),this.newIndex=p):(v||p<this.index&&o+s.left<=C.left+b.width)&&(x.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=p)):this.axis.y&&(y||p>this.index&&l+s.top+b.height>=C.top?(x.y=-(this.height+this.marginOffset.y),this.newIndex=p):(v||p<this.index&&l+s.top<=C.top+b.height)&&(x.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=p))),pr(d,x),r[f].translate=x):a&&(this.sortableGhost=d,dr(d,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=u);var k=c?this.prevIndex:u;n&&this.newIndex!==k&&n({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:k,isKeySorting:c,nodes:r,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return sr()(n.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?(0,pn.findDOMNode)(this):e(n.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=n.withRef?this.wrappedInstance:null;return(0,Mt.createElement)(Br.Provider,{value:this.sortableContextValue},(0,Mt.createElement)(e,(0,Tt.Z)({ref:t},ur(this.props,Ar))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),a}(Mt.Component),xt(t,"displayName",vr("sortableList",e)),xt(t,"defaultProps",Tr),xt(t,"propTypes",$r),a}var Ir={index:or().number.isRequired,collection:or().oneOfType([or().number,or().string]),disabled:or().bool},Dr=Object.keys(Ir);function Nr(e){var t,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return a=t=function(t){function a(){var e,t;At(this,a);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return t=Ft(this,(e=Nt(a)).call.apply(e,[this].concat(i))),xt((0,Lt.Z)((0,Lt.Z)(t)),"wrappedInstance",(0,Mt.createRef)()),t}return Dt(a,t),Rt(a,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,a=e.disabled,n=e.index,i=(0,pn.findDOMNode)(this);i.sortableInfo={collection:t,disabled:a,index:n,manager:this.context.manager},this.node=i,this.ref={node:i},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return sr()(n.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=n.withRef?this.wrappedInstance:null;return(0,Mt.createElement)(e,(0,Tt.Z)({ref:t},ur(this.props,Dr)))}}]),a}(Mt.Component),xt(t,"displayName",vr("sortableElement",e)),xt(t,"contextType",Br),xt(t,"propTypes",Ir),xt(t,"defaultProps",{collection:0}),a}const Lr={fontSize:14,borderLeft:"1px solid #b4b4cb",lineHeight:"2.5em",flex:2,textAlign:"center",display:"flex",justifyContent:"center"},Fr=t=>{let{position:a,onDeleteProfile:n}=t;return(0,e.createElement)("span",{className:"eb-social-delete-icon",style:Lr,onClick:()=>n(a)},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve",style:{width:14}},(0,e.createElement)("path",{d:"M423.3 86.6H89c-16.8.1-32.2 9.3-40.1 24.1-7.9 14.8-7.1 32.7 2.2 46.8l37.2 55.6V456c0 30.9 25.1 56 56 56h223.9c30.9 0 56-25.1 56-56V213.1l37.2-56c9.1-14 9.8-31.8 1.9-46.5-8.1-14.7-23.4-23.9-40-24zm-198 347c0 13.9-11.3 25.2-25.2 25.2-13.9 0-25.2-11.3-25.2-25.2V220.9c0-13.9 11.3-25.2 25.2-25.2 13.9 0 25.2 11.3 25.2 25.2v212.7zm112 0c0 13.9-11.3 25.2-25.2 25.2-13.9 0-25.2-11.3-25.2-25.2V220.9c0-13.9 11.3-25.2 25.2-25.2 13.9 0 25.2 11.3 25.2 25.2v212.7zM325.8 19.4C309.9 7.1 290.2 0 269.3 0h-26.4c-20.9 0-40.6 7.1-56.5 19.4-11.2 8.7-20.5 20.1-26.9 33.4h193.1c-6.3-13.3-15.6-24.7-26.8-33.4z",style:{fill:"#FF6464"}})))},zr=Or((()=>(0,e.createElement)("span",{className:"drag-handle"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve",style:{height:14}},(0,e.createElement)("path",{d:"M512 256L402.6 146.6 402.6 210.3 301 210.3 301 109.4 365.4 109.4 256 0 146.6 109.4 211 109.4 211 210.3 109.4 210.3 109.4 146.6 0 256 109.4 365.4 109.4 300.3 211 300.3 211 402.6 146.6 402.6 256 512 365.4 402.6 301 402.6 301 300.3 402.6 300.3 402.6 365.4z",style:{fill:"#a9a9a9"}}))))),Vr=Nr((a=>{let{position:n,profile:s,onProfileClick:r,onDeleteProfile:o,onTitleChange:l,onColorChange:c,onBgColorChange:u,url:f,onUrlChange:h,linkOpenNewTab:d,onLinkOpenNewTabChange:p}=a;return(0,e.createElement)("li",{className:"drag-helper"},(0,e.createElement)("span",{className:"profile-wrapper"},(0,e.createElement)("span",{className:"profile-icon-container",onClick:()=>r(s.icon)},(0,e.createElement)("span",{className:s.icon}),(0,e.createElement)("span",{className:"selected-profile-icon"},(s.icon||" ").replace(/^fa[bsr] fa-/i,""))),(0,e.createElement)(zr,null),(0,e.createElement)(Fr,{position:n,onDeleteProfile:o})),s.isExpanded&&(0,e.createElement)("div",{className:"link-form-wrapper"},(0,e.createElement)(i.TextControl,{label:(0,t.__)("Title","essential-blocks"),value:s.title,onChange:e=>l(e,n)}),(0,e.createElement)(m,{label:(0,t.__)("Icon Color","essential-blocks"),color:s.color,onChange:e=>c(e,n)}),(0,e.createElement)(m,{label:(0,t.__)("Icon Background","essential-blocks"),color:s.bgColor,onChange:e=>u(e,n)}),(0,e.createElement)("label",{className:"iconLbl",htmlFor:`iconId-${s.icon}`},"URL (use ",(0,e.createElement)("i",null,"https://")," at the beginning)"),(0,e.createElement)("form",{className:"input_wrapp",onSubmit:e=>{e.preventDefault()}},(0,e.createElement)("input",{type:"text",className:"social-link-input",id:`iconId-${s.icon}`,value:f,onChange:e=>h(e)})),(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Open in New Tab","essential-blocks"),checked:s.linkOpenNewTab,onChange:e=>p(e,n)})))})),Ur=Rr((t=>{const{profiles:a,...n}=t;return(0,e.createElement)("ul",null,a.map(((t,a)=>(0,e.createElement)(Vr,(0,Tt.Z)({profile:t,key:a},n,{position:a,index:a})))))})),Hr=t=>{let{profiles:a,onSortEnd:n,...i}=t;return 0===a.length?(0,e.createElement)("ul",null):(0,e.createElement)(Ur,(0,Tt.Z)({profiles:a,useDragHandle:!0,onSortEnd:n},i))};function Gr(t){let{iconList:a,onProfileAdd:n,profiles:i}=t;const[s,r]=(0,e.useState)(i||[]),[o,l]=(0,e.useState)(null),[c,u]=(0,e.useState)(""),[f,h]=(0,e.useState)(!1),[d,p]=(0,e.useState)("");return(0,e.useEffect)((()=>{if(!c)return;let e=s.map((e=>e.icon===o?{...e,link:c||e.link}:e));r(e),n(e)}),[c]),(0,e.createElement)("div",null,(0,e.createElement)("style",null,"\n\n li.drag-helper .iconLbl{\n color: #5f5f5f;\n padding-bottom: 5px;\n display: block;\n }\n\n li.drag-helper .input_wrapp{\n display: flex;\n align-items:center;\n }\n\n li.drag-helper .save-button{\n margin:0;\n padding: 4px;\n cursor:pointer;\n }\n\n li.drag-helper .social-link-input{\n margin: 0;\n flex: 1;\n padding: 0px 5px;\n }\n\n .socialBarsLabel{\n display:block;\n padding: 15px 0 5px;\n cursor:default;\n }\n\n\n "),(0,e.createElement)("label",null,"Social Media"),(0,e.createElement)(ar(),{icons:a,value:o||null,onChange:e=>{if(e){let t=[...s,{icon:e,link:"",isExpanded:!1}];r(t),l(e),n(t)}},appendTo:"body",iconsPerPage:20,closeOnSelect:!0}),s.length>0&&(0,e.createElement)("label",{className:"socialBarsLabel"},(0,e.createElement)("i",null,"Click on the social bars below to expand more options")),(0,e.createElement)(Hr,{profiles:s,onProfileClick:e=>{let t=[...s],a=c,n=f,i=d;t=t.map((t=>t.icon===e?(a=t.link,i=t.color,{...t,isExpanded:!t.isExpanded}):{...t,isExpanded:!1})),r(t),l(e),u(a),h(n),p(i)},onDeleteProfile:e=>{let t=[...s];t.splice(e,1),r(t),n(t)},selectedIcon:o,url:c,onUrlChange:e=>{u(e.target.value)},linkOpenNewTab:f,onLinkOpenNewTabChange:(e,t)=>{let a=[...s];a[t].linkOpenNewTab=e,h(e),r(a),n(a)},onProfileAdd:n,onSortEnd:e=>{let{oldIndex:t,newIndex:a}=e;const i=[...s];i.splice(a,0,i.splice(t,1)[0]),r(i),n(i)},onTitleChange:(e,t)=>{let a=[...s];a[t].title=e,r(a),n(a)},onColorChange:(e,t)=>{let a=[...s];a[t].color=e,r(a),n(a)},onBgColorChange:(e,t)=>{let a=[...s];a[t].bgColor=e,r(a),n(a)}}))}const jr=window.wp.compose,Wr=(0,jr.withInstanceId)((function(a){let{label:n,value:s,help:r,instanceId:o,onChange:l,className:c,...u}=a;const f=`inspector-eb-font-family-${o}`,h=[{value:"",label:(0,t.__)("Default","essential-blocks")},{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times-New-Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}];return Object.keys(S).map((e=>{h.push({value:e,label:S[e].family})})),(0,e.createElement)(i.BaseControl,{label:n,id:f,help:r,className:c},(0,e.createElement)(Ss,{name:"eb-select-font",defaultValue:{value:(s||"").replace(/\s+/g,"-"),label:s},onChange:e=>{let t=e.label;l(t)},options:h,isDisabled:"false"===EssentialBlocksLocalize.googleFont}))})),qr=[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"}],Zr=[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("100","essential-blocks"),value:"100"},{label:(0,t.__)("200","essential-blocks"),value:"200"},{label:(0,t.__)("300","essential-blocks"),value:"300"},{label:(0,t.__)("400","essential-blocks"),value:"400"},{label:(0,t.__)("500","essential-blocks"),value:"500"},{label:(0,t.__)("600","essential-blocks"),value:"600"},{label:(0,t.__)("700","essential-blocks"),value:"700"},{label:(0,t.__)("800","essential-blocks"),value:"800"},{label:(0,t.__)("900","essential-blocks"),value:"900"}],Qr=[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("None","essential-blocks"),value:"none"},{label:(0,t.__)("Lowercase","essential-blocks"),value:"lowercase"},{label:(0,t.__)("Capitalize","essential-blocks"),value:"capitalize"},{label:(0,t.__)("Uppercase","essential-blocks"),value:"uppercase"}],Xr=[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("None","essential-blocks"),value:"initial"},{label:(0,t.__)("Overline","essential-blocks"),value:"overline"},{label:(0,t.__)("Line Through","essential-blocks"),value:"line-through"},{label:(0,t.__)("Underline","essential-blocks"),value:"underline"},{label:(0,t.__)("Underline Oveline","essential-blocks"),value:"underline overline"}],Kr=[{label:(0,t.__)("Default","essential-blocks"),value:""},{label:(0,t.__)("Normal","essential-blocks"),value:"normal"},{label:(0,t.__)("Italic","essential-blocks"),value:"italic"},{label:(0,t.__)("Oblique","essential-blocks"),value:"oblique"}],Yr=[{label:"px",value:"px"},{label:"em",value:"em"}],Jr=function(a){let{baseLabel:n,typographyPrefixConstant:s,resRequiredProps:r,defaultFontSize:o}=a;const{attributes:l,setAttributes:c,resOption:u,objAttributes:f}=r,{[`${s}FontFamily`]:d,[`${s}FontWeight`]:p,[`${s}FontStyle`]:m,[`${s}TextTransform`]:g,[`${s}TextDecoration`]:b,[`${s}FontSize`]:y=o||void 0,[`${s}SizeUnit`]:v,[`${s}LetterSpacing`]:x,[`${s}LetterSpacingUnit`]:C,[`${s}LineHeight`]:w,[`${s}LineHeightUnit`]:k,[`TAB${s}SizeUnit`]:_,[`TAB${s}LetterSpacingUnit`]:O,[`TAB${s}LineHeightUnit`]:E,[`TAB${s}FontSize`]:M,[`TAB${s}LetterSpacing`]:$,[`TAB${s}LineHeight`]:P,[`MOB${s}SizeUnit`]:T,[`MOB${s}LetterSpacingUnit`]:A,[`MOB${s}LineHeightUnit`]:B,[`MOB${s}FontSize`]:R,[`MOB${s}LetterSpacing`]:I,[`MOB${s}LineHeight`]:D}=l,[N,L]=(0,e.useState)(Zr);return(0,e.useEffect)((()=>{const e=(d||"").replace(/\s+/g,"-"),t=[{label:"Default",value:""},...(S[e]?S[e].variants:[]).map((e=>({label:e,value:e})))];L(t)}),[d]),(0,e.createElement)(i.BaseControl,{label:(0,t.__)(n),className:"eb-typography-base"},(0,e.createElement)(i.Dropdown,{className:"eb-typography-dropdown",contentClassName:"my-popover-content-classname",position:"bottom right",renderToggle:t=>{let{isOpen:a,onToggle:n}=t;return(0,e.createElement)(i.Button,{isSmall:!0,onClick:n,"aria-expanded":a},(0,e.createElement)(Xe,null))},renderContent:()=>(0,e.createElement)("div",{className:"eb-panel-control eb-typography-component-panel",style:{padding:"0.2rem"}},(0,e.createElement)(Wr,{className:"eb-fontpicker-fontfamily",label:(0,t.__)("Font Family","essential-blocks"),value:d,onChange:e=>{c({[`${s}FontFamily`]:e})}}),(0,e.createElement)(ge,{className:"forFontSize",resRequiredProps:r},"Desktop"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:v,unitTypes:qr,onClick:e=>c({[`${s}SizeUnit`]:e})}),(0,e.createElement)(be,{onReset:()=>c({[`${s}FontSize`]:o||(f[`${s}FontSize`]||{}).default})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Font Size","essential-blocks"),value:y,onChange:e=>c({[`${s}FontSize`]:e}),step:"em"===v?.1:1,min:0,max:"em"===v?10:300}))),"Tablet"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:_,unitTypes:qr,onClick:e=>c({[`TAB${s}SizeUnit`]:e})}),(0,e.createElement)(be,{onReset:()=>c({[`TAB${s}FontSize`]:(f[`TAB${s}FontSize`]||{}).default})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Font Size","essential-blocks"),value:M,onChange:e=>c({[`TAB${s}FontSize`]:e}),step:"em"===_?.1:1,min:0,max:"em"===_?10:300}))),"Mobile"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:T,unitTypes:qr,onClick:e=>c({[`MOB${s}SizeUnit`]:e})}),(0,e.createElement)(be,{onReset:()=>c({[`MOB${s}FontSize`]:(f[`MOB${s}FontSize`]||{}).default})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Font Size","essential-blocks"),value:R,onChange:e=>c({[`MOB${s}FontSize`]:e}),step:"em"===T?.1:1,min:0,max:"em"===T?10:300})))),(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Font Weight","essential-blocks"),value:p,options:N,onChange:e=>c({[`${s}FontWeight`]:e})}),(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Font Style","essential-blocks"),value:m,options:Kr,onChange:e=>c({[`${s}FontStyle`]:e})}),(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Text Transform","essential-blocks"),value:g,options:Qr,onChange:e=>c({[`${s}TextTransform`]:e})}),(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Text Decoration","essential-blocks"),value:b,options:Xr,onChange:e=>c({[`${s}TextDecoration`]:e})}),(0,e.createElement)(ge,{className:"forLetterSpacing",resRequiredProps:r},"Desktop"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:C,unitTypes:Yr,onClick:e=>c({[`${s}LetterSpacingUnit`]:e})}),(0,e.createElement)(be,{onReset:()=>c({[`${s}LetterSpacing`]:(f[`${s}LetterSpacing`]||{}).default})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Letter Spacing","essential-blocks"),value:x,onChange:e=>c({[`${s}LetterSpacing`]:e}),min:0,max:"em"===C?10:100,step:"em"===C?.1:1}))),"Tablet"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:O,unitTypes:Yr,onClick:e=>c({[`TAB${s}LetterSpacingUnit`]:e})}),(0,e.createElement)(be,{onReset:()=>c({[`TAB${s}LetterSpacing`]:(f[`TAB${s}LetterSpacing`]||{}).default})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Letter Spacing","essential-blocks"),value:$,onChange:e=>c({[`TAB${s}LetterSpacing`]:e}),min:0,max:"em"===O?10:100,step:"em"===O?.1:1}))),"Mobile"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:A,unitTypes:Yr,onClick:e=>c({[`MOB${s}LetterSpacingUnit`]:e})}),(0,e.createElement)(be,{onReset:()=>c({[`MOB${s}LetterSpacing`]:(f[`MOB${s}LetterSpacing`]||{}).default})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Letter Spacing","essential-blocks"),value:I,onChange:e=>c({[`MOB${s}LetterSpacing`]:e}),min:0,max:"em"===A?10:100,step:"em"===A?.1:1})))),(0,e.createElement)(ge,{className:"forLineHeight",resRequiredProps:r},"Desktop"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:k,unitTypes:Yr,onClick:e=>c({[`${s}LineHeightUnit`]:e})}),(0,e.createElement)(be,{onReset:()=>c({[`${s}LineHeight`]:(f[`${s}LineHeight`]||{}).default})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Line Height","essential-blocks"),value:w,onChange:e=>c({[`${s}LineHeight`]:e}),min:0,max:"em"===k?10:600,step:"em"===k?.1:1}))),"Tablet"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:E,unitTypes:Yr,onClick:e=>c({[`TAB${s}LineHeightUnit`]:e})}),(0,e.createElement)(be,{onReset:()=>c({[`TAB${s}LineHeight`]:(f[`TAB${s}LineHeight`]||{}).default})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Line Height","essential-blocks"),value:P,onChange:e=>c({[`TAB${s}LineHeight`]:e}),min:0,max:"em"===E?10:600,step:"em"===E?.1:1}))),"Mobile"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{selectedUnit:B,unitTypes:Yr,onClick:e=>c({[`MOB${s}LineHeightUnit`]:e})}),(0,e.createElement)(be,{onReset:()=>c({[`MOB${s}LineHeight`]:(f[`MOB${s}LineHeight`]||{}).default})},(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Line Height","essential-blocks"),value:D,onChange:e=>c({[`MOB${s}LineHeight`]:e}),min:0,max:"em"===B?10:600,step:"em"===B?.1:1})))))}))},eo=[{label:(0,t.__)("None","essential-blocks"),value:"none"},{label:(0,t.__)("FadeIn","essential-blocks"),value:"eb___fadeIn"},{label:(0,t.__)("FadeInDown","essential-blocks"),value:"eb___fadeInDown"},{label:(0,t.__)("FadeInLeft","essential-blocks"),value:"eb___fadeInLeft"},{label:(0,t.__)("FadeInRight","essential-blocks"),value:"eb___fadeInRight"},{label:(0,t.__)("FadeInUp","essential-blocks"),value:"eb___fadeInUp"},{label:(0,t.__)("SlideInUp","essential-blocks"),value:"eb___slideInUp"},{label:(0,t.__)("SlideInDown","essential-blocks"),value:"eb___slideInDown"},{label:(0,t.__)("SlideInLeft","essential-blocks"),value:"eb___slideInLeft"},{label:(0,t.__)("SlideInRight","essential-blocks"),value:"eb___slideInRight"},{label:(0,t.__)("ZoomIn","essential-blocks"),value:"eb___zoomIn"},{label:(0,t.__)("ZoomInDown","essential-blocks"),value:"eb___zoomInDown"},{label:(0,t.__)("ZoomInLeft","essential-blocks"),value:"eb___zoomInLeft"},{label:(0,t.__)("ZoomInRight","essential-blocks"),value:"eb___zoomInRight"},{label:(0,t.__)("ZoomInUp","essential-blocks"),value:"eb___zoomInUp"},{label:(0,t.__)("Bounce","essential-blocks"),value:"eb___bounce"},{label:(0,t.__)("Flash","essential-blocks"),value:"eb___flash"},{label:(0,t.__)("Pulse","essential-blocks"),value:"eb___pulse"},{label:(0,t.__)("RubberBand","essential-blocks"),value:"eb___rubberBand"},{label:(0,t.__)("Swing","essential-blocks"),value:"eb___swing"},{label:(0,t.__)("Tada","essential-blocks"),value:"eb___tada"},{label:(0,t.__)("Wobble","essential-blocks"),value:"eb___wobble"},{label:(0,t.__)("Jello","essential-blocks"),value:"eb___jello"},{label:(0,t.__)("BounceIn","essential-blocks"),value:"eb___bounceIn"},{label:(0,t.__)("BounceInDown","essential-blocks"),value:"eb___bounceInDown"},{label:(0,t.__)("BounceInUp","essential-blocks"),value:"eb___bounceInUp"},{label:(0,t.__)("Flip","essential-blocks"),value:"eb___flip"},{label:(0,t.__)("FlipInX","essential-blocks"),value:"eb___flipInX"},{label:(0,t.__)("FlipInY","essential-blocks"),value:"eb___flipInY"},{label:(0,t.__)("RotateIn","essential-blocks"),value:"eb___rotateIn"}];function to(a){const{attributes:n,setAttributes:s}=a,{animationData:r}=n,o=(e,t)=>{s({animationData:{...r,[e]:t}})};return(0,e.createElement)(e.Fragment,null,r&&(0,e.createElement)(i.PanelBody,{title:(0,t.__)("Animation","essential-blocks"),initialOpen:!1},(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Select Animation","essential-blocks"),value:r.style,options:eo,onChange:e=>o("style",e),id:"eb-animation-style"}),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Animation Speed","essential-blocks"),value:r.speed,onChange:e=>o("speed",e),min:0,max:5e3,allowReset:!0}),(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Animation Delay","essential-blocks"),value:r.delay,onChange:e=>o("delay",e),min:0,max:5e3,allowReset:!0})))}function ao(a){const{label:n,attrName:s,inputValue:r,setAttributes:o,onChange:l,placeholder:c,help:u}=a,[f,h]=(0,e.useState)(""),[d,p]=(0,e.useState)(""),[m,g]=(0,e.useState)(!1),[b,y]=(0,e.useState)(!1),v=window?.EssentialBlocksProLocalize?EssentialBlocksProLocalize.eb_dynamic_tags+"/":"dynamic-tags/";return(0,e.useEffect)((()=>{y(!0),r&&r.startsWith(v,0)&&(g(!0),p("[Dynamic Value]"))}),[]),(0,e.useEffect)((()=>{b&&EssentialBlocksProLocalize&&("string"==typeof f&&f.startsWith(v,0)?(g(!0),o({[s]:f}),p("[Dynamic Value]")):(g(!1),o({[s]:f})))}),[f]),(0,e.createElement)("div",{className:"eb-dynamic-input-control"},(0,e.createElement)(i.TextControl,{label:(0,t.__)(n,"essential-blocks"),value:m?d:r,placeholder:c||"",onChange:e=>!m&&l(e),readOnly:m,help:u}),(0,X.applyFilters)("essential_blocks_dynamic_input_control","",f,h,r))}function no(t){const{value:a,tagName:n,className:i}=t,[r,o]=(0,e.useState)("");return(0,e.useEffect)((()=>{(0,X.applyFilters)("essential_blocks_dynamic_value_handle",r,o,a,n||"span",i||""),o((0,e.createElement)(s.RichText,t))}),[a]),r}const io=a=>{let{position:n,controlName:s,resRequiredProps:r}=a;const{attributes:o,setAttributes:l}=r,c=null==n||""!=n?"top":"bottom",{[`${s}Type`]:u="style_1",[`${s}Color`]:f,[`${s}Flip`]:h,[`${s}Invert`]:d,[`${s}BringFront`]:p}=o,g=[{label:(0,t.__)("None","essential-blocks"),value:""},{label:(0,t.__)("Ocean Wave","essential-blocks"),value:"style_1"},{label:(0,t.__)("Asymmetric Triangle [Left]","essential-blocks"),value:"style_2"},{label:(0,t.__)("Abstract Paintbrush","essential-blocks"),value:"style_3"},{label:(0,t.__)("Asymmetric Curve (Inverted)","essential-blocks"),value:"style_4"},{label:(0,t.__)("Cloud (Pro)","essential-blocks"),value:"style_1_pro",isPro:!0},{label:(0,t.__)("Mountain (Pro)","essential-blocks"),value:"style_2_pro",isPro:!0},{label:(0,t.__)("Fire (Pro)","essential-blocks"),value:"style_3_pro",isPro:!0},{label:(0,t.__)("Sports (Pro)","essential-blocks"),value:"style_4_pro",isPro:!0},{label:(0,t.__)("Travel (Pro)","essential-blocks"),value:"style_5_pro",isPro:!0}],b=le(),y=b[u]?.negative;return(0,e.createElement)(e.Fragment,null,"top"==c&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(zs,{label:(0,t.__)("Type","essential-blocks"),value:u,options:(0,X.applyFilters)("eb_shape_divider_types",g),onChange:e=>l({[`${s}Type`]:e})}),""!==u?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(m,{label:(0,t.__)("Color","essential-blocks"),color:f,onChange:e=>l({[`${s}Color`]:e})}),(0,e.createElement)(Ys,{baseLabel:(0,t.__)("Width","essential-blocks"),controlName:`${s}Width`,resRequiredProps:r,noUnits:!0,min:100,max:300,step:1}),(0,e.createElement)(Ys,{baseLabel:(0,t.__)("Height","essential-blocks"),controlName:`${s}Height`,resRequiredProps:r,noUnits:!0,min:0,max:500,step:1}),(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Flip","essential-blocks"),checked:h,onChange:()=>l({[`${s}Flip`]:!h})}),y&&(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Invert","essential-blocks"),checked:d,onChange:()=>l({[`${s}Invert`]:!d})}),(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Bring to Front","essential-blocks"),checked:p,onChange:()=>l({[`${s}BringFront`]:!p})})):""))};var so=a(454),ro=a.n(so);const oo={fontSize:14,borderLeft:"1px solid #b4b4cb",lineHeight:"2.5em",flex:2,textAlign:"center",display:"flex",justifyContent:"center"},lo=Or((()=>(0,e.createElement)("span",{className:"drag-handle"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve",style:{height:14}},(0,e.createElement)("path",{d:"M512 256L402.6 146.6 402.6 210.3 301 210.3 301 109.4 365.4 109.4 256 0 146.6 109.4 211 109.4 211 210.3 109.4 210.3 109.4 146.6 0 256 109.4 365.4 109.4 300.3 211 300.3 211 402.6 146.6 402.6 256 512 365.4 402.6 301 402.6 301 300.3 402.6 300.3 402.6 365.4z",style:{fill:"#a9a9a9"}}))))),co=t=>{let{position:a,onDeleteOption:n}=t;return(0,e.createElement)("span",{className:"eb-social-delete-icon",style:oo,onClick:()=>n(a)},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve",style:{width:14}},(0,e.createElement)("path",{d:"M423.3 86.6H89c-16.8.1-32.2 9.3-40.1 24.1-7.9 14.8-7.1 32.7 2.2 46.8l37.2 55.6V456c0 30.9 25.1 56 56 56h223.9c30.9 0 56-25.1 56-56V213.1l37.2-56c9.1-14 9.8-31.8 1.9-46.5-8.1-14.7-23.4-23.9-40-24zm-198 347c0 13.9-11.3 25.2-25.2 25.2-13.9 0-25.2-11.3-25.2-25.2V220.9c0-13.9 11.3-25.2 25.2-25.2 13.9 0 25.2 11.3 25.2 25.2v212.7zm112 0c0 13.9-11.3 25.2-25.2 25.2-13.9 0-25.2-11.3-25.2-25.2V220.9c0-13.9 11.3-25.2 25.2-25.2 13.9 0 25.2 11.3 25.2 25.2v212.7zM325.8 19.4C309.9 7.1 290.2 0 269.3 0h-26.4c-20.9 0-40.6 7.1-56.5 19.4-11.2 8.7-20.5 20.1-26.9 33.4h193.1c-6.3-13.3-15.6-24.7-26.8-33.4z",style:{fill:"#FF6464"}})))},uo=Nr((a=>{let{valueEditable:n,position:s,value:r,name:o,clickedItem:l,onOptionClick:c,onValueChange:u,onDeleteOption:f}=a;return(0,e.createElement)("li",{className:"drag-helper"},(0,e.createElement)("span",{className:"eb-sortable-item"},(0,e.createElement)("span",{className:"eb-sortable-title",onClick:()=>c(s)},o),(0,e.createElement)(lo,null),(0,e.createElement)(co,{position:s,onDeleteOption:f})),s===l&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(e.Fragment,null,n&&(0,e.createElement)(i.TextControl,{label:(0,t.__)("value","essential-blocks"),value:r,onChange:e=>u("value",e,s)}),(0,e.createElement)(i.TextControl,{label:(0,t.__)("Name","essential-blocks"),value:o,onChange:e=>u("name",e,s)}))))})),fo=Rr((t=>{let{valueEditable:a,options:n,onOptionClick:i,onValueChange:s,onDeleteOption:r,clickedItem:o}=t;return(0,e.createElement)("ul",null,n.map(((t,n)=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(uo,{valueEditable:a,key:`item-${n}`,index:n,position:n,value:t?.value,name:t?.name,clickedItem:o,onOptionClick:i,onValueChange:s,onDeleteOption:r})))))}));class ho extends e.Component{state={clickedItem:null};onSortEnd=e=>{let{newIndex:t,oldIndex:a}=e;const{options:n,setAttributes:i}=this.props;i({options:ro()(n,a,t)})};onOptionClick=e=>{let t=this.state.clickedItem===e?null:e;this.setState({clickedItem:t})};onValueChange=(e,t,a)=>{const n=[...this.props.options];n[a]={...n[a],[e]:t},this.props.setAttributes({options:n})};onDeleteOption=e=>{const t=[...this.props.options];t.splice(e,1),this.props.setAttributes({options:t})};render=()=>(0,e.createElement)(fo,{valueEditable:this.props.valueEditable,options:this.props.options,onOptionClick:this.onOptionClick,onValueChange:this.onValueChange,onDeleteOption:this.onDeleteOption,onSortEnd:this.onSortEnd,clickedItem:this.state.clickedItem,useDragHandle:!0})}const po=ho,mo=["fab fa-500px","fab fa-accessible-icon","fab fa-accusoft","fas fa-address-book","far fa-address-book","fas fa-address-card","far fa-address-card","fas fa-adjust","fab fa-adn","fab fa-adversal","fab fa-affiliatetheme","fab fa-algolia","fas fa-align-center","fas fa-align-justify","fas fa-align-left","fas fa-align-right","fab fa-amazon","fas fa-ambulance","fas fa-american-sign-language-interpreting","fab fa-amilia","fas fa-anchor","fab fa-android","fab fa-angellist","fas fa-angle-double-down","fas fa-angle-double-left","fas fa-angle-double-right","fas fa-angle-double-up","fas fa-angle-down","fas fa-angle-left","fas fa-angle-right","fas fa-angle-up","fab fa-angrycreative","fab fa-angular","fab fa-app-store","fab fa-app-store-ios","fab fa-apper","fab fa-apple","fab fa-apple-pay","fas fa-archive","fas fa-arrow-alt-circle-down","far fa-arrow-alt-circle-down","fas fa-arrow-alt-circle-left","far fa-arrow-alt-circle-left","fas fa-arrow-alt-circle-right","far fa-arrow-alt-circle-right","fas fa-arrow-alt-circle-up","far fa-arrow-alt-circle-up","fas fa-arrow-circle-down","fas fa-arrow-circle-left","fas fa-arrow-circle-right","fas fa-arrow-circle-up","fas fa-arrow-down","fas fa-arrow-left","fas fa-arrow-right","fas fa-arrow-up","fas fa-arrows-alt","fas fa-arrows-alt-h","fas fa-arrows-alt-v","fas fa-assistive-listening-systems","fas fa-asterisk","fab fa-asymmetrik","fas fa-at","fab fa-audible","fas fa-audio-description","fab fa-autoprefixer","fab fa-avianex","fab fa-aviato","fab fa-aws","fas fa-backward","fas fa-balance-scale","fas fa-ban","fab fa-bandcamp","fas fa-barcode","fas fa-bars","fas fa-bath","fas fa-battery-empty","fas fa-battery-full","fas fa-battery-half","fas fa-battery-quarter","fas fa-battery-three-quarters","fas fa-bed","fas fa-beer","fab fa-behance","fab fa-behance-square","fas fa-bell","far fa-bell","fas fa-bell-slash","far fa-bell-slash","fas fa-bicycle","fab fa-bimobject","fas fa-binoculars","fas fa-birthday-cake","fab fa-bitbucket","fab fa-bitcoin","fab fa-bity","fab fa-black-tie","fab fa-blackberry","fas fa-blind","fab fa-blogger","fab fa-blogger-b","fab fa-bluetooth","fab fa-bluetooth-b","fas fa-bold","fas fa-bolt","fas fa-bomb","fas fa-book","fas fa-bookmark","far fa-bookmark","fas fa-braille","fas fa-briefcase","fab fa-btc","fas fa-bug","fas fa-building","far fa-building","fas fa-bullhorn","fas fa-bullseye","fab fa-buromobelexperte","fas fa-bus","fab fa-buysellads","fas fa-calculator","fas fa-calendar","far fa-calendar","fas fa-calendar-alt","far fa-calendar-alt","fas fa-calendar-check","far fa-calendar-check","fas fa-calendar-minus","far fa-calendar-minus","fas fa-calendar-plus","far fa-calendar-plus","fas fa-calendar-times","far fa-calendar-times","fas fa-camera","fas fa-camera-retro","fas fa-car","fas fa-caret-down","fas fa-caret-left","fas fa-caret-right","fas fa-caret-square-down","far fa-caret-square-down","fas fa-caret-square-left","far fa-caret-square-left","fas fa-caret-square-right","far fa-caret-square-right","fas fa-caret-square-up","far fa-caret-square-up","fas fa-caret-up","fas fa-cart-arrow-down","fas fa-cart-plus","fab fa-cc-amex","fab fa-cc-apple-pay","fab fa-cc-diners-club","fab fa-cc-discover","fab fa-cc-jcb","fab fa-cc-mastercard","fab fa-cc-paypal","fab fa-cc-stripe","fab fa-cc-visa","fab fa-centercode","fas fa-certificate","fas fa-chart-area","fas fa-chart-bar","far fa-chart-bar","fas fa-chart-line","fas fa-chart-pie","fas fa-check","fas fa-check-circle","far fa-check-circle","fas fa-check-square","far fa-check-square","fas fa-chevron-circle-down","fas fa-chevron-circle-left","fas fa-chevron-circle-right","fas fa-chevron-circle-up","fas fa-chevron-down","fas fa-chevron-left","fas fa-chevron-right","fas fa-chevron-up","fas fa-child","fab fa-chrome","fas fa-circle","far fa-circle","fas fa-circle-notch","fas fa-clipboard","far fa-clipboard","fas fa-clock","far fa-clock","fas fa-clone","far fa-clone","fas fa-closed-captioning","far fa-closed-captioning","fas fa-cloud","fas fa-cloud-download-alt","fas fa-cloud-upload-alt","fab fa-cloudscale","fab fa-cloudsmith","fab fa-cloudversify","fas fa-code","fas fa-code-branch","fab fa-codepen","fab fa-codiepie","fas fa-coffee","fas fa-cog","fas fa-cogs","fas fa-columns","fas fa-comment","far fa-comment","fas fa-comment-alt","far fa-comment-alt","fas fa-comments","far fa-comments","fas fa-compass","far fa-compass","fas fa-compress","fab fa-connectdevelop","fab fa-contao","fas fa-copy","far fa-copy","fas fa-copyright","far fa-copyright","fab fa-cpanel","fab fa-creative-commons","fas fa-credit-card","far fa-credit-card","fas fa-crop","fas fa-crosshairs","fab fa-css3","fab fa-css3-alt","fas fa-cube","fas fa-cubes","fas fa-cut","fab fa-cuttlefish","fab fa-d-and-d","fab fa-dashcube","fas fa-database","fas fa-deaf","fab fa-delicious","fab fa-deploydog","fab fa-deskpro","fas fa-desktop","fab fa-deviantart","fab fa-digg","fab fa-digital-ocean","fab fa-discord","fab fa-discourse","fab fa-dochub","fab fa-docker","fas fa-dollar-sign","fas fa-dot-circle","far fa-dot-circle","fas fa-download","fab fa-draft2digital","fab fa-dribbble","fab fa-dribbble-square","fab fa-dropbox","fab fa-drupal","fab fa-dyalog","fab fa-earlybirds","fab fa-edge","fas fa-edit","far fa-edit","fas fa-eject","fas fa-ellipsis-h","fas fa-ellipsis-v","fab fa-ember","fab fa-empire","fas fa-envelope","far fa-envelope","fas fa-envelope-open","far fa-envelope-open","fas fa-envelope-square","fab fa-envira","fas fa-eraser","fab fa-erlang","fab fa-etsy","fas fa-euro-sign","fas fa-exchange-alt","fas fa-exclamation","fas fa-exclamation-circle","fas fa-exclamation-triangle","fas fa-expand","fas fa-expand-arrows-alt","fab fa-expeditedssl","fas fa-external-link-alt","fas fa-external-link-square-alt","fas fa-eye","fas fa-eye-dropper","fas fa-eye-slash","far fa-eye-slash","fab fa-facebook","fab fa-facebook-f","fab fa-facebook-messenger","fab fa-facebook-square","fas fa-fast-backward","fas fa-fast-forward","fas fa-fax","fas fa-female","fas fa-fighter-jet","fas fa-file","far fa-file","fas fa-file-alt","far fa-file-alt","fas fa-file-archive","far fa-file-archive","fas fa-file-audio","far fa-file-audio","fas fa-file-code","far fa-file-code","fas fa-file-excel","far fa-file-excel","fas fa-file-image","far fa-file-image","fas fa-file-pdf","far fa-file-pdf","fas fa-file-powerpoint","far fa-file-powerpoint","fas fa-file-video","far fa-file-video","fas fa-file-word","far fa-file-word","fas fa-film","fas fa-filter","fas fa-fire","fas fa-fire-extinguisher","fab fa-firefox","fab fa-first-order","fab fa-firstdraft","fas fa-flag","far fa-flag","fas fa-flag-checkered","fas fa-flask","fab fa-flickr","fab fa-fly","fas fa-folder","far fa-folder","fas fa-folder-open","far fa-folder-open","fas fa-font","fab fa-font-awesome","fab fa-font-awesome-alt","fab fa-font-awesome-flag","fab fa-fonticons","fab fa-fonticons-fi","fab fa-fort-awesome","fab fa-fort-awesome-alt","fab fa-forumbee","fas fa-forward","fab fa-foursquare","fab fa-free-code-camp","fab fa-freebsd","fas fa-frown","far fa-frown","fas fa-futbol","far fa-futbol","fas fa-gamepad","fas fa-gavel","fas fa-gem","far fa-gem","fas fa-genderless","fab fa-get-pocket","fab fa-gg","fab fa-gg-circle","fas fa-gift","fab fa-git","fab fa-git-square","fab fa-github","fab fa-github-alt","fab fa-github-square","fab fa-gitkraken","fab fa-gitlab","fab fa-gitter","fas fa-glass-martini","fab fa-glide","fab fa-glide-g","fas fa-globe","fab fa-gofore","fab fa-goodreads","fab fa-goodreads-g","fab fa-google","fab fa-google-drive","fab fa-google-play","fab fa-google-plus","fab fa-google-plus-g","fab fa-google-plus-square","fab fa-google-wallet","fas fa-graduation-cap","fab fa-gratipay","fab fa-grav","fab fa-gripfire","fab fa-grunt","fab fa-gulp","fas fa-h-square","fab fa-hacker-news","fab fa-hacker-news-square","fas fa-hand-lizard","far fa-hand-lizard","fas fa-hand-paper","far fa-hand-paper","fas fa-hand-peace","far fa-hand-peace","fas fa-hand-point-down","far fa-hand-point-down","fas fa-hand-point-left","far fa-hand-point-left","fas fa-hand-point-right","far fa-hand-point-right","fas fa-hand-point-up","far fa-hand-point-up","fas fa-hand-pointer","far fa-hand-pointer","fas fa-hand-rock","far fa-hand-rock","fas fa-hand-scissors","far fa-hand-scissors","fas fa-hand-spock","far fa-hand-spock","fas fa-handshake","far fa-handshake","fas fa-hashtag","fas fa-hdd","far fa-hdd","fas fa-heading","fas fa-headphones","fas fa-heart","far fa-heart","fas fa-heartbeat","fab fa-hire-a-helper","fas fa-history","fas fa-home","fab fa-hooli","fas fa-hospital","far fa-hospital","fab fa-hotjar","fas fa-hourglass","far fa-hourglass","fas fa-hourglass-end","fas fa-hourglass-half","fas fa-hourglass-start","fab fa-houzz","fab fa-html5","fab fa-hubspot","fas fa-i-cursor","fas fa-id-badge","far fa-id-badge","fas fa-id-card","far fa-id-card","fas fa-image","far fa-image","fas fa-images","far fa-images","fab fa-imdb","fas fa-inbox","fas fa-indent","fas fa-industry","fas fa-info","fas fa-info-circle","fab fa-instagram","fab fa-internet-explorer","fab fa-ioxhost","fas fa-italic","fab fa-itunes","fab fa-itunes-note","fab fa-jenkins","fab fa-joget","fab fa-joomla","fab fa-js","fab fa-js-square","fab fa-jsfiddle","fas fa-key","fas fa-keyboard","far fa-keyboard","fab fa-keycdn","fab fa-kickstarter","fab fa-kickstarter-k","fas fa-language","fas fa-laptop","fab fa-laravel","fab fa-lastfm","fab fa-lastfm-square","fas fa-leaf","fab fa-leanpub","fas fa-lemon","far fa-lemon","fab fa-less","fas fa-level-down-alt","fas fa-level-up-alt","fas fa-life-ring","far fa-life-ring","fas fa-lightbulb","far fa-lightbulb","fab fa-line","fas fa-link","fab fa-linkedin","fab fa-linkedin-in","fab fa-linode","fab fa-linux","fas fa-lira-sign","fas fa-list","fas fa-list-alt","far fa-list-alt","fas fa-list-ol","fas fa-list-ul","fas fa-location-arrow","fas fa-lock","fas fa-lock-open","fas fa-long-arrow-alt-down","fas fa-long-arrow-alt-left","fas fa-long-arrow-alt-right","fas fa-long-arrow-alt-up","fas fa-low-vision","fab fa-lyft","fab fa-magento","fas fa-magic","fas fa-magnet","fas fa-male","fas fa-map","far fa-map","fas fa-map-marker","fas fa-map-marker-alt","fas fa-map-pin","fas fa-map-signs","fas fa-mars","fas fa-mars-double","fas fa-mars-stroke","fas fa-mars-stroke-h","fas fa-mars-stroke-v","fab fa-maxcdn","fab fa-medapps","fab fa-medium","fab fa-medium-m","fas fa-medkit","fab fa-medrt","fab fa-meetup","fas fa-meh","far fa-meh","fas fa-mercury","fas fa-microchip","fas fa-microphone","fas fa-microphone-slash","fab fa-microsoft","fas fa-minus","fas fa-minus-circle","fas fa-minus-square","far fa-minus-square","fab fa-mix","fab fa-mixcloud","fab fa-mizuni","fas fa-mobile","fas fa-mobile-alt","fab fa-modx","fab fa-monero","fas fa-money-bill-alt","far fa-money-bill-alt","fas fa-moon","far fa-moon","fas fa-motorcycle","fas fa-mouse-pointer","fas fa-music","fab fa-napster","fas fa-neuter","fas fa-newspaper","far fa-newspaper","fab fa-nintendo-switch","fab fa-node","fab fa-node-js","fab fa-npm","fab fa-ns8","fab fa-nutritionix","fas fa-object-group","far fa-object-group","fas fa-object-ungroup","far fa-object-ungroup","fab fa-odnoklassniki","fab fa-odnoklassniki-square","fab fa-opencart","fab fa-openid","fab fa-opera","fab fa-optin-monster","fab fa-osi","fas fa-outdent","fab fa-page4","fab fa-pagelines","fas fa-paint-brush","fab fa-palfed","fas fa-paper-plane","far fa-paper-plane","fas fa-paperclip","fas fa-paragraph","fas fa-paste","fab fa-patreon","fas fa-pause","fas fa-pause-circle","far fa-pause-circle","fas fa-paw","fab fa-paypal","fas fa-pen-square","fas fa-pencil-alt","fas fa-percent","fab fa-periscope","fab fa-phabricator","fab fa-phoenix-framework","fas fa-phone","fas fa-phone-square","fas fa-phone-volume","fab fa-pied-piper","fab fa-pied-piper-alt","fab fa-pied-piper-pp","fab fa-pinterest","fab fa-pinterest-p","fab fa-pinterest-square","fas fa-plane","fas fa-play","fas fa-play-circle","far fa-play-circle","fab fa-playstation","fas fa-plug","fas fa-plus","fas fa-plus-circle","fas fa-plus-square","far fa-plus-square","fas fa-podcast","fas fa-pound-sign","fas fa-power-off","fas fa-print","fab fa-product-hunt","fab fa-pushed","fas fa-puzzle-piece","fab fa-python","fab fa-qq","fas fa-qrcode","fas fa-question","fas fa-question-circle","far fa-question-circle","fab fa-quora","fas fa-quote-left","fas fa-quote-right","fas fa-random","fab fa-ravelry","fab fa-react","fab fa-rebel","fas fa-recycle","fab fa-red-river","fab fa-reddit","fab fa-reddit-alien","fab fa-reddit-square","fas fa-redo","fas fa-redo-alt","fas fa-registered","far fa-registered","fab fa-rendact","fab fa-renren","fas fa-reply","fas fa-reply-all","fab fa-replyd","fab fa-resolving","fas fa-retweet","fas fa-road","fas fa-rocket","fab fa-rocketchat","fab fa-rockrms","fas fa-rss","fas fa-rss-square","fas fa-ruble-sign","fas fa-rupee-sign","fab fa-safari","fab fa-sass","fas fa-save","far fa-save","fab fa-schlix","fab fa-scribd","fas fa-search","fas fa-search-minus","fas fa-search-plus","fab fa-searchengin","fab fa-sellcast","fab fa-sellsy","fas fa-server","fab fa-servicestack","fas fa-share","fas fa-share-alt","fas fa-share-alt-square","fas fa-share-square","far fa-share-square","fas fa-shekel-sign","fas fa-shield-alt","fas fa-ship","fab fa-shirtsinbulk","fas fa-shopping-bag","fas fa-shopping-basket","fas fa-shopping-cart","fas fa-shower","fas fa-sign-in-alt","fas fa-sign-language","fas fa-sign-out-alt","fas fa-signal","fab fa-simplybuilt","fab fa-sistrix","fas fa-sitemap","fab fa-skyatlas","fab fa-skype","fab fa-slack","fab fa-slack-hash","fas fa-sliders-h","fab fa-slideshare","fas fa-smile","far fa-smile","fab fa-snapchat","fab fa-snapchat-ghost","fab fa-snapchat-square","fas fa-snowflake","far fa-snowflake","fas fa-sort","fas fa-sort-alpha-down","fas fa-sort-alpha-up","fas fa-sort-amount-down","fas fa-sort-amount-up","fas fa-sort-down","fas fa-sort-numeric-down","fas fa-sort-numeric-up","fas fa-sort-up","fab fa-soundcloud","fas fa-space-shuttle","fab fa-speakap","fas fa-spinner","fab fa-spotify","fas fa-square","far fa-square","fab fa-stack-exchange","fab fa-stack-overflow","fas fa-star","far fa-star","fas fa-star-half","far fa-star-half","fab fa-staylinked","fab fa-steam","fab fa-steam-square","fab fa-steam-symbol","fas fa-step-backward","fas fa-step-forward","fas fa-stethoscope","fab fa-sticker-mule","fas fa-sticky-note","far fa-sticky-note","fas fa-stop","fas fa-stop-circle","far fa-stop-circle","fab fa-strava","fas fa-street-view","fas fa-strikethrough","fab fa-stripe","fab fa-stripe-s","fab fa-studiovinari","fab fa-stumbleupon","fab fa-stumbleupon-circle","fas fa-subscript","fas fa-subway","fas fa-suitcase","fas fa-sun","far fa-sun","fab fa-superpowers","fas fa-superscript","fab fa-supple","fas fa-sync","fas fa-sync-alt","fas fa-table","fas fa-tablet","fas fa-tablet-alt","fas fa-tachometer-alt","fas fa-tag","fas fa-tags","fas fa-tasks","fas fa-taxi","fab fa-telegram","fab fa-telegram-plane","fab fa-tencent-weibo","fas fa-terminal","fas fa-text-height","fas fa-text-width","fas fa-th","fas fa-th-large","fas fa-th-list","fab fa-themeisle","fas fa-thermometer-empty","fas fa-thermometer-full","fas fa-thermometer-half","fas fa-thermometer-quarter","fas fa-thermometer-three-quarters","fas fa-thumbs-down","far fa-thumbs-down","fas fa-thumbs-up","far fa-thumbs-up","fas fa-thumbtack","fas fa-ticket-alt","fas fa-times","fas fa-times-circle","far fa-times-circle","fas fa-tint","fas fa-toggle-off","fas fa-toggle-on","fas fa-trademark","fas fa-train","fas fa-transgender","fas fa-transgender-alt","fas fa-trash","fas fa-trash-alt","far fa-trash-alt","fas fa-tree","fab fa-trello","fab fa-tripadvisor","fas fa-trophy","fas fa-truck","fas fa-tty","fab fa-tumblr","fab fa-tumblr-square","fas fa-tv","fab fa-twitch","fab fa-twitter","fab fa-twitter-square","fab fa-typo3","fab fa-uber","fab fa-uikit","fas fa-umbrella","fas fa-underline","fas fa-undo","fas fa-undo-alt","fab fa-uniregistry","fas fa-universal-access","fas fa-university","fas fa-unlink","fas fa-unlock","fas fa-unlock-alt","fab fa-untappd","fas fa-upload","fab fa-usb","fas fa-user","far fa-user","fas fa-user-circle","far fa-user-circle","fas fa-user-md","fas fa-user-plus","fas fa-user-secret","fas fa-user-times","fas fa-users","fab fa-ussunnah","fas fa-utensil-spoon","fas fa-utensils","fab fa-vaadin","fas fa-venus","fas fa-venus-double","fas fa-venus-mars","fab fa-viacoin","fab fa-viadeo","fab fa-viadeo-square","fab fa-viber","fas fa-video","fab fa-vimeo","fab fa-vimeo-square","fab fa-vimeo-v","fab fa-vine","fab fa-vk","fab fa-vnv","fas fa-volume-down","fas fa-volume-off","fas fa-volume-up","fab fa-vuejs","fab fa-weibo","fab fa-weixin","fab fa-whatsapp","fab fa-whatsapp-square","fas fa-wheelchair","fab fa-whmcs","fas fa-wifi","fab fa-wikipedia-w","fas fa-window-close","far fa-window-close","fas fa-window-maximize","far fa-window-maximize","fas fa-window-minimize","fas fa-window-restore","far fa-window-restore","fab fa-windows","fas fa-won-sign","fab fa-wordpress","fab fa-wordpress-simple","fab fa-wpbeginner","fab fa-wpexplorer","fab fa-wpforms","fas fa-wrench","fab fa-xbox","fab fa-xing","fab fa-xing-square","fab fa-y-combinator","fab fa-yahoo","fab fa-yandex","fab fa-yandex-international","fab fa-yelp","fas fa-yen-sign","fab fa-yoast","fab fa-youtube"],go=["fas fa-arrow-alt-circle-left","far fa-arrow-alt-circle-left","fas fa-arrow-alt-circle-right","far fa-arrow-alt-circle-right","fas fa-arrow-circle-left","fas fa-arrow-circle-right","fas fa-arrow-left","fas fa-arrow-right","fas fa-long-arrow-alt-left","fas fa-long-arrow-alt-right","fas fa-chevron-circle-left","fas fa-chevron-circle-right","fas fa-chevron-left","fas fa-chevron-right","fas fa-caret-left","fas fa-caret-right","fas fa-caret-square-left","far fa-caret-square-left","fas fa-caret-square-right","far fa-caret-square-right","fas fa-chevron-circle-down","fas fa-chevron-circle-up","fas fa-chevron-down","fas fa-chevron-up","fas fa-arrow-alt-circle-down","far fa-arrow-alt-circle-down","fas fa-arrow-alt-circle-up","far fa-arrow-alt-circle-up","fas fa-arrow-circle-down","fas fa-arrow-circle-up","fas fa-arrow-down","fas fa-arrow-up","fas fa-long-arrow-alt-down","fas fa-long-arrow-alt-up","fas fa-caret-down","fas fa-caret-square-down","far fa-caret-square-down","fas fa-caret-square-up","far fa-caret-square-up","fas fa-caret-up","fas fa-arrows-alt-h","fas fa-arrows-alt-v","fas fa-arrows-alt"];function bo(t){let{children:a,resBtnProps:{label:n,resRequiredProps:i,controlName:s}}=t;const{setAttributes:r,resOption:o,objAttributes:l,attributes:c}=i,u=`${s}`,f=`TAB${s}`,h=`MOB${s}`,d=()=>{const{editor_type:e}=eb_conditional_localize||{};return"edit-site"===e?(0,b.dispatch)("core/edit-site").__experimentalSetPreviewDeviceType:("edit-post"===e||console.log("---fallen back, please check style handler"),(0,b.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType)};return(0,e.createElement)("div",{className:"responsive-btn-wrapper"},(0,e.createElement)("div",{className:"responsive-btn"},(0,e.createElement)("span",{className:"responsive-btn-label components-base-control__label"},n),(0,e.createElement)("span",{onClick:()=>N({setPreviewDeviceType:d(),setAttributes:r}),className:"typoResButton dashicons dashicons-desktop "+("Desktop"===o?"active":" ")}),(0,e.createElement)("span",{onClick:()=>L({setPreviewDeviceType:d(),setAttributes:r}),className:"typoResButton dashicons dashicons-tablet "+("Tablet"===o?"active":" ")}),(0,e.createElement)("span",{onClick:()=>F({setPreviewDeviceType:d(),setAttributes:r}),className:"typoResButton dashicons dashicons-smartphone "+("Mobile"===o?"active":" ")})),(0,e.createElement)("div",{className:"eb-component-wrapper"},a,(0,e.createElement)("button",{className:"eb-range-reset-button",onClick:()=>{"Desktop"===o?r({[u]:l[u].default}):"Tablet"===o?r({[f]:l[f].default}):"Mobile"===o&&r({[h]:l[h].default})}},(0,e.createElement)("span",{className:"dashicon dashicons dashicons-image-rotate"}))))}function yo(t){const{baseLabel:a,controlName:n,resRequiredProps:s,options:r}=t,{attributes:o,setAttributes:l,resOption:c}=s,u={label:a,resRequiredProps:s,options:r,controlName:n},{[`${n}`]:f,[`TAB${n}`]:h,[`MOB${n}`]:d}=o;return(0,e.createElement)("div",{className:"responsiveAlignControlWrapper"},"Desktop"==c&&(0,e.createElement)(bo,{resBtnProps:u},(0,e.createElement)(i.BaseControl,null,(0,e.createElement)(i.ButtonGroup,null,r.map(((t,a)=>(0,e.createElement)(i.Button,{key:a,isPrimary:f===t.value,isSecondary:f!==t.value,onClick:()=>l({[`${n}`]:t.value})},t.label)))))),"Tablet"==c&&(0,e.createElement)(bo,{resBtnProps:u},(0,e.createElement)(i.BaseControl,null,(0,e.createElement)(i.ButtonGroup,null,r.map(((t,a)=>(0,e.createElement)(i.Button,{key:a,isPrimary:h===t.value,isSecondary:h!==t.value,onClick:()=>l({[`TAB${n}`]:t.value})},t.label)))))),"Mobile"==c&&(0,e.createElement)(bo,{resBtnProps:u},(0,e.createElement)(i.BaseControl,null,(0,e.createElement)(i.ButtonGroup,null,r.map(((t,a)=>(0,e.createElement)(i.Button,{key:a,isPrimary:d===t.value,isSecondary:d!==t.value,onClick:()=>l({[`MOB${n}`]:t.value})},t.label)))))))}var vo=a(184),xo=a.n(vo),Co=a(933),So=a.n(Co);function wo(t){let{blockName:a}=t,n=a.replace(/essential-blocks\/pro-|essential-blocks\/|-/g,"_");"_"===n.charAt(0)&&(n=n.substring(1));const r=EssentialBlocksLocalize?.all_blocks_default[n];return(0,e.createElement)(e.Fragment,null,r&&(0,e.createElement)(s.InspectorControls,{key:"controls"},(0,e.createElement)("div",{className:"eb-panel-control eb-support-panel"},(0,e.createElement)("div",{className:"eb-block-support"},(0,e.createElement)("img",{src:`${EssentialBlocksLocalize?.eb_plugins_url}assets/images/eb-logo.svg`,alt:"Essential Blocks Icon"}),(0,e.createElement)("a",{href:"#"},"Need Help?")),(0,e.createElement)("div",{className:"eb-block-links"},(0,e.createElement)(i.Button,{href:r.demo,target:"_blank"},(0,e.createElement)("img",{src:`${EssentialBlocksLocalize?.eb_plugins_url}assets/images/demo-icon.svg`,alt:"Essential Blocks Icon"}),"Demo"),(0,e.createElement)(i.Button,{href:r.doc,target:"_blank"},(0,e.createElement)("img",{src:`${EssentialBlocksLocalize?.eb_plugins_url}assets/images/doc-icon.svg`,alt:"Essential Blocks Icon"}),"Doc")))))}const ko=(0,jr.createHigherOrderComponent)((t=>a=>{const{attributes:n,setAttributes:i,isSelected:s,name:r,clientId:o}=a,{blockRoot:l,blockId:c,resOption:u,commonStyles:f,hideOnDesktop:h,hideOnTab:d,hideOnMobile:p,classHook:m,customCss:g,animationData:y}=n,[v,x]=(0,e.useState)(),C=r.substring(r.lastIndexOf("/")+1),S=C.replace(/-/g,"_");(0,e.useEffect)((()=>{window?.eb_conditional_localize?"edit-site"===eb_conditional_localize.editor_type?x("core/edit-site"):"edit-post"===eb_conditional_localize.editor_type?x("core/edit-post"):x(!1):x(!1)}),[]);const w=(0,b.useSelect)((e=>v&&!1!==v?e(v).__experimentalGetPreviewDeviceType():"Desktop"));(0,e.useEffect)((()=>{"essential_block"===l&&i({resOption:w})}),[w]),(0,e.useEffect)((()=>{const e=m&&m.split(" ").filter((e=>!e.includes("eb___"))).join(" ");if("object"==typeof y&&"none"!=y.style){const t=xo()(e,"eb_animation","eb___animated",y.style);i({classHook:_(t)})}if("object"==typeof y&&"none"===y.style){const t=e.replace("eb_animation","");i({classHook:_(t)})}}),[y]),(0,e.useEffect)((()=>{let e=[];for(var t in n)/^(\w+)FontFamily/.test(t)&&"Default"!==n[t]&&e.push(n[t]+":100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic");if(e.length>0){let t={google:{families:e},context:frames["editor-canvas"]};So().load(t)}}),[n]);const k=y&&"none"!=y.style?`\n /* Css for Animation */\n body:not(.wp-admin) .eb-parent-${c}.eb_animation {\n visibility: hidden;\n opacity: 0;\n transition: ease-in ${y.speed}ms;\n }\n body:not(.wp-admin) .eb-parent-${c}.eb_animation.eb__animated {\n visibility: visible;\n opacity: 1;\n }\n .eb-parent-${c}.eb_animation.eb__animated {\n animation-duration: ${y.speed}ms;\n animation-delay: ${y.delay}ms;\n }\n `:"",_=e=>"string"!=typeof e||0===e.length?e:e.split(" ").filter((function(e,t,a){return a.indexOf(e)==t})).join(" ");if("essential_block"===l){const s=`\n .editor-styles-wrapper.wp-embed-responsive .eb-parent-${c} {\n display: block;\n opacity: ${d?.4:1};\n }\n .eb-parent-${c} {\n display: ${d?"none":"block"};\n }\n `,m=`\n .editor-styles-wrapper.wp-embed-responsive .eb-parent-${c} {\n display: block;\n opacity: ${p?.4:1};\n }\n .eb-parent-${c} {\n display: ${p?"none":"block"};\n }\n `;let y=D(`\n \n .wp-admin .eb-parent-${c} {\n display: block;\n opacity: ${h?.4:1};\n }\n .eb-parent-${c} {\n display: ${h?"none":"block"};\n }\n \n ${k}\n `),v=D(`\n ${s}\n `),x=D(`\n ${m}\n `);(0,e.useEffect)((()=>{const e={desktop:y,tab:v,mobile:x};JSON.stringify(f)!=JSON.stringify(e)&&i({commonStyles:e})}),[n]);let w={...n};const _=(0,b.select)("core/block-editor").wasBlockJustInserted(o),O=(0,b.select)("essential-blocks")?.getBlockDefaults();return(0,e.useEffect)((()=>{_&&"essential_block"===l&&r.toLowerCase().includes("essential-blocks/")&&"edit-widgets"!==eb_conditional_localize?.editor_type&&(w={...w,...O[S]},O[S]&&r===`essential-blocks/${C}`&&i({...n,...O[S]}))}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,(0,Tt.Z)({},a,{attributes:w})),(0,e.createElement)("style",null,`\n ${y}\n\n /* mimmikcssStart */\n\n ${"Tablet"===u?v:" "}\n ${"Mobile"===u?v+x:" "}\n\n /* mimmikcssEnd */\n\n @media all and (max-width: 1024px) {\n\n /* tabcssStart */\n ${D(v)}\n /* tabcssEnd */\n\n }\n\n @media all and (max-width: 767px) {\n\n /* mobcssStart */\n ${D(x)}\n /* mobcssEnd */\n\n }\n\n /* Custom CSS*/\n ${g}\n\n `),r.toLowerCase().includes("essential-blocks/")&&(0,e.createElement)(wo,{blockName:r}))}return(0,e.createElement)(t,a)}),"withAdvancedControls");(0,X.addFilter)("blocks.registerBlockType","essential-blocks/global",(function(e){return void 0===e.attributes||e.attributes.blockRoot&&"essential_block"==e.attributes.blockRoot.default&&(e.attributes={...e.attributes,classHook:{type:"string",default:""},commonStyles:{type:"object"},hideOnDesktop:{type:"boolean",default:!1},hideOnTab:{type:"boolean",default:!1},hideOnMobile:{type:"boolean",default:!1},customCss:{type:"string"},animationData:{type:"object",default:{style:"none",speed:1e3,delay:0}}}),e})),(0,X.addFilter)("editor.BlockEdit","essential-blocks/global",ko);class _o{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,a){let n=[];return this.decompose(0,e,n,2),a.length&&a.decompose(0,a.length,n,3),this.decompose(t,this.length,n,1),Eo.from(n,this.length-(t-e)+a.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let a=[];return this.decompose(e,t,a,0),Eo.from(a,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),a=this.length-this.scanIdentical(e,-1),n=new Po(this),i=new Po(e);for(let e=t,s=t;;){if(n.next(e),i.next(e),e=0,n.lineBreak!=i.lineBreak||n.done!=i.done||n.value!=i.value)return!1;if(s+=n.value.length,n.done||s>=a)return!0}}iter(e=1){return new Po(this,e)}iterRange(e,t=this.length){return new To(this,e,t)}iterLines(e,t){let a;if(null==e)a=this.iter();else{null==t&&(t=this.lines+1);let n=this.line(e).from;a=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Ao(a)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new Oo(e):Eo.from(Oo.split(e,[])):_o.empty}}class Oo extends _o{constructor(e,t=function(e){let t=-1;for(let a of e)t+=a.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,a,n){for(let i=0;;i++){let s=this.text[i],r=n+s.length;if((t?a:r)>=e)return new Bo(n,r,a,s);n=r+1,a++}}decompose(e,t,a,n){let i=e<=0&&t>=this.length?this:new Oo($o(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&n){let e=a.pop(),t=Mo(i.text,e.text.slice(),0,i.length);if(t.length<=32)a.push(new Oo(t,e.length+i.length));else{let e=t.length>>1;a.push(new Oo(t.slice(0,e)),new Oo(t.slice(e)))}}else a.push(i)}replace(e,t,a){if(!(a instanceof Oo))return super.replace(e,t,a);let n=Mo(this.text,Mo(a.text,$o(this.text,0,e)),t),i=this.length+a.length-(t-e);return n.length<=32?new Oo(n,i):Eo.from(Oo.split(n,[]),i)}sliceString(e,t=this.length,a="\n"){let n="";for(let i=0,s=0;i<=t&&s<this.text.length;s++){let r=this.text[s],o=i+r.length;i>e&&s&&(n+=a),e<o&&t>i&&(n+=r.slice(Math.max(0,e-i),t-i)),i=o+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let a=[],n=-1;for(let i of e)a.push(i),n+=i.length+1,32==a.length&&(t.push(new Oo(a,n)),a=[],n=-1);return n>-1&&t.push(new Oo(a,n)),t}}class Eo extends _o{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,a,n){for(let i=0;;i++){let s=this.children[i],r=n+s.length,o=a+s.lines-1;if((t?o:r)>=e)return s.lineInner(e,t,a,n);n=r+1,a=o+1}}decompose(e,t,a,n){for(let i=0,s=0;s<=t&&i<this.children.length;i++){let r=this.children[i],o=s+r.length;if(e<=o&&t>=s){let i=n&((s<=e?1:0)|(o>=t?2:0));s>=e&&o<=t&&!i?a.push(r):r.decompose(e-s,t-s,a,i)}s=o+1}}replace(e,t,a){if(a.lines<this.lines)for(let n=0,i=0;n<this.children.length;n++){let s=this.children[n],r=i+s.length;if(e>=i&&t<=r){let o=s.replace(e-i,t-i,a),l=this.lines-s.lines+o.lines;if(o.lines<l>>4&&o.lines>l>>6){let i=this.children.slice();return i[n]=o,new Eo(i,this.length-(t-e)+a.length)}return super.replace(i,r,o)}i=r+1}return super.replace(e,t,a)}sliceString(e,t=this.length,a="\n"){let n="";for(let i=0,s=0;i<this.children.length&&s<=t;i++){let r=this.children[i],o=s+r.length;s>e&&i&&(n+=a),e<o&&t>s&&(n+=r.sliceString(e-s,t-s,a)),s=o+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Eo))return 0;let a=0,[n,i,s,r]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,i+=t){if(n==s||i==r)return a;let o=this.children[n],l=e.children[i];if(o!=l)return a+o.scanIdentical(l,t);a+=o.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let a=0;for(let t of e)a+=t.lines;if(a<32){let a=[];for(let t of e)t.flatten(a);return new Oo(a,t)}let n=Math.max(32,a>>5),i=n<<1,s=n>>1,r=[],o=0,l=-1,c=[];function u(e){let t;if(e.lines>i&&e instanceof Eo)for(let t of e.children)u(t);else e.lines>s&&(o>s||!o)?(f(),r.push(e)):e instanceof Oo&&o&&(t=c[c.length-1])instanceof Oo&&e.lines+t.lines<=32?(o+=e.lines,l+=e.length+1,c[c.length-1]=new Oo(t.text.concat(e.text),t.length+1+e.length)):(o+e.lines>n&&f(),o+=e.lines,l+=e.length+1,c.push(e))}function f(){0!=o&&(r.push(1==c.length?c[0]:Eo.from(c,l)),l=-1,o=c.length=0)}for(let t of e)u(t);return f(),1==r.length?r[0]:new Eo(r,t)}}function Mo(e,t,a=0,n=1e9){for(let i=0,s=0,r=!0;s<e.length&&i<=n;s++){let o=e[s],l=i+o.length;l>=a&&(l>n&&(o=o.slice(0,n-i)),i<a&&(o=o.slice(a-i)),r?(t[t.length-1]+=o,r=!1):t.push(o)),i=l+1}return t}function $o(e,t,a){return Mo(e,[""],t,a)}_o.empty=new Oo([""],0);class Po{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof Oo?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let a=this.nodes.length-1,n=this.nodes[a],i=this.offsets[a],s=i>>1,r=n instanceof Oo?n.text.length:n.children.length;if(s==(t>0?r:0)){if(0==a)return this.done=!0,this.value="",this;t>0&&this.offsets[a-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[a]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(n instanceof Oo){let i=n.text[s+(t<0?-1:0)];if(this.offsets[a]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=n.children[s+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[a]+=t):(t<0&&this.offsets[a]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof Oo?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class To{constructor(e,t,a){this.value="",this.done=!1,this.cursor=new Po(e,t>a?-1:1),this.pos=t>a?e.length:0,this.from=Math.min(t,a),this.to=Math.max(t,a)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let a=t<0?this.pos-this.from:this.to-this.pos;e>a&&(e=a),a-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=a?n:t<0?n.slice(n.length-a):n.slice(0,a),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class Ao{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:a,value:n}=this.inner.next(e);return t?(this.done=!0,this.value=""):a?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(_o.prototype[Symbol.iterator]=function(){return this.iter()},Po.prototype[Symbol.iterator]=To.prototype[Symbol.iterator]=Ao.prototype[Symbol.iterator]=function(){return this});class Bo{constructor(e,t,a,n){this.from=e,this.to=t,this.number=a,this.text=n}get length(){return this.to-this.from}}let Ro="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let e=1;e<Ro.length;e++)Ro[e]+=Ro[e-1];function Io(e){for(let t=1;t<Ro.length;t+=2)if(Ro[t]>e)return Ro[t-1]<=e;return!1}function Do(e){return e>=127462&&e<=127487}const No=8205;function Lo(e,t,a=!0,n=!0){return(a?Fo:zo)(e,t,n)}function Fo(e,t,a){if(t==e.length)return t;t&&Vo(e.charCodeAt(t))&&Uo(e.charCodeAt(t-1))&&t--;let n=Ho(e,t);for(t+=jo(n);t<e.length;){let i=Ho(e,t);if(n==No||i==No||a&&Io(i))t+=jo(i),n=i;else{if(!Do(i))break;{let a=0,n=t-2;for(;n>=0&&Do(Ho(e,n));)a++,n-=2;if(a%2==0)break;t+=2}}}return t}function zo(e,t,a){for(;t>0;){let n=Fo(e,t-2,a);if(n<t)return n;t--}return 0}function Vo(e){return e>=56320&&e<57344}function Uo(e){return e>=55296&&e<56320}function Ho(e,t){let a=e.charCodeAt(t);if(!Uo(a)||t+1==e.length)return a;let n=e.charCodeAt(t+1);return Vo(n)?n-56320+(a-55296<<10)+65536:a}function Go(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function jo(e){return e<65536?1:2}const Wo=/\r\n?|\n/;var qo=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(qo||(qo={}));class Zo{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let a=this.sections[t+1];e+=a<0?this.sections[t]:a}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,a=0,n=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?(e(a,n,i),n+=i):n+=s,a+=i}}iterChangedRanges(e,t=!1){Yo(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let a=this.sections[t++],n=this.sections[t++];n<0?e.push(a,n):e.push(n,a)}return new Zo(e)}composeDesc(e){return this.empty?e:e.empty?this:el(this,e)}mapDesc(e,t=!1){return e.empty?this:Jo(this,e,t)}mapPos(e,t=-1,a=qo.Simple){let n=0,i=0;for(let s=0;s<this.sections.length;){let r=this.sections[s++],o=this.sections[s++],l=n+r;if(o<0){if(l>e)return i+(e-n);i+=r}else{if(a!=qo.Simple&&l>=e&&(a==qo.TrackDel&&n<e&&l>e||a==qo.TrackBefore&&n<e||a==qo.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!r)return e==n||t<0?i:i+o;i+=o}n=l}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return i}touchesRange(e,t=e){for(let a=0,n=0;a<this.sections.length&&n<=t;){let i=n+this.sections[a++];if(this.sections[a++]>=0&&n<=t&&i>=e)return!(n<e&&i>t)||"cover";n=i}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let a=this.sections[t++],n=this.sections[t++];e+=(e?" ":"")+a+(n>=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Zo(e)}static create(e){return new Zo(e)}}class Qo extends Zo{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Yo(this,((t,a,n,i,s)=>e=e.replace(n,n+(a-t),s)),!1),e}mapDesc(e,t=!1){return Jo(this,e,t,!0)}invert(e){let t=this.sections.slice(),a=[];for(let n=0,i=0;n<t.length;n+=2){let s=t[n],r=t[n+1];if(r>=0){t[n]=r,t[n+1]=s;let o=n>>1;for(;a.length<o;)a.push(_o.empty);a.push(s?e.slice(i,i+s):_o.empty)}i+=s}return new Qo(t,a)}compose(e){return this.empty?e:e.empty?this:el(this,e,!0)}map(e,t=!1){return e.empty?this:Jo(this,e,t,!0)}iterChanges(e,t=!1){Yo(this,e,t)}get desc(){return Zo.create(this.sections)}filter(e){let t=[],a=[],n=[],i=new tl(this);e:for(let s=0,r=0;;){let o=s==e.length?1e9:e[s++];for(;r<o||r==o&&0==i.len;){if(i.done)break e;let e=Math.min(i.len,o-r);Xo(n,e,-1);let s=-1==i.ins?-1:0==i.off?i.ins:0;Xo(t,e,s),s>0&&Ko(a,t,i.text),i.forward(e),r+=e}let l=e[s++];for(;r<l;){if(i.done)break e;let e=Math.min(i.len,l-r);Xo(t,e,-1),Xo(n,e,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(e),r+=e}}return{changes:new Qo(t,a),filtered:Zo.create(n)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let a=this.sections[t],n=this.sections[t+1];n<0?e.push(a):0==n?e.push([a]):e.push([a].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,a){let n=[],i=[],s=0,r=null;function o(e=!1){if(!e&&!n.length)return;s<t&&Xo(n,t-s,-1);let a=new Qo(n,i);r=r?r.compose(a.map(r)):a,n=[],i=[],s=0}return function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof Qo){if(l.length!=t)throw new RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);o(),r=r?r.compose(l.map(r)):l}else{let{from:e,to:r=e,insert:c}=l;if(e>r||e<0||r>t)throw new RangeError(`Invalid change range ${e} to ${r} (in doc of length ${t})`);let u=c?"string"==typeof c?_o.of(c.split(a||Wo)):c:_o.empty,f=u.length;if(e==r&&0==f)return;e<s&&o(),e>s&&Xo(n,e-s,-1),Xo(n,r-e,f),Ko(i,n,u),s=r}}(e),o(!r),r}static empty(e){return new Qo(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],a=[];for(let n=0;n<e.length;n++){let i=e[n];if("number"==typeof i)t.push(i,-1);else{if(!Array.isArray(i)||"number"!=typeof i[0]||i.some(((e,t)=>t&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==i.length)t.push(i[0],0);else{for(;a.length<n;)a.push(_o.empty);a[n]=_o.of(i.slice(1)),t.push(i[0],a[n].length)}}}return new Qo(t,a)}static createSet(e,t){return new Qo(e,t)}}function Xo(e,t,a,n=!1){if(0==t&&a<=0)return;let i=e.length-2;i>=0&&a<=0&&a==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=a:n?(e[i]+=t,e[i+1]+=a):e.push(t,a)}function Ko(e,t,a){if(0==a.length)return;let n=t.length-2>>1;if(n<e.length)e[e.length-1]=e[e.length-1].append(a);else{for(;e.length<n;)e.push(_o.empty);e.push(a)}}function Yo(e,t,a){let n=e.inserted;for(let i=0,s=0,r=0;r<e.sections.length;){let o=e.sections[r++],l=e.sections[r++];if(l<0)i+=o,s+=o;else{let c=i,u=s,f=_o.empty;for(;c+=o,u+=l,l&&n&&(f=f.append(n[r-2>>1])),!(a||r==e.sections.length||e.sections[r+1]<0);)o=e.sections[r++],l=e.sections[r++];t(i,c,s,u,f),i=c,s=u}}}function Jo(e,t,a,n=!1){let i=[],s=n?[]:null,r=new tl(e),o=new tl(t);for(let e=-1;;)if(-1==r.ins&&-1==o.ins){let e=Math.min(r.len,o.len);Xo(i,e,-1),r.forward(e),o.forward(e)}else if(o.ins>=0&&(r.ins<0||e==r.i||0==r.off&&(o.len<r.len||o.len==r.len&&!a))){let t=o.len;for(Xo(i,o.ins,-1);t;){let a=Math.min(r.len,t);r.ins>=0&&e<r.i&&r.len<=a&&(Xo(i,0,r.ins),s&&Ko(s,i,r.text),e=r.i),r.forward(a),t-=a}o.next()}else{if(!(r.ins>=0)){if(r.done&&o.done)return s?Qo.createSet(i,s):Zo.create(i);throw new Error("Mismatched change set lengths")}{let t=0,a=r.len;for(;a;)if(-1==o.ins){let e=Math.min(a,o.len);t+=e,a-=e,o.forward(e)}else{if(!(0==o.ins&&o.len<a))break;a-=o.len,o.next()}Xo(i,t,e<r.i?r.ins:0),s&&e<r.i&&Ko(s,i,r.text),e=r.i,r.forward(r.len-a)}}}function el(e,t,a=!1){let n=[],i=a?[]:null,s=new tl(e),r=new tl(t);for(let e=!1;;){if(s.done&&r.done)return i?Qo.createSet(n,i):Zo.create(n);if(0==s.ins)Xo(n,s.len,0,e),s.next();else if(0!=r.len||r.done){if(s.done||r.done)throw new Error("Mismatched change set lengths");{let t=Math.min(s.len2,r.len),a=n.length;if(-1==s.ins){let a=-1==r.ins?-1:r.off?0:r.ins;Xo(n,t,a,e),i&&a&&Ko(i,n,r.text)}else-1==r.ins?(Xo(n,s.off?0:s.len,t,e),i&&Ko(i,n,s.textBit(t))):(Xo(n,s.off?0:s.len,r.off?0:r.ins,e),i&&!r.off&&Ko(i,n,r.text));e=(s.ins>t||r.ins>=0&&r.len>t)&&(e||n.length>a),s.forward2(t),r.forward(t)}}else Xo(n,0,r.ins,e),i&&Ko(i,n,r.text),r.next()}}class tl{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?_o.empty:e[t]}textBit(e){let{inserted:t}=this.set,a=this.i-2>>1;return a>=t.length&&!e?_o.empty:t[a].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class al{constructor(e,t,a){this.from=e,this.to=t,this.flags=a}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let a,n;return this.empty?a=n=e.mapPos(this.from,t):(a=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),a==this.from&&n==this.to?this:new al(a,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return nl.range(e,t);let a=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return nl.range(this.anchor,a)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return nl.range(e.anchor,e.head)}static create(e,t,a){return new al(e,t,a)}}class nl{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:nl.create(this.ranges.map((a=>a.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;t<this.ranges.length;t++)if(!this.ranges[t].eq(e.ranges[t]))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new nl([this.main],0)}addRange(e,t=!0){return nl.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let a=this.ranges.slice();return a[t]=e,nl.create(a,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new nl(e.ranges.map((e=>al.fromJSON(e))),e.main)}static single(e,t=e){return new nl([nl.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let a=0,n=0;n<e.length;n++){let i=e[n];if(i.empty?i.from<=a:i.from<a)return nl.normalized(e.slice(),t);a=i.to}return new nl(e,t)}static cursor(e,t=0,a,n){return al.create(e,e,(0==t?0:t<0?4:8)|(null==a?3:Math.min(2,a))|(null!=n?n:33554431)<<5)}static range(e,t,a,n){let i=(null!=a?a:33554431)<<5|(null==n?3:Math.min(2,n));return t<e?al.create(t,e,24|i):al.create(e,t,(t>e?4:0)|i)}static normalized(e,t=0){let a=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(a);for(let a=1;a<e.length;a++){let n=e[a],i=e[a-1];if(n.empty?n.from<=i.to:n.from<i.to){let s=i.from,r=Math.max(n.to,i.to);a<=t&&t--,e.splice(--a,2,n.anchor>n.head?nl.range(r,s):nl.range(s,r))}}return new nl(e,t)}}function il(e,t){for(let a of e.ranges)if(a.to>t)throw new RangeError("Selection points outside of document")}let sl=0;class rl{constructor(e,t,a,n,i){this.combine=e,this.compareInput=t,this.compare=a,this.isStatic=n,this.id=sl++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}static define(e={}){return new rl(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:ol),!!e.static,e.enables)}of(e){return new ll([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ll(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ll(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(a=>t(a.field(e))))}}function ol(e,t){return e==t||e.length==t.length&&e.every(((e,a)=>e===t[a]))}class ll{constructor(e,t,a,n){this.dependencies=e,this.facet=t,this.type=a,this.value=n,this.id=sl++}dynamicSlot(e){var t;let a=this.value,n=this.facet.compareInput,i=this.id,s=e[i]>>1,r=2==this.type,o=!1,l=!1,c=[];for(let a of this.dependencies)"doc"==a?o=!0:"selection"==a?l=!0:0==(1&(null!==(t=e[a.id])&&void 0!==t?t:1))&&c.push(e[a.id]);return{create:e=>(e.values[s]=a(e),1),update(e,t){if(o&&t.docChanged||l&&(t.docChanged||t.selection)||ul(e,c)){let t=a(e);if(r?!cl(t,e.values[s],n):!n(t,e.values[s]))return e.values[s]=t,1}return 0},reconfigure:(e,t)=>{let o,l=t.config.address[i];if(null!=l){let i=Cl(t,l);if(this.dependencies.every((a=>a instanceof rl?t.facet(a)===e.facet(a):!(a instanceof dl)||t.field(a,!1)==e.field(a,!1)))||(r?cl(o=a(e),i,n):n(o=a(e),i)))return e.values[s]=i,0}else o=a(e);return e.values[s]=o,1}}}}function cl(e,t,a){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!a(e[n],t[n]))return!1;return!0}function ul(e,t){let a=!1;for(let n of t)1&xl(e,n)&&(a=!0);return a}function fl(e,t,a){let n=a.map((t=>e[t.id])),i=a.map((e=>e.type)),s=n.filter((e=>!(1&e))),r=e[t.id]>>1;function o(e){let a=[];for(let t=0;t<n.length;t++){let s=Cl(e,n[t]);if(2==i[t])for(let e of s)a.push(e);else a.push(s)}return t.combine(a)}return{create(e){for(let t of n)xl(e,t);return e.values[r]=o(e),1},update(e,a){if(!ul(e,s))return 0;let n=o(e);return t.compare(n,e.values[r])?0:(e.values[r]=n,1)},reconfigure(e,i){let s=ul(e,n),l=i.config.facets[t.id],c=i.facet(t);if(l&&!s&&ol(a,l))return e.values[r]=c,0;let u=o(e);return t.compare(u,c)?(e.values[r]=c,0):(e.values[r]=u,1)}}}const hl=rl.define({static:!0});class dl{constructor(e,t,a,n,i){this.id=e,this.createF=t,this.updateF=a,this.compareF=n,this.spec=i,this.provides=void 0}static define(e){let t=new dl(sl++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(hl).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,a)=>{let n=e.values[t],i=this.updateF(n,a);return this.compareF(n,i)?0:(e.values[t]=i,1)},reconfigure:(e,a)=>null!=a.config.address[this.id]?(e.values[t]=a.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,hl.of({field:this,create:e})]}get extension(){return this}}function pl(e){return t=>new gl(t,e)}const ml={highest:pl(0),high:pl(1),default:pl(2),low:pl(3),lowest:pl(4)};class gl{constructor(e,t){this.inner=e,this.prec=t}}class bl{of(e){return new yl(this,e)}reconfigure(e){return bl.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class yl{constructor(e,t){this.compartment=e,this.inner=t}}class vl{constructor(e,t,a,n,i,s){for(this.base=e,this.compartments=t,this.dynamicSlots=a,this.address=n,this.staticValues=i,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<a.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,a){let n=[],i=Object.create(null),s=new Map;for(let a of function(e,t,a){let n=[[],[],[],[],[]],i=new Map;return function e(s,r){let o=i.get(s);if(null!=o){if(o<=r)return;let e=n[o].indexOf(s);e>-1&&n[o].splice(e,1),s instanceof yl&&a.delete(s.compartment)}if(i.set(s,r),Array.isArray(s))for(let t of s)e(t,r);else if(s instanceof yl){if(a.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let n=t.get(s.compartment)||s.inner;a.set(s.compartment,n),e(n,r)}else if(s instanceof gl)e(s.inner,s.prec);else if(s instanceof dl)n[r].push(s),s.provides&&e(s.provides,r);else if(s instanceof ll)n[r].push(s),s.facet.extensions&&e(s.facet.extensions,2);else{let t=s.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,r)}}(e,2),n.reduce(((e,t)=>e.concat(t)))}(e,t,s))a instanceof dl?n.push(a):(i[a.facet.id]||(i[a.facet.id]=[])).push(a);let r=Object.create(null),o=[],l=[];for(let e of n)r[e.id]=l.length<<1,l.push((t=>e.slot(t)));let c=null==a?void 0:a.config.facets;for(let e in i){let t=i[e],n=t[0].facet,s=c&&c[e]||[];if(t.every((e=>0==e.type)))if(r[n.id]=o.length<<1|1,ol(s,t))o.push(a.facet(n));else{let e=n.combine(t.map((e=>e.value)));o.push(a&&n.compare(e,a.facet(n))?a.facet(n):e)}else{for(let e of t)0==e.type?(r[e.id]=o.length<<1|1,o.push(e.value)):(r[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));r[n.id]=l.length<<1,l.push((e=>fl(e,n,t)))}}let u=l.map((e=>e(r)));return new vl(e,s,u,r,o,i)}}function xl(e,t){if(1&t)return 2;let a=t>>1,n=e.status[a];if(4==n)throw new Error("Cyclic dependency between fields and/or facets");if(2&n)return n;e.status[a]=4;let i=e.computeSlot(e,e.config.dynamicSlots[a]);return e.status[a]=2|i}function Cl(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const Sl=rl.define(),wl=rl.define({combine:e=>e.some((e=>e)),static:!0}),kl=rl.define({combine:e=>e.length?e[0]:void 0,static:!0}),_l=rl.define(),Ol=rl.define(),El=rl.define(),Ml=rl.define({combine:e=>!!e.length&&e[0]});class $l{constructor(e,t){this.type=e,this.value=t}static define(){return new Pl}}class Pl{of(e){return new $l(this,e)}}class Tl{constructor(e){this.map=e}of(e){return new Al(this,e)}}class Al{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new Al(this.type,t)}is(e){return this.type==e}static define(e={}){return new Tl(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let a=[];for(let n of e){let e=n.map(t);e&&a.push(e)}return a}}Al.reconfigure=Al.define(),Al.appendConfig=Al.define();class Bl{constructor(e,t,a,n,i,s){this.startState=e,this.changes=t,this.selection=a,this.effects=n,this.annotations=i,this.scrollIntoView=s,this._doc=null,this._state=null,a&&il(a,t.newLength),i.some((e=>e.type==Bl.time))||(this.annotations=i.concat(Bl.time.of(Date.now())))}static create(e,t,a,n,i,s){return new Bl(e,t,a,n,i,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Bl.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function Rl(e,t){let a=[];for(let n=0,i=0;;){let s,r;if(n<e.length&&(i==t.length||t[i]>=e[n]))s=e[n++],r=e[n++];else{if(!(i<t.length))return a;s=t[i++],r=t[i++]}!a.length||a[a.length-1]<s?a.push(s,r):a[a.length-1]<r&&(a[a.length-1]=r)}}function Il(e,t,a){var n;let i,s,r;return a?(i=t.changes,s=Qo.empty(t.changes.length),r=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),s=e.changes.mapDesc(t.changes,!0),r=e.changes.compose(i)),{changes:r,selection:t.selection?t.selection.map(s):null===(n=e.selection)||void 0===n?void 0:n.map(i),effects:Al.mapEffects(e.effects,i).concat(Al.mapEffects(t.effects,s)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function Dl(e,t,a){let n=t.selection,i=Fl(t.annotations);return t.userEvent&&(i=i.concat(Bl.userEvent.of(t.userEvent))),{changes:t.changes instanceof Qo?t.changes:Qo.of(t.changes||[],a,e.facet(kl)),selection:n&&(n instanceof nl?n:nl.single(n.anchor,n.head)),effects:Fl(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function Nl(e,t,a){let n=Dl(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(a=!1);for(let i=1;i<t.length;i++){!1===t[i].filter&&(a=!1);let s=!!t[i].sequential;n=Il(n,Dl(e,t[i],s?n.changes.newLength:e.doc.length),s)}let i=Bl.create(e,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return function(e){let t=e.startState,a=t.facet(El),n=e;for(let i=a.length-1;i>=0;i--){let s=a[i](e);s&&Object.keys(s).length&&(n=Il(n,Dl(t,s,e.changes.newLength),!0))}return n==e?e:Bl.create(t,e.changes,e.selection,n.effects,n.annotations,n.scrollIntoView)}(a?function(e){let t=e.startState,a=!0;for(let n of t.facet(_l)){let t=n(e);if(!1===t){a=!1;break}Array.isArray(t)&&(a=!0===a?t:Rl(a,t))}if(!0!==a){let n,i;if(!1===a)i=e.changes.invertedDesc,n=Qo.empty(t.doc.length);else{let t=e.changes.filter(a);n=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=Bl.create(t,n,e.selection&&e.selection.map(i),Al.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let n=t.facet(Ol);for(let a=n.length-1;a>=0;a--){let i=n[a](e);e=i instanceof Bl?i:Array.isArray(i)&&1==i.length&&i[0]instanceof Bl?i[0]:Nl(t,Fl(i),!1)}return e}(i):i)}Bl.time=$l.define(),Bl.userEvent=$l.define(),Bl.addToHistory=$l.define(),Bl.remote=$l.define();const Ll=[];function Fl(e){return null==e?Ll:Array.isArray(e)?e:[e]}var zl=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(zl||(zl={}));const Vl=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Ul;try{Ul=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class Hl{constructor(e,t,a,n,i,s){this.config=e,this.doc=t,this.selection=a,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=i,s&&(s._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)xl(this,e<<1);this.computeSlot=null}field(e,t=!0){let a=this.config.address[e.id];if(null!=a)return xl(this,a),Cl(this,a);if(t)throw new RangeError("Field is not present in this state")}update(...e){return Nl(this,e,!0)}applyTransaction(e){let t,a=this.config,{base:n,compartments:i}=a;for(let t of e.effects)t.is(bl.reconfigure)?(a&&(i=new Map,a.compartments.forEach(((e,t)=>i.set(t,e))),a=null),i.set(t.value.compartment,t.value.extension)):t.is(Al.reconfigure)?(a=null,n=t.value):t.is(Al.appendConfig)&&(a=null,n=Fl(n).concat(t.value));a?t=e.startState.values.slice():(a=vl.resolve(n,i,this),t=new Hl(a,this.doc,this.selection,a.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values),new Hl(a,e.newDoc,e.newSelection,t,((t,a)=>a.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:nl.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,a=e(t.ranges[0]),n=this.changes(a.changes),i=[a.range],s=Fl(a.effects);for(let a=1;a<t.ranges.length;a++){let r=e(t.ranges[a]),o=this.changes(r.changes),l=o.map(n);for(let e=0;e<a;e++)i[e]=i[e].map(l);let c=n.mapDesc(o,!0);i.push(r.range.map(c)),n=n.compose(l),s=Al.mapEffects(s,l).concat(Al.mapEffects(Fl(r.effects),c))}return{changes:n,selection:nl.create(i,t.mainIndex),effects:s}}changes(e=[]){return e instanceof Qo?e:Qo.of(e,this.doc.length,this.facet(Hl.lineSeparator))}toText(e){return _o.of(e.split(this.facet(Hl.lineSeparator)||Wo))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(xl(this,t),Cl(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let a in e){let n=e[a];n instanceof dl&&null!=this.config.address[n.id]&&(t[a]=n.spec.toJSON(this.field(e[a]),this))}return t}static fromJSON(e,t={},a){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let n=[];if(a)for(let t in a)if(Object.prototype.hasOwnProperty.call(e,t)){let i=a[t],s=e[t];n.push(i.init((e=>i.spec.fromJSON(s,e))))}return Hl.create({doc:e.doc,selection:nl.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=vl.resolve(e.extensions||[],new Map),a=e.doc instanceof _o?e.doc:_o.of((e.doc||"").split(t.staticFacet(Hl.lineSeparator)||Wo)),n=e.selection?e.selection instanceof nl?e.selection:nl.single(e.selection.anchor,e.selection.head):nl.single(0);return il(n,a.length),t.staticFacet(wl)||(n=n.asSingle()),new Hl(t,a,n,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(Hl.tabSize)}get lineBreak(){return this.facet(Hl.lineSeparator)||"\n"}get readOnly(){return this.facet(Ml)}phrase(e,...t){for(let t of this.facet(Hl.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,a)=>{if("$"==a)return"$";let n=+(a||1);return!n||n>t.length?e:t[n-1]}))),e}languageDataAt(e,t,a=-1){let n=[];for(let i of this.facet(Sl))for(let s of i(this,t,a))Object.prototype.hasOwnProperty.call(s,e)&&n.push(s[e]);return n}charCategorizer(e){return t=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return zl.Space;if(function(e){if(Ul)return Ul.test(e);for(let t=0;t<e.length;t++){let a=e[t];if(/\w/.test(a)||a>""&&(a.toUpperCase()!=a.toLowerCase()||Vl.test(a)))return!0}return!1}(e))return zl.Word;for(let a=0;a<t.length;a++)if(e.indexOf(t[a])>-1)return zl.Word;return zl.Other};var t}wordAt(e){let{text:t,from:a,length:n}=this.doc.lineAt(e),i=this.charCategorizer(e),s=e-a,r=e-a;for(;s>0;){let e=Lo(t,s,!1);if(i(t.slice(e,s))!=zl.Word)break;s=e}for(;r<n;){let e=Lo(t,r);if(i(t.slice(r,e))!=zl.Word)break;r=e}return s==r?null:nl.range(s+a,r+a)}}function Gl(e,t,a={}){let n={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],s=n[e];if(void 0===s)n[e]=i;else if(s===i||void 0===i);else{if(!Object.hasOwnProperty.call(a,e))throw new Error("Config merge conflict for field "+e);n[e]=a[e](s,i)}}for(let e in t)void 0===n[e]&&(n[e]=t[e]);return n}Hl.allowMultipleSelections=wl,Hl.tabSize=rl.define({combine:e=>e.length?e[0]:4}),Hl.lineSeparator=kl,Hl.readOnly=Ml,Hl.phrases=rl.define({compare(e,t){let a=Object.keys(e),n=Object.keys(t);return a.length==n.length&&a.every((a=>e[a]==t[a]))}}),Hl.languageData=Sl,Hl.changeFilter=_l,Hl.transactionFilter=Ol,Hl.transactionExtender=El,bl.reconfigure=Al.define();class jl{eq(e){return this==e}range(e,t=e){return Wl.create(e,t,this)}}jl.prototype.startSide=jl.prototype.endSide=0,jl.prototype.point=!1,jl.prototype.mapMode=qo.TrackDel;class Wl{constructor(e,t,a){this.from=e,this.to=t,this.value=a}static create(e,t,a){return new Wl(e,t,a)}}function ql(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Zl{constructor(e,t,a,n){this.from=e,this.to=t,this.value=a,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,a,n=0){let i=a?this.to:this.from;for(let s=n,r=i.length;;){if(s==r)return s;let n=s+r>>1,o=i[n]-e||(a?this.value[n].endSide:this.value[n].startSide)-t;if(n==s)return o>=0?s:r;o>=0?r=n:s=n+1}}between(e,t,a,n){for(let i=this.findIndex(t,-1e9,!0),s=this.findIndex(a,1e9,!1,i);i<s;i++)if(!1===n(this.from[i]+e,this.to[i]+e,this.value[i]))return!1}map(e,t){let a=[],n=[],i=[],s=-1,r=-1;for(let o=0;o<this.value.length;o++){let l,c,u=this.value[o],f=this.from[o]+e,h=this.to[o]+e;if(f==h){let e=t.mapPos(f,u.startSide,u.mapMode);if(null==e)continue;if(l=c=e,u.startSide!=u.endSide&&(c=t.mapPos(f,u.endSide),c<l))continue}else if(l=t.mapPos(f,u.startSide),c=t.mapPos(h,u.endSide),l>c||l==c&&u.startSide>0&&u.endSide<=0)continue;(c-l||u.endSide-u.startSide)<0||(s<0&&(s=l),u.point&&(r=Math.max(r,c-l)),a.push(u),n.push(l-s),i.push(c-s))}return{mapped:a.length?new Zl(n,i,a,r):null,pos:s}}}class Ql{constructor(e,t,a,n){this.chunkPos=e,this.chunk=t,this.nextLayer=a,this.maxPoint=n}static create(e,t,a,n){return new Ql(e,t,a,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:a=!1,filterFrom:n=0,filterTo:i=this.length}=e,s=e.filter;if(0==t.length&&!s)return this;if(a&&(t=t.slice().sort(ql)),this.isEmpty)return t.length?Ql.of(t):this;let r=new Yl(this,null,-1).goto(0),o=0,l=[],c=new Xl;for(;r.value||o<t.length;)if(o<t.length&&(r.from-t[o].from||r.startSide-t[o].value.startSide)>=0){let e=t[o++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==r.rangeIndex&&r.chunkIndex<this.chunk.length&&(o==t.length||this.chunkEnd(r.chunkIndex)<t[o].from)&&(!s||n>this.chunkEnd(r.chunkIndex)||i<this.chunkPos[r.chunkIndex])&&c.addChunk(this.chunkPos[r.chunkIndex],this.chunk[r.chunkIndex])?r.nextChunk():((!s||n>r.to||i<r.from||s(r.from,r.to,r.value))&&(c.addInner(r.from,r.to,r.value)||l.push(Wl.create(r.from,r.to,r.value))),r.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?Ql.empty:this.nextLayer.update({add:l,filter:s,filterFrom:n,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],a=[],n=-1;for(let i=0;i<this.chunk.length;i++){let s=this.chunkPos[i],r=this.chunk[i],o=e.touchesRange(s,s+r.length);if(!1===o)n=Math.max(n,r.maxPoint),t.push(r),a.push(e.mapPos(s));else if(!0===o){let{mapped:i,pos:o}=r.map(s,e);i&&(n=Math.max(n,i.maxPoint),t.push(i),a.push(o))}}let i=this.nextLayer.map(e);return 0==t.length?i:new Ql(a,t,i||Ql.empty,n)}between(e,t,a){if(!this.isEmpty){for(let n=0;n<this.chunk.length;n++){let i=this.chunkPos[n],s=this.chunk[n];if(t>=i&&e<=i+s.length&&!1===s.between(i,e-i,t-i,a))return}this.nextLayer.between(e,t,a)}}iter(e=0){return Jl.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Jl.from(e).goto(t)}static compare(e,t,a,n,i=-1){let s=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),r=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),o=Kl(s,r,a),l=new tc(s,o,i),c=new tc(r,o,i);a.iterGaps(((e,t,a)=>ac(l,e,c,t,a,n))),a.empty&&0==a.length&&ac(l,0,c,0,0,n)}static eq(e,t,a=0,n){null==n&&(n=999999999);let i=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),s=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(i.length!=s.length)return!1;if(!i.length)return!0;let r=Kl(i,s),o=new tc(i,r,0).goto(a),l=new tc(s,r,0).goto(a);for(;;){if(o.to!=l.to||!nc(o.active,l.active)||o.point&&(!l.point||!o.point.eq(l.point)))return!1;if(o.to>n)return!0;o.next(),l.next()}}static spans(e,t,a,n,i=-1){let s=new tc(e,null,i).goto(t),r=t,o=s.openStart;for(;;){let e=Math.min(s.to,a);if(s.point){let a=s.activeForPoint(s.to),i=s.pointFrom<t?a.length+1:Math.min(a.length,o);n.point(r,e,s.point,a,i,s.pointRank),o=Math.min(s.openEnd(e),a.length)}else e>r&&(n.span(r,e,s.active,o),o=s.openEnd(e));if(s.to>a)return o+(s.point&&s.to>a?1:0);r=s.to,s.next()}}static of(e,t=!1){let a=new Xl;for(let n of e instanceof Wl?[e]:t?function(e){if(e.length>1)for(let t=e[0],a=1;a<e.length;a++){let n=e[a];if(ql(t,n)>0)return e.slice().sort(ql);t=n}return e}(e):e)a.add(n.from,n.to,n.value);return a.finish()}}Ql.empty=new Ql([],[],null,-1),Ql.empty.nextLayer=Ql.empty;class Xl{finishChunk(e){this.chunks.push(new Zl(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,a){this.addInner(e,t,a)||(this.nextLayer||(this.nextLayer=new Xl)).add(e,t,a)}addInner(e,t,a){let n=e-this.lastTo||a.startSide-this.last.endSide;if(n<=0&&(e-this.lastFrom||a.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(n<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=a,this.lastFrom=e,this.lastTo=t,this.value.push(a),a.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let a=t.value.length-1;return this.last=t.value[a],this.lastFrom=t.from[a]+e,this.lastTo=t.to[a]+e,!0}finish(){return this.finishInner(Ql.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Ql.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Kl(e,t,a){let n=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&n.set(t.chunk[e],t.chunkPos[e]);let i=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let s=n.get(e.chunk[t]);null==s||(a?a.mapPos(s):s)!=e.chunkPos[t]||(null==a?void 0:a.touchesRange(s,s+e.chunk[t].length))||i.add(e.chunk[t])}return i}class Yl{constructor(e,t,a,n=0){this.layer=e,this.skip=t,this.minPoint=a,this.rank=n}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,a){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,a=!1}if(this.chunkIndex<this.layer.chunk.length){let n=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!a||this.rangeIndex<n)&&this.setRangeIndex(n)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],a=e+t.from[this.rangeIndex];if(this.from=a,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Jl{constructor(e){this.heap=e}static from(e,t=null,a=-1){let n=[];for(let i=0;i<e.length;i++)for(let s=e[i];!s.isEmpty;s=s.nextLayer)s.maxPoint>=a&&n.push(new Yl(s,t,a,i));return 1==n.length?n[0]:new Jl(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let a of this.heap)a.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)ec(this.heap,e);return this.next(),this}forward(e,t){for(let a of this.heap)a.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)ec(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),ec(this.heap,0)}}}function ec(e,t){for(let a=e[t];;){let n=1+(t<<1);if(n>=e.length)break;let i=e[n];if(n+1<e.length&&i.compare(e[n+1])>=0&&(i=e[n+1],n++),a.compare(i)<0)break;e[n]=a,e[t]=i,t=n}}class tc{constructor(e,t,a){this.minPoint=a,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Jl.from(e,t,a)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){ic(this.active,e),ic(this.activeTo,e),ic(this.activeRank,e),this.minActive=rc(this.active,this.activeTo)}addActive(e){let t=0,{value:a,to:n,rank:i}=this.cursor;for(;t<this.activeRank.length&&this.activeRank[t]<=i;)t++;sc(this.active,t,a),sc(this.activeTo,t,n),sc(this.activeRank,t,i),e&&sc(e,t,this.cursor.from),this.minActive=rc(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let a=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),a&&ic(a,n)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(a),this.cursor.next()}}}if(a){this.openStart=0;for(let t=a.length-1;t>=0&&a[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let a=this.active.length-1;a>=0&&!(this.activeRank[a]<this.pointRank);a--)(this.activeTo[a]>e||this.activeTo[a]==e&&this.active[a].endSide>=this.point.endSide)&&t.push(this.active[a]);return t.reverse()}openEnd(e){let t=0;for(let a=this.activeTo.length-1;a>=0&&this.activeTo[a]>e;a--)t++;return t}}function ac(e,t,a,n,i,s){e.goto(t),a.goto(n);let r=n+i,o=n,l=n-t;for(;;){let t=e.to+l-a.to||e.endSide-a.endSide,n=t<0?e.to+l:a.to,i=Math.min(n,r);if(e.point||a.point?e.point&&a.point&&(e.point==a.point||e.point.eq(a.point))&&nc(e.activeForPoint(e.to),a.activeForPoint(a.to))||s.comparePoint(o,i,e.point,a.point):i>o&&!nc(e.active,a.active)&&s.compareRange(o,i,e.active,a.active),n>r)break;o=n,t<=0&&e.next(),t>=0&&a.next()}}function nc(e,t){if(e.length!=t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!=t[a]&&!e[a].eq(t[a]))return!1;return!0}function ic(e,t){for(let a=t,n=e.length-1;a<n;a++)e[a]=e[a+1];e.pop()}function sc(e,t,a){for(let a=e.length-1;a>=t;a--)e[a+1]=e[a];e[t]=a}function rc(e,t){let a=-1,n=1e9;for(let i=0;i<t.length;i++)(t[i]-n||e[i].endSide-e[a].endSide)<0&&(a=i,n=t[i]);return a}function oc(e,t,a=e.length){let n=0;for(let i=0;i<a;)9==e.charCodeAt(i)?(n+=t-n%t,i++):(n++,i=Lo(e,i));return n}function lc(e,t,a,n){for(let n=0,i=0;;){if(i>=t)return n;if(n==e.length)break;i+=9==e.charCodeAt(n)?a-i%a:1,n=Lo(e,n)}return!0===n?-1:e.length}const cc="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),uc="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),fc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class hc{constructor(e,t){this.rules=[];let{finish:a}=t||{};function n(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,s,r){let o=[],l=/^@(\w+)\b/.exec(e[0]),c=l&&"keyframes"==l[1];if(l&&null==t)return s.push(e[0]+";");for(let a in t){let r=t[a];if(/&/.test(a))i(a.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),r,s);else if(r&&"object"==typeof r){if(!l)throw new RangeError("The value of a property ("+a+") should be a primitive value.");i(n(a),r,o,c)}else null!=r&&o.push(a.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+r+";")}(o.length||c)&&s.push((!a||l||r?e:e.map(a)).join(", ")+" {"+o.join(" ")+"}")}for(let t in e)i(n(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=fc[cc]||1;return fc[cc]=e+1,"ͼ"+e.toString(36)}static mount(e,t){(e[uc]||new pc(e)).mount(Array.isArray(t)?t:[t])}}let dc=new Map;class pc{constructor(e){let t=e.ownerDocument||e,a=t.defaultView;if(!e.head&&e.adoptedStyleSheets&&a.CSSStyleSheet){let n=dc.get(t);if(n)return e.adoptedStyleSheets=[n.sheet,...e.adoptedStyleSheets],e[uc]=n;this.sheet=new a.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],dc.set(t,this)}else{this.styleTag=t.createElement("style");let a=e.head||e;a.insertBefore(this.styleTag,a.firstChild)}this.modules=[],e[uc]=this}mount(e){let t=this.sheet,a=0,n=0;for(let i=0;i<e.length;i++){let s=e[i],r=this.modules.indexOf(s);if(r<n&&r>-1&&(this.modules.splice(r,1),n--,r=-1),-1==r){if(this.modules.splice(n++,0,s),t)for(let e=0;e<s.rules.length;e++)t.insertRule(s.rules[e],a++)}else{for(;n<r;)a+=this.modules[n++].rules.length;a+=s.rules.length,n++}}if(!t){let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e}}}for(var mc={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},gc={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},bc="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),yc=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),vc="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),xc=yc||bc&&+bc[1]<57,Cc=0;Cc<10;Cc++)mc[48+Cc]=mc[96+Cc]=String(Cc);for(Cc=1;Cc<=24;Cc++)mc[Cc+111]="F"+Cc;for(Cc=65;Cc<=90;Cc++)mc[Cc]=String.fromCharCode(Cc+32),gc[Cc]=String.fromCharCode(Cc);for(var Sc in mc)gc.hasOwnProperty(Sc)||(gc[Sc]=mc[Sc]);function wc(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function kc(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function _c(e,t){if(!t.anchorNode)return!1;try{return kc(e,t.anchorNode)}catch(e){return!1}}function Oc(e){return 3==e.nodeType?Nc(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function Ec(e,t,a,n){return!!a&&($c(e,t,a,n,-1)||$c(e,t,a,n,1))}function Mc(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function $c(e,t,a,n,i){for(;;){if(e==a&&t==n)return!0;if(t==(i<0?0:Pc(e))){if("DIV"==e.nodeName)return!1;let a=e.parentNode;if(!a||1!=a.nodeType)return!1;t=Mc(e)+(i<0?0:1),e=a}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?Pc(e):0}}}function Pc(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Tc(e,t){let a=t?e.left:e.right;return{left:a,right:a,top:e.top,bottom:e.bottom}}function Ac(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}class Bc{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:a}=e;this.set(t,Math.min(e.anchorOffset,t?Pc(t):0),a,Math.min(e.focusOffset,a?Pc(a):0))}set(e,t,a,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=a,this.focusOffset=n}}let Rc,Ic=null;function Dc(e){if(e.setActive)return e.setActive();if(Ic)return e.focus(Ic);let t=[];for(let a=e;a&&(t.push(a,a.scrollTop,a.scrollLeft),a!=a.ownerDocument);a=a.parentNode);if(e.focus(null==Ic?{get preventScroll(){return Ic={preventScroll:!0},!0}}:void 0),!Ic){Ic=!1;for(let e=0;e<t.length;){let a=t[e++],n=t[e++],i=t[e++];a.scrollTop!=n&&(a.scrollTop=n),a.scrollLeft!=i&&(a.scrollLeft=i)}}}function Nc(e,t,a=t){let n=Rc||(Rc=document.createRange());return n.setEnd(e,a),n.setStart(e,t),n}function Lc(e,t,a){let n={key:t,code:t,keyCode:a,which:a,cancelable:!0},i=new KeyboardEvent("keydown",n);i.synthetic=!0,e.dispatchEvent(i);let s=new KeyboardEvent("keyup",n);return s.synthetic=!0,e.dispatchEvent(s),i.defaultPrevented||s.defaultPrevented}function Fc(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}class zc{constructor(e,t,a=!0){this.node=e,this.offset=t,this.precise=a}static before(e,t){return new zc(e.parentNode,Mc(e),t)}static after(e,t){return new zc(e.parentNode,Mc(e)+1,t)}}const Vc=[];class Uc{constructor(){this.parent=null,this.dom=null,this.dirty=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let a of this.children){if(a==e)return t;t+=a.length+a.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.dirty){let a,n=this.dom,i=null;for(let s of this.children){if(s.dirty){if(!s.dom&&(a=i?i.nextSibling:n.firstChild)){let e=Uc.get(a);(!e||!e.parent&&e.canReuseDOM(s))&&s.reuseDOM(a)}s.sync(e,t),s.dirty=0}if(a=i?i.nextSibling:n.firstChild,t&&!t.written&&t.node==n&&a!=s.dom&&(t.written=!0),s.dom.parentNode==n)for(;a&&a!=s.dom;)a=Hc(a);else n.insertBefore(s.dom,a);i=s.dom}for(a=i?i.nextSibling:n.firstChild,a&&t&&t.node==n&&(t.written=!0);a;)a=Hc(a)}else if(1&this.dirty)for(let a of this.children)a.dirty&&(a.sync(e,t),a.dirty=0)}reuseDOM(e){}localPosFromDOM(e,t){let a;if(e==this.dom)a=this.dom.childNodes[t];else{let n=0==Pc(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==n&&t.firstChild!=t.lastChild&&(n=e==t.firstChild?-1:1),e=t}a=n<0?e:e.nextSibling}if(a==this.dom.firstChild)return 0;for(;a&&!Uc.get(a);)a=a.nextSibling;if(!a)return this.length;for(let e=0,t=0;;e++){let n=this.children[e];if(n.dom==a)return t;t+=n.length+n.breakAfter}}domBoundsAround(e,t,a=0){let n=-1,i=-1,s=-1,r=-1;for(let o=0,l=a,c=a;o<this.children.length;o++){let a=this.children[o],u=l+a.length;if(l<e&&u>t)return a.domBoundsAround(e,t,l);if(u>=e&&-1==n&&(n=o,i=l),l>t&&a.dom.parentNode==this.dom){s=o,r=c;break}c=u,l=u+a.breakAfter}return{from:i,to:r<0?a+this.length:r,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s<this.children.length&&s>=0?this.children[s].dom:null}}markDirty(e=!1){this.dirty|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.dirty|=2),1&t.dirty)return;t.dirty|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.dirty&&this.markParentsDirty(!0))}setDOM(e){this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,a=Vc){this.markDirty();for(let a=e;a<t;a++){let e=this.children[a];e.parent==this&&e.destroy()}this.children.splice(e,t-e,...a);for(let e=0;e<a.length;e++)a[e].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new Gc(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,a,n,i,s){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor}getSide(){return 0}destroy(){this.parent=null}}function Hc(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}Uc.prototype.breakAfter=0;class Gc{constructor(e,t,a){this.children=e,this.pos=t,this.i=a,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let a=this.children[--this.i];this.pos-=a.length+a.breakAfter}}}function jc(e,t,a,n,i,s,r,o,l){let{children:c}=e,u=c.length?c[t]:null,f=s.length?s[s.length-1]:null,h=f?f.breakAfter:r;if(!(t==n&&u&&!r&&!h&&s.length<2&&u.merge(a,i,s.length?f:null,0==a,o,l))){if(n<c.length){let e=c[n];e&&i<e.length?(t==n&&(e=e.split(i),i=0),!h&&f&&e.merge(0,i,f,!0,0,l)?s[s.length-1]=e:(i&&e.merge(0,i,null,!1,0,l),s.push(e))):(null==e?void 0:e.breakAfter)&&(f?f.breakAfter=1:r=1),n++}for(u&&(u.breakAfter=r,a>0&&(!r&&s.length&&u.merge(a,u.length,s[0],!1,o,0)?u.breakAfter=s.shift().breakAfter:(a<u.length||u.children.length&&0==u.children[u.children.length-1].length)&&u.merge(a,u.length,null,!1,o,0),t++));t<n&&s.length;)if(c[n-1].become(s[s.length-1]))n--,s.pop(),l=s.length?0:o;else{if(!c[t].become(s[0]))break;t++,s.shift(),o=s.length?0:l}!s.length&&t&&n<c.length&&!c[t-1].breakAfter&&c[n].merge(0,0,c[t-1],!1,o,l)&&t--,(t<n||s.length)&&e.replaceChildren(t,n,s)}}function Wc(e,t,a,n,i,s){let r=e.childCursor(),{i:o,off:l}=r.findPos(a,1),{i:c,off:u}=r.findPos(t,-1),f=t-a;for(let e of n)f+=e.length;e.length+=f,jc(e,c,u,o,l,n,0,i,s)}let qc="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},Zc="undefined"!=typeof document?document:{documentElement:{style:{}}};const Qc=/Edge\/(\d+)/.exec(qc.userAgent),Xc=/MSIE \d/.test(qc.userAgent),Kc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(qc.userAgent),Yc=!!(Xc||Kc||Qc),Jc=!Yc&&/gecko\/(\d+)/i.test(qc.userAgent),eu=!Yc&&/Chrome\/(\d+)/.exec(qc.userAgent),tu="webkitFontSmoothing"in Zc.documentElement.style,au=!Yc&&/Apple Computer/.test(qc.vendor),nu=au&&(/Mobile\/\w+/.test(qc.userAgent)||qc.maxTouchPoints>2);var iu={mac:nu||/Mac/.test(qc.platform),windows:/Win/.test(qc.platform),linux:/Linux|X11/.test(qc.platform),ie:Yc,ie_version:Xc?Zc.documentMode||6:Kc?+Kc[1]:Qc?+Qc[1]:0,gecko:Jc,gecko_version:Jc?+(/Firefox\/(\d+)/.exec(qc.userAgent)||[0,0])[1]:0,chrome:!!eu,chrome_version:eu?+eu[1]:0,ios:nu,android:/Android\b/.test(qc.userAgent),webkit:tu,safari:au,webkit_version:tu?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=Zc.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class su extends Uc{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,a){return(!a||a instanceof su&&!(this.length-(t-e)+a.length>256))&&(this.text=this.text.slice(0,e)+(a?a.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new su(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new zc(this.dom,e)}domBoundsAround(e,t,a){return{from:a,to:a+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return ou(this.dom,e,t)}}class ru extends Uc{constructor(e,t=[],a=0){super(),this.mark=e,this.children=t,this.length=a;for(let e of t)e.setParent(this)}setAttrs(e){if(Fc(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.dirty|=6)}sync(e,t){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,a,n,i,s){return!(a&&(!(a instanceof ru&&a.mark.eq(this.mark))||e&&i<=0||t<this.length&&s<=0)||(Wc(this,e,t,a?a.children:[],i-1,s-1),this.markDirty(),0))}split(e){let t=[],a=0,n=-1,i=0;for(let s of this.children){let r=a+s.length;r>e&&t.push(a<e?s.split(e-a):s),n<0&&a>=e&&(n=i),a=r,i++}let s=this.length-e;return this.length=e,n>-1&&(this.children.length=n,this.markDirty()),new ru(this.mark,t,s)}domAtPos(e){return mu(this,e)}coordsAt(e,t){return bu(this,e,t)}}function ou(e,t,a){let n=e.nodeValue.length;t>n&&(t=n);let i=t,s=t,r=0;0==t&&a<0||t==n&&a>=0?iu.chrome||iu.gecko||(t?(i--,r=1):s<n&&(s++,r=-1)):a<0?i--:s<n&&s++;let o=Nc(e,i,s).getClientRects();if(!o.length)return null;let l=o[(r?r<0:a>=0)?0:o.length-1];return iu.safari&&!r&&0==l.width&&(l=Array.prototype.find.call(o,(e=>e.width))||l),r?Tc(l,r<0):l||null}class lu extends Uc{static create(e,t,a){return new(e.customView||lu)(e,t,a)}constructor(e,t,a){super(),this.widget=e,this.length=t,this.side=a,this.prevWidget=null}split(e){let t=lu.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,a,n,i,s){return!(a&&(!(a instanceof lu&&this.widget.compare(a.widget))||e>0&&i<=0||t<this.length&&s<=0)||(this.length=e+(a?a.length:0)+(this.length-t),0))}become(e){return e instanceof lu&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return _o.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,a=t&&t.state.doc,n=this.posAtStart;return a?a.slice(n,n+this.length):_o.empty}domAtPos(e){return(this.length?0==e:this.side>0)?zc.before(this.dom):zc.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let a=this.widget.coordsAt(this.dom,e,t);if(a)return a;let n=this.dom.getClientRects(),i=null;if(!n.length)return null;for(let t=e>0?n.length-1:0;i=n[t],!(e>0?0==t:t==n.length-1||i.top<i.bottom);t+=e>0?-1:1);return this.length?i:Tc(i,this.side>0)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class cu extends lu{domAtPos(e){let{topView:t,text:a}=this.widget;return t?uu(e,0,t,a,this.length-t.length,((e,t)=>e.domAtPos(t)),((e,t)=>new zc(e,Math.min(t,e.nodeValue.length)))):new zc(a,Math.min(e,a.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(e,t){let{topView:a,text:n}=this.widget;return a?hu(e,t,a,n,this.length-a.length):Math.min(t,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(e,t){let{topView:a,text:n}=this.widget;return a?uu(e,t,a,n,this.length-a.length,((e,t,a)=>e.coordsAt(t,a)),((e,t,a)=>ou(e,t,a))):ou(n,e,t)}destroy(){var e;super.destroy(),null===(e=this.widget.topView)||void 0===e||e.destroy()}get isEditable(){return!0}canReuseDOM(){return!0}}function uu(e,t,a,n,i,s,r){if(a instanceof ru){for(let o=a.dom.firstChild;o;o=o.nextSibling){let a=Uc.get(o);if(a){let l=kc(o,n),c=a.length+(l?i:0);if(e<c||e==c&&a.getSide()<=0)return l?uu(e,t,a,n,i,s,r):s(a,e,t);e-=c}else{let a=fu(e,t,o,r);if("number"!=typeof a)return a;e=a}}return s(a,a.length,-1)}return a.dom==n?r(n,e,t):s(a,e,t)}function fu(e,t,a,n){if(3==a.nodeType){let i=a.nodeValue.length;if(e<=i)return n(a,e,t);e-=i}else if(1==a.nodeType&&"false"!=a.contentEditable)for(let i=a.firstChild;i;i=i.nextSibling){let a=fu(e,t,i,n);if("number"!=typeof a)return a;e=a}return e}function hu(e,t,a,n,i){if(a instanceof ru){let s=0;for(let r=a.dom.firstChild;r;r=r.nextSibling){let a=Uc.get(r);if(a){let o=kc(r,n);if(kc(r,e))return s+(o?hu(e,t,a,n,i):a.localPosFromDOM(e,t));s+=a.length+(o?i:0)}else{let a=du(e,t,r);if(null!=a.result)return s+a.result;s+=a.size}}}else if(a.dom==n)return Math.min(t,n.nodeValue.length);return a.localPosFromDOM(e,t)}function du(e,t,a){if(3==a.nodeType)return e==a?{result:t}:{size:a.nodeValue.length};if(1!=a.nodeType||"false"==a.contentEditable)return a.contains(e)?{result:0}:{size:0};{let n=0;for(let i=a.firstChild,s=0;;i=i.nextSibling,s++){if(e==a&&s==t)return{result:n};if(!i)return{size:n};let r=du(e,t,i);if(null!=r.result)return{result:t+r.result};n+=r.size}}}class pu extends Uc{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof pu&&e.side==this.side}split(){return new pu(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?zc.before(this.dom):zc.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return _o.empty}get isHidden(){return!0}}function mu(e,t){let a=e.dom,{children:n}=e,i=0;for(let e=0;i<n.length;i++){let s=n[i],r=e+s.length;if(!(r==e&&s.getSide()<=0)){if(t>e&&t<r&&s.dom.parentNode==a)return s.domAtPos(t-e);if(t<=e)break;e=r}}for(let e=i;e>0;e--){let t=n[e-1];if(t.dom.parentNode==a)return t.domAtPos(t.length)}for(let e=i;e<n.length;e++){let t=n[e];if(t.dom.parentNode==a)return t.domAtPos(0)}return new zc(a,0)}function gu(e,t,a){let n,{children:i}=e;a>0&&t instanceof ru&&i.length&&(n=i[i.length-1])instanceof ru&&n.mark.eq(t.mark)?gu(n,t.children[0],a-1):(i.push(t),t.setParent(e)),e.length+=t.length}function bu(e,t,a){let n=null,i=-1,s=null,r=-1;!function e(t,o){for(let l=0,c=0;l<t.children.length&&c<=o;l++){let u=t.children[l],f=c+u.length;f>=o&&(u.children.length?e(u,o-c):(!s||s.isHidden&&a>0)&&(f>o||c==f&&u.getSide()>0)?(s=u,r=o-c):(c<o||c==f&&u.getSide()<0&&!u.isHidden)&&(n=u,i=o-c)),c=f}}(e,t);let o=(a<0?n:s)||n||s;return o?o.coordsAt(Math.max(0,o==n?i:r),a):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let a=Oc(t);return a[a.length-1]||null}(e)}function yu(e,t){for(let a in e)"class"==a&&t.class?t.class+=" "+e.class:"style"==a&&t.style?t.style+=";"+e.style:t[a]=e[a];return t}function vu(e,t){if(e==t)return!0;if(!e||!t)return!1;let a=Object.keys(e),n=Object.keys(t);if(a.length!=n.length)return!1;for(let i of a)if(-1==n.indexOf(i)||e[i]!==t[i])return!1;return!0}function xu(e,t,a){let n=null;if(t)for(let i in t)a&&i in a||e.removeAttribute(n=i);if(a)for(let i in a)t&&t[i]==a[i]||e.setAttribute(n=i,a[i]);return!!n}su.prototype.children=lu.prototype.children=pu.prototype.children=Vc;class Cu{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}ignoreEvent(e){return!0}coordsAt(e,t,a){return null}get customView(){return null}get isHidden(){return!1}destroy(e){}}var Su=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(Su||(Su={}));class wu extends jl{constructor(e,t,a,n){super(),this.startSide=e,this.endSide=t,this.widget=a,this.spec=n}get heightRelevant(){return!1}static mark(e){return new ku(e)}static widget(e){let t=e.side||0,a=!!e.block;return t+=a?t>0?3e8:-4e8:t>0?1e8:-1e8,new Ou(e,t,t,a,e.widget||null,!1)}static replace(e){let t,a,n=!!e.block;if(e.isBlockGap)t=-5e8,a=4e8;else{let{start:i,end:s}=Eu(e,n);t=(i?n?-3e8:-1:5e8)-1,a=1+(s?n?2e8:1:-6e8)}return new Ou(e,t,a,n,e.widget||null,!0)}static line(e){return new _u(e)}static set(e,t=!1){return Ql.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}wu.none=Ql.empty;class ku extends wu{constructor(e){let{start:t,end:a}=Eu(e);super(t?-1:5e8,a?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){return this==e||e instanceof ku&&this.tagName==e.tagName&&this.class==e.class&&vu(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}ku.prototype.point=!1;class _u extends wu{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof _u&&this.spec.class==e.spec.class&&vu(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}_u.prototype.mapMode=qo.TrackBefore,_u.prototype.point=!0;class Ou extends wu{constructor(e,t,a,n,i,s){super(t,a,i,e),this.block=n,this.isReplace=s,this.mapMode=n?t<=0?qo.TrackBefore:qo.TrackAfter:qo.TrackDel}get type(){return this.startSide<this.endSide?Su.WidgetRange:this.startSide<=0?Su.WidgetBefore:Su.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&this.widget.estimatedHeight>=5}eq(e){return e instanceof Ou&&(t=this.widget,a=e.widget,t==a||!!(t&&a&&t.compare(a)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,a}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function Eu(e,t=!1){let{inclusiveStart:a,inclusiveEnd:n}=e;return null==a&&(a=e.inclusive),null==n&&(n=e.inclusive),{start:null!=a?a:t,end:null!=n?n:t}}function Mu(e,t,a,n=0){let i=a.length-1;i>=0&&a[i]+n>=e?a[i]=Math.max(a[i],t):a.push(e,t)}Ou.prototype.point=!0;class $u extends Uc{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,a,n,i,s){if(a){if(!(a instanceof $u))return!1;this.dom||a.transferDOM(this)}return n&&this.setDeco(a?a.attrs:null),Wc(this,e,t,a?a.children:[],i,s),!0}split(e){let t=new $u;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:a,off:n}=this.childPos(e);n&&(t.append(this.children[a].split(n),0),this.children[a].merge(n,this.children[a].length,null,!1,0,0),a++);for(let e=a;e<this.children.length;e++)t.append(this.children[e],0);for(;a>0&&0==this.children[a-1].length;)this.children[--a].destroy();return this.children.length=a,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){vu(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){gu(this,e,t)}addLineDeco(e){let t=e.spec.attributes,a=e.spec.class;t&&(this.attrs=yu(t,this.attrs||{})),a&&(this.attrs=yu({class:a},this.attrs||{}))}domAtPos(e){return mu(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.dirty|=6)}sync(e,t){var a;this.dom?4&this.dirty&&(Fc(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(xu(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let n=this.dom.lastChild;for(;n&&Uc.get(n)instanceof ru;)n=n.lastChild;if(!(n&&this.length&&("BR"==n.nodeName||0!=(null===(a=Uc.get(n))||void 0===a?void 0:a.isEditable)||iu.ios&&this.children.some((e=>e instanceof su))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let a of this.children){if(!(a instanceof su)||/[^ -~]/.test(a.text))return null;let n=Oc(a.dom);if(1!=n.length)return null;t+=n[0].width,e=n[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let a=bu(this,e,t);if(!this.children.length&&a&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=a.bottom-a.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight<t){let n=(t-e.textHeight)/2;return{top:a.top+n,bottom:a.bottom-n,left:a.left,right:a.left}}}return a}become(e){return!1}get type(){return Su.Text}static find(e,t){for(let a=0,n=0;a<e.children.length;a++){let i=e.children[a],s=n+i.length;if(s>=t){if(i instanceof $u)return i;if(s>t)break}n=s+i.breakAfter}return null}}class Pu extends Uc{constructor(e,t,a){super(),this.widget=e,this.length=t,this.type=a,this.breakAfter=0,this.prevWidget=null}merge(e,t,a,n,i,s){return!(a&&(!(a instanceof Pu&&this.widget.compare(a.widget))||e>0&&i<=0||t<this.length&&s<=0)||(this.length=e+(a?a.length:0)+(this.length-t),0))}domAtPos(e){return 0==e?zc.before(this.dom):zc.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let a=new Pu(this.widget,t,this.type);return a.breakAfter=this.breakAfter,a}get children(){return Vc}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):_o.empty}domBoundsAround(){return null}become(e){return e instanceof Pu&&e.widget.constructor==this.widget.constructor&&(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.type=e.type,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){return this.widget.coordsAt(this.dom,e,t)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Tu{constructor(e,t,a,n){this.doc=e,this.pos=t,this.end=a,this.disallowBlockEffectsFor=n,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Pu&&e.type==Su.WidgetBefore)}getLine(){return this.curLine||(this.content.push(this.curLine=new $u),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Au(new pu(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}buildText(e,t,a){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:a,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let n=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-a)),this.getLine().append(Au(new su(this.text.slice(this.textOff,this.textOff+n)),t),a),this.atCursorPos=!0,this.textOff+=n,e-=n,a=0}}span(e,t,a,n){this.buildText(t-e,a,n),this.pos=t,this.openStart<0&&(this.openStart=n)}point(e,t,a,n,i,s){if(this.disallowBlockEffectsFor[s]&&a instanceof Ou){if(a.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let r=t-e;if(a instanceof Ou)if(a.block){let{type:e}=a;e!=Su.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new Pu(a.widget||new Bu("div"),r,e))}else{let s=lu.create(a.widget||new Bu("span"),r,r?0:a.startSide),o=this.atCursorPos&&!s.isEditable&&i<=n.length&&(e<t||a.startSide>0),l=!s.isEditable&&(e<t||i>n.length||a.startSide<=0),c=this.getLine();2!=this.pendingBuffer||o||s.isEditable||(this.pendingBuffer=0),this.flushBuffer(n),o&&(c.append(Au(new pu(1),n),i),i=n.length+Math.max(0,i-n.length)),c.append(Au(s,n),i),this.atCursorPos=l,this.pendingBuffer=l?e<t||i>n.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=n.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(a);r&&(this.textOff+r<=this.text.length?this.textOff+=r:(this.skip+=r-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,a,n,i){let s=new Tu(e,t,a,i);return s.openEnd=Ql.spans(n,t,a,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function Au(e,t){for(let a of t)e=new ru(a,[e],e.length);return e}class Bu extends Cu{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const Ru=rl.define(),Iu=rl.define(),Du=rl.define(),Nu=rl.define(),Lu=rl.define(),Fu=rl.define(),zu=rl.define(),Vu=rl.define({combine:e=>e.some((e=>e))}),Uu=rl.define({combine:e=>e.some((e=>e))});class Hu{constructor(e,t="nearest",a="nearest",n=5,i=5){this.range=e,this.y=t,this.x=a,this.yMargin=n,this.xMargin=i}map(e){return e.empty?this:new Hu(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const Gu=Al.define({map:(e,t)=>e.map(t)});function ju(e,t,a){let n=e.facet(Nu);n.length?n[0](t):window.onerror?window.onerror(String(t),a,void 0,void 0,t):a?console.error(a+":",t):console.error(t)}const Wu=rl.define({combine:e=>!e.length||e[0]});let qu=0;const Zu=rl.define();class Qu{constructor(e,t,a,n){this.id=e,this.create=t,this.domEventHandlers=a,this.extension=n(this)}static define(e,t){const{eventHandlers:a,provide:n,decorations:i}=t||{};return new Qu(qu++,e,a,(e=>{let t=[Zu.of(e)];return i&&t.push(Ju.of((t=>{let a=t.plugin(e);return a?i(a):wu.none}))),n&&t.push(n(e)),t}))}static fromClass(e,t){return Qu.define((t=>new e(t)),t)}}class Xu{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(ju(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){ju(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){ju(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Ku=rl.define(),Yu=rl.define(),Ju=rl.define(),ef=rl.define(),tf=rl.define();function af(e){let t=0,a=0,n=0,i=0;for(let s of e.state.facet(tf)){let r=s(e);r&&(null!=r.left&&(t=Math.max(t,r.left)),null!=r.right&&(a=Math.max(a,r.right)),null!=r.top&&(n=Math.max(n,r.top)),null!=r.bottom&&(i=Math.max(i,r.bottom)))}return{left:t,right:a,top:n,bottom:i}}const nf=rl.define();class sf{constructor(e,t,a,n){this.fromA=e,this.toA=t,this.fromB=a,this.toB=n}join(e){return new sf(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,a=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>a.toA)){if(n.toA<a.fromA)break;a=a.join(n),e.splice(t-1,1)}}return e.splice(t,0,a),e}static extendWithRanges(e,t){if(0==t.length)return e;let a=[];for(let n=0,i=0,s=0,r=0;;n++){let o=n==e.length?null:e[n],l=s-r,c=o?o.fromB:1e9;for(;i<t.length&&t[i]<c;){let e=t[i],n=t[i+1],s=Math.max(r,e),o=Math.min(c,n);if(s<=o&&new sf(s+l,o+l,s,o).addToSet(a),n>c)break;i+=2}if(!o)return a;new sf(o.fromA,o.toA,o.fromB,o.toB).addToSet(a),s=o.toA,r=o.toB}}}class rf{constructor(e,t,a){this.view=e,this.state=t,this.transactions=a,this.flags=0,this.startState=e.state,this.changes=Qo.empty(this.startState.doc.length);for(let e of a)this.changes=this.changes.compose(e.changes);let n=[];this.changes.iterChangedRanges(((e,t,a,i)=>n.push(new sf(e,t,a,i)))),this.changedRanges=n}static create(e,t,a){return new rf(e,t,a)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var of=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(of||(of={}));const lf=of.LTR,cf=of.RTL;function uf(e){let t=[];for(let a=0;a<e.length;a++)t.push(1<<+e[a]);return t}const ff=uf("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),hf=uf("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),df=Object.create(null),pf=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),a=e.charCodeAt(1);df[t]=a,df[a]=-t}const mf=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class gf{get dir(){return this.level%2?cf:lf}constructor(e,t,a){this.from=e,this.to=t,this.level=a}side(e,t){return this.dir==t==e?this.to:this.from}static find(e,t,a,n){let i=-1;for(let s=0;s<e.length;s++){let r=e[s];if(r.from<=t&&r.to>=t){if(r.level==a)return s;(i<0||(0!=n?n<0?r.from<t:r.to>t:e[i].level>r.level))&&(i=s)}}if(i<0)throw new RangeError("Index out of range");return i}}const bf=[];function yf(e){return[new gf(0,e,0)]}let vf="";function xf(e,t,a,n,i){var s;let r=n.head-e.from,o=-1;if(0==r){if(!i||!e.length)return null;t[0].level!=a&&(r=t[0].side(!1,a),o=0)}else if(r==e.length){if(i)return null;let e=t[t.length-1];e.level!=a&&(r=e.side(!0,a),o=t.length-1)}o<0&&(o=gf.find(t,r,null!==(s=n.bidiLevel)&&void 0!==s?s:-1,n.assoc));let l=t[o];r==l.side(i,a)&&(l=t[o+=i?1:-1],r=l.side(!i,a));let c=i==(l.dir==a),u=Lo(e.text,r,c);if(vf=e.text.slice(Math.min(r,u),Math.max(r,u)),u!=l.side(i,a))return nl.cursor(u+e.from,c?-1:1,l.level);let f=o==(i?t.length-1:0)?null:t[o+(i?1:-1)];return f||l.level==a?f&&f.level<l.level?nl.cursor(f.side(!i,a)+e.from,i?1:-1,f.level):nl.cursor(u+e.from,i?-1:1,l.level):nl.cursor(i?e.to:e.from,i?-1:1,a)}const Cf="";class Sf{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(Hl.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Cf}readRange(e,t){if(!e)return this;let a=e.parentNode;for(let n=e;;){this.findPointBefore(a,n);let e=this.text.length;this.readNode(n);let i=n.nextSibling;if(i==t)break;let s=Uc.get(n),r=Uc.get(i);(s&&r?s.breakAfter:(s?s.breakAfter:wf(n))||wf(i)&&("BR"!=n.nodeName||n.cmIgnore)&&this.text.length>e)&&this.lineBreak(),n=i}return this.findPointBefore(a,t),this}readTextNode(e){let t=e.nodeValue;for(let a of this.points)a.node==e&&(a.pos=this.text.length+Math.min(a.offset,t.length));for(let a=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let i,s=-1,r=1;if(this.lineSeparator?(s=t.indexOf(this.lineSeparator,a),r=this.lineSeparator.length):(i=n.exec(t))&&(s=i.index,r=i[0].length),this.append(t.slice(a,s<0?t.length:s)),s<0)break;if(this.lineBreak(),r>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=r-1);a=s+r}}readNode(e){if(e.cmIgnore)return;let t=Uc.get(e),a=t&&t.overrideDOMText;if(null!=a){this.findPointInside(e,a.length);for(let e=a.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let a of this.points)a.node==e&&e.childNodes[a.offset]==t&&(a.pos=this.text.length)}findPointInside(e,t){for(let a of this.points)(3==e.nodeType?a.node==e:e.contains(a.node))&&(a.pos=this.text.length+Math.min(t,a.offset))}}function wf(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class kf{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class _f extends Uc{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.compositionDeco=wu.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new $u],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new sf(0,0,0,e.state.doc.length)],0)}update(e){let t=e.changedRanges;this.minWidth>0&&t.length&&(t.every((({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=wu.none:(e.transactions.length||this.dirty)&&(this.compositionDeco=function(e,t){let a=Ef(e);if(!a)return wu.none;let{from:n,to:i,node:s,text:r}=a,o=t.mapPos(n,1),l=Math.max(o,t.mapPos(i,-1)),{state:c}=e,u=3==s.nodeType?s.nodeValue:new Sf([],c).readRange(s.firstChild,null).text;if(u.indexOf(Cf)>-1)return wu.none;if(l-o<u.length)if(c.doc.sliceString(o,Math.min(c.doc.length,o+u.length))==u)l=o+u.length;else{if(c.doc.sliceString(Math.max(0,l-u.length),l)!=u)return wu.none;o=l-u.length}else if(c.doc.sliceString(o,l)!=u)return wu.none;let f=Uc.get(s);return f instanceof cu?f=f.widget.topView:f&&(f.parent=null),wu.set(wu.replace({widget:new Mf(s,r,f),inclusive:!0}).range(o,l))}(this.view,e.changes)),(iu.ie||iu.chrome)&&!this.compositionDeco.size&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=function(e,t,a){let n=new Pf;return Ql.compare(e,t,a,n),n.changes}(this.decorations,this.updateDeco(),e.changes);return t=sf.extendWithRanges(t,a),(0!=this.dirty||0!=t.length)&&(this.updateInner(t,e.startState.doc.length),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t);let{observer:a}=this.view;a.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=iu.chrome||iu.ios?{node:a.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.dirty=0,e&&(e.written||a.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""}));let n=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.children)e instanceof Pu&&e.widget instanceof Of&&n.push(e.dom);a.updateGaps(n)}updateChildren(e,t){let a=this.childCursor(t);for(let t=e.length-1;;t--){let n=t>=0?e[t]:null;if(!n)break;let{fromA:i,toA:s,fromB:r,toB:o}=n,{content:l,breakAtStart:c,openStart:u,openEnd:f}=Tu.build(this.view.state.doc,r,o,this.decorations,this.dynamicDecorationMap),{i:h,off:d}=a.findPos(s,1),{i:p,off:m}=a.findPos(i,-1);jc(this,p,m,h,d,l,c,u,f)}}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let a=this.view.root.activeElement,n=a==this.dom,i=!n&&_c(this.dom,this.view.observer.selectionRange)&&!(a&&this.dom.contains(a));if(!(n||t||i))return;let s=this.forceSelection;this.forceSelection=!1;let r=this.view.state.selection.main,o=this.domAtPos(r.anchor),l=r.empty?o:this.domAtPos(r.head);if(iu.gecko&&r.empty&&!this.compositionDeco.size&&1==(c=o).node.nodeType&&c.node.firstChild&&(0==c.offset||"false"==c.node.childNodes[c.offset-1].contentEditable)&&(c.offset==c.node.childNodes.length||"false"==c.node.childNodes[c.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore((()=>o.node.insertBefore(e,o.node.childNodes[o.offset]||null))),o=l=new zc(e,0),s=!0}var c;let u=this.view.observer.selectionRange;!s&&u.focusNode&&Ec(o.node,o.offset,u.anchorNode,u.anchorOffset)&&Ec(l.node,l.offset,u.focusNode,u.focusOffset)||(this.view.observer.ignore((()=>{iu.android&&iu.chrome&&this.dom.contains(u.focusNode)&&function(e,t){for(let a=e;a&&a!=t;a=a.assignedSlot||a.parentNode)if(1==a.nodeType&&"false"==a.contentEditable)return!0;return!1}(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=wc(this.view.root);if(e)if(r.empty){if(iu.gecko){let e=function(e,t){return 1!=e.nodeType?0:(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(t<e.childNodes.length&&"false"==e.childNodes[t].contentEditable?2:0)}(o.node,o.offset);if(e&&3!=e){let t=$f(o.node,o.offset,1==e?1:-1);t&&(o=new zc(t,1==e?0:t.nodeValue.length))}}e.collapse(o.node,o.offset),null!=r.bidiLevel&&null!=u.cursorBidiLevel&&(u.cursorBidiLevel=r.bidiLevel)}else if(e.extend){e.collapse(o.node,o.offset);try{e.extend(l.node,l.offset)}catch(e){}}else{let t=document.createRange();r.anchor>r.head&&([o,l]=[l,o]),t.setEnd(l.node,l.offset),t.setStart(o.node,o.offset),e.removeAllRanges(),e.addRange(t)}i&&this.view.root.activeElement==this.dom&&(this.dom.blur(),a&&a.focus())})),this.view.observer.setSelectionRange(o,l)),this.impreciseAnchor=o.precise?null:new zc(u.anchorNode,u.anchorOffset),this.impreciseHead=l.precise?null:new zc(u.focusNode,u.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let{view:e}=this,t=e.state.selection.main,a=wc(e.root),{anchorNode:n,anchorOffset:i}=e.observer.selectionRange;if(!(a&&t.empty&&t.assoc&&a.modify))return;let s=$u.find(this,t.head);if(!s)return;let r=s.posAtStart;if(t.head==r||t.head==r+s.length)return;let o=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!o||!l||o.bottom>l.top)return;let c=this.domAtPos(t.head+t.assoc);a.collapse(c.node,c.offset),a.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&a.collapse(n,i)}nearest(e){for(let t=e;t;){let e=Uc.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let a=this.nearest(e);if(!a)throw new RangeError("Trying to find position for a DOM position outside of the document");return a.localPosFromDOM(e,t)+a.posAtStart}domAtPos(e){let{i:t,off:a}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(a<e.length||e instanceof $u)break;t++,a=0}return this.children[t].domAtPos(a)}coordsAt(e,t){for(let a=this.length,n=this.children.length-1;;n--){let i=this.children[n],s=a-i.breakAfter-i.length;if(e>s||e==s&&i.type!=Su.WidgetBefore&&i.type!=Su.WidgetAfter&&(!n||2==t||this.children[n-1].breakAfter||this.children[n-1].type==Su.WidgetBefore&&t>-2))return i.coordsAt(e-s,t);a=s}}measureVisibleLineHeights(e){let t=[],{from:a,to:n}=e,i=this.view.contentDOM.clientWidth,s=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,r=-1,o=this.view.textDirection==of.LTR;for(let e=0,l=0;l<this.children.length;l++){let c=this.children[l],u=e+c.length;if(u>n)break;if(e>=a){let a=c.dom.getBoundingClientRect();if(t.push(a.height),s){let t=c.dom.lastChild,n=t?Oc(t):[];if(n.length){let t=n[n.length-1],s=o?t.right-a.left:a.right-t.left;s>r&&(r=s,this.minWidth=i,this.minWidthFrom=e,this.minWidthTo=u)}}}e=u+c.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?of.RTL:of.LTR}measureTextSize(){for(let e of this.children)if(e instanceof $u){let t=e.measureTextSize();if(t)return t}let e,t,a,n=document.createElement("div");return n.className="cm-line",n.style.width="99999px",n.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(n);let i=Oc(n.firstChild)[0];e=n.getBoundingClientRect().height,t=i?i.width/27:7,a=i?i.height:e,n.remove()})),{lineHeight:e,charWidth:t,textHeight:a}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new Gc(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let a=0,n=0;;n++){let i=n==t.viewports.length?null:t.viewports[n],s=i?i.from-1:this.length;if(s>a){let n=t.lineBlockAt(s).bottom-t.lineBlockAt(a).top;e.push(wu.replace({widget:new Of(n),block:!0,inclusive:!0,isBlockGap:!0}).range(a,s))}if(!i)break;a=i.to+1}return wu.set(e)}updateDeco(){let e=this.view.state.facet(Ju).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e));for(let t=e.length;t<e.length+3;t++)this.dynamicDecorationMap[t]=!1;return this.decorations=[...e,this.compositionDeco,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){let t,{range:a}=e,n=this.coordsAt(a.head,a.empty?a.assoc:a.head>a.anchor?-1:1);if(!n)return;!a.empty&&(t=this.coordsAt(a.anchor,a.anchor>a.head?-1:1))&&(n={left:Math.min(n.left,t.left),top:Math.min(n.top,t.top),right:Math.max(n.right,t.right),bottom:Math.max(n.bottom,t.bottom)});let i=af(this.view),s={left:n.left-i.left,top:n.top-i.top,right:n.right+i.right,bottom:n.bottom+i.bottom};!function(e,t,a,n,i,s,r,o){let l=e.ownerDocument,c=l.defaultView||window;for(let u=e;u;)if(1==u.nodeType){let e,f=u==l.body;if(f)e=Ac(c);else{if(u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect();e={left:t.left,right:t.left+u.clientWidth,top:t.top,bottom:t.top+u.clientHeight}}let h=0,d=0;if("nearest"==i)t.top<e.top?(d=-(e.top-t.top+r),a>0&&t.bottom>e.bottom+d&&(d=t.bottom-e.bottom+d+r)):t.bottom>e.bottom&&(d=t.bottom-e.bottom+r,a<0&&t.top-d<e.top&&(d=-(e.top+d-t.top+r)));else{let n=t.bottom-t.top,s=e.bottom-e.top;d=("center"==i&&n<=s?t.top+n/2-s/2:"start"==i||"center"==i&&a<0?t.top-r:t.bottom-s+r)-e.top}if("nearest"==n?t.left<e.left?(h=-(e.left-t.left+s),a>0&&t.right>e.right+h&&(h=t.right-e.right+h+s)):t.right>e.right&&(h=t.right-e.right+s,a<0&&t.left<e.left+h&&(h=-(e.left+h-t.left+s))):h=("center"==n?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==n==o?t.left-s:t.right-(e.right-e.left)+s)-e.left,h||d)if(f)c.scrollBy(h,d);else{let e=0,a=0;if(d){let e=u.scrollTop;u.scrollTop+=d,a=u.scrollTop-e}if(h){let t=u.scrollLeft;u.scrollLeft+=h,e=u.scrollLeft-t}t={left:t.left-e,top:t.top-a,right:t.right-e,bottom:t.bottom-a},e&&Math.abs(e-h)<1&&(n="nearest"),a&&Math.abs(a-d)<1&&(i="nearest")}if(f)break;u=u.assignedSlot||u.parentNode}else{if(11!=u.nodeType)break;u=u.host}}(this.view.scrollDOM,s,a.head<a.anchor?-1:1,e.x,e.y,e.xMargin,e.yMargin,this.view.textDirection==of.LTR)}}class Of extends Cu{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get estimatedHeight(){return this.height}}function Ef(e){let t=e.observer.selectionRange,a=t.focusNode&&$f(t.focusNode,t.focusOffset,0);if(!a)return null;let n=e.docView.nearest(a);if(!n)return null;if(n instanceof $u){let e=a;for(;e.parentNode!=n.dom;)e=e.parentNode;let t=e.previousSibling;for(;t&&!Uc.get(t);)t=t.previousSibling;let i=t?Uc.get(t).posAtEnd:n.posAtStart;return{from:i,to:i,node:e,text:a}}{for(;;){let{parent:e}=n;if(!e)return null;if(e instanceof $u)break;n=e}let e=n.posAtStart;return{from:e,to:e+n.length,node:n.dom,text:a}}}class Mf extends Cu{constructor(e,t,a){super(),this.top=e,this.text=t,this.topView=a}eq(e){return this.top==e.top&&this.text==e.text}toDOM(){return this.top}ignoreEvent(){return!1}get customView(){return cu}}function $f(e,t,a){if(a<=0)for(let a=e,n=t;;){if(3==a.nodeType)return a;if(!(1==a.nodeType&&n>0))break;a=a.childNodes[n-1],n=Pc(a)}if(a>=0)for(let n=e,i=t;;){if(3==n.nodeType)return n;if(!(1==n.nodeType&&i<n.childNodes.length&&a>=0))break;n=n.childNodes[i],i=0}return null}class Pf{constructor(){this.changes=[]}compareRange(e,t){Mu(e,t,this.changes)}comparePoint(e,t){Mu(e,t,this.changes)}}function Tf(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function Af(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function Bf(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function Rf(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function If(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function Df(e,t,a){let n,i,s,r,o,l,c,u,f=!1;for(let h=e.firstChild;h;h=h.nextSibling){let e=Oc(h);for(let d=0;d<e.length;d++){let p=e[d];i&&Bf(i,p)&&(p=Rf(If(p,i.bottom),i.top));let m=Tf(t,p),g=Af(a,p);if(0==m&&0==g)return 3==h.nodeType?Nf(h,t,a):Df(h,t,a);if(!n||r>g||r==g&&s>m){n=h,i=p,s=m,r=g;let o=g?a<p.top?-1:1:m?t<p.left?-1:1:0;f=!o||(o>0?d<e.length-1:d>0)}0==m?a>p.bottom&&(!c||c.bottom<p.bottom)?(o=h,c=p):a<p.top&&(!u||u.top>p.top)&&(l=h,u=p):c&&Bf(c,p)?c=If(c,p.bottom):u&&Bf(u,p)&&(u=Rf(u,p.top))}}if(c&&c.bottom>=a?(n=o,i=c):u&&u.top<=a&&(n=l,i=u),!n)return{node:e,offset:0};let h=Math.max(i.left,Math.min(i.right,t));return 3==n.nodeType?Nf(n,h,a):f&&"false"!=n.contentEditable?Df(n,h,a):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,n)+(t>=(i.left+i.right)/2?1:0)}}function Nf(e,t,a){let n=e.nodeValue.length,i=-1,s=1e9,r=0;for(let o=0;o<n;o++){let n=Nc(e,o,o+1).getClientRects();for(let l=0;l<n.length;l++){let c=n[l];if(c.top==c.bottom)continue;r||(r=t-c.left);let u=(c.top>a?c.top-a:a-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&u<s){let a=t>=(c.left+c.right)/2,n=a;if((iu.chrome||iu.gecko)&&Nc(e,o).getBoundingClientRect().left==c.right&&(n=!a),u<=0)return{node:e,offset:o+(n?1:0)};i=o+(n?1:0),s=u}}}return{node:e,offset:i>-1?i:r>0?e.nodeValue.length:0}}function Lf(e,t,a,n=-1){var i,s;let r,o=e.contentDOM.getBoundingClientRect(),l=o.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,{x:u,y:f}=t,h=f-l;if(h<0)return 0;if(h>c)return e.state.doc.length;for(let t=e.defaultLineHeight/2,i=!1;r=e.elementAtHeight(h),r.type!=Su.Text;)for(;h=n>0?r.bottom+t:r.top-t,!(h>=0&&h<=c);){if(i)return a?null:0;i=!0,n=-n}f=l+h;let d=r.from;if(d<e.viewport.from)return 0==e.viewport.from?0:a?null:Ff(e,o,r,u,f);if(d>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:a?null:Ff(e,o,r,u,f);let p=e.dom.ownerDocument,m=e.root.elementFromPoint?e.root:p,g=m.elementFromPoint(u,f);g&&!e.contentDOM.contains(g)&&(g=null),g||(u=Math.max(o.left+1,Math.min(o.right-1,u)),g=m.elementFromPoint(u,f),g&&!e.contentDOM.contains(g)&&(g=null));let b,y=-1;if(g&&0!=(null===(i=e.docView.nearest(g))||void 0===i?void 0:i.isEditable))if(p.caretPositionFromPoint){let e=p.caretPositionFromPoint(u,f);e&&({offsetNode:b,offset:y}=e)}else if(p.caretRangeFromPoint){let t=p.caretRangeFromPoint(u,f);t&&(({startContainer:b,startOffset:y}=t),(!e.contentDOM.contains(b)||iu.safari&&function(e,t,a){let n;if(3!=e.nodeType||t!=(n=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return Nc(e,n-1,n).getBoundingClientRect().left>a}(b,y,u)||iu.chrome&&function(e,t,a){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}return a-(1==e.nodeType?e.getBoundingClientRect():Nc(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect()).left>5}(b,y,u))&&(b=void 0))}if(!b||!e.docView.dom.contains(b)){let t=$u.find(e.docView,d);if(!t)return h>r.top+r.height/2?r.to:r.from;({node:b,offset:y}=Df(t.dom,u,f))}let v=e.docView.nearest(b);if(!v)return null;if(v.isWidget&&1==(null===(s=v.dom)||void 0===s?void 0:s.nodeType)){let e=v.dom.getBoundingClientRect();return t.y<e.top||t.y<=e.bottom&&t.x<=(e.left+e.right)/2?v.posAtStart:v.posAtEnd}return v.localPosFromDOM(b,y)+v.posAtStart}function Ff(e,t,a,n,i){let s=Math.round((n-t.left)*e.defaultCharacterWidth);e.lineWrapping&&a.height>1.5*e.defaultLineHeight&&(s+=Math.floor((i-a.top)/e.defaultLineHeight)*e.viewState.heightOracle.lineLength);let r=e.state.sliceDoc(a.from,a.to);return a.from+lc(r,s,e.state.tabSize)}function zf(e,t,a,n){let i=e.state.doc.lineAt(t.head),s=e.bidiSpans(i),r=e.textDirectionAt(i.from);for(let o=t,l=null;;){let t=xf(i,s,r,o,a),c=vf;if(!t){if(i.number==(a?e.state.doc.lines:1))return o;c="\n",i=e.state.doc.line(i.number+(a?1:-1)),s=e.bidiSpans(i),t=nl.cursor(a?i.from:i.to)}if(l){if(!l(c))return o}else{if(!n)return t;l=n(c)}o=t}}function Vf(e,t,a){for(;;){let n=0;for(let i of e)i.between(t-1,t+1,((e,i,s)=>{if(t>e&&t<i){let s=n||a||(t-e<i-t?-1:1);t=s<0?e:i,n=s}}));if(!n)return t}}function Uf(e,t,a){let n=Vf(e.state.facet(ef).map((t=>t(e))),a.from,t.head>a.from?-1:1);return n==a.from?a:nl.cursor(n,n<a.from?1:-1)}class Hf{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null;let t=(t,a)=>{this.ignoreDuringComposition(a)||"keydown"==a.type&&this.keydown(e,a)||(this.mustFlushObserver(a)&&e.observer.forceFlush(),this.runCustomHandlers(a.type,e,a)?a.preventDefault():t(e,a))};for(let a in Xf){let n=Xf[a];e.contentDOM.addEventListener(a,(a=>{Qf(e,a)&&t(n,a)}),Kf[a]),this.registeredEvents.push(a)}e.scrollDOM.addEventListener("mousedown",(a=>{if(a.target==e.scrollDOM&&a.clientY>e.contentDOM.getBoundingClientRect().bottom&&(t(Xf.mousedown,a),!a.defaultPrevented&&2==a.button)){let t=e.contentDOM.style.minHeight;e.contentDOM.style.minHeight="100%",setTimeout((()=>e.contentDOM.style.minHeight=t),200)}})),e.scrollDOM.addEventListener("drop",(a=>{a.target==e.scrollDOM&&a.clientY>e.contentDOM.getBoundingClientRect().bottom&&t(Xf.drop,a)})),iu.chrome&&102==iu.chrome_version&&e.scrollDOM.addEventListener("wheel",(()=>{this.chromeScrollHack<0?e.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout((()=>{this.chromeScrollHack=-1,e.contentDOM.style.pointerEvents=""}),100)}),{passive:!0}),this.notifiedFocused=e.hasFocus,iu.safari&&e.contentDOM.addEventListener("input",(()=>null))}ensureHandlers(e,t){var a;let n;this.customHandlers=[];for(let i of t)if(n=null===(a=i.update(e).spec)||void 0===a?void 0:a.domEventHandlers){this.customHandlers.push({plugin:i.value,handlers:n});for(let t in n)this.registeredEvents.indexOf(t)<0&&"scroll"!=t&&(this.registeredEvents.push(t),e.contentDOM.addEventListener(t,(a=>{Qf(e,a)&&this.runCustomHandlers(t,e,a)&&a.preventDefault()})))}}runCustomHandlers(e,t,a){for(let n of this.customHandlers){let i=n.handlers[e];if(i)try{if(i.call(n.plugin,a,t)||a.defaultPrevented)return!0}catch(e){ju(t.state,e)}}return!1}runScrollHandlers(e,t){this.lastScrollTop=e.scrollDOM.scrollTop,this.lastScrollLeft=e.scrollDOM.scrollLeft;for(let a of this.customHandlers){let n=a.handlers.scroll;if(n)try{n.call(a.plugin,t,e)}catch(t){ju(e.state,t)}}}keydown(e,t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&Date.now()<this.lastEscPress+2e3)return!0;if(27!=t.keyCode&&Wf.indexOf(t.keyCode)<0&&(e.inputState.lastEscPress=0),iu.android&&iu.chrome&&!t.synthetic&&(13==t.keyCode||8==t.keyCode))return e.observer.delayAndroidKey(t.key,t.keyCode),!0;let a;return!(!iu.ios||t.synthetic||t.altKey||t.metaKey||!((a=Gf.find((e=>e.keyCode==t.keyCode)))&&!t.ctrlKey||jf.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)||(this.pendingIOSKey=a||t,setTimeout((()=>this.flushIOSKey(e)),250),0))}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,Lc(e.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(iu.safari&&!iu.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}mustFlushObserver(e){return"keydown"==e.type&&229!=e.keyCode}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}const Gf=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],jf="dthko",Wf=[16,17,18,20,91,92,224,225];function qf(e){return.7*Math.max(0,e)+8}class Zf{constructor(e,t,a,n){this.view=e,this.style=a,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){let t=e.ownerDocument;for(let a=e.parentNode;a&&a!=t.body;)if(1==a.nodeType){if(a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth)return a;a=a.assignedSlot||a.parentNode}else{if(11!=a.nodeType)break;a=a.host}return null}(e.contentDOM),this.atoms=e.state.facet(ef).map((t=>t(e)));let i=e.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(Hl.allowMultipleSelections)&&function(e,t){let a=e.state.facet(Ru);return a.length?a[0](t):iu.mac?t.metaKey:t.ctrlKey}(e,t),this.dragMove=function(e,t){let a=e.state.facet(Iu);return a.length?a[0](t):iu.mac?!t.altKey:!t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:a}=e.state.selection;if(a.empty)return!1;let n=wc(e.root);if(!n||0==n.rangeCount)return!0;let i=n.getRangeAt(0).getClientRects();for(let e=0;e<i.length;e++){let a=i[e];if(a.left<=t.clientX&&a.right>=t.clientX&&a.top<=t.clientY&&a.bottom>=t.clientY)return!0}return!1}(e,t)||1!=ch(t))&&null}start(e){!1===this.dragging&&(e.preventDefault(),this.select(e))}move(e){var t;if(0==e.buttons)return this.destroy();if(!1!==this.dragging)return;this.select(this.lastEvent=e);let a=0,n=0,i=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=af(this.view);e.clientX-s.left<=i.left+6?a=-qf(i.left-e.clientX):e.clientX+s.right>=i.right-6&&(a=qf(e.clientX-i.right)),e.clientY-s.top<=i.top+6?n=-qf(i.top-e.clientY):e.clientY+s.bottom>=i.bottom-6&&(n=qf(e.clientY-i.bottom)),this.setScrollSpeed(a,n)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let a=0;a<e.ranges.length;a++){let n=e.ranges[a],i=null;if(n.empty){let e=Vf(this.atoms,n.from,0);e!=n.from&&(i=nl.cursor(e,-1))}else{let e=Vf(this.atoms,n.from,-1),t=Vf(this.atoms,n.to,1);e==n.from&&t==n.to||(i=nl.range(n.from==n.anchor?e:t,n.from==n.head?e:t))}i&&(t||(t=e.ranges.slice()),t[a]=i)}return t?nl.create(t,e.mainIndex):e}select(e){let{view:t}=this,a=this.skipAtoms(this.style.get(e,this.extend,this.multiple));!this.mustSelect&&a.eq(t.state.selection)&&a.main.assoc==t.state.selection.main.assoc||this.view.dispatch({selection:a,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}function Qf(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let a,n=t.target;n!=e.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(a=Uc.get(n))&&a.ignoreEvent(t))return!1;return!0}const Xf=Object.create(null),Kf=Object.create(null),Yf=iu.ie&&iu.ie_version<15||iu.ios&&iu.webkit_version<604;function Jf(e,t){let a,{state:n}=e,i=1,s=n.toText(t),r=s.lines==n.selection.ranges.length;if(null!=fh&&n.selection.ranges.every((e=>e.empty))&&fh==s.toString()){let e=-1;a=n.changeByRange((a=>{let o=n.doc.lineAt(a.from);if(o.from==e)return{range:a};e=o.from;let l=n.toText((r?s.line(i++).text:t)+n.lineBreak);return{changes:{from:o.from,insert:l},range:nl.cursor(a.from+l.length)}}))}else a=r?n.changeByRange((e=>{let t=s.line(i++);return{changes:{from:e.from,to:e.to,insert:t.text},range:nl.cursor(e.from+t.length)}})):n.replaceSelection(s);e.dispatch(a,{userEvent:"input.paste",scrollIntoView:!0})}function eh(e,t,a,n){if(1==n)return nl.cursor(t,a);if(2==n)return function(e,t,a=1){let n=e.charCategorizer(t),i=e.doc.lineAt(t),s=t-i.from;if(0==i.length)return nl.cursor(t);0==s?a=1:s==i.length&&(a=-1);let r=s,o=s;a<0?r=Lo(i.text,s,!1):o=Lo(i.text,s);let l=n(i.text.slice(r,o));for(;r>0;){let e=Lo(i.text,r,!1);if(n(i.text.slice(e,r))!=l)break;r=e}for(;o<i.length;){let e=Lo(i.text,o);if(n(i.text.slice(o,e))!=l)break;o=e}return nl.range(r+i.from,o+i.from)}(e.state,t,a);{let a=$u.find(e.docView,t),n=e.state.doc.lineAt(a?a.posAtEnd:t),i=a?a.posAtStart:n.from,s=a?a.posAtEnd:n.to;return s<e.state.doc.length&&s==n.to&&s++,nl.range(i,s)}}Xf.keydown=(e,t)=>{e.inputState.setSelectionOrigin("select"),27==t.keyCode&&(e.inputState.lastEscPress=Date.now())},Xf.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},Xf.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},Kf.touchstart=Kf.touchmove={passive:!0},Xf.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return;let a=null;for(let n of e.state.facet(Du))if(a=n(e,t),a)break;if(a||0!=t.button||(a=function(e,t){let a=ih(e,t),n=ch(t),i=e.state.selection;return{update(e){e.docChanged&&(a.pos=e.changes.mapPos(a.pos),i=i.map(e.changes))},get(t,s,r){let o,l=ih(e,t),c=eh(e,l.pos,l.bias,n);if(a.pos!=l.pos&&!s){let t=eh(e,a.pos,a.bias,n),i=Math.min(t.from,c.from),s=Math.max(t.to,c.to);c=i<c.from?nl.range(i,s):nl.range(s,i)}return s?i.replaceRange(i.main.extend(c.from,c.to)):r&&1==n&&i.ranges.length>1&&(o=function(e,t){for(let a=0;a<e.ranges.length;a++){let{from:n,to:i}=e.ranges[a];if(n<=t&&i>=t)return nl.create(e.ranges.slice(0,a).concat(e.ranges.slice(a+1)),e.mainIndex==a?0:e.mainIndex-(e.mainIndex>a?1:0))}return null}(i,l.pos))?o:r?i.addRange(c):nl.create([c])}}}(e,t)),a){let n=e.root.activeElement!=e.contentDOM;e.inputState.startMouseSelection(new Zf(e,t,a,n)),n&&e.observer.ignore((()=>Dc(e.contentDOM))),e.inputState.mouseSelection&&e.inputState.mouseSelection.start(t)}};let th=(e,t)=>e>=t.top&&e<=t.bottom,ah=(e,t,a)=>th(t,a)&&e>=a.left&&e<=a.right;function nh(e,t,a,n){let i=$u.find(e.docView,t);if(!i)return 1;let s=t-i.posAtStart;if(0==s)return 1;if(s==i.length)return-1;let r=i.coordsAt(s,-1);if(r&&ah(a,n,r))return-1;let o=i.coordsAt(s,1);return o&&ah(a,n,o)?1:r&&th(n,r)?-1:1}function ih(e,t){let a=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:a,bias:nh(e,a,t.clientX,t.clientY)}}const sh=iu.ie&&iu.ie_version<=11;let rh=null,oh=0,lh=0;function ch(e){if(!sh)return e.detail;let t=rh,a=lh;return rh=e,lh=Date.now(),oh=!t||a>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(oh+1)%3:1}function uh(e,t,a,n){if(!a)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();let{mouseSelection:s}=e.inputState,r=n&&s&&s.dragging&&s.dragMove?{from:s.dragging.from,to:s.dragging.to}:null,o={from:i,insert:a},l=e.state.changes(r?[r,o]:o);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:r?"move.drop":"input.drop"})}Xf.dragstart=(e,t)=>{let{selection:{main:a}}=e.state,{mouseSelection:n}=e.inputState;n&&(n.dragging=a),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(a.from,a.to)),t.dataTransfer.effectAllowed="copyMove")},Xf.drop=(e,t)=>{if(!t.dataTransfer)return;if(e.state.readOnly)return t.preventDefault();let a=t.dataTransfer.files;if(a&&a.length){t.preventDefault();let n=Array(a.length),i=0,s=()=>{++i==a.length&&uh(e,t,n.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e<a.length;e++){let t=new FileReader;t.onerror=s,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(n[e]=t.result),s()},t.readAsText(a[e])}}else uh(e,t,t.dataTransfer.getData("Text"),!0)},Xf.paste=(e,t)=>{if(e.state.readOnly)return t.preventDefault();e.observer.flush();let a=Yf?null:t.clipboardData;a?(Jf(e,a.getData("text/plain")||a.getData("text/uri-text")),t.preventDefault()):function(e){let t=e.dom.parentNode;if(!t)return;let a=t.appendChild(document.createElement("textarea"));a.style.cssText="position: fixed; left: -10000px; top: 10px",a.focus(),setTimeout((()=>{e.focus(),a.remove(),Jf(e,a.value)}),50)}(e)};let fh=null;Xf.copy=Xf.cut=(e,t)=>{let{text:a,ranges:n,linewise:i}=function(e){let t=[],a=[],n=!1;for(let n of e.selection.ranges)n.empty||(t.push(e.sliceDoc(n.from,n.to)),a.push(n));if(!t.length){let i=-1;for(let{from:n}of e.selection.ranges){let s=e.doc.lineAt(n);s.number>i&&(t.push(s.text),a.push({from:s.from,to:Math.min(e.doc.length,s.to+1)})),i=s.number}n=!0}return{text:t.join(e.lineBreak),ranges:a,linewise:n}}(e.state);if(!a&&!i)return;fh=i?a:null;let s=Yf?null:t.clipboardData;s?(t.preventDefault(),s.clearData(),s.setData("text/plain",a)):function(e,t){let a=e.dom.parentNode;if(!a)return;let n=a.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=t,n.focus(),n.selectionEnd=t.length,n.selectionStart=0,setTimeout((()=>{n.remove(),e.focus()}),50)}(e,a),"cut"!=t.type||e.state.readOnly||e.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"})};const hh=$l.define();function dh(e,t){let a=[];for(let n of e.facet(zu)){let i=n(e,t);i&&a.push(i)}return a?e.update({effects:a,annotations:hh.of(!0)}):null}function ph(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let a=dh(e.state,t);a?e.dispatch(a):e.update([])}}),10)}Xf.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),ph(e)},Xf.blur=e=>{e.observer.clearSelectionRange(),ph(e)},Xf.compositionstart=Xf.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},Xf.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,iu.chrome&&iu.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.compositionDeco.size&&e.update([])}),50)},Xf.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},Xf.beforeinput=(e,t)=>{var a;let n;if(iu.chrome&&iu.android&&(n=Gf.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(n.key,n.keyCode),"Backspace"==n.key||"Delete"==n.key)){let t=(null===(a=window.visualViewport)||void 0===a?void 0:a.height)||0;setTimeout((()=>{var a;((null===(a=window.visualViewport)||void 0===a?void 0:a.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}};const mh=["pre-wrap","normal","pre-line","break-spaces"];class gh{constructor(e){this.lineWrapping=e,this.doc=_o.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let a=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(a+=Math.max(0,Math.ceil((t-e-a*this.lineLength*.5)/this.lineLength))),this.lineHeight*a}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return mh.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let a=0;a<e.length;a++){let n=e[a];n<0?a++:this.heightSamples[Math.floor(10*n)]||(t=!0,this.heightSamples[Math.floor(10*n)]=!0)}return t}refresh(e,t,a,n,i,s){let r=mh.indexOf(e)>-1,o=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=r;if(this.lineWrapping=r,this.lineHeight=t,this.charWidth=a,this.textHeight=n,this.lineLength=i,o){this.heightSamples={};for(let e=0;e<s.length;e++){let t=s[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return o}}class bh{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class yh{constructor(e,t,a,n,i,s){this.from=e,this.length=t,this.top=a,this.height=n,this.children=i,this.deco=s}get type(){var e,t,a;return null!==(a=null!==(e=this.children)&&void 0!==e?e:null===(t=this.deco)||void 0===t?void 0:t.type)&&void 0!==a?a:Su.Text}get widget(){return this.deco&&this.deco.widget}get to(){return this.from+this.length}get bottom(){return this.top+this.height}join(e){let t=(this.children||[this]).concat(e.children||[e]);return new yh(this.from,this.length+e.length,this.top,this.height+e.height,t,null)}}var vh=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(vh||(vh={}));const xh=.001;class Ch{constructor(e,t,a=2){this.length=e,this.height=t,this.flags=a}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>xh&&(e.heightChanged=!0),this.height=t)}replace(e,t,a){return Ch.of(a)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,a,n){let i=this,s=a.doc;for(let r=n.length-1;r>=0;r--){let{fromA:o,toA:l,fromB:c,toB:u}=n[r],f=i.lineAt(o,vh.ByPosNoHeight,a.setDoc(t),0,0),h=f.to>=l?f:i.lineAt(l,vh.ByPosNoHeight,a,0,0);for(u+=h.to-l,l=h.to;r>0&&f.from<=n[r-1].toA;)o=n[r-1].fromA,c=n[r-1].fromB,r--,o<f.from&&(f=i.lineAt(o,vh.ByPosNoHeight,a,0,0));c+=f.from-o,o=f.from;let d=Eh.build(a.setDoc(s),e,c,u);i=i.replace(o,l,d)}return i.updateHeight(a,0)}static empty(){return new wh(0,0)}static of(e){if(1==e.length)return e[0];let t=0,a=e.length,n=0,i=0;for(;;)if(t==a)if(n>2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),a+=1+i.break,n-=i.size}else{if(!(i>2*n))break;{let t=e[a];t.break?e.splice(a,1,t.left,null,t.right):e.splice(a,1,t.left,t.right),a+=2+t.break,i-=t.size}}else if(n<i){let a=e[t++];a&&(n+=a.size)}else{let t=e[--a];t&&(i+=t.size)}let s=0;return null==e[t-1]?(s=1,t--):null==e[t]&&(s=1,a++),new _h(Ch.of(e.slice(0,t)),s,Ch.of(e.slice(a)))}}Ch.prototype.size=1;class Sh extends Ch{constructor(e,t,a){super(e,t),this.deco=a}blockAt(e,t,a,n){return new yh(n,this.length,a,this.height,null,this.deco)}lineAt(e,t,a,n,i){return this.blockAt(0,a,n,i)}forEachLine(e,t,a,n,i,s){e<=i+this.length&&t>=i&&s(this.blockAt(0,a,n,i))}updateHeight(e,t=0,a=!1,n){return n&&n.from<=t&&n.more&&this.setHeight(e,n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class wh extends Sh{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0}replace(e,t,a){let n=a[0];return 1==a.length&&(n instanceof wh||n instanceof kh&&4&n.flags)&&Math.abs(this.length-n.length)<10?(n instanceof kh?n=new wh(n.length,this.height):n.height=this.height,this.outdated||(n.outdated=!1),n):Ch.of(a)}updateHeight(e,t=0,a=!1,n){return n&&n.from<=t&&n.more?this.setHeight(e,n.heights[n.index++]):(a||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class kh extends Ch{constructor(e){super(e,0)}heightMetrics(e,t){let a,n=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,s=i-n+1,r=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*s);a=t/s,this.length>s+1&&(r=(this.height-t)/(this.length-s-1))}else a=this.height/s;return{firstLine:n,lastLine:i,perLine:a,perChar:r}}blockAt(e,t,a,n){let{firstLine:i,lastLine:s,perLine:r,perChar:o}=this.heightMetrics(t,n);if(t.lineWrapping){let i=n+Math.round(Math.max(0,Math.min(1,(e-a)/this.height))*this.length),s=t.doc.lineAt(i),l=r+s.length*o,c=Math.max(a,e-l/2);return new yh(s.from,s.length,c,l,null,null)}{let n=Math.max(0,Math.min(s-i,Math.floor((e-a)/r))),{from:o,length:l}=t.doc.line(i+n);return new yh(o,l,a+r*n,r,null,null)}}lineAt(e,t,a,n,i){if(t==vh.ByHeight)return this.blockAt(e,a,n,i);if(t==vh.ByPosNoHeight){let{from:t,to:n}=a.doc.lineAt(e);return new yh(t,n-t,0,0,null,null)}let{firstLine:s,perLine:r,perChar:o}=this.heightMetrics(a,i),l=a.doc.lineAt(e),c=r+l.length*o,u=l.number-s,f=n+r*u+o*(l.from-i-u);return new yh(l.from,l.length,Math.max(n,Math.min(f,n+this.height-c)),c,null,null)}forEachLine(e,t,a,n,i,s){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:r,perLine:o,perChar:l}=this.heightMetrics(a,i);for(let c=e,u=n;c<=t;){let t=a.doc.lineAt(c);if(c==e){let a=t.number-r;u+=o*a+l*(e-i-a)}let n=o+l*t.length;s(new yh(t.from,t.length,u,n,null,null)),u+=n,c=t.to+1}}replace(e,t,a){let n=this.length-t;if(n>0){let e=a[a.length-1];e instanceof kh?a[a.length-1]=new kh(e.length+n):a.push(null,new kh(n-1))}if(e>0){let t=a[0];t instanceof kh?a[0]=new kh(e+t.length):a.unshift(new kh(e-1),null)}return Ch.of(a)}decomposeLeft(e,t){t.push(new kh(e-1),null)}decomposeRight(e,t){t.push(null,new kh(this.length-e-1))}updateHeight(e,t=0,a=!1,n){let i=t+this.length;if(n&&n.from<=t+this.length&&n.more){let a=[],s=Math.max(t,n.from),r=-1;for(n.from>t&&a.push(new kh(n.from-t-1).updateHeight(e,t));s<=i&&n.more;){let t=e.doc.lineAt(s).length;a.length&&a.push(null);let i=n.heights[n.index++];-1==r?r=i:Math.abs(i-r)>=xh&&(r=-2);let o=new wh(t,i);o.outdated=!1,a.push(o),s+=t+1}s<=i&&a.push(null,new kh(i-s).updateHeight(e,s));let o=Ch.of(a);return(r<0||Math.abs(o.height-this.height)>=xh||Math.abs(r-this.heightMetrics(e,t).perLine)>=xh)&&(e.heightChanged=!0),o}return(a||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class _h extends Ch{constructor(e,t,a){super(e.length+t+a.length,e.height+a.height,t|(e.outdated||a.outdated?2:0)),this.left=e,this.right=a,this.size=e.size+a.size}get break(){return 1&this.flags}blockAt(e,t,a,n){let i=a+this.left.height;return e<i?this.left.blockAt(e,t,a,n):this.right.blockAt(e,t,i,n+this.left.length+this.break)}lineAt(e,t,a,n,i){let s=n+this.left.height,r=i+this.left.length+this.break,o=t==vh.ByHeight?e<s:e<r,l=o?this.left.lineAt(e,t,a,n,i):this.right.lineAt(e,t,a,s,r);if(this.break||(o?l.to<r:l.from>r))return l;let c=t==vh.ByPosNoHeight?vh.ByPosNoHeight:vh.ByPos;return o?l.join(this.right.lineAt(r,c,a,s,r)):this.left.lineAt(r,c,a,n,i).join(l)}forEachLine(e,t,a,n,i,s){let r=n+this.left.height,o=i+this.left.length+this.break;if(this.break)e<o&&this.left.forEachLine(e,t,a,n,i,s),t>=o&&this.right.forEachLine(e,t,a,r,o,s);else{let l=this.lineAt(o,vh.ByPos,a,n,i);e<l.from&&this.left.forEachLine(e,l.from-1,a,n,i,s),l.to>=e&&l.from<=t&&s(l),t>l.to&&this.right.forEachLine(l.to+1,t,a,r,o,s)}}replace(e,t,a){let n=this.left.length+this.break;if(t<n)return this.balanced(this.left.replace(e,t,a),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,a));let i=[];e>0&&this.decomposeLeft(e,i);let s=i.length;for(let e of a)i.push(e);if(e>0&&Oh(i,s-1),t<this.length){let e=i.length;this.decomposeRight(t,i),Oh(i,e)}return Ch.of(i)}decomposeLeft(e,t){let a=this.left.length;if(e<=a)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(a++,e>=a&&t.push(null)),e>a&&this.right.decomposeLeft(e-a,t)}decomposeRight(e,t){let a=this.left.length,n=a+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e<a&&this.left.decomposeRight(e,t),this.break&&e<n&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?Ch.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,a=!1,n){let{left:i,right:s}=this,r=t+i.length+this.break,o=null;return n&&n.from<=t+i.length&&n.more?o=i=i.updateHeight(e,t,a,n):i.updateHeight(e,t,a),n&&n.from<=r+s.length&&n.more?o=s=s.updateHeight(e,r,a,n):s.updateHeight(e,r,a),o?this.balanced(i,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Oh(e,t){let a,n;null==e[t]&&(a=e[t-1])instanceof kh&&(n=e[t+1])instanceof kh&&e.splice(t-1,3,new kh(a.length+1+n.length))}class Eh{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),a=this.nodes[this.nodes.length-1];a instanceof wh?a.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new wh(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,a){if(e<t||a.heightRelevant){let n=a.widget?a.widget.estimatedHeight:0;n<0&&(n=this.oracle.lineHeight);let i=t-e;a.block?this.addBlock(new Sh(i,n,a)):(i||n>=5)&&this.addLineDeco(n,i)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new wh(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let a=new kh(t-e);return this.oracle.doc.lineAt(e).to==t&&(a.flags|=4),a}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof wh)return e;let t=new wh(0,-1);return this.nodes.push(t),t}addBlock(e){var t;this.enterLine();let a=null===(t=e.deco)||void 0===t?void 0:t.type;a!=Su.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,a!=Su.WidgetBefore&&(this.covering=e)}addLineDeco(e,t){let a=this.ensureLine();a.length+=t,a.collapsed+=t,a.widgetHeight=Math.max(a.widgetHeight,e),this.writtenTo=this.pos=this.pos+t}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof wh||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new wh(0,-1));let a=e;for(let e of this.nodes)e instanceof wh&&e.updateHeight(this.oracle,a),a+=e?e.length:1;return this.nodes}static build(e,t,a,n){let i=new Eh(a,e);return Ql.spans(t,a,n,i,0),i.finish(a)}}class Mh{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,a,n){(e<t||a&&a.heightRelevant||n&&n.heightRelevant)&&Mu(e,t,this.changes,5)}}function $h(e,t){let a=e.getBoundingClientRect(),n=e.ownerDocument,i=n.defaultView||window,s=Math.max(0,a.left),r=Math.min(i.innerWidth,a.right),o=Math.max(0,a.top),l=Math.min(i.innerHeight,a.bottom);for(let t=e.parentNode;t&&t!=n.body;)if(1==t.nodeType){let a=t,n=window.getComputedStyle(a);if((a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth)&&"visible"!=n.overflow){let n=a.getBoundingClientRect();s=Math.max(s,n.left),r=Math.min(r,n.right),o=Math.max(o,n.top),l=t==e.parentNode?n.bottom:Math.min(l,n.bottom)}t="absolute"==n.position||"fixed"==n.position?a.offsetParent:a.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:s-a.left,right:Math.max(s,r)-a.left,top:o-(a.top+t),bottom:Math.max(o,l)-(a.top+t)}}function Ph(e,t){let a=e.getBoundingClientRect();return{left:0,right:a.right-a.left,top:t,bottom:a.bottom-(a.top+t)}}class Th{constructor(e,t,a){this.from=e,this.to=t,this.size=a}static same(e,t){if(e.length!=t.length)return!1;for(let a=0;a<e.length;a++){let n=e[a],i=t[a];if(n.from!=i.from||n.to!=i.to||n.size!=i.size)return!1}return!0}draw(e){return wu.replace({widget:new Ah(this.size,e)}).range(this.from,this.to)}}class Ah extends Cu{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class Bh{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaler=Lh,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=of.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(Yu).some((e=>"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new gh(t),this.stateDeco=e.facet(Ju).filter((e=>"function"!=typeof e)),this.heightMap=Ch.empty().applyChanges(this.stateDeco,_o.empty,this.heightOracle.setDoc(e.doc),[new sf(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=wu.set(this.lineGaps.map((e=>e.draw(!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let a=0;a<=1;a++){let n=a?t.head:t.anchor;if(!e.some((({from:e,to:t})=>n>=e&&n<=t))){let{from:t,to:a}=this.lineBlockAt(n);e.push(new Rh(t,a))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?Lh:new Fh(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:zh(e,this.scaler))}))}update(e,t=null){this.state=e.state;let a=this.stateDeco;this.stateDeco=this.state.facet(Ju).filter((e=>"function"!=typeof e));let n=e.changedRanges,i=sf.extendWithRanges(n,function(e,t,a){let n=new Mh;return Ql.compare(e,t,a,n,0),n.changes}(a,this.stateDeco,e?e.changes:Qo.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),this.heightMap.height!=s&&(e.flags|=2);let r=i.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<r.from||t.range.head>r.to)||!this.viewportIsAppropriate(r))&&(r=this.getViewport(0,t));let o=!e.changes.empty||2&e.flags||r.from!=this.viewport.from||r.to!=this.viewport.to;this.viewport=r,this.updateForViewport(),o&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Uu)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,a=window.getComputedStyle(t),n=this.heightOracle,i=a.whiteSpace;this.defaultTextDirection="rtl"==a.direction?of.RTL:of.LTR;let s=this.heightOracle.mustRefreshForWrapping(i),r=t.getBoundingClientRect(),o=s||this.mustMeasureContent||this.contentDOMHeight!=r.height;this.contentDOMHeight=r.height,this.mustMeasureContent=!1;let l=0,c=0,u=parseInt(a.paddingTop)||0,f=parseInt(a.paddingBottom)||0;this.paddingTop==u&&this.paddingBottom==f||(this.paddingTop=u,this.paddingBottom=f,l|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(n.lineWrapping&&(o=!0),this.editorWidth=e.scrollDOM.clientWidth,l|=8);let h=(this.printing?Ph:$h)(t,this.paddingTop),d=h.top-this.pixelViewport.top,p=h.bottom-this.pixelViewport.bottom;this.pixelViewport=h;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(o=!0)),!this.inView&&!this.scrollTarget)return 0;let g=r.width;if(this.contentDOMWidth==g&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=r.width,this.editorHeight=e.scrollDOM.clientHeight,l|=8),o){let t=e.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(t)&&(s=!0),s||n.lineWrapping&&Math.abs(g-this.contentDOMWidth)>n.charWidth){let{lineHeight:a,charWidth:r,textHeight:o}=e.docView.measureTextSize();s=a>0&&n.refresh(i,a,r,o,g/r,t),s&&(e.docView.minWidth=0,l|=8)}d>0&&p>0?c=Math.max(d,p):d<0&&p<0&&(c=Math.min(d,p)),n.heightChanged=!1;for(let a of this.viewports){let i=a.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(a);this.heightMap=(s?Ch.empty().applyChanges(this.stateDeco,_o.empty,this.heightOracle,[new sf(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,s,new bh(a.from,i))}n.heightChanged&&(l|=2)}let b=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return b&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&l||b)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let a=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,i=this.heightOracle,{visibleTop:s,visibleBottom:r}=this,o=new Rh(n.lineAt(s-1e3*a,vh.ByHeight,i,0,0).from,n.lineAt(r+1e3*(1-a),vh.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(e<o.from||e>o.to){let a,s=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),r=n.lineAt(e,vh.ByPos,i,0,0);a="center"==t.y?(r.top+r.bottom)/2-s/2:"start"==t.y||"nearest"==t.y&&e<o.from?r.top:r.bottom-s,o=new Rh(n.lineAt(a-500,vh.ByHeight,i,0,0).from,n.lineAt(a+s+500,vh.ByHeight,i,0,0).to)}}return o}mapViewport(e,t){let a=t.mapPos(e.from,-1),n=t.mapPos(e.to,1);return new Rh(this.heightMap.lineAt(a,vh.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(n,vh.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},a=0){if(!this.inView)return!0;let{top:n}=this.heightMap.lineAt(e,vh.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(t,vh.ByPos,this.heightOracle,0,0),{visibleTop:s,visibleBottom:r}=this;return(0==e||n<=s-Math.max(10,Math.min(-a,250)))&&(t==this.state.doc.length||i>=r+Math.max(10,Math.min(a,250)))&&n>s-2e3&&i<r+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let a=[];for(let n of e)t.touchesRange(n.from,n.to)||a.push(new Th(t.mapPos(n.from),t.mapPos(n.to),n.size));return a}ensureLineGaps(e,t){let a=this.heightOracle.lineWrapping,n=a?1e4:2e3,i=n>>1,s=n<<1;if(this.defaultTextDirection!=of.LTR&&!a)return[];let r=[],o=(n,s,l,c)=>{if(s-n<i)return;let u=this.state.selection.main,f=[u.from];u.empty||f.push(u.to);for(let e of f)if(e>n&&e<s)return o(n,e-10,l,c),void o(e+10,s,l,c);let h=function(e,t){for(let a of e)if(t(a))return a}(e,(e=>e.from>=l.from&&e.to<=l.to&&Math.abs(e.from-n)<i&&Math.abs(e.to-s)<i&&!f.some((t=>e.from<t&&e.to>t))));if(!h){if(s<l.to&&t&&a&&t.visibleRanges.some((e=>e.from<=s&&e.to>=s))){let e=t.moveToLineBoundary(nl.cursor(s),!1,!0).head;e>n&&(s=e)}h=new Th(n,s,this.gapSize(l,n,s,c))}r.push(h)};for(let e of this.viewportLines){if(e.length<s)continue;let t=Ih(e.from,e.to,this.stateDeco);if(t.total<s)continue;let i,r,l=this.scrollTarget?this.scrollTarget.range.head:null;if(a){let a,s,o=n/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=l){let n=Nh(t,l),i=((this.visibleBottom-this.visibleTop)/2+o)/e.height;a=n-i,s=n+i}else a=(this.visibleTop-e.top-o)/e.height,s=(this.visibleBottom-e.top+o)/e.height;i=Dh(t,a),r=Dh(t,s)}else{let e,a,s=t.total*this.heightOracle.charWidth,o=n*this.heightOracle.charWidth;if(null!=l){let n=Nh(t,l),i=((this.pixelViewport.right-this.pixelViewport.left)/2+o)/s;e=n-i,a=n+i}else e=(this.pixelViewport.left-o)/s,a=(this.pixelViewport.right+o)/s;i=Dh(t,e),r=Dh(t,a)}i>e.from&&o(e.from,i,e,t),r<e.to&&o(r,e.to,e,t)}return r}gapSize(e,t,a,n){let i=Nh(n,a)-Nh(n,t);return this.heightOracle.lineWrapping?e.height*i:n.total*this.heightOracle.charWidth*i}updateLineGaps(e){Th.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=wu.set(e.map((e=>e.draw(this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];Ql.spans(e,this.viewport.from,this.viewport.to,{span(e,a){t.push({from:e,to:a})},point(){}},20);let a=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,a)=>e.from!=t[a].from||e.to!=t[a].to));return this.visibleRanges=t,a?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||zh(this.heightMap.lineAt(e,vh.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return zh(this.heightMap.lineAt(this.scaler.fromDOM(e),vh.ByHeight,this.heightOracle,0,0),this.scaler)}elementAtHeight(e){return zh(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Rh{constructor(e,t){this.from=e,this.to=t}}function Ih(e,t,a){let n=[],i=e,s=0;return Ql.spans(a,e,t,{span(){},point(e,t){e>i&&(n.push({from:i,to:e}),s+=e-i),i=t}},20),i<t&&(n.push({from:i,to:t}),s+=t-i),{total:s,ranges:n}}function Dh({total:e,ranges:t},a){if(a<=0)return t[0].from;if(a>=1)return t[t.length-1].to;let n=Math.floor(e*a);for(let e=0;;e++){let{from:a,to:i}=t[e],s=i-a;if(n<=s)return a+n;n-=s}}function Nh(e,t){let a=0;for(let{from:n,to:i}of e.ranges){if(t<=i){a+=t-n;break}a+=i-n}return a/e.total}const Lh={toDOM:e=>e,fromDOM:e=>e,scale:1};class Fh{constructor(e,t,a){let n=0,i=0,s=0;this.viewports=a.map((({from:a,to:i})=>{let s=t.lineAt(a,vh.ByPos,e,0,0).top,r=t.lineAt(i,vh.ByPos,e,0,0).bottom;return n+=r-s,{from:a,to:i,top:s,bottom:r,domTop:0,domBottom:0}})),this.scale=(7e6-n)/(t.height-n);for(let e of this.viewports)e.domTop=s+(e.top-i)*this.scale,s=e.domBottom=e.domTop+(e.bottom-e.top),i=e.bottom}toDOM(e){for(let t=0,a=0,n=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.top)return n+(e-a)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);a=i.bottom,n=i.domBottom}}fromDOM(e){for(let t=0,a=0,n=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.domTop)return a+(e-n)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);a=i.bottom,n=i.domBottom}}}function zh(e,t){if(1==t.scale)return e;let a=t.toDOM(e.top),n=t.toDOM(e.bottom);return new yh(e.from,e.length,a,n-a,e.children&&e.children.map((e=>zh(e,t))),e.deco)}const Vh=rl.define({combine:e=>e.join(" ")}),Uh=rl.define({combine:e=>e.indexOf(!0)>-1}),Hh=hc.newName(),Gh=hc.newName(),jh=hc.newName(),Wh={"&light":"."+Gh,"&dark":"."+jh};function qh(e,t,a){return new hc(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!a||!a[t])throw new RangeError(`Unsupported selector: ${t}`);return a[t]})):e+" "+t})}const Zh=qh("."+Hh,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Wh);class Qh{constructor(e,t,a,n){this.typeOver=n,this.bounds=null,this.text="";let{impreciseHead:i,impreciseAnchor:s}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,a,0))){let t=i||s?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:a,anchorOffset:n,focusNode:i,focusOffset:s}=e.observer.selectionRange;return a&&(t.push(new kf(a,n)),i==a&&s==n||t.push(new kf(i,s))),t}(e),a=new Sf(t,e.state);a.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=a.text,this.newSel=function(e,t){if(0==e.length)return null;let a=e[0].pos,n=2==e.length?e[1].pos:a;return a>-1&&n>-1?nl.single(a+t,n+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,a=i&&i.node==t.focusNode&&i.offset==t.focusOffset||!kc(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),n=s&&s.node==t.anchorNode&&s.offset==t.anchorOffset||!kc(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);this.newSel=nl.single(n,a)}}}function Xh(e,t){let a,{newSel:n}=t,i=e.state.selection.main,s=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:n,to:r}=t.bounds,o=i.from,l=null;(8===s||iu.android&&t.text.length<r-n)&&(o=i.to,l="end");let c=function(e,t,a,n){let i=Math.min(e.length,t.length),s=0;for(;s<i&&e.charCodeAt(s)==t.charCodeAt(s);)s++;if(s==i&&e.length==t.length)return null;let r=e.length,o=t.length;for(;r>0&&o>0&&e.charCodeAt(r-1)==t.charCodeAt(o-1);)r--,o--;return"end"==n&&(a-=r+Math.max(0,s-Math.min(r,o))-s),r<s&&e.length<t.length?(s-=a<=s&&a>=r?s-a:0,o=s+(o-r),r=s):o<s&&(s-=a<=s&&a>=o?s-a:0,r=s+(r-o),o=s),{from:s,toA:r,toB:o}}(e.state.doc.sliceString(n,r,Cf),t.text,o-n,l);c&&(iu.chrome&&13==s&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==Cf+Cf&&c.toB--,a={from:n+c.from,to:n+c.toA,insert:_o.of(t.text.slice(c.from,c.toB).split(Cf))})}else n&&(!e.hasFocus&&e.state.facet(Wu)||n.main.eq(i))&&(n=null);if(!a&&!n)return!1;if(!a&&t.typeOver&&!i.empty&&n&&n.main.empty?a={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,i.to)}:a&&a.from>=i.from&&a.to<=i.to&&(a.from!=i.from||a.to!=i.to)&&i.to-i.from-(a.to-a.from)<=4?a={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,a.from).append(a.insert).append(e.state.doc.slice(a.to,i.to))}:(iu.mac||iu.android)&&a&&a.from==a.to&&a.from==i.head-1&&/^\. ?$/.test(a.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(n&&2==a.insert.length&&(n=nl.single(n.main.anchor-1,n.main.head-1)),a={from:i.from,to:i.to,insert:_o.of([" "])}):iu.chrome&&a&&a.from==a.to&&a.from==i.head&&"\n "==a.insert.toString()&&e.lineWrapping&&(n&&(n=nl.single(n.main.anchor-1,n.main.head-1)),a={from:i.from,to:i.to,insert:_o.of([" "])}),a){let t=e.state;if(iu.ios&&e.inputState.flushIOSKey(e))return!0;if(iu.android&&(a.from==i.from&&a.to==i.to&&1==a.insert.length&&2==a.insert.lines&&Lc(e.contentDOM,"Enter",13)||(a.from==i.from-1&&a.to==i.to&&0==a.insert.length||8==s&&a.insert.length<a.to-a.from)&&Lc(e.contentDOM,"Backspace",8)||a.from==i.from&&a.to==i.to+1&&0==a.insert.length&&Lc(e.contentDOM,"Delete",46)))return!0;let r,o=a.insert.toString();if(e.state.facet(Fu).some((t=>t(e,a.from,a.to,o))))return!0;if(e.inputState.composing>=0&&e.inputState.composing++,a.from>=i.from&&a.to<=i.to&&a.to-a.from>=(i.to-i.from)/3&&(!n||n.main.empty&&n.main.from==a.from+a.insert.length)&&e.inputState.composing<0){let n=i.from<a.from?t.sliceDoc(i.from,a.from):"",s=i.to>a.to?t.sliceDoc(a.to,i.to):"";r=t.replaceSelection(e.state.toText(n+a.insert.sliceString(0,void 0,e.state.lineBreak)+s))}else{let s=t.changes(a),o=n&&n.main.to<=s.newLength?n.main:void 0;if(t.selection.ranges.length>1&&e.inputState.composing>=0&&a.to<=i.to&&a.to>=i.to-10){let n=e.state.sliceDoc(a.from,a.to),l=Ef(e)||e.state.doc.lineAt(i.head),c=i.to-a.to,u=i.to-i.from;r=t.changeByRange((r=>{if(r.from==i.from&&r.to==i.to)return{changes:s,range:o||r.map(s)};let f=r.to-c,h=f-n.length;if(r.to-r.from!=u||e.state.sliceDoc(h,f)!=n||l&&r.to>=l.from&&r.from<=l.to)return{range:r};let d=t.changes({from:h,to:f,insert:a.insert}),p=r.to-i.to;return{changes:d,range:o?nl.range(Math.max(0,o.anchor+p),Math.max(0,o.head+p)):r.map(d)}}))}else r={changes:s,selection:o&&t.selection.replaceRange(o)}}let l="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,l+=".compose",e.inputState.compositionFirstChange&&(l+=".start",e.inputState.compositionFirstChange=!1)),e.dispatch(r,{scrollIntoView:!0,userEvent:l}),!0}if(n&&!n.main.eq(i)){let t=!1,a="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),a=e.inputState.lastSelectionOrigin),e.dispatch({selection:n,scrollIntoView:t,userEvent:a}),!0}return!1}const Kh={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Yh=iu.ie&&iu.ie_version<=11;class Jh{constructor(e){this.view=e,this.active=!1,this.selectionRange=new Bc,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(iu.ie&&iu.ie_version<=11||iu.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),Yh&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()})),this.resizeScroll.observe(e.scrollDOM),this.resizeContent=new ResizeObserver((()=>this.view.requestMeasure())),this.resizeContent.observe(e.contentDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runScrollHandlers(this.view,e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,a)=>t!=e[a])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:a}=this,n=this.selectionRange;if(a.state.facet(Wu)?a.root.activeElement!=this.dom:!_c(a.dom,n))return;let i=n.anchorNode&&a.docView.nearest(n.anchorNode);i&&i.ignoreEvent(e)?t||(this.selectionChanged=!1):(iu.ie&&iu.ie_version<=11||iu.android&&iu.chrome)&&!a.state.selection.main.empty&&n.focusNode&&Ec(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=iu.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e){let t=null;function a(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",a,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",a,!0),!t)return null;let n=t.startContainer,i=t.startOffset,s=t.endContainer,r=t.endOffset,o=e.docView.domAtPos(e.state.selection.main.anchor);return Ec(o.node,o.offset,s,r)&&([n,i,s,r]=[s,r,n,i]),{anchorNode:n,anchorOffset:i,focusNode:s,focusOffset:r}}(this.view)||wc(e.root);if(!t||this.selectionRange.eq(t))return!1;let a=_c(this.dom,t);return a&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let a=t.focusNode,n=t.focusOffset;if(!a||t.anchorNode!=a||t.anchorOffset!=n)return!1;for(n=Math.min(n,Pc(a));;)if(n){if(1!=a.nodeType)return!1;let e=a.childNodes[n-1];"false"==e.contentEditable?n--:(a=e,n=Pc(a))}else{if(a==e)return!0;n=Mc(a),a=a.parentNode}}(this.dom,t)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(t),a&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let a=this.dom;a;)if(1==a.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==a?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(a),a=a.assignedSlot||a.parentNode;else{if(11!=a.nodeType)break;a=a.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Kh),Yh&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Yh&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var a;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&Lc(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(a=this.delayedAndroidKey)||void 0===a?void 0:a.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame((()=>{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,a=-1,n=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(n=!0),-1==t?({from:t,to:a}=e):(t=Math.min(e.from,t),a=Math.max(e.to,a)))}return{from:t,to:a,typeOver:n}}readChange(){let{from:e,to:t,typeOver:a}=this.processRecords(),n=this.selectionChanged&&_c(this.dom,this.selectionRange);return e<0&&!n?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new Qh(this.view,e,t,a))}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return!1;let a=this.view.state,n=Xh(this.view,t);return this.view.state==a&&this.view.update([]),n}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.dirty|=4),"childList"==e.type){let a=ed(t,e.previousSibling||e.target.previousSibling,-1),n=ed(t,e.nextSibling||e.target.nextSibling,1);return{from:a?t.posAfter(a):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,a,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(a=this.resizeScroll)||void 0===a||a.disconnect(),null===(n=this.resizeContent)||void 0===n||n.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function ed(e,t,a){for(;t;){let n=Uc.get(t);if(n&&n.parent==e)return n;let i=t.parentNode;t=i!=e.dom?i:a>0?t.nextSibling:t.previousSibling}return null}class td{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||(e=>this.update([e])),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new Bh(e.state||Hl.create(e)),this.plugins=this.state.facet(Zu).map((e=>new Xu(e)));for(let e of this.plugins)e.update(this);this.observer=new Jh(this),this.inputState=new Hf(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new _f(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let t=1==e.length&&e[0]instanceof Bl?e[0]:this.state.update(...e);this._dispatch(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,a=!1,n=!1,i=this.state;for(let t of e){if(t.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=t.state}if(this.destroyed)return void(this.viewState.state=i);let s=this.hasFocus,r=0,o=null;e.some((e=>e.annotation(hh)))?(this.inputState.notifiedFocused=s,r=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,o=dh(i,s),o||(r=1));let l=this.observer.delayedAndroidKey,c=null;if(l?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(c=null)):this.observer.clear(),i.facet(Hl.phrases)!=this.state.facet(Hl.phrases))return this.setState(i);t=rf.create(this,i,e),t.flags|=r;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(u&&(u=u.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;u=new Hu(e.empty?e:nl.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(Gu)&&(u=e.value)}this.viewState.update(t,u),this.bidiCache=id.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),a=this.docView.update(t),this.state.facet(nf)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(a,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(Vh)!=t.state.facet(Vh)&&(this.viewState.mustMeasureContent=!0),(a||n||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let e of this.state.facet(Lu))e(t);(o||c)&&Promise.resolve().then((()=>{o&&this.state==o.startState&&this.dispatch(o),c&&!Xh(this,c)&&l.force&&Lc(this.contentDOM,l.key,l.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new Bh(e),this.plugins=e.facet(Zu).map((e=>new Xu(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView=new _f(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Zu),a=e.state.facet(Zu);if(t!=a){let n=[];for(let i of a){let a=t.indexOf(i);if(a<0)n.push(new Xu(i));else{let t=this.plugins[a];t.mustUpdate=e,n.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=n,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this)}measure(e=!0){if(this.destroyed)return;this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,{scrollHeight:a,scrollTop:n,clientHeight:i}=this.scrollDOM,s=n>a-i-4?a:n;try{for(let e=0;;e++){this.updateState=1;let a=this.viewport,n=this.viewState.lineBlockAtHeight(s),i=this.viewState.measure(this);if(!i&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let r=[];4&i||([this.measureRequests,r]=[r,this.measureRequests]);let o=r.map((e=>{try{return e.read(this)}catch(e){return ju(this.state,e),nd}})),l=rf.create(this,this.state,[]),c=!1,u=!1;l.flags|=i,t?t.flags|=i:t=l,this.updateState=2,l.empty||(this.updatePlugins(l),this.inputState.update(l),this.updateAttrs(),c=this.docView.update(l));for(let e=0;e<r.length;e++)if(o[e]!=nd)try{let t=r[e];t.write&&t.write(o[e],this)}catch(e){ju(this.state,e)}if(this.viewState.editorHeight)if(this.viewState.scrollTarget)this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,u=!0;else{let e=this.viewState.lineBlockAt(n.from).top-n.top;(e>1||e<-1)&&(this.scrollDOM.scrollTop+=e,u=!0)}if(c&&this.docView.updateSelection(!0),this.viewport.from==a.from&&this.viewport.to==a.to&&!u&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(Lu))e(t)}get themeClasses(){return Hh+" "+(this.state.facet(Uh)?jh:Gh)+" "+this.state.facet(Vh)}updateAttrs(){let e=sd(this,Ku,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Wu)?"true":"false",class:"cm-content",style:`${iu.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),sd(this,Yu,t);let a=this.observer.ignore((()=>{let a=xu(this.contentDOM,this.contentAttrs,t),n=xu(this.dom,this.editorAttrs,e);return a||n}));return this.editorAttrs=e,this.contentAttrs=t,a}showAnnouncements(e){let t=!0;for(let a of e)for(let e of a.effects)e.is(td.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(nf),hc.mount(this.root,this.styleModules.concat(Zh).reverse())}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find((t=>t.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,a){return Uf(this,e,zf(this,e,t,a))}moveByGroup(e,t){return Uf(this,e,zf(this,e,t,(t=>function(e,t,a){let n=e.state.charCategorizer(t),i=n(a);return e=>{let t=n(e);return i==zl.Space&&(i=t),i==t}}(this,e.head,t))))}moveToLineBoundary(e,t,a=!0){return function(e,t,a,n){let i=e.state.doc.lineAt(t.head),s=n&&e.lineWrapping?e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head):null;if(s){let t=e.dom.getBoundingClientRect(),n=e.textDirectionAt(i.from),r=e.posAtCoords({x:a==(n==of.LTR)?t.right-1:t.left+1,y:(s.top+s.bottom)/2});if(null!=r)return nl.cursor(r,a?-1:1)}let r=$u.find(e.docView,t.head),o=r?a?r.posAtEnd:r.posAtStart:a?i.to:i.from;return nl.cursor(o,a?-1:1)}(this,e,t,a)}moveVertically(e,t,a){return Uf(this,e,function(e,t,a,n){let i=t.head,s=a?1:-1;if(i==(a?e.state.doc.length:0))return nl.cursor(i,t.assoc);let r,o=t.goalColumn,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(i),u=e.documentTop;if(c)null==o&&(o=c.left-l.left),r=s<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(i);null==o&&(o=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-t.from))),r=(s<0?t.top:t.bottom)+u}let f=l.left+o,h=null!=n?n:e.defaultLineHeight>>1;for(let a=0;;a+=10){let n=r+(h+a)*s,c=Lf(e,{x:f,y:n},!1,s);if(n<l.top||n>l.bottom||(s<0?c<i:c>i))return nl.cursor(c,t.assoc,void 0,o)}}(this,e,t,a))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),Lf(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let a=this.docView.coordsAt(e,t);if(!a||a.left==a.right)return a;let n=this.state.doc.lineAt(e),i=this.bidiSpans(n);return Tc(a,i[gf.find(i,e-n.from,-1,t)].dir==of.LTR==t>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Vu)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>ad)return yf(e.length);let t=this.textDirectionAt(e.from);for(let a of this.bidiCache)if(a.from==e.from&&a.dir==t)return a.order;let a=function(e,t){let a=e.length,n=t==lf?1:2,i=t==lf?2:1;if(!e||1==n&&!mf.test(e))return yf(a);for(let t=0,i=n,r=n;t<a;t++){let a=(s=e.charCodeAt(t))<=247?ff[s]:1424<=s&&s<=1524?2:1536<=s&&s<=1785?hf[s-1536]:1774<=s&&s<=2220?4:8192<=s&&s<=8203?256:64336<=s&&s<=65023?4:8204==s?256:1;512==a?a=i:8==a&&4==r&&(a=16),bf[t]=4==a?2:a,7&a&&(r=a),i=a}var s;for(let e=0,t=n,i=n;e<a;e++){let n=bf[e];if(128==n)e<a-1&&t==bf[e+1]&&24&t?n=bf[e]=t:bf[e]=256;else if(64==n){let n=e+1;for(;n<a&&64==bf[n];)n++;let s=e&&8==t||n<a&&8==bf[n]?1==i?1:8:256;for(let t=e;t<n;t++)bf[t]=s;e=n-1}else 8==n&&1==i&&(bf[e]=1);t=n,7&n&&(i=n)}for(let t,s,r,o=0,l=0,c=0;o<a;o++)if(s=df[t=e.charCodeAt(o)])if(s<0){for(let e=l-3;e>=0;e-=3)if(pf[e+1]==-s){let t=pf[e+2],a=2&t?n:4&t?1&t?i:n:0;a&&(bf[o]=bf[pf[e]]=a),l=e;break}}else{if(189==pf.length)break;pf[l++]=o,pf[l++]=t,pf[l++]=c}else if(2==(r=bf[o])||1==r){let e=r==n;c=e?0:1;for(let t=l-3;t>=0;t-=3){let a=pf[t+2];if(2&a)break;if(e)pf[t+2]|=2;else{if(4&a)break;pf[t+2]|=4}}}for(let e=0;e<a;e++)if(256==bf[e]){let t=e+1;for(;t<a&&256==bf[t];)t++;let i=1==(e?bf[e-1]:n),s=i==(1==(t<a?bf[t]:n))?i?1:2:n;for(let a=e;a<t;a++)bf[a]=s;e=t-1}let r=[];if(1==n)for(let e=0;e<a;){let t=e,n=1!=bf[e++];for(;e<a&&n==(1!=bf[e]);)e++;if(n)for(let a=e;a>t;){let e=a,n=2!=bf[--a];for(;a>t&&n==(2!=bf[a-1]);)a--;r.push(new gf(a,e,n?2:1))}else r.push(new gf(t,e,0))}else for(let e=0;e<a;){let t=e,n=2==bf[e++];for(;e<a&&n==(2==bf[e]);)e++;r.push(new gf(t,e,n?1:2))}return r}(e.text,t);return this.bidiCache.push(new id(e.from,e.to,t,a)),a}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||iu.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{Dc(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return Gu.of(new Hu("number"==typeof e?nl.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return Qu.define((()=>({})),{eventHandlers:e})}static theme(e,t){let a=hc.newName(),n=[Vh.of(a),nf.of(qh(`.${a}`,e))];return t&&t.dark&&n.push(Uh.of(!0)),n}static baseTheme(e){return ml.lowest(nf.of(qh("."+Hh,e,Wh)))}static findFromDOM(e){var t;let a=e.querySelector(".cm-content"),n=a&&Uc.get(a)||Uc.get(e);return(null===(t=null==n?void 0:n.rootView)||void 0===t?void 0:t.view)||null}}td.styleModule=nf,td.inputHandler=Fu,td.focusChangeEffect=zu,td.perLineTextDirection=Vu,td.exceptionSink=Nu,td.updateListener=Lu,td.editable=Wu,td.mouseSelectionStyle=Du,td.dragMovesSelection=Iu,td.clickAddsSelectionRange=Ru,td.decorations=Ju,td.atomicRanges=ef,td.scrollMargins=tf,td.darkTheme=Uh,td.contentAttributes=Yu,td.editorAttributes=Ku,td.lineWrapping=td.contentAttributes.of({class:"cm-lineWrapping"}),td.announce=Al.define();const ad=4096,nd={};class id{constructor(e,t,a,n){this.from=e,this.to=t,this.dir=a,this.order=n}static update(e,t){if(t.empty)return e;let a=[],n=e.length?e[e.length-1].dir:of.LTR;for(let i=Math.max(0,e.length-10);i<e.length;i++){let s=e[i];s.dir!=n||t.touchesRange(s.from,s.to)||a.push(new id(t.mapPos(s.from,1),t.mapPos(s.to,-1),s.dir,s.order))}return a}}function sd(e,t,a){for(let n=e.state.facet(t),i=n.length-1;i>=0;i--){let t=n[i],s="function"==typeof t?t(e):t;s&&yu(s,a)}return a}const rd=iu.mac?"mac":iu.windows?"win":iu.linux?"linux":"key";function od(e,t,a){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==a&&t.shiftKey&&(e="Shift-"+e),e}const ld=ml.default(td.domEventHandlers({keydown:(e,t)=>pd(fd(t.state),e,t,"editor")})),cd=rl.define({enables:ld}),ud=new WeakMap;function fd(e){let t=e.facet(cd),a=ud.get(t);return a||ud.set(t,a=function(e,t=rd){let a=Object.create(null),n=Object.create(null),i=(e,t)=>{let a=n[e];if(null==a)n[e]=t;else if(a!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},s=(e,n,s,r)=>{var o,l;let c=a[e]||(a[e]=Object.create(null)),u=n.split(/ (?!$)/).map((e=>function(e,t){const a=e.split(/-(?!$)/);let n,i,s,r,o=a[a.length-1];"Space"==o&&(o=" ");for(let e=0;e<a.length-1;++e){const o=a[e];if(/^(cmd|meta|m)$/i.test(o))r=!0;else if(/^a(lt)?$/i.test(o))n=!0;else if(/^(c|ctrl|control)$/i.test(o))i=!0;else if(/^s(hift)?$/i.test(o))s=!0;else{if(!/^mod$/i.test(o))throw new Error("Unrecognized modifier name: "+o);"mac"==t?r=!0:i=!0}}return n&&(o="Alt-"+o),i&&(o="Ctrl-"+o),r&&(o="Meta-"+o),s&&(o="Shift-"+o),o}(e,t)));for(let t=1;t<u.length;t++){let a=u.slice(0,t).join(" ");i(a,!0),c[a]||(c[a]={preventDefault:!0,run:[t=>{let n=hd={view:t,prefix:a,scope:e};return setTimeout((()=>{hd==n&&(hd=null)}),dd),!0}]})}let f=u.join(" ");i(f,!1);let h=c[f]||(c[f]={preventDefault:!1,run:(null===(l=null===(o=c._any)||void 0===o?void 0:o.run)||void 0===l?void 0:l.slice())||[]});s&&h.run.push(s),r&&(h.preventDefault=!0)};for(let n of e){let e=n.scope?n.scope.split(" "):["editor"];if(n.any)for(let t of e){let e=a[t]||(a[t]=Object.create(null));e._any||(e._any={preventDefault:!1,run:[]});for(let t in e)e[t].run.push(n.any)}let i=n[t]||n.key;if(i)for(let t of e)s(t,i,n.run,n.preventDefault),n.shift&&s(t,"Shift-"+i,n.shift,n.preventDefault)}return a}(t.reduce(((e,t)=>e.concat(t)),[]))),a}let hd=null;const dd=4e3;function pd(e,t,a,n){let i=function(e){var t=!(xc&&(e.ctrlKey||e.altKey||e.metaKey)||vc&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?gc:mc)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),s=jo(Ho(i,0))==i.length&&" "!=i,r="",o=!1;hd&&hd.view==a&&hd.scope==n&&(r=hd.prefix+" ",(o=Wf.indexOf(t.keyCode)<0)&&(hd=null));let l,c,u=new Set,f=e=>{if(e){for(let n of e.run)if(!u.has(n)&&(u.add(n),n(a,t)))return!0;e.preventDefault&&(o=!0)}return!1},h=e[n];if(h){if(f(h[r+od(i,t,!s)]))return!0;if(s&&(t.altKey||t.metaKey||t.ctrlKey)&&!(iu.windows&&t.ctrlKey&&t.altKey)&&(l=mc[t.keyCode])&&l!=i){if(f(h[r+od(l,t,!0)]))return!0;if(t.shiftKey&&(c=gc[t.keyCode])!=i&&c!=l&&f(h[r+od(c,t,!1)]))return!0}else if(s&&t.shiftKey&&f(h[r+od(i,t,!0)]))return!0;if(f(h._any))return!0}return o}class md{constructor(e,t,a,n,i){this.className=e,this.left=t,this.top=a,this.width=n,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,a){if(a.empty){let n=e.coordsAtPos(a.head,a.assoc||1);if(!n)return[];let i=gd(e);return[new md(t,n.left-i.left,n.top-i.top,null,n.bottom-n.top)]}return function(e,t,a){if(a.to<=e.viewport.from||a.from>=e.viewport.to)return[];let n=Math.max(a.from,e.viewport.from),i=Math.min(a.to,e.viewport.to),s=e.textDirection==of.LTR,r=e.contentDOM,o=r.getBoundingClientRect(),l=gd(e),c=r.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),f=o.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),h=o.right-(u?parseInt(u.paddingRight):0),d=yd(e,n),p=yd(e,i),m=d.type==Su.Text?d:null,g=p.type==Su.Text?p:null;if(e.lineWrapping&&(m&&(m=bd(e,n,m)),g&&(g=bd(e,i,g))),m&&g&&m.from==g.from)return y(v(a.from,a.to,m));{let t=m?v(a.from,null,m):x(d,!1),n=g?v(null,a.to,g):x(p,!0),i=[];return(m||d).to<(g||p).from-(m&&g?1:0)?i.push(b(f,t.bottom,h,n.top)):t.bottom<n.top&&e.elementAtHeight((t.bottom+n.top)/2).type==Su.Text&&(t.bottom=n.top=(t.bottom+n.top)/2),y(t).concat(i).concat(y(n))}function b(e,a,n,i){return new md(t,e-l.left,a-l.top-.01,n-e,i-a+.01)}function y({top:e,bottom:t,horizontal:a}){let n=[];for(let i=0;i<a.length;i+=2)n.push(b(a[i],e,a[i+1],t));return n}function v(t,a,n){let i=1e9,r=-1e9,o=[];function l(t,a,l,c,u){let d=e.coordsAtPos(t,t==n.to?-2:2),p=e.coordsAtPos(l,l==n.from?2:-2);d&&p&&(i=Math.min(d.top,p.top,i),r=Math.max(d.bottom,p.bottom,r),u==of.LTR?o.push(s&&a?f:d.left,s&&c?h:p.right):o.push(!s&&c?f:p.left,!s&&a?h:d.right))}let c=null!=t?t:n.from,u=null!=a?a:n.to;for(let n of e.visibleRanges)if(n.to>c&&n.from<u)for(let i=Math.max(n.from,c),s=Math.min(n.to,u);;){let n=e.state.doc.lineAt(i);for(let r of e.bidiSpans(n)){let e=r.from+n.from,o=r.to+n.from;if(e>=s)break;o>i&&l(Math.max(e,i),null==t&&e<=c,Math.min(o,s),null==a&&o>=u,r.dir)}if(i=n.to+1,i>=s)break}return 0==o.length&&l(c,null==t,u,null==a,e.textDirection),{top:i,bottom:r,horizontal:o}}function x(e,t){let a=o.top+(t?e.top:e.bottom);return{top:a,bottom:a,horizontal:[]}}}(e,t,a)}}function gd(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==of.LTR?t.left:t.right-e.scrollDOM.clientWidth)-e.scrollDOM.scrollLeft,top:t.top-e.scrollDOM.scrollTop}}function bd(e,t,a){let n=nl.cursor(t);return{from:Math.max(a.from,e.moveToLineBoundary(n,!1,!0).from),to:Math.min(a.to,e.moveToLineBoundary(n,!0,!0).from),type:Su.Text}}function yd(e,t){let a=e.lineBlockAt(t);if(Array.isArray(a.type))for(let e of a.type)if(e.to>t||e.to==t&&(e.to==a.to||e.type==Su.Text))return e;return a}class vd{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(xd)!=e.state.facet(xd)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&e.view.requestMeasure(this.measureReq)}setOrder(e){let t=0,a=e.facet(xd);for(;t<a.length&&a[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}draw(e){if(e.length!=this.drawn.length||e.some(((e,t)=>{return a=e,n=this.drawn[t],!(a.constructor==n.constructor&&a.eq(n));var a,n}))){let t=this.dom.firstChild,a=0;for(let n of e)n.update&&t&&n.constructor&&this.drawn[a].constructor&&n.update(t,this.drawn[a])?(t=t.nextSibling,a++):this.dom.insertBefore(n.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const xd=rl.define();function Cd(e){return[Qu.define((t=>new vd(t,e))),xd.of(e)]}const Sd=!iu.ios,wd=rl.define({combine:e=>Gl(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function kd(e){return e.startState.facet(wd)!=e.state.facet(wd)}const _d=Cd({above:!0,markers(e){let{state:t}=e,a=t.facet(wd),n=[];for(let i of t.selection.ranges){let s=i==t.selection.main;if(i.empty?!s||Sd:a.drawRangeCursor){let t=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",a=i.empty?i:nl.cursor(i.head,i.head>i.anchor?-1:1);for(let i of md.forRange(e,t,a))n.push(i)}}return n},update(e,t){e.transactions.some((e=>e.selection))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let a=kd(e);return a&&Od(e.state,t),e.docChanged||e.selectionSet||a},mount(e,t){Od(t.state,e)},class:"cm-cursorLayer"});function Od(e,t){t.style.animationDuration=e.facet(wd).cursorBlinkRate+"ms"}const Ed=Cd({above:!1,markers:e=>e.state.selection.ranges.map((t=>t.empty?[]:md.forRange(e,"cm-selectionBackground",t))).reduce(((e,t)=>e.concat(t))),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||kd(e),class:"cm-selectionLayer"}),Md={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Sd&&(Md[".cm-line"].caretColor="transparent !important");const $d=ml.highest(td.theme(Md)),Pd=Al.define({map:(e,t)=>null==e?null:t.mapPos(e)}),Td=dl.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce(((e,t)=>t.is(Pd)?t.value:e),e))}),Ad=Qu.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let a=e.state.field(Td);null==a?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(Td)!=a||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let e=this.view.state.field(Td),t=null!=e&&this.view.coordsAtPos(e);if(!t)return null;let a=this.view.scrollDOM.getBoundingClientRect();return{left:t.left-a.left+this.view.scrollDOM.scrollLeft,top:t.top-a.top+this.view.scrollDOM.scrollTop,height:t.bottom-t.top}}drawCursor(e){this.cursor&&(e?(this.cursor.style.left=e.left+"px",this.cursor.style.top=e.top+"px",this.cursor.style.height=e.height+"px"):this.cursor.style.left="-100000px")}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(Td)!=e&&this.view.dispatch({effects:Pd.of(e)})}},{eventHandlers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Bd(e,t,a,n,i){t.lastIndex=0;for(let s,r=e.iterRange(a,n),o=a;!r.next().done;o+=r.value.length)if(!r.lineBreak)for(;s=t.exec(r.value);)i(o+s.index,s)}class Rd{constructor(e){const{regexp:t,decoration:a,decorate:n,boundary:i,maxLength:s=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,n)this.addMatch=(e,t,a,i)=>n(i,a,a+e[0].length,e,t);else if("function"==typeof a)this.addMatch=(e,t,n,i)=>{let s=a(e,t,n);s&&i(n,n+e[0].length,s)};else{if(!a)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,n,i)=>i(n,n+e[0].length,a)}this.boundary=i,this.maxLength=s}createDeco(e){let t=new Xl,a=t.add.bind(t);for(let{from:t,to:n}of function(e,t){let a=e.visibleRanges;if(1==a.length&&a[0].from==e.viewport.from&&a[0].to==e.viewport.to)return a;let n=[];for(let{from:i,to:s}of a)i=Math.max(e.state.doc.lineAt(i).from,i-t),s=Math.min(e.state.doc.lineAt(s).to,s+t),n.length&&n[n.length-1].to>=i?n[n.length-1].to=s:n.push({from:i,to:s});return n}(e,this.maxLength))Bd(e.state.doc,this.regexp,t,n,((t,n)=>this.addMatch(n,e,t,a)));return t.finish()}updateDeco(e,t){let a=1e9,n=-1;return e.docChanged&&e.changes.iterChanges(((t,i,s,r)=>{r>e.view.viewport.from&&s<e.view.viewport.to&&(a=Math.min(s,a),n=Math.max(r,n))})),e.viewportChanged||n-a>1e3?this.createDeco(e.view):n>-1?this.updateRange(e.view,t.map(e.changes),a,n):t}updateRange(e,t,a,n){for(let i of e.visibleRanges){let s=Math.max(i.from,a),r=Math.min(i.to,n);if(r>s){let a=e.state.doc.lineAt(s),n=a.to<r?e.state.doc.lineAt(r):a,o=Math.max(i.from,a.from),l=Math.min(i.to,n.to);if(this.boundary){for(;s>a.from;s--)if(this.boundary.test(a.text[s-1-a.from])){o=s;break}for(;r<n.to;r++)if(this.boundary.test(n.text[r-n.from])){l=r;break}}let c,u=[],f=(e,t,a)=>u.push(a.range(e,t));if(a==n)for(this.regexp.lastIndex=o-a.from;(c=this.regexp.exec(a.text))&&c.index<l-a.from;)this.addMatch(c,e,c.index+a.from,f);else Bd(e.state.doc,this.regexp,o,l,((t,a)=>this.addMatch(a,e,t,f)));t=t.update({filterFrom:o,filterTo:l,filter:(e,t)=>e<o||t>l,add:u})}}return t}}const Id=null!=/x/.unicode?"gu":"g",Dd=new RegExp("[\0-\b\n--\u2028\u2029\ufeff-]",Id),Nd={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Ld=null;const Fd=rl.define({combine(e){let t=Gl(e,{render:null,specialChars:Dd,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==Ld&&"undefined"!=typeof document&&document.body){let t=document.body.style;Ld=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return Ld||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,Id)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,Id)),t}});let zd=null;class Vd extends Cu{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=function(e){return e>=32?"•":10==e?"":String.fromCharCode(9216+e)}(this.code),a=e.state.phrase("Control character")+" "+(Nd[this.code]||"0x"+this.code.toString(16)),n=this.options.render&&this.options.render(this.code,a,t);if(n)return n;let i=document.createElement("span");return i.textContent=t,i.title=a,i.setAttribute("aria-label",a),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class Ud extends Cu{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const Hd=wu.line({class:"cm-activeLine"}),Gd=Qu.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,a=[];for(let n of e.state.selection.ranges){let i=e.lineBlockAt(n.head);i.from>t&&(a.push(Hd.range(i.from)),t=i.from)}return wu.set(a)}},{decorations:e=>e.decorations});class jd extends Cu{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?Oc(e.firstChild):[];if(!t.length)return null;let a=window.getComputedStyle(e.parentNode),n=Tc(t[0],"rtl"!=a.direction),i=parseInt(a.lineHeight);return n.bottom-n.top>1.5*i?{left:n.left,right:n.right,top:n.top,bottom:n.top+i}:n}ignoreEvent(){return!1}}const Wd=2e3;function qd(e,t){let a=e.posAtCoords({x:t.clientX,y:t.clientY},!1),n=e.state.doc.lineAt(a),i=a-n.from,s=i>Wd?-1:i==n.length?function(e,t){let a=e.coordsAtPos(e.viewport.from);return a?Math.round(Math.abs((a.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):oc(n.text,e.state.tabSize,a-n.from);return{line:n.number,col:s,off:i}}const Zd={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},Qd={style:"cursor: crosshair"},Xd="-10000px";class Kd{constructor(e,t,a){this.facet=t,this.createTooltipView=a,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e)),this.tooltipViews=this.tooltips.map(a)}update(e){var t;let a=e.state.facet(this.facet),n=a.filter((e=>e));if(a===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let i=[];for(let t=0;t<n.length;t++){let a=n[t],s=-1;if(a){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==a.create&&(s=e)}if(s<0)i[t]=this.createTooltipView(a);else{let a=i[t]=this.tooltipViews[s];a.update&&a.update(e)}}}for(let e of this.tooltipViews)i.indexOf(e)<0&&(e.dom.remove(),null===(t=e.destroy)||void 0===t||t.call(e));return this.input=a,this.tooltips=n,this.tooltipViews=i,!0}}function Yd(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const Jd=rl.define({combine:e=>{var t,a,n;return{position:iu.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(a=e.find((e=>e.parent)))||void 0===a?void 0:a.parent)||null,tooltipSpace:(null===(n=e.find((e=>e.tooltipSpace)))||void 0===n?void 0:n.tooltipSpace)||Yd}}}),ep=new WeakMap,tp=Qu.fromClass(class{constructor(e){this.view=e,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(Jd);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new Kd(e,ip,(e=>this.createTooltip(e))),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e);t&&this.observeIntersection();let a=t||e.geometryChanged,n=e.state.facet(Jd);if(n.position!=this.position){this.position=n.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;a=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);a=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);a&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=Xd,this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),null===(e=t.destroy)||void 0===e||e.call(t);null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(((e,t)=>{let a=this.manager.tooltipViews[t];return a.getCoords?a.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((({dom:e})=>e.getBoundingClientRect())),space:this.view.state.facet(Jd).tooltipSpace(this.view)}}writeMeasure(e){var t;let{editor:a,space:n}=e,i=[];for(let s=0;s<this.manager.tooltips.length;s++){let r=this.manager.tooltips[s],o=this.manager.tooltipViews[s],{dom:l}=o,c=e.pos[s],u=e.size[s];if(!c||c.bottom<=Math.max(a.top,n.top)||c.top>=Math.min(a.bottom,n.bottom)||c.right<Math.max(a.left,n.left)-.1||c.left>Math.min(a.right,n.right)+.1){l.style.top=Xd;continue}let f=r.arrow?o.dom.querySelector(".cm-tooltip-arrow"):null,h=f?7:0,d=u.right-u.left,p=null!==(t=ep.get(o))&&void 0!==t?t:u.bottom-u.top,m=o.offset||np,g=this.view.textDirection==of.LTR,b=u.width>n.right-n.left?g?n.left:n.right-u.width:g?Math.min(c.left-(f?14:0)+m.x,n.right-d):Math.max(n.left,c.left-d+(f?14:0)-m.x),y=!!r.above;!r.strictSide&&(y?c.top-(u.bottom-u.top)-m.y<n.top:c.bottom+(u.bottom-u.top)+m.y>n.bottom)&&y==n.bottom-c.bottom>c.top-n.top&&(y=!y);let v=(y?c.top-n.top:n.bottom-c.bottom)-h;if(v<p&&!1!==o.resize){if(v<this.view.defaultLineHeight){l.style.top=Xd;continue}ep.set(o,p),l.style.height=(p=v)+"px"}else l.style.height&&(l.style.height="");let x=y?c.top-p-h-m.y:c.bottom+h+m.y,C=b+d;if(!0!==o.overlap)for(let e of i)e.left<C&&e.right>b&&e.top<x+p&&e.bottom>x&&(x=y?e.top-p-2-h:e.bottom+h+2);"absolute"==this.position?(l.style.top=x-e.parent.top+"px",l.style.left=b-e.parent.left+"px"):(l.style.top=x+"px",l.style.left=b+"px"),f&&(f.style.left=c.left+(g?m.x:-m.x)-(b+14-7)+"px"),!0!==o.overlap&&i.push({left:b,top:x,right:C,bottom:x+p}),l.classList.toggle("cm-tooltip-above",y),l.classList.toggle("cm-tooltip-below",!y),o.positioned&&o.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Xd}},{eventHandlers:{scroll(){this.maybeMeasure()}}}),ap=td.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),np={x:0,y:0},ip=rl.define({enables:[tp,ap]}),sp=rl.define();class rp{static create(e){return new rp(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Kd(e,sp,(e=>this.createHostedView(e)))}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}}const op=ip.compute([sp],(e=>{let t=e.facet(sp).filter((e=>e));return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.filter((e=>null!=e.end)).map((e=>e.end))),create:rp.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class lp{constructor(e,t,a,n,i){this.view=e,this.source=t,this.field=a,this.setHover=n,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{lastMove:e}=this,t=this.view.contentDOM.contains(e.target)?this.view.posAtCoords(e):null;if(null==t)return;let a=this.view.coordsAtPos(t);if(null==a||e.y<a.top||e.y>a.bottom||e.x<a.left-this.view.defaultCharacterWidth||e.x>a.right+this.view.defaultCharacterWidth)return;let n=this.view.bidiSpans(this.view.state.doc.lineAt(t)).find((e=>e.from<=t&&e.to>=t)),i=n&&n.dir==of.RTL?-1:1,s=this.source(this.view,t,e.x<a.left?-i:i);if(null==s?void 0:s.then){let e=this.pending={pos:t};s.then((t=>{this.pending==e&&(this.pending=null,t&&this.view.dispatch({effects:this.setHover.of(t)}))}),(e=>ju(this.view.state,e,"hover tooltip")))}else s&&this.view.dispatch({effects:this.setHover.of(s)})}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let a=this.active;if(a&&!cp(this.lastMove.target)||this.pending){let{pos:n}=a||this.pending,i=null!==(t=null==a?void 0:a.end)&&void 0!==t?t:n;(n==i?this.view.posAtCoords(this.lastMove)==n:function(e,t,a,n,i,s){let r=document.createRange(),o=e.domAtPos(t),l=e.domAtPos(a);r.setEnd(l.node,l.offset),r.setStart(o.node,o.offset);let c=r.getClientRects();r.detach();for(let e=0;e<c.length;e++){let t=c[e];if(Math.max(t.top-i,i-t.bottom,t.left-n,n-t.right)<=6)return!0}return!1}(this.view,n,i,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!cp(e.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function cp(e){for(let t=e;t;t=t.parentNode)if(1==t.nodeType&&t.classList.contains("cm-tooltip"))return!0;return!1}function up(e,t={}){let a=Al.define(),n=dl.define({create:()=>null,update(e,n){if(e&&(t.hideOnChange&&(n.docChanged||n.selection)||t.hideOn&&t.hideOn(n,e)))return null;if(e&&n.docChanged){let t=n.changes.mapPos(e.pos,-1,qo.TrackDel);if(null==t)return null;let a=Object.assign(Object.create(null),e);a.pos=t,null!=e.end&&(a.end=n.changes.mapPos(e.end)),e=a}for(let t of n.effects)t.is(a)&&(e=t.value),t.is(hp)&&(e=null);return e},provide:e=>sp.from(e)});return[n,Qu.define((i=>new lp(i,e,n,a,t.hoverTime||300))),op]}function fp(e,t){let a=e.plugin(tp);if(!a)return null;let n=a.manager.tooltips.indexOf(t);return n<0?null:a.manager.tooltipViews[n]}const hp=Al.define(),dp=rl.define({combine(e){let t,a;for(let n of e)t=t||n.topContainer,a=a||n.bottomContainer;return{topContainer:t,bottomContainer:a}}});function pp(e,t){let a=e.plugin(mp),n=a?a.specs.indexOf(t):-1;return n>-1?a.panels[n]:null}const mp=Qu.fromClass(class{constructor(e){this.input=e.state.facet(yp),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(dp);this.top=new gp(e,!0,t.topContainer),this.bottom=new gp(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(e){let t=e.state.facet(dp);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new gp(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new gp(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let a=e.state.facet(yp);if(a!=this.input){let t=a.filter((e=>e)),n=[],i=[],s=[],r=[];for(let a of t){let t,o=this.specs.indexOf(a);o<0?(t=a(e.view),r.push(t)):(t=this.panels[o],t.update&&t.update(e)),n.push(t),(t.top?i:s).push(t)}this.specs=t,this.panels=n,this.top.sync(i),this.bottom.sync(s);for(let e of r)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>td.scrollMargins.of((t=>{let a=t.plugin(e);return a&&{top:a.top.scrollMargin(),bottom:a.bottom.scrollMargin()}}))});class gp{constructor(e,t,a){this.view=e,this.top=t,this.container=a,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=bp(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=bp(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function bp(e){let t=e.nextSibling;return e.remove(),t}const yp=rl.define({enables:mp});class vp extends jl{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}vp.prototype.elementClass="",vp.prototype.toDOM=void 0,vp.prototype.mapMode=qo.TrackBefore,vp.prototype.startSide=vp.prototype.endSide=-1,vp.prototype.point=!0;const xp=rl.define(),Cp={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Ql.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Sp=rl.define();function kp(e){return[Op(),Sp.of(Object.assign(Object.assign({},Cp),e))]}const _p=rl.define({combine:e=>e.some((e=>e))});function Op(e){let t=[Ep];return e&&!1===e.fixed&&t.push(_p.of(!0)),t}const Ep=Qu.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=e.state.facet(Sp).map((t=>new Tp(e,t)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!e.state.facet(_p),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,a=e.view.viewport,n=Math.min(t.to,a.to)-Math.max(t.from,a.from);this.syncGutters(n<.8*(a.to-a.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(_p)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let a=Ql.iter(this.view.state.facet(xp),this.view.viewport.from),n=[],i=this.gutters.map((e=>new Pp(e,this.view.viewport,-this.view.documentPadding.top)));for(let e of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(e.type)){let t=!0;for(let s of e.type)if(s.type==Su.Text&&t){$p(a,n,s.from);for(let e of i)e.line(this.view,s,n);t=!1}else if(s.widget)for(let e of i)e.widget(this.view,s)}else if(e.type==Su.Text){$p(a,n,e.from);for(let t of i)t.line(this.view,e,n)}for(let e of i)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(Sp),a=e.state.facet(Sp),n=e.docChanged||e.heightChanged||e.viewportChanged||!Ql.eq(e.startState.facet(xp),e.state.facet(xp),e.view.viewport.from,e.view.viewport.to);if(t==a)for(let t of this.gutters)t.update(e)&&(n=!0);else{n=!0;let i=[];for(let n of a){let a=t.indexOf(n);a<0?i.push(new Tp(this.view,n)):(this.gutters[a].update(e),i.push(this.gutters[a]))}for(let e of this.gutters)e.dom.remove(),i.indexOf(e)<0&&e.destroy();for(let e of i)this.dom.appendChild(e.dom);this.gutters=i}return n}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>td.scrollMargins.of((t=>{let a=t.plugin(e);return a&&0!=a.gutters.length&&a.fixed?t.textDirection==of.LTR?{left:a.dom.offsetWidth}:{right:a.dom.offsetWidth}:null}))});function Mp(e){return Array.isArray(e)?e:[e]}function $p(e,t,a){for(;e.value&&e.from<=a;)e.from==a&&t.push(e.value),e.next()}class Pp{constructor(e,t,a){this.gutter=e,this.height=a,this.i=0,this.cursor=Ql.iter(e.markers,t.from)}addElement(e,t,a){let{gutter:n}=this,i=t.top-this.height;if(this.i==n.elements.length){let s=new Ap(e,t.height,i,a);n.elements.push(s),n.dom.appendChild(s.dom)}else n.elements[this.i].update(e,t.height,i,a);this.height=t.bottom,this.i++}line(e,t,a){let n=[];$p(this.cursor,n,t.from),a.length&&(n=n.concat(a));let i=this.gutter.config.lineMarker(e,t,n);i&&n.unshift(i);let s=this.gutter;(0!=n.length||s.config.renderEmptyElements)&&this.addElement(e,t,n)}widget(e,t){let a=this.gutter.config.widgetMarker(e,t.widget,t);a&&this.addElement(e,t,[a])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Tp{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let a in t.domEventHandlers)this.dom.addEventListener(a,(n=>{let i,s=n.target;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let e=s.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=n.clientY;let r=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[a](e,r,n)&&n.preventDefault()}));this.markers=Mp(t.markers(e)),t.initialSpacer&&(this.spacer=new Ap(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Mp(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let a=e.view.viewport;return!Ql.eq(this.markers,t,a.from,a.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class Ap{constructor(e,t,a,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,a,n)}update(e,t,a,n){this.height!=t&&(this.dom.style.height=(this.height=t)+"px"),this.above!=a&&(this.dom.style.marginTop=(this.above=a)?a+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let a=0;a<e.length;a++)if(!e[a].compare(t[a]))return!1;return!0}(this.markers,n)||this.setMarkers(e,n)}setMarkers(e,t){let a="cm-gutterElement",n=this.dom.firstChild;for(let i=0,s=0;;){let r=s,o=i<t.length?t[i++]:null,l=!1;if(o){let e=o.elementClass;e&&(a+=" "+e);for(let e=s;e<this.markers.length;e++)if(this.markers[e].compare(o)){r=e,l=!0;break}}else r=this.markers.length;for(;s<r;){let e=this.markers[s++];if(e.toDOM){e.destroy(n);let t=n.nextSibling;n.remove(),n=t}}if(!o)break;o.toDOM&&(l?n=n.nextSibling:this.dom.insertBefore(o.toDOM(e),n)),l&&s++}this.dom.className=a,this.markers=t}destroy(){this.setMarkers(null,[])}}const Bp=rl.define(),Rp=rl.define({combine:e=>Gl(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let a=Object.assign({},e);for(let e in t){let n=a[e],i=t[e];a[e]=n?(e,t,a)=>n(e,t,a)||i(e,t,a):i}return a}})});class Ip extends vp{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Dp(e,t){return e.state.facet(Rp).formatNumber(t,e.state)}const Np=Sp.compute([Rp],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(Bp),lineMarker:(e,t,a)=>a.some((e=>e.toDOM))?null:new Ip(Dp(e,e.state.doc.lineAt(t.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Rp)!=e.state.facet(Rp),initialSpacer:e=>new Ip(Dp(e,Lp(e.state.doc.lines))),updateSpacer(e,t){let a=Dp(t.view,Lp(t.view.state.doc.lines));return a==e.number?e:new Ip(a)},domEventHandlers:e.facet(Rp).domEventHandlers})));function Lp(e){let t=9;for(;t<e;)t=10*t+9;return t}const Fp=new class extends vp{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},zp=xp.compute(["selection"],(e=>{let t=[],a=-1;for(let n of e.selection.ranges){let i=e.doc.lineAt(n.head).from;i>a&&(a=i,t.push(Fp.range(i)))}return Ql.of(t)})),Vp=1024;let Up=0;class Hp{constructor(e,t){this.from=e,this.to=t}}class Gp{constructor(e={}){this.id=Up++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=Wp.match(e)),t=>{let a=e(t);return void 0===a?null:[this,a]}}}Gp.closedBy=new Gp({deserialize:e=>e.split(" ")}),Gp.openedBy=new Gp({deserialize:e=>e.split(" ")}),Gp.group=new Gp({deserialize:e=>e.split(" ")}),Gp.contextHash=new Gp({perNode:!0}),Gp.lookAhead=new Gp({perNode:!0}),Gp.mounted=new Gp({perNode:!0});const jp=Object.create(null);class Wp{constructor(e,t,a,n=0){this.name=e,this.props=t,this.id=a,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):jp,a=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),n=new Wp(e.name||"",t,e.id,a);if(e.props)for(let a of e.props)if(Array.isArray(a)||(a=a(n)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[a[0].id]=a[1]}return n}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(Gp.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let a in e)for(let n of a.split(" "))t[n]=e[a];return e=>{for(let a=e.prop(Gp.group),n=-1;n<(a?a.length:0);n++){let i=t[n<0?e.name:a[n]];if(i)return i}}}}Wp.none=new Wp("",Object.create(null),0,8);class qp{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let a of this.types){let n=null;for(let t of e){let e=t(a);e&&(n||(n=Object.assign({},a.props)),n[e[0].id]=e[1])}t.push(n?new Wp(a.name,n,a.id,a.flags):a)}return new qp(t)}}const Zp=new WeakMap,Qp=new WeakMap;var Xp;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(Xp||(Xp={}));class Kp{constructor(e,t,a,n,i){if(this.type=e,this.children=t,this.positions=a,this.length=n,this.props=null,i&&i.length){this.props=Object.create(null);for(let[e,t]of i)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=this.prop(Gp.mounted);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let a=e.toString();a&&(t&&(t+=","),t+=a)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new lm(this.topNode,e)}cursorAt(e,t=0,a=0){let n=Zp.get(this)||this.topNode,i=new lm(n);return i.moveTo(e,t),Zp.set(this,i._tree),i}get topNode(){return new nm(this,0,0,null)}resolve(e,t=0){let a=am(Zp.get(this)||this.topNode,e,t,!1);return Zp.set(this,a),a}resolveInner(e,t=0){let a=am(Qp.get(this)||this.topNode,e,t,!0);return Qp.set(this,a),a}iterate(e){let{enter:t,leave:a,from:n=0,to:i=this.length}=e,s=e.mode||0,r=(s&Xp.IncludeAnonymous)>0;for(let e=this.cursor(s|Xp.IncludeAnonymous);;){let s=!1;if(e.from<=i&&e.to>=n&&(!r&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;s=!0}for(;s&&a&&(r||!e.type.isAnonymous)&&a(e),!e.nextSibling();){if(!e.parent())return;s=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:hm(Wp.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,a)=>new Kp(this.type,e,t,a,this.propValues)),e.makeTree||((e,t,a)=>new Kp(Wp.none,e,t,a)))}static build(e){return function(e){var t;let{buffer:a,nodeSet:n,maxBufferLength:i=Vp,reused:s=[],minRepeatType:r=n.types.length}=e,o=Array.isArray(a)?new Yp(a,a.length):a,l=n.types,c=0,u=0;function f(e,t,a,m,g){let{id:b,start:y,end:v,size:x}=o,C=u;for(;x<0;){if(o.next(),-1==x){let t=s[b];return a.push(t),void m.push(y-e)}if(-3==x)return void(c=b);if(-4==x)return void(u=b);throw new RangeError(`Unrecognized record size: ${x}`)}let S,w,k=l[b],_=y-e;if(v-y<=i&&(w=function(e,t){let a=o.fork(),n=0,s=0,l=0,c=a.end-i,u={size:0,start:0,skip:0};e:for(let i=a.pos-e;a.pos>i;){let e=a.size;if(a.id==t&&e>=0){u.size=n,u.start=s,u.skip=l,l+=4,n+=4,a.next();continue}let o=a.pos-e;if(e<0||o<i||a.start<c)break;let f=a.id>=r?4:0,h=a.start;for(a.next();a.pos>o;){if(a.size<0){if(-3!=a.size)break e;f+=4}else a.id>=r&&(f+=4);a.next()}s=h,n+=e,l+=f}return(t<0||n==e)&&(u.size=n,u.start=s,u.skip=l),u.size>4?u:void 0}(o.pos-t,g))){let t=new Uint16Array(w.size-w.skip),a=o.pos-w.size,i=t.length;for(;o.pos>a;)i=p(w.start,t,i);S=new Jp(t,v-w.start,n),_=w.start-e}else{let e=o.pos-x;o.next();let t=[],a=[],n=b>=r?b:-1,s=0,l=v;for(;o.pos>e;)n>=0&&o.id==n&&o.size>=0?(o.end<=l-i&&(h(t,a,y,s,o.end,l,n,C),s=t.length,l=o.end),o.next()):f(y,e,t,a,n);if(n>=0&&s>0&&s<t.length&&h(t,a,y,s,y,l,n,C),t.reverse(),a.reverse(),n>-1&&s>0){let e=function(e){return(t,a,n)=>{let i,s,r=0,o=t.length-1;if(o>=0&&(i=t[o])instanceof Kp){if(!o&&i.type==e&&i.length==n)return i;(s=i.prop(Gp.lookAhead))&&(r=a[o]+i.length+s)}return d(e,t,a,n,r)}}(k);S=hm(k,t,a,0,t.length,0,v-y,e,e)}else S=d(k,t,a,v-y,C-v)}a.push(S),m.push(_)}function h(e,t,a,i,s,r,o,l){let c=[],u=[];for(;e.length>i;)c.push(e.pop()),u.push(t.pop()+a-s);e.push(d(n.types[o],c,u,r-s,l-r)),t.push(s-a)}function d(e,t,a,n,i=0,s){if(c){let e=[Gp.contextHash,c];s=s?[e].concat(s):[e]}if(i>25){let e=[Gp.lookAhead,i];s=s?[e].concat(s):[e]}return new Kp(e,t,a,n,s)}function p(e,t,a){let{id:n,start:i,end:s,size:l}=o;if(o.next(),l>=0&&n<r){let r=a;if(l>4){let n=o.pos-(l-4);for(;o.pos>n;)a=p(e,t,a)}t[--a]=r,t[--a]=s-e,t[--a]=i-e,t[--a]=n}else-3==l?c=n:-4==l&&(u=n);return a}let m=[],g=[];for(;o.pos>0;)f(e.start||0,e.bufferStart||0,m,g,-1);let b=null!==(t=e.length)&&void 0!==t?t:m.length?g[0]+m[0].length:0;return new Kp(l[e.topID],m.reverse(),g.reverse(),b)}(e)}}Kp.empty=new Kp(Wp.none,[],[],0);class Yp{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Yp(this.buffer,this.index)}}class Jp{constructor(e,t,a){this.buffer=e,this.length=t,this.set=a}get type(){return Wp.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],a=this.buffer[e+3],n=this.set.types[t],i=n.name;if(/\W/.test(i)&&!n.isError&&(i=JSON.stringify(i)),a==(e+=4))return i;let s=[];for(;e<a;)s.push(this.childString(e)),e=this.buffer[e+3];return i+"("+s.join(",")+")"}findChild(e,t,a,n,i){let{buffer:s}=this,r=-1;for(let o=e;o!=t&&!(em(i,n,s[o+1],s[o+2])&&(r=o,a>0));o=s[o+3]);return r}slice(e,t,a){let n=this.buffer,i=new Uint16Array(t-e),s=0;for(let r=e,o=0;r<t;){i[o++]=n[r++],i[o++]=n[r++]-a;let t=i[o++]=n[r++]-a;i[o++]=n[r++]-e,s=Math.max(s,t)}return new Jp(i,s,this.set)}}function em(e,t,a,n){switch(e){case-2:return a<t;case-1:return n>=t&&a<t;case 0:return a<t&&n>t;case 1:return a<=t&&n>t;case 2:return n>t;case 4:return!0}}function tm(e,t){let a=e.childBefore(t);for(;a;){let t=a.lastChild;if(!t||t.to!=a.to)break;t.type.isError&&t.from==t.to?(e=a,a=t.prevSibling):a=t}return e}function am(e,t,a,n){for(var i;e.from==e.to||(a<1?e.from>=t:e.from>t)||(a>-1?e.to<=t:e.to<t);){let t=!n&&e instanceof nm&&e.index<0?null:e.parent;if(!t)return e;e=t}let s=n?0:Xp.IgnoreOverlays;if(n)for(let n=e,r=n.parent;r;n=r,r=n.parent)n instanceof nm&&n.index<0&&(null===(i=r.enter(t,a,s))||void 0===i?void 0:i.from)!=n.from&&(e=r);for(;;){let n=e.enter(t,a,s);if(!n)return e;e=n}}class nm{constructor(e,t,a,n){this._tree=e,this.from=t,this.index=a,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,a,n,i=0){for(let s=this;;){for(let{children:r,positions:o}=s._tree,l=t>0?r.length:-1;e!=l;e+=t){let l=r[e],c=o[e]+s.from;if(em(n,a,c,c+l.length))if(l instanceof Jp){if(i&Xp.ExcludeBuffers)continue;let r=l.findChild(0,l.buffer.length,t,a-c,n);if(r>-1)return new om(new rm(s,l,e,c),null,r)}else if(i&Xp.IncludeAnonymous||!l.type.isAnonymous||cm(l)){let r;if(!(i&Xp.IgnoreMounts)&&l.props&&(r=l.prop(Gp.mounted))&&!r.overlay)return new nm(r.tree,c,e,s);let o=new nm(l,c,e,s);return i&Xp.IncludeAnonymous||!o.type.isAnonymous?o:o.nextChild(t<0?l.children.length-1:0,t,a,n)}}if(i&Xp.IncludeAnonymous||!s.type.isAnonymous)return null;if(e=s.index>=0?s.index+t:t<0?-1:s._parent._tree.children.length,s=s._parent,!s)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,a=0){let n;if(!(a&Xp.IgnoreOverlays)&&(n=this._tree.prop(Gp.mounted))&&n.overlay){let a=e-this.from;for(let{from:e,to:i}of n.overlay)if((t>0?e<=a:e<a)&&(t<0?i>=a:i>a))return new nm(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,a)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new lm(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return am(this,e,t,!1)}resolveInner(e,t=0){return am(this,e,t,!0)}enterUnfinishedNodesBefore(e){return tm(this,e)}getChild(e,t=null,a=null){let n=im(this,e,t,a);return n.length?n[0]:null}getChildren(e,t=null,a=null){return im(this,e,t,a)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return sm(this,e)}}function im(e,t,a,n){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(null!=a)for(;!i.type.is(a);)if(!i.nextSibling())return s;for(;;){if(null!=n&&i.type.is(n))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return null==n?s:[]}}function sm(e,t,a=t.length-1){for(let n=e.parent;a>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[a]&&t[a]!=n.name)return!1;a--}}return!0}class rm{constructor(e,t,a,n){this.parent=e,this.buffer=t,this.index=a,this.start=n}}class om{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,a){this.context=e,this._parent=t,this.index=a,this.type=e.buffer.set.types[e.buffer.buffer[a]]}child(e,t,a){let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,a);return i<0?null:new om(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,a=0){if(a&Xp.ExcludeBuffers)return null;let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new om(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new om(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new om(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new lm(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:a}=this.context,n=this.index+4,i=a.buffer[this.index+3];if(i>n){let s=a.buffer[this.index+1];e.push(a.slice(n,i,s)),t.push(0)}return new Kp(this.type,e,t,this.to-this.from)}resolve(e,t=0){return am(this,e,t,!1)}resolveInner(e,t=0){return am(this,e,t,!0)}enterUnfinishedNodesBefore(e){return tm(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,a=null){let n=im(this,e,t,a);return n.length?n[0]:null}getChildren(e,t=null,a=null){return im(this,e,t,a)}get node(){return this}matchContext(e){return sm(this,e)}}class lm{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof nm)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:a,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=a+n.buffer[e+1],this.to=a+n.buffer[e+2],!0}yield(e){return!!e&&(e instanceof nm?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,a){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,a,this.mode));let{buffer:n}=this.buffer,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,a);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,a=this.mode){return this.buffer?!(a&Xp.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,a))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Xp.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Xp.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,a=this.stack.length-1;if(e<0){let e=a<0?0:this.stack[a]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(a<0?t.buffer.length:t.buffer[this.stack[a]+3]))return this.yieldBuf(e)}return a<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,a,{buffer:n}=this;if(n){if(e>0){if(this.index<n.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(n.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:a}=n)}else({index:t,_parent:a}=this._tree);for(;a;({index:t,_parent:a}=a))if(t>-1)for(let n=t+e,i=e<0?-1:a._tree.children.length;n!=i;n+=e){let e=a._tree.children[n];if(this.mode&Xp.IncludeAnonymous||e instanceof Jp||!e.type.isAnonymous||cm(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,a=0;if(e&&e.context==this.buffer)e:for(let n=this.index,i=this.stack.length;i>=0;){for(let s=e;s;s=s._parent)if(s.index==n){if(n==this.index)return s;t=s,a=i+1;break e}n=this.stack[--i]}for(let e=a;e<this.stack.length;e++)t=new om(this.buffer,t,this.stack[e]);return this.bufferNode=new om(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let a=0;;){let n=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){a++;continue}this.type.isAnonymous||(n=!0)}for(;n&&t&&t(this),n=this.type.isAnonymous,!this.nextSibling();){if(!a)return;this.parent(),a--,n=!0}}}matchContext(e){if(!this.buffer)return sm(this.node,e);let{buffer:t}=this.buffer,{types:a}=t.set;for(let n=e.length-1,i=this.stack.length-1;n>=0;i--){if(i<0)return sm(this.node,e,n);let s=a[t.buffer[this.stack[i]]];if(!s.isAnonymous){if(e[n]&&e[n]!=s.name)return!1;n--}}return!0}}function cm(e){return e.children.some((e=>e instanceof Jp||!e.type.isAnonymous||cm(e)))}const um=new WeakMap;function fm(e,t){if(!e.isAnonymous||t instanceof Jp||t.type!=e)return 1;let a=um.get(t);if(null==a){a=1;for(let n of t.children){if(n.type!=e||!(n instanceof Kp)){a=1;break}a+=fm(e,n)}um.set(t,a)}return a}function hm(e,t,a,n,i,s,r,o,l){let c=0;for(let a=n;a<i;a++)c+=fm(e,t[a]);let u=Math.ceil(1.5*c/8),f=[],h=[];return function t(a,n,i,r,o){for(let c=i;c<r;){let i=c,d=n[c],p=fm(e,a[c]);for(c++;c<r;c++){let t=fm(e,a[c]);if(p+t>=u)break;p+=t}if(c==i+1){if(p>u){let e=a[i];t(e.children,e.positions,0,e.children.length,n[i]+o);continue}f.push(a[i])}else{let t=n[c-1]+a[c-1].length-d;f.push(hm(e,a,n,i,c,d,t,null,l))}h.push(d+o-s)}}(t,a,n,i,0),(o||l)(f,h,r)}class dm{constructor(){this.map=new WeakMap}setBuffer(e,t,a){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,a)}getBuffer(e,t){let a=this.map.get(e);return a&&a.get(t)}set(e,t){e instanceof om?this.setBuffer(e.context.buffer,e.index,t):e instanceof nm&&this.map.set(e.tree,t)}get(e){return e instanceof om?this.getBuffer(e.context.buffer,e.index):e instanceof nm?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class pm{constructor(e,t,a,n,i=!1,s=!1){this.from=e,this.to=t,this.tree=a,this.offset=n,this.open=(i?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],a=!1){let n=[new pm(0,e.length,e,0,!1,a)];for(let a of t)a.to>e.length&&n.push(a);return n}static applyChanges(e,t,a=128){if(!t.length)return e;let n=[],i=1,s=e.length?e[0]:null;for(let r=0,o=0,l=0;;r++){let c=r<t.length?t[r]:null,u=c?c.fromA:1e9;if(u-o>=a)for(;s&&s.from<u;){let t=s;if(o>=t.from||u<=t.to||l){let e=Math.max(t.from,o)-l,a=Math.min(t.to,u)-l;t=e>=a?null:new pm(e,a,t.tree,t.offset+l,r>0,!!c)}if(t&&n.push(t),s.to>u)break;s=i<e.length?e[i++]:null}if(!c)break;o=c.toA,l=c.toA-c.toB}return n}}class mm{startParse(e,t,a){return"string"==typeof e&&(e=new gm(e)),a=a?a.length?a.map((e=>new Hp(e.from,e.to))):[new Hp(0,0)]:[new Hp(0,e.length)],this.createParse(e,t||[],a)}parse(e,t,a){let n=this.startParse(e,t,a);for(;;){let e=n.advance();if(e)return e}}}class gm{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new Gp({perNode:!0});let bm=0;class ym{constructor(e,t,a){this.set=e,this.base=t,this.modified=a,this.id=bm++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new ym([],null,[]);if(t.set.push(t),e)for(let a of e.set)t.set.push(a);return t}static defineModifier(){let e=new xm;return t=>t.modified.indexOf(e)>-1?t:xm.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let vm=0;class xm{constructor(){this.instances=[],this.id=vm++}static get(e,t){if(!t.length)return e;let a=t[0].instances.find((a=>{return a.base==e&&(n=t,i=a.modified,n.length==i.length&&n.every(((e,t)=>e==i[t])));var n,i}));if(a)return a;let n=[],i=new ym(n,e,t);for(let e of t)e.instances.push(i);let s=function(e){let t=[[]];for(let a=0;a<e.length;a++)for(let n=0,i=t.length;n<i;n++)t.push(t[n].concat(e[a]));return t.sort(((e,t)=>t.length-e.length))}(t);for(let t of e.set)if(!t.modified.length)for(let e of s)n.push(xm.get(t,e));return i}}function Cm(e){let t=Object.create(null);for(let a in e){let n=e[a];Array.isArray(n)||(n=[n]);for(let e of a.split(" "))if(e){let a=[],i=2,s=e;for(let t=0;;){if("..."==s&&t>0&&t+3==e.length){i=1;break}let n=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!n)throw new RangeError("Invalid path: "+e);if(a.push("*"==n[0]?"":'"'==n[0][0]?JSON.parse(n[0]):n[0]),t+=n[0].length,t==e.length)break;let r=e[t++];if(t==e.length&&"!"==r){i=0;break}if("/"!=r)throw new RangeError("Invalid path: "+e);s=e.slice(t)}let r=a.length-1,o=a[r];if(!o)throw new RangeError("Invalid path: "+e);let l=new wm(n,i,r>0?a.slice(0,r):null);t[o]=l.sort(t[o])}}return Sm.add(t)}const Sm=new Gp;class wm{constructor(e,t,a,n){this.tags=e,this.mode=t,this.context=a,this.next=n}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function km(e,t){let a=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)a[e.id]=t.class;else a[t.tag.id]=t.class;let{scope:n,all:i=null}=t||{};return{style:e=>{let t=i;for(let n of e)for(let e of n.set){let n=a[e.id];if(n){t=t?t+" "+n:n;break}}return t},scope:n}}function _m(e,t,a,n=0,i=e.length){let s=new Om(n,Array.isArray(t)?t:[t],a);s.highlightRange(e.cursor(),n,i,"",s.highlighters),s.flush(i)}wm.empty=new wm([],2,null);class Om{constructor(e,t,a){this.at=e,this.highlighters=t,this.span=a,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,a,n,i){let{type:s,from:r,to:o}=e;if(r>=a||o<=t)return;s.isTop&&(i=this.highlighters.filter((e=>!e.scope||e.scope(s))));let l=n,c=function(e){let t=e.type.prop(Sm);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||wm.empty,u=function(e,t){let a=null;for(let n of e){let e=n.style(t);e&&(a=a?a+" "+e:e)}return a}(i,c.tags);if(u&&(l&&(l+=" "),l+=u,1==c.mode&&(n+=(n?" ":"")+u)),this.startSpan(Math.max(t,r),l),c.opaque)return;let f=e.tree&&e.tree.prop(Gp.mounted);if(f&&f.overlay){let s=e.node.enter(f.overlay[0].from+r,1),c=this.highlighters.filter((e=>!e.scope||e.scope(f.tree.type))),u=e.firstChild();for(let h=0,d=r;;h++){let p=h<f.overlay.length?f.overlay[h]:null,m=p?p.from+r:o,g=Math.max(t,d),b=Math.min(a,m);if(g<b&&u)for(;e.from<b&&(this.highlightRange(e,g,b,n,i),this.startSpan(Math.min(b,e.to),l),!(e.to>=m)&&e.nextSibling()););if(!p||m>a)break;d=p.to+r,d>t&&(this.highlightRange(s.cursor(),Math.max(t,p.from+r),Math.min(a,d),"",c),this.startSpan(Math.min(a,d),l))}u&&e.parent()}else if(e.firstChild()){f&&(n="");do{if(!(e.to<=t)){if(e.from>=a)break;this.highlightRange(e,t,a,n,i),this.startSpan(Math.min(a,e.to),l)}}while(e.nextSibling());e.parent()}}}const Em=ym.define,Mm=Em(),$m=Em(),Pm=Em($m),Tm=Em($m),Am=Em(),Bm=Em(Am),Rm=Em(Am),Im=Em(),Dm=Em(Im),Nm=Em(),Lm=Em(),Fm=Em(),zm=Em(Fm),Vm=Em(),Um={comment:Mm,lineComment:Em(Mm),blockComment:Em(Mm),docComment:Em(Mm),name:$m,variableName:Em($m),typeName:Pm,tagName:Em(Pm),propertyName:Tm,attributeName:Em(Tm),className:Em($m),labelName:Em($m),namespace:Em($m),macroName:Em($m),literal:Am,string:Bm,docString:Em(Bm),character:Em(Bm),attributeValue:Em(Bm),number:Rm,integer:Em(Rm),float:Em(Rm),bool:Em(Am),regexp:Em(Am),escape:Em(Am),color:Em(Am),url:Em(Am),keyword:Nm,self:Em(Nm),null:Em(Nm),atom:Em(Nm),unit:Em(Nm),modifier:Em(Nm),operatorKeyword:Em(Nm),controlKeyword:Em(Nm),definitionKeyword:Em(Nm),moduleKeyword:Em(Nm),operator:Lm,derefOperator:Em(Lm),arithmeticOperator:Em(Lm),logicOperator:Em(Lm),bitwiseOperator:Em(Lm),compareOperator:Em(Lm),updateOperator:Em(Lm),definitionOperator:Em(Lm),typeOperator:Em(Lm),controlOperator:Em(Lm),punctuation:Fm,separator:Em(Fm),bracket:zm,angleBracket:Em(zm),squareBracket:Em(zm),paren:Em(zm),brace:Em(zm),content:Im,heading:Dm,heading1:Em(Dm),heading2:Em(Dm),heading3:Em(Dm),heading4:Em(Dm),heading5:Em(Dm),heading6:Em(Dm),contentSeparator:Em(Im),list:Em(Im),quote:Em(Im),emphasis:Em(Im),strong:Em(Im),link:Em(Im),monospace:Em(Im),strikethrough:Em(Im),inserted:Em(),deleted:Em(),changed:Em(),invalid:Em(),meta:Vm,documentMeta:Em(Vm),annotation:Em(Vm),processingInstruction:Em(Vm),definition:ym.defineModifier(),constant:ym.defineModifier(),function:ym.defineModifier(),standard:ym.defineModifier(),local:ym.defineModifier(),special:ym.defineModifier()};var Hm;km([{tag:Um.link,class:"tok-link"},{tag:Um.heading,class:"tok-heading"},{tag:Um.emphasis,class:"tok-emphasis"},{tag:Um.strong,class:"tok-strong"},{tag:Um.keyword,class:"tok-keyword"},{tag:Um.atom,class:"tok-atom"},{tag:Um.bool,class:"tok-bool"},{tag:Um.url,class:"tok-url"},{tag:Um.labelName,class:"tok-labelName"},{tag:Um.inserted,class:"tok-inserted"},{tag:Um.deleted,class:"tok-deleted"},{tag:Um.literal,class:"tok-literal"},{tag:Um.string,class:"tok-string"},{tag:Um.number,class:"tok-number"},{tag:[Um.regexp,Um.escape,Um.special(Um.string)],class:"tok-string2"},{tag:Um.variableName,class:"tok-variableName"},{tag:Um.local(Um.variableName),class:"tok-variableName tok-local"},{tag:Um.definition(Um.variableName),class:"tok-variableName tok-definition"},{tag:Um.special(Um.variableName),class:"tok-variableName2"},{tag:Um.definition(Um.propertyName),class:"tok-propertyName tok-definition"},{tag:Um.typeName,class:"tok-typeName"},{tag:Um.namespace,class:"tok-namespace"},{tag:Um.className,class:"tok-className"},{tag:Um.macroName,class:"tok-macroName"},{tag:Um.propertyName,class:"tok-propertyName"},{tag:Um.operator,class:"tok-operator"},{tag:Um.comment,class:"tok-comment"},{tag:Um.meta,class:"tok-meta"},{tag:Um.invalid,class:"tok-invalid"},{tag:Um.punctuation,class:"tok-punctuation"}]);const Gm=new Gp;const jm=new Gp;class Wm{constructor(e,t,a=[],n=""){this.data=e,this.name=n,Hl.prototype.hasOwnProperty("tree")||Object.defineProperty(Hl.prototype,"tree",{get(){return Qm(this)}}),this.parser=t,this.extension=[ig.of(this),Hl.languageData.of(((e,t,a)=>{let n=qm(e,t,a),i=n.type.prop(Gm);if(!i)return[];let s=e.facet(i),r=n.type.prop(jm);if(r){let i=n.resolve(t-n.from,a);for(let t of r)if(t.test(i,e)){let a=e.facet(t.facet);return"replace"==t.type?a:a.concat(s)}}return s}))].concat(a)}isActiveAt(e,t,a=-1){return qm(e,t,a).type.prop(Gm)==this.data}findRegions(e){let t=e.facet(ig);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let a=[],n=(e,t)=>{if(e.prop(Gm)==this.data)return void a.push({from:t,to:t+e.length});let i=e.prop(Gp.mounted);if(i){if(i.tree.prop(Gm)==this.data){if(i.overlay)for(let e of i.overlay)a.push({from:e.from+t,to:e.to+t});else a.push({from:t,to:t+e.length});return}if(i.overlay){let e=a.length;if(n(i.tree,i.overlay[0].from+t),a.length>e)return}}for(let a=0;a<e.children.length;a++){let i=e.children[a];i instanceof Kp&&n(i,e.positions[a]+t)}};return n(Qm(e),0),a}get allowsNesting(){return!0}}function qm(e,t,a){let n=e.facet(ig),i=Qm(e).topNode;if(!n||n.allowsNesting)for(let e=i;e;e=e.enter(t,a,Xp.ExcludeBuffers))e.type.isTop&&(i=e);return i}Wm.setState=Al.define();class Zm extends Wm{constructor(e,t,a){super(e,t,[],a),this.parser=t}static define(e){let t=(a=e.languageData,rl.define({combine:a?e=>e.concat(a):void 0}));var a;return new Zm(t,e.parser.configure({props:[Gm.add((e=>e.isTop?t:void 0))]}),e.name)}configure(e,t){return new Zm(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Qm(e){let t=e.field(Wm.state,!1);return t?t.tree:Kp.empty}class Xm{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let a=this.cursorPos-this.string.length;return e<a||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-a,t-a)}}let Km=null;class Ym{constructor(e,t,a=[],n,i,s,r,o){this.parser=e,this.state=t,this.fragments=a,this.tree=n,this.treeLen=i,this.viewport=s,this.skipped=r,this.scheduleOn=o,this.parse=null,this.tempSkipped=[]}static create(e,t,a){return new Ym(e,t,[],Kp.empty,0,a,[],null)}startParse(){return this.parser.startParse(new Xm(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=Kp.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var a;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let n=this.parse.advance();if(n){if(this.fragments=this.withoutTempSkipped(pm.addTree(n,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(a=this.parse.stoppedAt)&&void 0!==a?a:this.state.doc.length,this.tree=n,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}}))}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(pm.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Km;Km=this;try{return e()}finally{Km=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Jm(e,t.from,t.to);return e}changes(e,t){let{fragments:a,tree:n,treeLen:i,viewport:s,skipped:r}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,a,n,i)=>t.push({fromA:e,toA:a,fromB:n,toB:i}))),a=pm.applyChanges(a,t),n=Kp.empty,i=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){r=[];for(let t of this.skipped){let a=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);a<n&&r.push({from:a,to:n})}}}return new Ym(this.parser,t,a,n,i,s,r,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:a,to:n}=this.skipped[t];a<e.to&&n>e.from&&(this.fragments=Jm(this.fragments,a,n),this.skipped.splice(t--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends mm{createParse(t,a,n){let i=n[0].from,s=n[n.length-1].to;return{parsedPos:i,advance(){let t=Km;if(t){for(let e of n)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=s,new Kp(Wp.none,[],[],s-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return Km}}function Jm(e,t,a){return pm.applyChanges(e,[{fromA:t,toA:a,fromB:t,toB:a}])}class eg{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),a=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,a)||t.takeTree(),new eg(t)}static init(e){let t=Math.min(3e3,e.doc.length),a=Ym.create(e.facet(ig).parser,e,{from:0,to:t});return a.work(20,t)||a.takeTree(),new eg(a)}}Wm.state=dl.define({create:eg.init,update(e,t){for(let e of t.effects)if(e.is(Wm.setState))return e.value;return t.startState.facet(ig)!=t.state.facet(ig)?eg.init(t.state):e.apply(t)}});let tg=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(tg=e=>{let t=-1,a=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(a):cancelIdleCallback(t)});const ag="undefined"!=typeof navigator&&(null===(Hm=navigator.scheduling)||void 0===Hm?void 0:Hm.isInputPending)?()=>navigator.scheduling.isInputPending():null,ng=Qu.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Wm.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Wm.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=tg(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:a,viewport:{to:n}}=this.view,i=a.field(Wm.state);if(i.tree==i.context.tree&&i.context.isDone(n+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!ag?Math.max(25,e.timeRemaining()-5):1e9),r=i.context.treeLen<n&&a.doc.length>n+1e3,o=i.context.work((()=>ag&&ag()||Date.now()>s),n+(r?0:1e5));this.chunkBudget-=Date.now()-t,(o||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:Wm.setState.of(new eg(i.context))})),this.chunkBudget>0&&(!o||r)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>ju(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),ig=rl.define({combine:e=>e.length?e[0]:null,enables:e=>[Wm.state,ng,td.contentAttributes.compute([e],(t=>{let a=t.facet(e);return a&&a.name?{"data-language":a.name}:{}}))]});class sg{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const rg=rl.define(),og=rl.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function lg(e){let t=e.facet(og);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function cg(e,t){let a="",n=e.tabSize,i=e.facet(og)[0];if("\t"==i){for(;t>=n;)a+="\t",t-=n;i=" "}for(let e=0;e<t;e++)a+=i;return a}function ug(e,t){e instanceof Hl&&(e=new fg(e));for(let a of e.state.facet(rg)){let n=a(e,t);if(void 0!==n)return n}let a=Qm(e.state);return a?function(e,t,a){return pg(t.resolveInner(a).enterUnfinishedNodesBefore(a),a,e)}(e,a,t):null}class fg{constructor(e,t={}){this.state=e,this.options=t,this.unit=lg(e)}lineAt(e,t=1){let a=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:i}=this.options;return null!=n&&n>=a.from&&n<=a.to?i&&n==e?{text:"",from:e}:(t<0?n<e:n<=e)?{text:a.text.slice(n-a.from),from:n}:{text:a.text.slice(0,n-a.from),from:a.from}:a}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:a,from:n}=this.lineAt(e,t);return a.slice(e-n,Math.min(a.length,e+100-n))}column(e,t=1){let{text:a,from:n}=this.lineAt(e,t),i=this.countColumn(a,e-n),s=this.options.overrideIndentation?this.options.overrideIndentation(n):-1;return s>-1&&(i+=s-this.countColumn(a,a.search(/\S|$/))),i}countColumn(e,t=e.length){return oc(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:a,from:n}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(n);if(e>-1)return e}return this.countColumn(a,a.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const hg=new Gp;function dg(e){let t=e.type.prop(hg);if(t)return t;let a,n=e.firstChild;if(n&&(a=n.type.prop(Gp.closedBy))){let t=e.lastChild,n=t&&a.indexOf(t.name)>-1;return e=>function(e,t,a,n,i){let s=e.textAfter,r=s.match(/^\s*/)[0].length,o=n&&s.slice(r,r+n.length)==n||i==e.pos+r,l=t?function(e){let t=e.node,a=t.childAfter(t.from),n=t.lastChild;if(!a)return null;let i=e.options.simulateBreak,s=e.state.doc.lineAt(a.from),r=null==i||i<=s.from?s.to:Math.min(s.to,i);for(let e=a.to;;){let i=t.childAfter(e);if(!i||i==n)return null;if(!i.type.isSkipped)return i.from<r?a:null;e=i.to}}(e):null;return l?o?e.column(l.from):e.column(l.to):e.baseIndent+(o?0:e.unit*a)}(e,!0,1,void 0,n&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?mg:null}function pg(e,t,a){for(;e;e=e.parent){let n=dg(e);if(n)return n(gg.create(a,t,e))}return null}function mg(){return 0}class gg extends fg{constructor(e,t,a){super(e.state,e.options),this.base=e,this.pos=t,this.node=a}static create(e,t,a){return new gg(e,t,a)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let e=this.state.doc.lineAt(this.node.from);for(;;){let t=this.node.resolve(e.from);for(;t.parent&&t.parent.from==t.from;)t=t.parent;if(bg(t,this.node))break;e=this.state.doc.lineAt(t.from)}return this.lineIndent(e.from)}continue(){let e=this.node.parent;return e?pg(e,this.pos,this.base):0}}function bg(e,t){for(let a=t;a;a=a.parent)if(e==a)return!0;return!1}function yg({except:e,units:t=1}={}){return a=>{let n=e&&e.test(a.textAfter);return a.baseIndent+(n?0:t*a.unit)}}const vg=rl.define(),xg=new Gp;function Cg(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function Sg(e,t,a){for(let n of e.facet(vg)){let i=n(e,t,a);if(i)return i}return function(e,t,a){let n=Qm(e);if(n.length<a)return null;let i=null;for(let s=n.resolveInner(a,1);s;s=s.parent){if(s.to<=a||s.from>a)continue;if(i&&s.from<t)break;let r=s.type.prop(xg);if(r&&(s.to<n.length-50||n.length==e.doc.length||!Cg(s))){let n=r(s,e);n&&n.from<=a&&n.from>=t&&n.to>a&&(i=n)}}return i}(e,t,a)}function wg(e,t){let a=t.mapPos(e.from,1),n=t.mapPos(e.to,-1);return a>=n?void 0:{from:a,to:n}}const kg=Al.define({map:wg}),_g=Al.define({map:wg});function Og(e){let t=[];for(let{head:a}of e.state.selection.ranges)t.some((e=>e.from<=a&&e.to>=a))||t.push(e.lineBlockAt(a));return t}const Eg=dl.define({create:()=>wu.none,update(e,t){e=e.map(t.changes);for(let a of t.effects)a.is(kg)&&!$g(e,a.value.from,a.value.to)?e=e.update({add:[Dg.range(a.value.from,a.value.to)]}):a.is(_g)&&(e=e.update({filter:(e,t)=>a.value.from!=e||a.value.to!=t,filterFrom:a.value.from,filterTo:a.value.to}));if(t.selection){let a=!1,{head:n}=t.selection.main;e.between(n,n,((e,t)=>{e<n&&t>n&&(a=!0)})),a&&(e=e.update({filterFrom:n,filterTo:n,filter:(e,t)=>t<=n||e>=n}))}return e},provide:e=>td.decorations.from(e),toJSON(e,t){let a=[];return e.between(0,t.doc.length,((e,t)=>{a.push(e,t)})),a},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let a=0;a<e.length;){let n=e[a++],i=e[a++];if("number"!=typeof n||"number"!=typeof i)throw new RangeError("Invalid JSON for fold state");t.push(Dg.range(n,i))}return wu.set(t,!0)}});function Mg(e,t,a){var n;let i=null;return null===(n=e.field(Eg,!1))||void 0===n||n.between(t,a,((e,t)=>{(!i||i.from>e)&&(i={from:e,to:t})})),i}function $g(e,t,a){let n=!1;return e.between(t,t,((e,i)=>{e==t&&i==a&&(n=!0)})),n}function Pg(e,t){return e.field(Eg,!1)?t:t.concat(Al.appendConfig.of(Ig()))}function Tg(e,t,a=!0){let n=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return td.announce.of(`${e.state.phrase(a?"Folded lines":"Unfolded lines")} ${n} ${e.state.phrase("to")} ${i}.`)}const Ag=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of Og(e)){let a=Sg(e.state,t.from,t.to);if(a)return e.dispatch({effects:Pg(e.state,[kg.of(a),Tg(e,a)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(Eg,!1))return!1;let t=[];for(let a of Og(e)){let n=Mg(e.state,a.from,a.to);n&&t.push(_g.of(n),Tg(e,n,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,a=[];for(let n=0;n<t.doc.length;){let i=e.lineBlockAt(n),s=Sg(t,i.from,i.to);s&&a.push(kg.of(s)),n=(s?e.lineBlockAt(s.to):i).to+1}return a.length&&e.dispatch({effects:Pg(e.state,a)}),!!a.length}},{key:"Ctrl-Alt-]",run:e=>{let t=e.state.field(Eg,!1);if(!t||!t.size)return!1;let a=[];return t.between(0,e.state.doc.length,((e,t)=>{a.push(_g.of({from:e,to:t}))})),e.dispatch({effects:a}),!0}}],Bg={placeholderDOM:null,placeholderText:"…"},Rg=rl.define({combine:e=>Gl(e,Bg)});function Ig(e){let t=[Eg,Fg];return e&&t.push(Rg.of(e)),t}const Dg=wu.replace({widget:new class extends Cu{toDOM(e){let{state:t}=e,a=t.facet(Rg),n=t=>{let a=e.lineBlockAt(e.posAtDOM(t.target)),n=Mg(e.state,a.from,a.to);n&&e.dispatch({effects:_g.of(n)}),t.preventDefault()};if(a.placeholderDOM)return a.placeholderDOM(e,n);let i=document.createElement("span");return i.textContent=a.placeholderText,i.setAttribute("aria-label",t.phrase("folded code")),i.title=t.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=n,i}}}),Ng={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Lg extends vp{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}const Fg=td.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class zg{constructor(e,t){let a;function n(e){let t=hc.newName();return(a||(a=Object.create(null)))["."+t]=e,t}this.specs=e;const i="string"==typeof t.all?t.all:t.all?n(t.all):void 0,s=t.scope;this.scope=s instanceof Wm?e=>e.prop(Gm)==s.data:s?e=>e==s:void 0,this.style=km(e.map((e=>({tag:e.tag,class:e.class||n(Object.assign({},e,{tag:null}))}))),{all:i}).style,this.module=a?new hc(a):null,this.themeType=t.themeType}static define(e,t){return new zg(e,t||{})}}const Vg=rl.define(),Ug=rl.define({combine:e=>e.length?[e[0]]:null});function Hg(e){let t=e.facet(Vg);return t.length?t:e.facet(Ug)}function Gg(e,t){let a,n=[Wg];return e instanceof zg&&(e.module&&n.push(td.styleModule.of(e.module)),a=e.themeType),(null==t?void 0:t.fallback)?n.push(Ug.of(e)):a?n.push(Vg.computeN([td.darkTheme],(t=>t.facet(td.darkTheme)==("dark"==a)?[e]:[]))):n.push(Vg.of(e)),n}class jg{constructor(e){this.markCache=Object.create(null),this.tree=Qm(e.state),this.decorations=this.buildDeco(e,Hg(e.state))}update(e){let t=Qm(e.state),a=Hg(e.state),n=a!=Hg(e.startState);t.length<e.view.viewport.to&&!n&&t.type==this.tree.type?this.decorations=this.decorations.map(e.changes):(t!=this.tree||e.viewportChanged||n)&&(this.tree=t,this.decorations=this.buildDeco(e.view,a))}buildDeco(e,t){if(!t||!this.tree.length)return wu.none;let a=new Xl;for(let{from:n,to:i}of e.visibleRanges)_m(this.tree,t,((e,t,n)=>{a.add(e,t,this.markCache[n]||(this.markCache[n]=wu.mark({class:n})))}),n,i);return a.finish()}}const Wg=ml.high(Qu.fromClass(jg,{decorations:e=>e.decorations})),qg=zg.define([{tag:Um.meta,color:"#404740"},{tag:Um.link,textDecoration:"underline"},{tag:Um.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Um.emphasis,fontStyle:"italic"},{tag:Um.strong,fontWeight:"bold"},{tag:Um.strikethrough,textDecoration:"line-through"},{tag:Um.keyword,color:"#708"},{tag:[Um.atom,Um.bool,Um.url,Um.contentSeparator,Um.labelName],color:"#219"},{tag:[Um.literal,Um.inserted],color:"#164"},{tag:[Um.string,Um.deleted],color:"#a11"},{tag:[Um.regexp,Um.escape,Um.special(Um.string)],color:"#e40"},{tag:Um.definition(Um.variableName),color:"#00f"},{tag:Um.local(Um.variableName),color:"#30a"},{tag:[Um.typeName,Um.namespace],color:"#085"},{tag:Um.className,color:"#167"},{tag:[Um.special(Um.variableName),Um.macroName],color:"#256"},{tag:Um.definition(Um.propertyName),color:"#00c"},{tag:Um.comment,color:"#940"},{tag:Um.invalid,color:"#f00"}]),Zg=td.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Qg=1e4,Xg="()[]{}",Kg=rl.define({combine:e=>Gl(e,{afterCursor:!0,brackets:Xg,maxScanDistance:Qg,renderMatch:eb})}),Yg=wu.mark({class:"cm-matchingBracket"}),Jg=wu.mark({class:"cm-nonmatchingBracket"});function eb(e){let t=[],a=e.matched?Yg:Jg;return t.push(a.range(e.start.from,e.start.to)),e.end&&t.push(a.range(e.end.from,e.end.to)),t}const tb=dl.define({create:()=>wu.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let a=[],n=t.state.facet(Kg);for(let e of t.state.selection.ranges){if(!e.empty)continue;let i=rb(t.state,e.head,-1,n)||e.head>0&&rb(t.state,e.head-1,1,n)||n.afterCursor&&(rb(t.state,e.head,1,n)||e.head<t.state.doc.length&&rb(t.state,e.head+1,-1,n));i&&(a=a.concat(n.renderMatch(i,t.state)))}return wu.set(a,!0)},provide:e=>td.decorations.from(e)}),ab=[tb,Zg],nb=new Gp;function ib(e,t,a){let n=e.prop(t<0?Gp.openedBy:Gp.closedBy);if(n)return n;if(1==e.name.length){let n=a.indexOf(e.name);if(n>-1&&n%2==(t<0?1:0))return[a[n+t]]}return null}function sb(e){let t=e.type.prop(nb);return t?t(e.node):e}function rb(e,t,a,n={}){let i=n.maxScanDistance||Qg,s=n.brackets||Xg,r=Qm(e),o=r.resolveInner(t,a);for(let e=o;e;e=e.parent){let n=ib(e.type,a,s);if(n&&e.from<e.to){let i=sb(e);if(i&&(a>0?t>=i.from&&t<i.to:t>i.from&&t<=i.to))return ob(0,0,a,e,i,n,s)}}return function(e,t,a,n,i,s,r){let o=a<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=r.indexOf(o);if(l<0||l%2==0!=a>0)return null;let c={from:a<0?t-1:t,to:a>0?t+1:t},u=e.doc.iterRange(t,a>0?e.doc.length:0),f=0;for(let e=0;!u.next().done&&e<=s;){let s=u.value;a<0&&(e+=s.length);let o=t+e*a;for(let e=a>0?0:s.length-1,t=a>0?s.length:-1;e!=t;e+=a){let t=r.indexOf(s[e]);if(!(t<0||n.resolveInner(o+e,1).type!=i))if(t%2==0==a>0)f++;else{if(1==f)return{start:c,end:{from:o+e,to:o+e+1},matched:t>>1==l>>1};f--}}a>0&&(e+=s.length)}return u.done?{start:c,matched:!1}:null}(e,t,a,r,o.type,i,s)}function ob(e,t,a,n,i,s,r){let o=n.parent,l={from:i.from,to:i.to},c=0,u=null==o?void 0:o.cursor();if(u&&(a<0?u.childBefore(n.from):u.childAfter(n.to)))do{if(a<0?u.to<=n.from:u.from>=n.to){if(0==c&&s.indexOf(u.type.name)>-1&&u.from<u.to){let e=sb(u);return{start:l,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}if(ib(u.type,a,r))c++;else if(ib(u.type,-a,r)){if(0==c){let e=sb(u);return{start:l,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}c--}}}while(a<0?u.prevSibling():u.nextSibling());return{start:l,matched:!1}}const lb=Object.create(null),cb=[Wp.none],ub=[],fb=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])fb[e]=db(lb,t);function hb(e,t){ub.indexOf(e)>-1||(ub.push(e),console.warn(t))}function db(e,t){let a=null;for(let n of t.split(".")){let t=e[n]||Um[n];t?"function"==typeof t?a?a=t(a):hb(n,`Modifier ${n} used at start of tag`):a?hb(n,`Tag ${n} used as modifier`):a=t:hb(n,`Unknown highlighting tag ${n}`)}if(!a)return 0;let n=t.replace(/ /g,"_"),i=Wp.define({id:cb.length,name:n,props:[Cm({[n]:a})]});return cb.push(i),i.id}function pb(e,t){return({state:a,dispatch:n})=>{if(a.readOnly)return!1;let i=e(t,a);return!!i&&(n(a.update(i)),!0)}}const mb=pb(Cb,0),gb=pb(xb,0),bb=pb(((e,t)=>xb(e,t,function(e){let t=[];for(let a of e.selection.ranges){let n=e.doc.lineAt(a.from),i=a.to<=n.to?n:e.doc.lineAt(a.to),s=t.length-1;s>=0&&t[s].to>n.from?t[s].to=i.to:t.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:i.to})}return t}(t))),0);function yb(e,t){let a=e.languageDataAt("commentTokens",t);return a.length?a[0]:{}}const vb=50;function xb(e,t,a=t.selection.ranges){let n=a.map((e=>yb(t,e.from).block));if(!n.every((e=>e)))return null;let i=a.map(((e,a)=>function(e,{open:t,close:a},n,i){let s,r,o=e.sliceDoc(n-vb,n),l=e.sliceDoc(i,i+vb),c=/\s*$/.exec(o)[0].length,u=/^\s*/.exec(l)[0].length,f=o.length-c;if(o.slice(f-t.length,f)==t&&l.slice(u,u+a.length)==a)return{open:{pos:n-c,margin:c&&1},close:{pos:i+u,margin:u&&1}};i-n<=2*vb?s=r=e.sliceDoc(n,i):(s=e.sliceDoc(n,n+vb),r=e.sliceDoc(i-vb,i));let h=/^\s*/.exec(s)[0].length,d=/\s*$/.exec(r)[0].length,p=r.length-d-a.length;return s.slice(h,h+t.length)==t&&r.slice(p,p+a.length)==a?{open:{pos:n+h+t.length,margin:/\s/.test(s.charAt(h+t.length))?1:0},close:{pos:i-d-a.length,margin:/\s/.test(r.charAt(p-1))?1:0}}:null}(t,n[a],e.from,e.to)));if(2!=e&&!i.every((e=>e)))return{changes:t.changes(a.map(((e,t)=>i[t]?[]:[{from:e.from,insert:n[t].open+" "},{from:e.to,insert:" "+n[t].close}])))};if(1!=e&&i.some((e=>e))){let e=[];for(let t,a=0;a<i.length;a++)if(t=i[a]){let i=n[a],{open:s,close:r}=t;e.push({from:s.pos-i.open.length,to:s.pos+s.margin},{from:r.pos-r.margin,to:r.pos+i.close.length})}return{changes:e}}return null}function Cb(e,t,a=t.selection.ranges){let n=[],i=-1;for(let{from:e,to:s}of a){let a=n.length,r=1e9,o=yb(t,e).line;if(o){for(let a=e;a<=s;){let l=t.doc.lineAt(a);if(l.from>i&&(e==s||s>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,a=l.text.slice(e,e+o.length)==o?e:-1;e<l.text.length&&e<r&&(r=e),n.push({line:l,comment:a,token:o,indent:e,empty:t,single:!1})}a=l.to+1}if(r<1e9)for(let e=a;e<n.length;e++)n[e].indent<n[e].line.text.length&&(n[e].indent=r);n.length==a+1&&(n[a].single=!0)}}if(2!=e&&n.some((e=>e.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:a,indent:i,empty:s,single:r}of n)!r&&s||e.push({from:t.from+i,insert:a+" "});let a=t.changes(e);return{changes:a,selection:t.selection.map(a,1)}}if(1!=e&&n.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:a,token:i}of n)if(a>=0){let n=t.from+a,s=n+i.length;" "==t.text[s-t.from]&&s++,e.push({from:n,to:s})}return{changes:e}}return null}const Sb=$l.define(),wb=$l.define(),kb=rl.define(),_b=rl.define({combine:e=>Gl(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(a,n)=>e(a,n)||t(a,n)})}),Ob=dl.define({create:()=>Ub.empty,update(e,t){let a=t.state.facet(_b),n=t.annotation(Sb);if(n){let i=t.docChanged?nl.single(function(e){let t=0;return e.iterChangedRanges(((e,a)=>t=a)),t}(t.changes)):void 0,s=Ab.fromTransaction(t,i),r=n.side,o=0==r?e.undone:e.done;return o=s?Bb(o,o.length,a.minDepth,s):Nb(o,t.startState.selection),new Ub(0==r?n.rest:o,0==r?o:n.rest)}let i=t.annotation(wb);if("full"!=i&&"before"!=i||(e=e.isolate()),!1===t.annotation(Bl.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let s=Ab.fromTransaction(t),r=t.annotation(Bl.time),o=t.annotation(Bl.userEvent);return s?e=e.addChanges(s,r,o,a,t):t.selection&&(e=e.addSelection(t.startState.selection,r,o,a.newGroupDelay)),"full"!=i&&"after"!=i||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new Ub(e.done.map(Ab.fromJSON),e.undone.map(Ab.fromJSON))});function Eb(e,t){return function({state:a,dispatch:n}){if(!t&&a.readOnly)return!1;let i=a.field(Ob,!1);if(!i)return!1;let s=i.pop(e,a,t);return!!s&&(n(s),!0)}}const Mb=Eb(0,!1),$b=Eb(1,!1),Pb=Eb(0,!0),Tb=Eb(1,!0);class Ab{constructor(e,t,a,n,i){this.changes=e,this.effects=t,this.mapped=a,this.startSelection=n,this.selectionsAfter=i}setSelAfter(e){return new Ab(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,a;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(a=this.startSelection)||void 0===a?void 0:a.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new Ab(e.changes&&Qo.fromJSON(e.changes),[],e.mapped&&Zo.fromJSON(e.mapped),e.startSelection&&nl.fromJSON(e.startSelection),e.selectionsAfter.map(nl.fromJSON))}static fromTransaction(e,t){let a=Ib;for(let t of e.startState.facet(kb)){let n=t(e);n.length&&(a=a.concat(n))}return!a.length&&e.changes.empty?null:new Ab(e.changes.invert(e.startState.doc),a,void 0,t||e.startState.selection,Ib)}static selection(e){return new Ab(void 0,Ib,void 0,void 0,e)}}function Bb(e,t,a,n){let i=t+1>a+20?t-a-1:0,s=e.slice(i,t);return s.push(n),s}function Rb(e,t){return e.length?t.length?e.concat(t):e:t}const Ib=[],Db=200;function Nb(e,t){if(e.length){let a=e[e.length-1],n=a.selectionsAfter.slice(Math.max(0,a.selectionsAfter.length-Db));return n.length&&n[n.length-1].eq(t)?e:(n.push(t),Bb(e,e.length-1,1e9,a.setSelAfter(n)))}return[Ab.selection([t])]}function Lb(e){let t=e[e.length-1],a=e.slice();return a[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),a}function Fb(e,t){if(!e.length)return e;let a=e.length,n=Ib;for(;a;){let i=zb(e[a-1],t,n);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,a);return t[a-1]=i,t}t=i.mapped,a--,n=i.selectionsAfter}return n.length?[Ab.selection(n)]:Ib}function zb(e,t,a){let n=Rb(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):Ib,a);if(!e.changes)return Ab.selection(n);let i=e.changes.map(t),s=t.mapDesc(e.changes,!0),r=e.mapped?e.mapped.composeDesc(s):s;return new Ab(i,Al.mapEffects(e.effects,t),r,e.startSelection.map(s),n)}const Vb=/^(input\.type|delete)($|\.)/;class Ub{constructor(e,t,a=0,n=void 0){this.done=e,this.undone=t,this.prevTime=a,this.prevUserEvent=n}isolate(){return this.prevTime?new Ub(this.done,this.undone):this}addChanges(e,t,a,n,i){let s=this.done,r=s[s.length-1];return s=r&&r.changes&&!r.changes.empty&&e.changes&&(!a||Vb.test(a))&&(!r.selectionsAfter.length&&t-this.prevTime<n.newGroupDelay&&n.joinToEvent(i,function(e,t){let a=[],n=!1;return e.iterChangedRanges(((e,t)=>a.push(e,t))),t.iterChangedRanges(((e,t,i,s)=>{for(let e=0;e<a.length;){let t=a[e++],r=a[e++];s>=t&&i<=r&&(n=!0)}})),n}(r.changes,e.changes))||"input.type.compose"==a)?Bb(s,s.length-1,n.minDepth,new Ab(e.changes.compose(r.changes),Rb(e.effects,r.effects),r.mapped,r.startSelection,Ib)):Bb(s,s.length,n.minDepth,e),new Ub(s,Ib,t,a)}addSelection(e,t,a,n){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:Ib;return i.length>0&&t-this.prevTime<n&&a==this.prevUserEvent&&a&&/^select($|\.)/.test(a)&&(s=i[i.length-1],r=e,s.ranges.length==r.ranges.length&&0===s.ranges.filter(((e,t)=>e.empty!=r.ranges[t].empty)).length)?this:new Ub(Nb(this.done,e),this.undone,t,a);var s,r}addMapping(e){return new Ub(Fb(this.done,e),Fb(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,a){let n=0==e?this.done:this.undone;if(0==n.length)return null;let i=n[n.length-1];if(a&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Sb.of({side:e,rest:Lb(n)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let a=1==n.length?Ib:n.slice(0,n.length-1);return i.mapped&&(a=Fb(a,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Sb.of({side:e,rest:a}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}Ub.empty=new Ub(Ib,Ib);const Hb=[{key:"Mod-z",run:Mb,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:$b,preventDefault:!0},{linux:"Ctrl-Shift-z",run:$b,preventDefault:!0},{key:"Mod-u",run:Pb,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Tb,preventDefault:!0}];function Gb(e,t){return nl.create(e.ranges.map(t),e.mainIndex)}function jb(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function Wb({state:e,dispatch:t},a){let n=Gb(e.selection,a);return!n.eq(e.selection)&&(t(jb(e,n)),!0)}function qb(e,t){return nl.cursor(t?e.to:e.from)}function Zb(e,t){return Wb(e,(a=>a.empty?e.moveByChar(a,t):qb(a,t)))}function Qb(e){return e.textDirectionAt(e.state.selection.main.head)==of.LTR}const Xb=e=>Zb(e,!Qb(e)),Kb=e=>Zb(e,Qb(e));function Yb(e,t){return Wb(e,(a=>a.empty?e.moveByGroup(a,t):qb(a,t)))}function Jb(e,t,a){if(t.type.prop(a))return!0;let n=t.to-t.from;return n&&(n>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function ey(e,t,a){let n,i,s=Qm(e).resolveInner(t.head),r=a?Gp.closedBy:Gp.openedBy;for(let n=t.head;;){let t=a?s.childAfter(n):s.childBefore(n);if(!t)break;Jb(e,t,r)?s=t:n=a?t.to:t.from}return i=s.type.prop(r)&&(n=a?rb(e,s.from,1):rb(e,s.to,-1))&&n.matched?a?n.end.to:n.end.from:a?s.to:s.from,nl.cursor(i,a?-1:1)}function ty(e,t){return Wb(e,(a=>{if(!a.empty)return qb(a,t);let n=e.moveVertically(a,t);return n.head!=a.head?n:e.moveToLineBoundary(a,t)}))}const ay=e=>ty(e,!1),ny=e=>ty(e,!0);function iy(e){let t,a=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,i=0;if(a){for(let t of e.state.facet(td.scrollMargins)){let a=t(e);(null==a?void 0:a.top)&&(n=Math.max(null==a?void 0:a.top,n)),(null==a?void 0:a.bottom)&&(i=Math.max(null==a?void 0:a.bottom,i))}t=e.scrollDOM.clientHeight-n-i}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:i,selfScroll:a,height:Math.max(e.defaultLineHeight,t-5)}}function sy(e,t){let a,n=iy(e),{state:i}=e,s=Gb(i.selection,(a=>a.empty?e.moveVertically(a,t,n.height):qb(a,t)));if(s.eq(i.selection))return!1;if(n.selfScroll){let t=e.coordsAtPos(i.selection.main.head),r=e.scrollDOM.getBoundingClientRect(),o=r.top+n.marginTop,l=r.bottom-n.marginBottom;t&&t.top>o&&t.bottom<l&&(a=td.scrollIntoView(s.main.head,{y:"start",yMargin:t.top-o}))}return e.dispatch(jb(i,s),{effects:a}),!0}const ry=e=>sy(e,!1),oy=e=>sy(e,!0);function ly(e,t,a){let n=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,a);if(i.head==t.head&&i.head!=(a?n.to:n.from)&&(i=e.moveToLineBoundary(t,a,!1)),!a&&i.head==n.from&&n.length){let a=/^\s*/.exec(e.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;a&&t.head!=n.from+a&&(i=nl.cursor(n.from+a))}return i}function cy(e,t){let a=Gb(e.state.selection,(e=>{let a=t(e);return nl.range(e.anchor,a.head,a.goalColumn,a.bidiLevel||void 0)}));return!a.eq(e.state.selection)&&(e.dispatch(jb(e.state,a)),!0)}function uy(e,t){return cy(e,(a=>e.moveByChar(a,t)))}const fy=e=>uy(e,!Qb(e)),hy=e=>uy(e,Qb(e));function dy(e,t){return cy(e,(a=>e.moveByGroup(a,t)))}function py(e,t){return cy(e,(a=>e.moveVertically(a,t)))}const my=e=>py(e,!1),gy=e=>py(e,!0);function by(e,t){return cy(e,(a=>e.moveVertically(a,t,iy(e).height)))}const yy=e=>by(e,!1),vy=e=>by(e,!0),xy=({state:e,dispatch:t})=>(t(jb(e,{anchor:0})),!0),Cy=({state:e,dispatch:t})=>(t(jb(e,{anchor:e.doc.length})),!0),Sy=({state:e,dispatch:t})=>(t(jb(e,{anchor:e.selection.main.anchor,head:0})),!0),wy=({state:e,dispatch:t})=>(t(jb(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function ky(e,t){if(e.state.readOnly)return!1;let a="delete.selection",{state:n}=e,i=n.changeByRange((n=>{let{from:i,to:s}=n;if(i==s){let n=t(i);n<i?(a="delete.backward",n=_y(e,n,!1)):n>i&&(a="delete.forward",n=_y(e,n,!0)),i=Math.min(i,n),s=Math.max(s,n)}else i=_y(e,i,!1),s=_y(e,s,!0);return i==s?{range:n}:{changes:{from:i,to:s},range:nl.cursor(i)}}));return!i.changes.empty&&(e.dispatch(n.update(i,{scrollIntoView:!0,userEvent:a,effects:"delete.selection"==a?td.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function _y(e,t,a){if(e instanceof td)for(let n of e.state.facet(td.atomicRanges).map((t=>t(e))))n.between(t,t,((e,n)=>{e<t&&n>t&&(t=a?n:e)}));return t}const Oy=(e,t)=>ky(e,(a=>{let n,i,{state:s}=e,r=s.doc.lineAt(a);if(!t&&a>r.from&&a<r.from+200&&!/[^ \t]/.test(n=r.text.slice(0,a-r.from))){if("\t"==n[n.length-1])return a-1;let e=oc(n,s.tabSize)%lg(s)||lg(s);for(let t=0;t<e&&" "==n[n.length-1-t];t++)a--;i=a}else i=Lo(r.text,a-r.from,t,t)+r.from,i==a&&r.number!=(t?s.doc.lines:1)&&(i+=t?1:-1);return i})),Ey=e=>Oy(e,!1),My=e=>Oy(e,!0),$y=(e,t)=>ky(e,(a=>{let n=a,{state:i}=e,s=i.doc.lineAt(n),r=i.charCategorizer(n);for(let e=null;;){if(n==(t?s.to:s.from)){n==a&&s.number!=(t?i.doc.lines:1)&&(n+=t?1:-1);break}let o=Lo(s.text,n-s.from,t)+s.from,l=s.text.slice(Math.min(n,o)-s.from,Math.max(n,o)-s.from),c=r(l);if(null!=e&&c!=e)break;" "==l&&n==a||(e=c),n=o}return n})),Py=e=>$y(e,!1),Ty=e=>ky(e,(t=>{let a=e.lineBlockAt(t).to;return t<a?a:Math.min(e.state.doc.length,t+1)}));function Ay(e){let t=[],a=-1;for(let n of e.selection.ranges){let i=e.doc.lineAt(n.from),s=e.doc.lineAt(n.to);if(n.empty||n.to!=s.from||(s=e.doc.lineAt(n.to-1)),a>=i.number){let e=t[t.length-1];e.to=s.to,e.ranges.push(n)}else t.push({from:i.from,to:s.to,ranges:[n]});a=s.number+1}return t}function By(e,t,a){if(e.readOnly)return!1;let n=[],i=[];for(let t of Ay(e)){if(a?t.to==e.doc.length:0==t.from)continue;let s=e.doc.lineAt(a?t.to+1:t.from-1),r=s.length+1;if(a){n.push({from:t.to,to:s.to},{from:t.from,insert:s.text+e.lineBreak});for(let a of t.ranges)i.push(nl.range(Math.min(e.doc.length,a.anchor+r),Math.min(e.doc.length,a.head+r)))}else{n.push({from:s.from,to:t.from},{from:t.to,insert:e.lineBreak+s.text});for(let e of t.ranges)i.push(nl.range(e.anchor-r,e.head-r))}}return!!n.length&&(t(e.update({changes:n,scrollIntoView:!0,selection:nl.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Ry(e,t,a){if(e.readOnly)return!1;let n=[];for(let t of Ay(e))a?n.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):n.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Iy=Dy(!1);function Dy(e){return({state:t,dispatch:a})=>{if(t.readOnly)return!1;let n=t.changeByRange((a=>{let{from:n,to:i}=a,s=t.doc.lineAt(n),r=!e&&n==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let a,n=Qm(e).resolveInner(t),i=n.childBefore(t),s=n.childAfter(t);return i&&s&&i.to<=t&&s.from>=t&&(a=i.type.prop(Gp.closedBy))&&a.indexOf(s.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(s.from).from?{from:i.to,to:s.from}:null}(t,n);e&&(n=i=(i<=s.to?s:t.doc.lineAt(i)).to);let o=new fg(t,{simulateBreak:n,simulateDoubleBreak:!!r}),l=ug(o,n);for(null==l&&(l=/^\s*/.exec(t.doc.lineAt(n).text)[0].length);i<s.to&&/\s/.test(s.text[i-s.from]);)i++;r?({from:n,to:i}=r):n>s.from&&n<s.from+100&&!/\S/.test(s.text.slice(0,n))&&(n=s.from);let c=["",cg(t,l)];return r&&c.push(cg(t,o.lineIndent(s.from,-1))),{changes:{from:n,to:i,insert:_o.of(c)},range:nl.cursor(n+1+c[1].length)}}));return a(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function Ny(e,t){let a=-1;return e.changeByRange((n=>{let i=[];for(let s=n.from;s<=n.to;){let r=e.doc.lineAt(s);r.number>a&&(n.empty||n.to>r.from)&&(t(r,i,n),a=r.number),s=r.to+1}let s=e.changes(i);return{changes:i,range:nl.range(s.mapPos(n.anchor,1),s.mapPos(n.head,1))}}))}const Ly=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Ny(e,((t,a)=>{a.push({from:t.from,insert:e.facet(og)})})),{userEvent:"input.indent"})),!0),Fy=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Ny(e,((t,a)=>{let n=/^\s*/.exec(t.text)[0];if(!n)return;let i=oc(n,e.tabSize),s=0,r=cg(e,Math.max(0,i-lg(e)));for(;s<n.length&&s<r.length&&n.charCodeAt(s)==r.charCodeAt(s);)s++;a.push({from:t.from+s,to:t.from+n.length,insert:r.slice(s)})})),{userEvent:"delete.dedent"})),!0),zy=[{key:"Ctrl-b",run:Xb,shift:fy,preventDefault:!0},{key:"Ctrl-f",run:Kb,shift:hy},{key:"Ctrl-p",run:ay,shift:my},{key:"Ctrl-n",run:ny,shift:gy},{key:"Ctrl-a",run:e=>Wb(e,(t=>nl.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>cy(e,(t=>nl.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>Wb(e,(t=>nl.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>cy(e,(t=>nl.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:My},{key:"Ctrl-h",run:Ey},{key:"Ctrl-k",run:Ty},{key:"Ctrl-Alt-h",run:Py},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let a=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:_o.of(["",""])},range:nl.cursor(e.from)})));return t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let a=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let a=t.from,n=e.doc.lineAt(a),i=a==n.from?a-1:Lo(n.text,a-n.from,!1)+n.from,s=a==n.to?a+1:Lo(n.text,a-n.from,!0)+n.from;return{changes:{from:i,to:s,insert:e.doc.slice(a,s).append(e.doc.slice(i,a))},range:nl.cursor(s)}}));return!a.changes.empty&&(t(e.update(a,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:oy}],Vy=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>Wb(e,(t=>ey(e.state,t,!Qb(e)))),shift:e=>cy(e,(t=>ey(e.state,t,!Qb(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>Wb(e,(t=>ey(e.state,t,Qb(e)))),shift:e=>cy(e,(t=>ey(e.state,t,Qb(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>By(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>Ry(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>By(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>Ry(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let a=e.selection,n=null;return a.ranges.length>1?n=nl.create([a.main]):a.main.empty||(n=nl.create([nl.cursor(a.main.head)])),!!n&&(t(jb(e,n)),!0)}},{key:"Mod-Enter",run:Dy(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let a=Ay(e).map((({from:t,to:a})=>nl.range(t,Math.min(a+1,e.doc.length))));return t(e.update({selection:nl.create(a),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let a=Gb(e.selection,(t=>{var a;let n=Qm(e).resolveInner(t.head,1);for(;!(n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&(null===(a=n.parent)||void 0===a?void 0:a.parent);)n=n.parent;return nl.range(n.to,n.from)}));return t(jb(e,a)),!0},preventDefault:!0},{key:"Mod-[",run:Fy},{key:"Mod-]",run:Ly},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let a=Object.create(null),n=new fg(e,{overrideIndentation:e=>{let t=a[e];return null==t?-1:t}}),i=Ny(e,((t,i,s)=>{let r=ug(n,t.from);if(null==r)return;/\S/.test(t.text)||(r=0);let o=/^\s*/.exec(t.text)[0],l=cg(e,r);(o!=l||s.from<t.from+o.length)&&(a[t.from]=r,i.push({from:t.from,to:t.from+o.length,insert:l}))}));return i.changes.empty||t(e.update(i,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,a=t.changes(Ay(t).map((({from:e,to:a})=>(e>0?e--:a<t.doc.length&&a++,{from:e,to:a})))),n=Gb(t.selection,(t=>e.moveVertically(t,!0))).map(a);return e.dispatch({changes:a,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,a){let n=!1,i=Gb(e.selection,(t=>{let i=rb(e,t.head,-1)||rb(e,t.head,1)||t.head>0&&rb(e,t.head-1,1)||t.head<e.doc.length&&rb(e,t.head+1,-1);if(!i||!i.end)return t;n=!0;let s=i.start.from==t.head?i.end.to:i.end.from;return a?nl.range(t.anchor,s):nl.cursor(s)}));return!!n&&(t(jb(e,i)),!0)}(e,t,!1)},{key:"Mod-/",run:e=>{let{state:t}=e,a=t.doc.lineAt(t.selection.main.from),n=yb(e.state,a.from);return n.line?mb(e):!!n.block&&bb(e)}},{key:"Alt-A",run:gb}].concat([{key:"ArrowLeft",run:Xb,shift:fy,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>Yb(e,!Qb(e)),shift:e=>dy(e,!Qb(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>Wb(e,(t=>ly(e,t,!Qb(e)))),shift:e=>cy(e,(t=>ly(e,t,!Qb(e)))),preventDefault:!0},{key:"ArrowRight",run:Kb,shift:hy,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>Yb(e,Qb(e)),shift:e=>dy(e,Qb(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>Wb(e,(t=>ly(e,t,Qb(e)))),shift:e=>cy(e,(t=>ly(e,t,Qb(e)))),preventDefault:!0},{key:"ArrowUp",run:ay,shift:my,preventDefault:!0},{mac:"Cmd-ArrowUp",run:xy,shift:Sy},{mac:"Ctrl-ArrowUp",run:ry,shift:yy},{key:"ArrowDown",run:ny,shift:gy,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Cy,shift:wy},{mac:"Ctrl-ArrowDown",run:oy,shift:vy},{key:"PageUp",run:ry,shift:yy},{key:"PageDown",run:oy,shift:vy},{key:"Home",run:e=>Wb(e,(t=>ly(e,t,!1))),shift:e=>cy(e,(t=>ly(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:xy,shift:Sy},{key:"End",run:e=>Wb(e,(t=>ly(e,t,!0))),shift:e=>cy(e,(t=>ly(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:Cy,shift:wy},{key:"Enter",run:Iy},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:Ey,shift:Ey},{key:"Delete",run:My},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Py},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>$y(e,!0)},{mac:"Mod-Backspace",run:e=>ky(e,(t=>{let a=e.lineBlockAt(t).from;return t>a?a:Math.max(0,t-1)}))},{mac:"Mod-Delete",run:Ty}].concat(zy.map((e=>({mac:e.key,run:e.run,shift:e.shift}))))),Uy={key:"Tab",run:Ly,shift:Fy};function Hy(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,a=arguments[1];if(a&&"object"==typeof a&&null==a.nodeType&&!Array.isArray(a)){for(var n in a)if(Object.prototype.hasOwnProperty.call(a,n)){var i=a[n];"string"==typeof i?e.setAttribute(n,i):null!=i&&(e[n]=i)}t++}for(;t<arguments.length;t++)Gy(e,arguments[t]);return e}function Gy(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var a=0;a<t.length;a++)Gy(e,t[a])}}const jy="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class Wy{constructor(e,t,a=0,n=e.length,i,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(a,n),this.bufferStart=a,this.normalize=i?e=>i(jy(e)):jy,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Ho(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=Go(e),a=this.bufferStart+this.bufferPos;this.bufferPos+=jo(e);let n=this.normalize(t);for(let e=0,i=a;;e++){let s=n.charCodeAt(e),r=this.match(s,i);if(r)return this.value=r,this;if(e==n.length-1)break;i==a&&e<t.length&&t.charCodeAt(e)==s&&i++}}}match(e,t){let a=null;for(let n=0;n<this.matches.length;n+=2){let i=this.matches[n],s=!1;this.query.charCodeAt(i)==e&&(i==this.query.length-1?a={from:this.matches[n+1],to:t+1}:(this.matches[n]++,s=!0)),s||(this.matches.splice(n,2),n-=2)}return this.query.charCodeAt(0)==e&&(1==this.query.length?a={from:t,to:t+1}:this.matches.push(1,t)),a&&this.test&&!this.test(a.from,a.to,this.buffer,this.bufferPos)&&(a=null),a}}"undefined"!=typeof Symbol&&(Wy.prototype[Symbol.iterator]=function(){return this});const qy={from:-1,to:-1,match:/.*/.exec("")},Zy="gm"+(null==/x/.unicode?"":"u");class Qy{constructor(e,t,a,n=0,i=e.length){if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=qy,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new Yy(e,t,a,n,i);this.re=new RegExp(t,Zy+((null==a?void 0:a.ignoreCase)?"i":"")),this.test=null==a?void 0:a.test,this.iter=e.iter();let s=e.lineAt(n);this.curLineStart=s.from,this.matchPos=Jy(e,n),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let a=this.curLineStart+t.index,n=a+t[0].length;if(this.matchPos=Jy(this.text,n+(a==n?1:0)),a==this.curLineStart+this.curLine.length&&this.nextLine(),(a<n||a>this.value.to)&&(!this.test||this.test(a,n,t)))return this.value={from:a,to:n,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}const Xy=new WeakMap;class Ky{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,a){let n=Xy.get(e);if(!n||n.from>=a||n.to<=t){let n=new Ky(t,e.sliceString(t,a));return Xy.set(e,n),n}if(n.from==t&&n.to==a)return n;let{text:i,from:s}=n;return s>t&&(i=e.sliceString(t,s)+i,s=t),n.to<a&&(i+=e.sliceString(n.to,a)),Xy.set(e,new Ky(s,i)),new Ky(t,i.slice(t-s,a-s))}}class Yy{constructor(e,t,a,n,i){this.text=e,this.to=i,this.done=!1,this.value=qy,this.matchPos=Jy(e,n),this.re=new RegExp(t,Zy+((null==a?void 0:a.ignoreCase)?"i":"")),this.test=null==a?void 0:a.test,this.flat=Ky.get(e,n,this.chunkEnd(n+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,a=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,a,t)))return this.value={from:e,to:a,match:t},this.matchPos=Jy(this.text,a+(e==a?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Ky.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function Jy(e,t){if(t>=e.length)return t;let a,n=e.lineAt(t);for(;t<n.to&&(a=n.text.charCodeAt(t-n.from))>=56320&&a<57344;)t++;return t}function ev(e){let t=Hy("input",{class:"cm-textfield",name:"line"});function a(){let a=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!a)return;let{state:n}=e,i=n.doc.lineAt(n.selection.main.head),[,s,r,o,l]=a,c=o?+o.slice(1):0,u=r?+r:i.number;if(r&&l){let e=u/100;s&&(e=e*("-"==s?-1:1)+i.number/n.doc.lines),u=Math.round(n.doc.lines*e)}else r&&s&&(u=u*("-"==s?-1:1)+i.number);let f=n.doc.line(Math.max(1,Math.min(n.doc.lines,u)));e.dispatch({effects:tv.of(!1),selection:nl.cursor(f.from+Math.max(0,Math.min(c,f.length))),scrollIntoView:!0}),e.focus()}return{dom:Hy("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:tv.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),a())},onsubmit:e=>{e.preventDefault(),a()}},Hy("label",e.state.phrase("Go to line"),": ",t)," ",Hy("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(Qy.prototype[Symbol.iterator]=Yy.prototype[Symbol.iterator]=function(){return this});const tv=Al.define(),av=dl.define({create:()=>!0,update(e,t){for(let a of t.effects)a.is(tv)&&(e=a.value);return e},provide:e=>yp.from(e,(e=>e?ev:null))}),nv=td.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),iv={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},sv=rl.define({combine:e=>Gl(e,iv,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}),rv=wu.mark({class:"cm-selectionMatch"}),ov=wu.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function lv(e,t,a,n){return!(0!=a&&e(t.sliceDoc(a-1,a))==zl.Word||n!=t.doc.length&&e(t.sliceDoc(n,n+1))==zl.Word)}const cv=Qu.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(sv),{state:a}=e,n=a.selection;if(n.ranges.length>1)return wu.none;let i,s=n.main,r=null;if(s.empty){if(!t.highlightWordAroundCursor)return wu.none;let e=a.wordAt(s.head);if(!e)return wu.none;r=a.charCategorizer(s.head),i=a.sliceDoc(e.from,e.to)}else{let e=s.to-s.from;if(e<t.minSelectionLength||e>200)return wu.none;if(t.wholeWords){if(i=a.sliceDoc(s.from,s.to),r=a.charCategorizer(s.head),!lv(r,a,s.from,s.to)||!function(e,t,a,n){return e(t.sliceDoc(a,a+1))==zl.Word&&e(t.sliceDoc(n-1,n))==zl.Word}(r,a,s.from,s.to))return wu.none}else if(i=a.sliceDoc(s.from,s.to).trim(),!i)return wu.none}let o=[];for(let n of e.visibleRanges){let e=new Wy(a.doc,i,n.from,n.to);for(;!e.next().done;){let{from:n,to:i}=e.value;if((!r||lv(r,a,n,i))&&(s.empty&&n<=s.from&&i>=s.to?o.push(ov.range(n,i)):(n>=s.to||i<=s.from)&&o.push(rv.range(n,i)),o.length>t.maxMatches))return wu.none}}return wu.set(o)}},{decorations:e=>e.decorations}),uv=td.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),fv=rl.define({combine:e=>Gl(e,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:e=>new zv(e),scrollToMatch:e=>td.scrollIntoView(e)})});class hv{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,Zy),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new vv(this):new mv(this)}getCursor(e,t=0,a){let n=e.doc?e:Hl.create({doc:e});return null==a&&(a=n.doc.length),this.regexp?gv(this,n,t,a):pv(this,n,t,a)}}class dv{constructor(e){this.spec=e}}function pv(e,t,a,n){return new Wy(t.doc,e.unquoted,a,n,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?function(e,t){return(a,n,i,s)=>((s>a||s+i.length<n)&&(s=Math.max(0,a-2),i=e.sliceString(s,Math.min(e.length,n+2))),!(t(bv(i,a-s))==zl.Word&&t(yv(i,a-s))==zl.Word||t(yv(i,n-s))==zl.Word&&t(bv(i,n-s))==zl.Word))}(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}class mv extends dv{constructor(e){super(e)}nextMatch(e,t,a){let n=pv(this.spec,e,a,e.doc.length).nextOverlapping();return n.done&&(n=pv(this.spec,e,0,t).nextOverlapping()),n.done?null:n.value}prevMatchInRange(e,t,a){for(let n=a;;){let a=Math.max(t,n-1e4-this.spec.unquoted.length),i=pv(this.spec,e,a,n),s=null;for(;!i.nextOverlapping().done;)s=i.value;if(s)return s;if(a==t)return null;n-=1e4}}prevMatch(e,t,a){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,a,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let a=pv(this.spec,e,0,e.doc.length),n=[];for(;!a.next().done;){if(n.length>=t)return null;n.push(a.value)}return n}highlight(e,t,a,n){let i=pv(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(a+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)n(i.value.from,i.value.to)}}function gv(e,t,a,n){return new Qy(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(i=t.charCategorizer(t.selection.main.head),(e,t,a)=>!a[0].length||(i(bv(a.input,a.index))!=zl.Word||i(yv(a.input,a.index))!=zl.Word)&&(i(yv(a.input,a.index+a[0].length))!=zl.Word||i(bv(a.input,a.index+a[0].length))!=zl.Word)):void 0},a,n);var i}function bv(e,t){return e.slice(Lo(e,t,!1),t)}function yv(e,t){return e.slice(t,Lo(e,t))}class vv extends dv{nextMatch(e,t,a){let n=gv(this.spec,e,a,e.doc.length).next();return n.done&&(n=gv(this.spec,e,0,t).next()),n.done?null:n.value}prevMatchInRange(e,t,a){for(let n=1;;n++){let i=Math.max(t,a-1e4*n),s=gv(this.spec,e,i,a),r=null;for(;!s.next().done;)r=s.value;if(r&&(i==t||r.from>i+10))return r;if(i==t)return null}}prevMatch(e,t,a){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,a,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,((t,a)=>"$"==a?"$":"&"==a?e.match[0]:"0"!=a&&+a<e.match.length?e.match[a]:t)))}matchAll(e,t){let a=gv(this.spec,e,0,e.doc.length),n=[];for(;!a.next().done;){if(n.length>=t)return null;n.push(a.value)}return n}highlight(e,t,a,n){let i=gv(this.spec,e,Math.max(0,t-250),Math.min(a+250,e.doc.length));for(;!i.next().done;)n(i.value.from,i.value.to)}}const xv=Al.define(),Cv=Al.define(),Sv=dl.define({create:e=>new wv(Rv(e).create(),null),update(e,t){for(let a of t.effects)a.is(xv)?e=new wv(a.value.create(),e.panel):a.is(Cv)&&(e=new wv(e.query,a.value?Bv:null));return e},provide:e=>yp.from(e,(e=>e.panel))});class wv{constructor(e,t){this.query=e,this.panel=t}}const kv=wu.mark({class:"cm-searchMatch"}),_v=wu.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Ov=Qu.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Sv))}update(e){let t=e.state.field(Sv);(t!=e.startState.field(Sv)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return wu.none;let{view:a}=this,n=new Xl;for(let t=0,i=a.visibleRanges,s=i.length;t<s;t++){let{from:r,to:o}=i[t];for(;t<s-1&&o>i[t+1].from-500;)o=i[++t].to;e.highlight(a.state,r,o,((e,t)=>{let i=a.state.selection.ranges.some((a=>a.from==e&&a.to==t));n.add(e,t,i?_v:kv)}))}return n.finish()}},{decorations:e=>e.decorations});function Ev(e){return t=>{let a=t.state.field(Sv,!1);return a&&a.query.spec.valid?e(t,a):Nv(t)}}const Mv=Ev(((e,{query:t})=>{let{to:a}=e.state.selection.main,n=t.nextMatch(e.state,a,a);if(!n)return!1;let i=nl.single(n.from,n.to),s=e.state.facet(fv);return e.dispatch({selection:i,effects:[Gv(e,n),s.scrollToMatch(i.main,e)],userEvent:"select.search"}),Dv(e),!0})),$v=Ev(((e,{query:t})=>{let{state:a}=e,{from:n}=a.selection.main,i=t.prevMatch(a,n,n);if(!i)return!1;let s=nl.single(i.from,i.to),r=e.state.facet(fv);return e.dispatch({selection:s,effects:[Gv(e,i),r.scrollToMatch(s.main,e)],userEvent:"select.search"}),Dv(e),!0})),Pv=Ev(((e,{query:t})=>{let a=t.matchAll(e.state,1e3);return!(!a||!a.length||(e.dispatch({selection:nl.create(a.map((e=>nl.range(e.from,e.to)))),userEvent:"select.search.matches"}),0))})),Tv=Ev(((e,{query:t})=>{let{state:a}=e,{from:n,to:i}=a.selection.main;if(a.readOnly)return!1;let s=t.nextMatch(a,n,n);if(!s)return!1;let r,o,l=[],c=[];if(s.from==n&&s.to==i&&(o=a.toText(t.getReplacement(s)),l.push({from:s.from,to:s.to,insert:o}),s=t.nextMatch(a,s.from,s.to),c.push(td.announce.of(a.phrase("replaced match on line $",a.doc.lineAt(n).number)+"."))),s){let t=0==l.length||l[0].from>=s.to?0:s.to-s.from-o.length;r=nl.single(s.from-t,s.to-t),c.push(Gv(e,s)),c.push(a.facet(fv).scrollToMatch(r.main,e))}return e.dispatch({changes:l,selection:r,effects:c,userEvent:"input.replace"}),!0})),Av=Ev(((e,{query:t})=>{if(e.state.readOnly)return!1;let a=t.matchAll(e.state,1e9).map((e=>{let{from:a,to:n}=e;return{from:a,to:n,insert:t.getReplacement(e)}}));if(!a.length)return!1;let n=e.state.phrase("replaced $ matches",a.length)+".";return e.dispatch({changes:a,effects:td.announce.of(n),userEvent:"input.replace.all"}),!0}));function Bv(e){return e.state.facet(fv).createPanel(e)}function Rv(e,t){var a,n,i,s;let r=e.selection.main,o=r.empty||r.to>r.from+100?"":e.sliceDoc(r.from,r.to);if(t&&!o)return t;let l=e.facet(fv);return new hv({search:(null!==(a=null==t?void 0:t.literal)&&void 0!==a?a:l.literal)?o:o.replace(/\n/g,"\\n"),caseSensitive:null!==(n=null==t?void 0:t.caseSensitive)&&void 0!==n?n:l.caseSensitive,literal:null!==(i=null==t?void 0:t.literal)&&void 0!==i?i:l.literal,wholeWord:null!==(s=null==t?void 0:t.wholeWord)&&void 0!==s?s:l.wholeWord})}function Iv(e){let t=pp(e,Bv);return t&&t.dom.querySelector("[main-field]")}function Dv(e){let t=Iv(e);t&&t==e.root.activeElement&&t.select()}const Nv=e=>{let t=e.state.field(Sv,!1);if(t&&t.panel){let a=Iv(e);if(a&&a!=e.root.activeElement){let n=Rv(e.state,t.query.spec);n.valid&&e.dispatch({effects:xv.of(n)}),a.focus(),a.select()}}else e.dispatch({effects:[Cv.of(!0),t?xv.of(Rv(e.state,t.query.spec)):Al.appendConfig.of(Wv)]});return!0},Lv=e=>{let t=e.state.field(Sv,!1);if(!t||!t.panel)return!1;let a=pp(e,Bv);return a&&a.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:Cv.of(!1)}),!0},Fv=[{key:"Mod-f",run:Nv,scope:"editor search-panel"},{key:"F3",run:Mv,shift:$v,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Mv,shift:$v,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Lv,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let a=e.selection;if(a.ranges.length>1||a.main.empty)return!1;let{from:n,to:i}=a.main,s=[],r=0;for(let t=new Wy(e.doc,e.sliceDoc(n,i));!t.next().done;){if(s.length>1e3)return!1;t.value.from==n&&(r=s.length),s.push(nl.range(t.value.from,t.value.to))}return t(e.update({selection:nl.create(s,r),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:e=>{let t=pp(e,ev);if(!t){let a=[tv.of(!0)];null==e.state.field(av,!1)&&a.push(Al.appendConfig.of([av,nv])),e.dispatch({effects:a}),t=pp(e,ev)}return t&&t.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:a}=e.selection;if(a.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:a}=e,n=nl.create(a.ranges.map((t=>e.wordAt(t.head)||nl.cursor(t.head))),a.mainIndex);return!n.eq(a)&&(t(e.update({selection:n})),!0)})({state:e,dispatch:t});let n=e.sliceDoc(a[0].from,a[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=n)))return!1;let i=function(e,t){let{main:a,ranges:n}=e.selection,i=e.wordAt(a.head),s=i&&i.from==a.from&&i.to==a.to;for(let a=!1,i=new Wy(e.doc,t,n[n.length-1].to);;){if(i.next(),!i.done){if(a&&n.some((e=>e.from==i.value.from)))continue;if(s){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}if(a)return null;i=new Wy(e.doc,t,0,Math.max(0,n[n.length-1].from-1)),a=!0}}(e,n);return!!i&&(t(e.update({selection:e.selection.addRange(nl.range(i.from,i.to),!1),effects:td.scrollIntoView(i.to)})),!0)},preventDefault:!0}];class zv{constructor(e){this.view=e;let t=this.query=e.state.field(Sv).query.spec;function a(e,t,a){return Hy("button",{class:"cm-button",name:e,onclick:t,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Hy("input",{value:t.search,placeholder:Vv(e,"Find"),"aria-label":Vv(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Hy("input",{value:t.replace,placeholder:Vv(e,"Replace"),"aria-label":Vv(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Hy("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Hy("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Hy("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=Hy("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,a("next",(()=>Mv(e)),[Vv(e,"next")]),a("prev",(()=>$v(e)),[Vv(e,"previous")]),a("select",(()=>Pv(e)),[Vv(e,"all")]),Hy("label",null,[this.caseField,Vv(e,"match case")]),Hy("label",null,[this.reField,Vv(e,"regexp")]),Hy("label",null,[this.wordField,Vv(e,"by word")]),...e.state.readOnly?[]:[Hy("br"),this.replaceField,a("replace",(()=>Tv(e)),[Vv(e,"replace")]),a("replaceAll",(()=>Av(e)),[Vv(e,"replace all")])],Hy("button",{name:"close",onclick:()=>Lv(e),"aria-label":Vv(e,"close"),type:"button"},["×"])])}commit(){let e=new hv({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:xv.of(e)}))}keydown(e){var t,a;a=e,pd(fd((t=this.view).state),a,t,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?$v:Mv)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),Tv(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(xv)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(fv).top}}function Vv(e,t){return e.state.phrase(t)}const Uv=30,Hv=/[\s\.,:;?!]/;function Gv(e,{from:t,to:a}){let n=e.state.doc.lineAt(t),i=e.state.doc.lineAt(a).to,s=Math.max(n.from,t-Uv),r=Math.min(i,a+Uv),o=e.state.sliceDoc(s,r);if(s!=n.from)for(let e=0;e<Uv;e++)if(!Hv.test(o[e+1])&&Hv.test(o[e])){o=o.slice(e);break}if(r!=i)for(let e=o.length-1;e>o.length-Uv;e--)if(!Hv.test(o[e-1])&&Hv.test(o[e])){o=o.slice(0,e);break}return td.announce.of(`${e.state.phrase("current match")}. ${o} ${e.state.phrase("on line")} ${n.number}.`)}const jv=td.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Wv=[Sv,ml.lowest(Ov),jv];class qv{constructor(e,t,a){this.state=e,this.pos=t,this.explicit=a,this.abortListeners=[]}tokenBefore(e){let t=Qm(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),a=Math.max(t.from,this.pos-250),n=t.text.slice(a-t.from,this.pos-t.from),i=n.search(Kv(e,!1));return i<0?null:{from:a+i,to:this.pos,text:n.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function Zv(e){let t=Object.keys(e).join(""),a=/\w/.test(t);return a&&(t=t.replace(/\w/g,"")),`[${a?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}class Qv{constructor(e,t,a,n){this.completion=e,this.source=t,this.match=a,this.score=n}}function Xv(e){return e.selection.main.from}function Kv(e,t){var a;let{source:n}=e,i=t&&"^"!=n[0],s="$"!=n[n.length-1];return i||s?new RegExp(`${i?"^":""}(?:${n})${s?"$":""}`,null!==(a=e.flags)&&void 0!==a?a:e.ignoreCase?"i":""):e}const Yv=$l.define(),Jv=new WeakMap;function ex(e){if(!Array.isArray(e))return e;let t=Jv.get(e);return t||Jv.set(e,t=function(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[a,n]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),a=Object.create(null);for(let{label:n}of e){t[n[0]]=!0;for(let e=1;e<n.length;e++)a[n[e]]=!0}let n=Zv(t)+Zv(a)+"*$";return[new RegExp("^"+n),new RegExp(n)]}(t);return e=>{let i=e.matchBefore(n);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:a}:null}}(e)),t}const tx=Al.define(),ax=Al.define();class nx{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[];for(let t=0;t<e.length;){let a=Ho(e,t),n=jo(a);this.chars.push(a);let i=e.slice(t,t+n),s=i.toUpperCase();this.folded.push(Ho(s==i?i.toLowerCase():s,0)),t+=n}this.astral=e.length!=this.chars.length}match(e){if(0==this.pattern.length)return[-100];if(e.length<this.pattern.length)return null;let{chars:t,folded:a,any:n,precise:i,byWord:s}=this;if(1==t.length){let n=Ho(e,0),i=jo(n),s=i==e.length?0:-100;if(n==t[0]);else{if(n!=a[0])return null;s+=-200}return[s,0,i]}let r=e.indexOf(this.pattern);if(0==r)return[e.length==this.pattern.length?0:-100,0,this.pattern.length];let o=t.length,l=0;if(r<0){for(let i=0,s=Math.min(e.length,200);i<s&&l<o;){let s=Ho(e,i);s!=t[l]&&s!=a[l]||(n[l++]=i),i+=jo(s)}if(l<o)return null}let c=0,u=0,f=!1,h=0,d=-1,p=-1,m=/[a-z]/.test(e),g=!0;for(let n=0,l=Math.min(e.length,200),b=0;n<l&&u<o;){let l=Ho(e,n);r<0&&(c<o&&l==t[c]&&(i[c++]=n),h<o&&(l==t[h]||l==a[h]?(0==h&&(d=n),p=n+1,h++):h=0));let y,v=l<255?l>=48&&l<=57||l>=97&&l<=122?2:l>=65&&l<=90?1:0:(y=Go(l))!=y.toLowerCase()?1:y!=y.toUpperCase()?2:0;(!n||1==v&&m||0==b&&0!=v)&&(t[u]==l||a[u]==l&&(f=!0)?s[u++]=n:s.length&&(g=!1)),b=v,n+=jo(l)}return u==o&&0==s[0]&&g?this.result((f?-200:0)-100,s,e):h==o&&0==d?[-200-e.length+(p==e.length?0:-100),0,p]:r>-1?[-700-e.length,r,r+this.pattern.length]:h==o?[-900-e.length,d,p]:u==o?this.result((f?-200:0)-100-700+(g?0:-1100),s,e):2==t.length?null:this.result((n[0]?-700:0)-200-1100,n,e)}result(e,t,a){let n=[e-a.length],i=1;for(let e of t){let t=e+(this.astral?jo(Ho(a,e)):1);i>1&&n[i-1]==e?n[i-1]=t:(n[i++]=e,n[i++]=t)}return n}}const ix=rl.define({combine:e=>Gl(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:rx,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>a=>sx(e(a),t(a)),optionClass:(e,t)=>a=>sx(e(a),t(a)),addToOptions:(e,t)=>e.concat(t)})});function sx(e,t){return e?t?e+" "+t:e:t}function rx(e,t,a,n,i){let s,r,o=e.textDirection==of.RTL,l=o,c=!1,u="top",f=t.left-i.left,h=i.right-t.right,d=n.right-n.left,p=n.bottom-n.top;if(l&&f<Math.min(d,h)?l=!1:!l&&h<Math.min(d,f)&&(l=!0),d<=(l?f:h))s=Math.max(i.top,Math.min(a.top,i.bottom-p))-t.top,r=Math.min(400,l?f:h);else{c=!0,r=Math.min(400,(o?t.right:i.right-t.left)-30);let e=i.bottom-t.bottom;e>=p||e>t.top?s=a.bottom-t.top:(u="bottom",s=t.bottom-a.top)}return{style:`${u}: ${s}px; max-width: ${r}px`,class:"cm-completionInfo-"+(c?o?"left-narrow":"right-narrow":l?"left":"right")}}function ox(e,t="option"){return a=>{let n=a.state.field(kx,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp<a.state.facet(ix).interactionDelay)return!1;let i,s=1;"page"==t&&(i=fp(a,n.open.tooltip))&&(s=Math.max(2,Math.floor(i.dom.offsetHeight/i.dom.querySelector("li").offsetHeight)-1));let{length:r}=n.open.options,o=n.open.selected>-1?n.open.selected+s*(e?1:-1):e?0:r-1;return o<0?o="page"==t?0:r-1:o>=r&&(o="page"==t?r-1:0),a.dispatch({effects:wx.of(o)}),!0}}class lx{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const cx=Qu.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(kx).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(kx);if(!e.selectionSet&&!e.docChanged&&e.startState.field(kx)==t)return;let a=e.transactions.some((e=>(e.selection||e.docChanged)&&!vx(e)));for(let t=0;t<this.running.length;t++){let n=this.running[t];if(a||n.updates.length+e.transactions.length>50&&Date.now()-n.time>1e3){for(let e of n.context.abortListeners)try{e()}catch(e){ju(this.view.state,e)}n.context.abortListeners=null,this.running.splice(t--,1)}else n.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let t of e.transactions)"input"==vx(t)?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(kx);for(let e of t.active)1!=e.state||this.running.some((t=>t.active.source==e.source))||this.startQuery(e)}startQuery(e){let{state:t}=this.view,a=Xv(t),n=new qv(t,a,e.explicitPos==a),i=new lx(e,n);this.running.push(i),Promise.resolve(e.source(n)).then((e=>{i.context.aborted||(i.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:ax.of(null)}),ju(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),50))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],a=this.view.state.facet(ix);for(let n=0;n<this.running.length;n++){let i=this.running[n];if(void 0===i.done)continue;if(this.running.splice(n--,1),i.done){let n=new Cx(i.active.source,i.active.explicitPos,i.done,i.done.from,null!==(e=i.done.to)&&void 0!==e?e:Xv(i.updates.length?i.updates[0].startState:this.view.state));for(let e of i.updates)n=n.update(e,a);if(n.hasResult()){t.push(n);continue}}let s=this.view.state.field(kx).active.find((e=>e.source==i.active.source));if(s&&1==s.state)if(null==i.done){let e=new xx(i.active.source,0);for(let t of i.updates)e=e.update(t,a);1!=e.state&&t.push(e)}else this.startQuery(s)}t.length&&this.view.dispatch({effects:Sx.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(kx,!1);if(t&&t.tooltip&&this.view.state.facet(ix).closeOnBlur){let a=t.open&&fp(this.view,t.open.tooltip);a&&a.dom.contains(e.relatedTarget)||this.view.dispatch({effects:ax.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:tx.of(!1)})),20),this.composing=0}}});function ux(e,t){const a=t.completion.apply||t.completion.label;let n=e.state.field(kx).active.find((e=>e.source==t.source));return n instanceof Cx&&("string"==typeof a?e.dispatch(Object.assign(Object.assign({},function(e,t,a,n){let{main:i}=e.selection,s=a-i.from,r=n-i.from;return Object.assign(Object.assign({},e.changeByRange((o=>o!=i&&a!=n&&e.sliceDoc(o.from+s,o.from+r)!=e.sliceDoc(a,n)?{range:o}:{changes:{from:o.from+s,to:n==i.from?o.to:o.from+r,insert:t},range:nl.cursor(o.from+s+t.length)}))),{userEvent:"input.complete"})}(e.state,a,n.from,n.to)),{annotations:Yv.of(t.completion)})):a(e,t.completion,n.from,n.to),!0)}function fx(e,t,a){if(e<=a)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/a);return{from:e*a,to:(e+1)*a}}let n=Math.floor((e-t)/a);return{from:e-(n+1)*a,to:e-n*a}}class hx{constructor(e,t){this.view=e,this.stateField=t,this.info=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let a=e.state.field(t),{options:n,selected:i}=a.open,s=e.state.facet(ix);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,a){let n=document.createElement("span");n.className="cm-completionLabel";let{label:i}=e,s=0;for(let e=1;e<a.length;){let t=a[e++],r=a[e++];t>s&&n.appendChild(document.createTextNode(i.slice(s,t)));let o=n.appendChild(document.createElement("span"));o.appendChild(document.createTextNode(i.slice(t,r))),o.className="cm-completionMatchedText",s=r}return s<i.length&&n.appendChild(document.createTextNode(i.slice(s))),n},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort(((e,t)=>e.position-t.position)).map((e=>e.render))}(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=fx(n.length,i,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(t=>{for(let a,i=t.target;i&&i!=this.dom;i=i.parentNode)if("LI"==i.nodeName&&(a=/-(\d+)$/.exec(i.id))&&+a[1]<n.length)return ux(e,n[+a[1]]),void t.preventDefault()})),this.dom.addEventListener("focusout",(t=>{let a=e.state.field(this.stateField,!1);a&&a.tooltip&&e.state.facet(ix).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:ax.of(null)})})),this.list=this.dom.appendChild(this.createListBox(n,a.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}mount(){this.updateSel()}update(e){var t,a,n;let i=e.state.field(this.stateField),s=e.startState.field(this.stateField);this.updateTooltipClass(e.state),i!=s&&(this.updateSel(),(null===(t=i.open)||void 0===t?void 0:t.disabled)!=(null===(a=s.open)||void 0===a?void 0:a.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!(null===(n=i.open)||void 0===n?void 0:n.disabled)))}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=fx(t.options.length,t.selected,this.view.state.facet(ix).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t.options,e.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))),this.updateSelectedOption(t.selected)){this.info&&(this.info.remove(),this.info=null);let{completion:a}=t.options[t.selected],{info:n}=a;if(!n)return;let i="string"==typeof n?document.createTextNode(n):n(a);if(!i)return;"then"in i?i.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t)})).catch((e=>ju(this.view.state,e,"completion info"))):this.addInfoPane(i)}}addInfoPane(e){let t=this.info=document.createElement("div");t.className="cm-tooltip cm-completionInfo",t.appendChild(e),this.dom.appendChild(t),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let a=this.list.firstChild,n=this.range.from;a;a=a.nextSibling,n++)"LI"==a.nodeName&&a.id?n==e?a.hasAttribute("aria-selected")||(a.setAttribute("aria-selected","true"),t=a):a.hasAttribute("aria-selected")&&a.removeAttribute("aria-selected"):n--;return t&&function(e,t){let a=e.getBoundingClientRect(),n=t.getBoundingClientRect();n.top<a.top?e.scrollTop-=a.top-n.top:n.bottom>a.bottom&&(e.scrollTop+=n.bottom-a.bottom)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),a=this.info.getBoundingClientRect(),n=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return n.top>Math.min(i.bottom,t.bottom)-10||n.bottom<Math.max(i.top,t.top)+10?null:this.view.state.facet(ix).positionInfo(this.view,t,n,a,i)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,a){const n=document.createElement("ul");n.id=t,n.setAttribute("role","listbox"),n.setAttribute("aria-expanded","true"),n.setAttribute("aria-label",this.view.state.phrase("Completions"));let i=null;for(let s=a.from;s<a.to;s++){let{completion:r,match:o}=e[s],{section:l}=r;if(l){let e="string"==typeof l?l:l.name;e!=i&&(s>a.from||0==a.from)&&(i=e,"string"!=typeof l&&l.header?n.appendChild(l.header(l)):n.appendChild(document.createElement("completion-section")).textContent=e)}const c=n.appendChild(document.createElement("li"));c.id=t+"-"+s,c.setAttribute("role","option");let u=this.optionClass(r);u&&(c.className=u);for(let e of this.optionContent){let t=e(r,this.view.state,o);t&&c.appendChild(t)}}return a.from&&n.classList.add("cm-completionListIncompleteTop"),a.to<e.length&&n.classList.add("cm-completionListIncompleteBottom"),n}}function dx(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class px{constructor(e,t,a,n,i,s){this.options=e,this.attrs=t,this.tooltip=a,this.timestamp=n,this.selected=i,this.disabled=s}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new px(this.options,bx(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,a,n,i){let s=function(e,t){let a=[],n=null,i=e=>{a.push(e);let{section:t}=e.completion;if(t){n||(n=[]);let e="string"==typeof t?t:t.name;n.some((t=>t.name==e))||n.push("string"==typeof t?{name:e}:t)}};for(let n of e)if(n.hasResult())if(!1===n.result.filter){let e=n.result.getMatch;for(let t of n.result.options){let s=[1e9-a.length];if(e)for(let a of e(t))s.push(a);i(new Qv(t,n.source,s,s[0]))}}else{let e,a=new nx(t.sliceDoc(n.from,n.to));for(let t of n.result.options)(e=a.match(t.label))&&i(new Qv(t,n.source,e,e[0]+(t.boost||0)))}if(n){let e=Object.create(null),t=0,i=(e,t)=>{var a,n;return(null!==(a=e.rank)&&void 0!==a?a:1e9)-(null!==(n=t.rank)&&void 0!==n?n:1e9)||(e.name<t.name?-1:1)};for(let a of n.sort(i))t-=1e5,e[a.name]=t;for(let t of a){let{section:a}=t.completion;a&&(t.score+=e["string"==typeof a?a:a.name])}}let s=[],r=null,o=t.facet(ix).compareCompletions;for(let e of a.sort(((e,t)=>t.score-e.score||o(e.completion,t.completion))))!r||r.label!=e.completion.label||r.detail!=e.completion.detail||null!=r.type&&null!=e.completion.type&&r.type!=e.completion.type||r.apply!=e.completion.apply?s.push(e):dx(e.completion)>dx(r)&&(s[s.length-1]=e),r=e.completion;return s}(e,t);if(!s.length)return n&&e.some((e=>1==e.state))?new px(n.options,n.attrs,n.tooltip,n.timestamp,n.selected,!0):null;let r=t.facet(ix).selectOnOpen?0:-1;if(n&&n.selected!=r&&-1!=n.selected){let e=n.options[n.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){r=t;break}}return new px(s,bx(a,r),{pos:e.reduce(((e,t)=>t.hasResult()?Math.min(e,t.from):e),1e8),create:(o=kx,e=>new hx(e,o)),above:i.aboveCursor},n?n.timestamp:Date.now(),r,!1);var o}map(e){return new px(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class mx{constructor(e,t,a){this.active=e,this.id=t,this.open=a}static start(){return new mx(yx,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,a=t.facet(ix),n=(a.override||t.languageDataAt("autocomplete",Xv(t)).map(ex)).map((t=>(this.active.find((e=>e.source==t))||new xx(t,this.active.some((e=>0!=e.state))?1:0)).update(e,a)));n.length==this.active.length&&n.every(((e,t)=>e==this.active[t]))&&(n=this.active);let i=this.open;i&&e.docChanged&&(i=i.map(e.changes)),e.selection||n.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let a=0,n=0;;){for(;a<e.length&&!e[a].hasResult;)a++;for(;n<t.length&&!t[n].hasResult;)n++;let i=a==e.length,s=n==t.length;if(i||s)return i==s;if(e[a++].result!=t[n++].result)return!1}}(n,this.active)?i=px.build(n,t,this.id,i,a):i&&i.disabled&&!n.some((e=>1==e.state))&&(i=null),!i&&n.every((e=>1!=e.state))&&n.some((e=>e.hasResult()))&&(n=n.map((e=>e.hasResult()?new xx(e.source,0):e)));for(let t of e.effects)t.is(wx)&&(i=i&&i.setSelected(t.value,this.id));return n==this.active&&i==this.open?this:new mx(n,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:gx}}const gx={"aria-autocomplete":"list"};function bx(e,t){let a={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(a["aria-activedescendant"]=e+"-"+t),a}const yx=[];function vx(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class xx{constructor(e,t,a=-1){this.source=e,this.state=t,this.explicitPos=a}hasResult(){return!1}update(e,t){let a=vx(e),n=this;a?n=n.handleUserEvent(e,a,t):e.docChanged?n=n.handleChange(e):e.selection&&0!=n.state&&(n=new xx(n.source,0));for(let t of e.effects)if(t.is(tx))n=new xx(n.source,1,t.value?Xv(e.state):-1);else if(t.is(ax))n=new xx(n.source,0);else if(t.is(Sx))for(let e of t.value)e.source==n.source&&(n=e);return n}handleUserEvent(e,t,a){return"delete"!=t&&a.activateOnTyping?new xx(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(Xv(e.startState))?new xx(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new xx(this.source,this.state,e.mapPos(this.explicitPos))}}class Cx extends xx{constructor(e,t,a,n,i){super(e,2,t),this.result=a,this.from=n,this.to=i}hasResult(){return!0}handleUserEvent(e,t,a){var n;let i=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),r=Xv(e.state);if((this.explicitPos<0?r<=i:r<this.from)||r>s||"delete"==t&&Xv(e.startState)==this.from)return new xx(this.source,"input"==t&&a.activateOnTyping?1:0);let o,l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,a,n){if(!e)return!1;let i=t.sliceDoc(a,n);return"function"==typeof e?e(i,a,n,t):Kv(e,!0).test(i)}(this.result.validFor,e.state,i,s)?new Cx(this.source,l,this.result,i,s):this.result.update&&(o=this.result.update(this.result,i,s,new qv(e.state,r,l>=0)))?new Cx(this.source,l,o,o.from,null!==(n=o.to)&&void 0!==n?n:Xv(e.state)):new xx(this.source,1,l)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new xx(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new Cx(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const Sx=Al.define({map:(e,t)=>e.map((e=>e.map(t)))}),wx=Al.define(),kx=dl.define({create:()=>mx.start(),update:(e,t)=>e.update(t),provide:e=>[ip.from(e,(e=>e.tooltip)),td.contentAttributes.from(e,(e=>e.attrs))]}),Ox=td.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),Ex={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Mx=Al.define({map(e,t){let a=t.mapPos(e,-1,qo.TrackAfter);return null==a?void 0:a}}),$x=new class extends jl{};$x.startSide=1,$x.endSide=-1;const Px=dl.define({create:()=>Ql.empty,update(e,t){if(t.selection){let a=t.state.doc.lineAt(t.selection.main.head).from,n=t.startState.doc.lineAt(t.startState.selection.main.head).from;a!=t.changes.mapPos(n,-1)&&(e=Ql.empty)}e=e.map(t.changes);for(let a of t.effects)a.is(Mx)&&(e=e.update({add:[$x.range(a.value,a.value+1)]}));return e}}),Tx="()[]{}<>";function Ax(e){for(let t=0;t<8;t+=2)if(Tx.charCodeAt(t)==e)return Tx.charAt(t+1);return Go(e<128?e:e+1)}function Bx(e,t){return e.languageDataAt("closeBrackets",t)[0]||Ex}const Rx="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),Ix=td.inputHandler.of(((e,t,a,n)=>{if((Rx?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(n.length>2||2==n.length&&1==jo(Ho(n,0))||t!=i.from||a!=i.to)return!1;let s=function(e,t){let a=Bx(e,e.selection.main.head),n=a.brackets||Ex.brackets;for(let i of n){let s=Ax(Ho(i,0));if(t==i)return s==i?Vx(e,i,n.indexOf(i+i+i)>-1,a):Fx(e,i,s,a.before||Ex.before);if(t==s&&Nx(e,e.selection.main.from))return zx(e,0,s)}return null}(e.state,n);return!!s&&(e.dispatch(s),!0)})),Dx=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let a=Bx(e,e.selection.main.head).brackets||Ex.brackets,n=null,i=e.changeByRange((t=>{if(t.empty){let n=function(e,t){let a=e.sliceString(t-2,t);return jo(Ho(a,0))==a.length?a:a.slice(1)}(e.doc,t.head);for(let i of a)if(i==n&&Lx(e.doc,t.head)==Ax(Ho(i,0)))return{changes:{from:t.head-i.length,to:t.head+i.length},range:nl.cursor(t.head-i.length)}}return{range:n=t}}));return n||t(e.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!n}}];function Nx(e,t){let a=!1;return e.field(Px).between(0,e.doc.length,(e=>{e==t&&(a=!0)})),a}function Lx(e,t){let a=e.sliceString(t,t+2);return a.slice(0,jo(Ho(a,0)))}function Fx(e,t,a,n){let i=null,s=e.changeByRange((s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:a,from:s.to}],effects:Mx.of(s.to+t.length),range:nl.range(s.anchor+t.length,s.head+t.length)};let r=Lx(e.doc,s.head);return!r||/\s/.test(r)||n.indexOf(r)>-1?{changes:{insert:t+a,from:s.head},effects:Mx.of(s.head+t.length),range:nl.cursor(s.head+t.length)}:{range:i=s}}));return i?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function zx(e,t,a){let n=null,i=e.changeByRange((t=>t.empty&&Lx(e.doc,t.head)==a?{changes:{from:t.head,to:t.head+a.length,insert:a},range:nl.cursor(t.head+a.length)}:n={range:t}));return n?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function Vx(e,t,a,n){let i=n.stringPrefixes||Ex.stringPrefixes,s=null,r=e.changeByRange((n=>{if(!n.empty)return{changes:[{insert:t,from:n.from},{insert:t,from:n.to}],effects:Mx.of(n.to+t.length),range:nl.range(n.anchor+t.length,n.head+t.length)};let r,o=n.head,l=Lx(e.doc,o);if(l==t){if(Ux(e,o))return{changes:{insert:t+t,from:o},effects:Mx.of(o+t.length),range:nl.cursor(o+t.length)};if(Nx(e,o)){let n=a&&e.sliceDoc(o,o+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:o,to:o+n.length,insert:n},range:nl.cursor(o+n.length)}}}else{if(a&&e.sliceDoc(o-2*t.length,o)==t+t&&(r=Hx(e,o-2*t.length,i))>-1&&Ux(e,r))return{changes:{insert:t+t+t+t,from:o},effects:Mx.of(o+t.length),range:nl.cursor(o+t.length)};if(e.charCategorizer(o)(l)!=zl.Word&&Hx(e,o,i)>-1&&!function(e,t,a,n){let i=Qm(e).resolveInner(t,-1),s=n.reduce(((e,t)=>Math.max(e,t.length)),0);for(let r=0;r<5;r++){let r=e.sliceDoc(i.from,Math.min(i.to,i.from+a.length+s)),o=r.indexOf(a);if(!o||o>-1&&n.indexOf(r.slice(0,o))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>a.length+o;){if(e.sliceDoc(t.to-a.length,t.to)==a)return!1;t=t.firstChild}return!0}let l=i.to==t&&i.parent;if(!l)break;i=l}return!1}(e,o,t,i))return{changes:{insert:t+t,from:o},effects:Mx.of(o+t.length),range:nl.cursor(o+t.length)}}return{range:s=n}}));return s?null:e.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Ux(e,t){let a=Qm(e).resolveInner(t+1);return a.parent&&a.from==t}function Hx(e,t,a){let n=e.charCategorizer(t);if(n(e.sliceDoc(t-1,t))!=zl.Word)return t;for(let i of a){let a=t-i.length;if(e.sliceDoc(a,t)==i&&n(e.sliceDoc(a-1,a))!=zl.Word)return a}return-1}const Gx=[{key:"Ctrl-Space",run:e=>!!e.state.field(kx,!1)&&(e.dispatch({effects:tx.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(kx,!1);return!(!t||!t.active.some((e=>0!=e.state))||(e.dispatch({effects:ax.of(null)}),0))}},{key:"ArrowDown",run:ox(!0)},{key:"ArrowUp",run:ox(!1)},{key:"PageDown",run:ox(!0,"page")},{key:"PageUp",run:ox(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(kx,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||Date.now()-t.open.timestamp<e.state.facet(ix).interactionDelay)&&(!!t.open.disabled||ux(e,t.open.options[t.open.selected]))}}],jx=ml.highest(cd.computeN([ix],(e=>e.facet(ix).defaultKeymap?[Gx]:[])));class Wx{constructor(e,t,a){this.from=e,this.to=t,this.diagnostic=a}}class qx{constructor(e,t,a){this.diagnostics=e,this.panel=t,this.selected=a}static init(e,t,a){let n=e,i=a.facet(iC).markerFilter;i&&(n=i(n));let s=wu.set(n.map((e=>e.from==e.to||e.from==e.to-1&&a.doc.lineAt(e.from).to==e.from?wu.widget({widget:new oC(e),diagnostic:e}).range(e.from):wu.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity},diagnostic:e}).range(e.from,e.to))),!0);return new qx(s,t,Zx(s))}}function Zx(e,t=null,a=0){let n=null;return e.between(a,1e9,((e,a,{spec:i})=>{if(!t||i.diagnostic==t)return n=new Wx(e,a,i.diagnostic),!1})),n}const Qx=Al.define(),Xx=Al.define(),Kx=Al.define(),Yx=dl.define({create:()=>new qx(wu.none,null,null),update(e,t){if(t.docChanged){let a=e.diagnostics.map(t.changes),n=null;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);n=Zx(a,e.selected.diagnostic,i)||Zx(a,null,i)}e=new qx(a,e.panel,n)}for(let a of t.effects)a.is(Qx)?e=qx.init(a.value,e.panel,t.state):a.is(Xx)?e=new qx(e.diagnostics,a.value?cC.open:null,e.selected):a.is(Kx)&&(e=new qx(e.diagnostics,e.panel,a.value));return e},provide:e=>[yp.from(e,(e=>e.panel)),td.decorations.from(e,(e=>e.diagnostics))]}),Jx=wu.mark({class:"cm-lintRange cm-lintRange-active"});function eC(e,t,a){let{diagnostics:n}=e.state.field(Yx),i=[],s=2e8,r=0;n.between(t-(a<0?1:0),t+(a>0?1:0),((e,n,{spec:o})=>{t>=e&&t<=n&&(e==n||(t>e||a>0)&&(t<n||a<0))&&(i.push(o.diagnostic),s=Math.min(e,s),r=Math.max(n,r))}));let o=e.state.facet(iC).tooltipFilter;return o&&(i=o(i)),i.length?{pos:s,end:r,above:e.state.doc.lineAt(s).to<r,create:()=>({dom:tC(e,i)})}:null}function tC(e,t){return Hy("ul",{class:"cm-tooltip-lint"},t.map((t=>rC(e,t,!1))))}const aC=e=>{let t=e.state.field(Yx,!1);return!(!t||!t.panel||(e.dispatch({effects:Xx.of(!1)}),0))},nC=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(Yx,!1);var a,n;t&&t.panel||e.dispatch({effects:(a=e.state,n=[Xx.of(!0)],a.field(Yx,!1)?n:n.concat(Al.appendConfig.of(hC)))});let i=pp(e,cC.open);return i&&i.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(Yx,!1);if(!t)return!1;let a=e.state.selection.main,n=t.diagnostics.iter(a.to+1);return!(!n.value&&(n=t.diagnostics.iter(0),!n.value||n.from==a.from&&n.to==a.to)||(e.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),0))}}],iC=rl.define({combine:e=>Object.assign({sources:e.map((e=>e.source))},Gl(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,t)=>e?t?a=>e(a)||t(a):e:t}))});function sC(e){let t=[];if(e)e:for(let{name:a}of e){for(let e=0;e<a.length;e++){let n=a[e];if(/[a-zA-Z]/.test(n)&&!t.some((e=>e.toLowerCase()==n.toLowerCase()))){t.push(n);continue e}}t.push("")}return t}function rC(e,t,a){var n;let i=a?sC(t.actions):[];return Hy("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Hy("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(n=t.actions)||void 0===n?void 0:n.map(((a,n)=>{let s=!1,r=n=>{if(n.preventDefault(),s)return;s=!0;let i=Zx(e.state.field(Yx).diagnostics,t);i&&a.apply(e,i.from,i.to)},{name:o}=a,l=i[n]?o.indexOf(i[n]):-1,c=l<0?o:[o.slice(0,l),Hy("u",o.slice(l,l+1)),o.slice(l+1)];return Hy("button",{type:"button",class:"cm-diagnosticAction",onclick:r,onmousedown:r,"aria-label":` Action: ${o}${l<0?"":` (access key "${i[n]})"`}.`},c)})),t.source&&Hy("div",{class:"cm-diagnosticSource"},t.source))}class oC extends Cu{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Hy("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class lC{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=rC(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class cC{constructor(e){this.view=e,this.items=[],this.list=Hy("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)aC(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:a}=this.items[this.selectedIndex],n=sC(a.actions);for(let i=0;i<n.length;i++)if(n[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=Zx(this.view.state.field(Yx).diagnostics,a);t&&a.actions[i].apply(e,t.from,t.to)}}}t.preventDefault()},onclick:e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)}}),this.dom=Hy("div",{class:"cm-panel-lint"},this.list,Hy("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>aC(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Yx).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Yx),a=0,n=!1,i=null;for(e.between(0,this.view.state.doc.length,((e,s,{spec:r})=>{let o,l=-1;for(let e=a;e<this.items.length;e++)if(this.items[e].diagnostic==r.diagnostic){l=e;break}l<0?(o=new lC(this.view,r.diagnostic),this.items.splice(a,0,o),n=!0):(o=this.items[l],l>a&&(this.items.splice(a,l-a),n=!0)),t&&o.diagnostic==t.diagnostic?o.dom.hasAttribute("aria-selected")||(o.dom.setAttribute("aria-selected","true"),i=o):o.dom.hasAttribute("aria-selected")&&o.dom.removeAttribute("aria-selected"),a++}));a<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)n=!0,this.items.pop();0==this.items.length&&(this.items.push(new lC(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),n=!0),i?(this.list.setAttribute("aria-activedescendant",i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{e.top<t.top?this.list.scrollTop-=t.top-e.top:e.bottom>t.bottom&&(this.list.scrollTop+=e.bottom-t.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),n&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let a of this.items)if(a.dom.parentNode==this.list){for(;e!=a.dom;)t();e=a.dom.nextSibling}else this.list.insertBefore(a.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=Zx(this.view.state.field(Yx).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Kx.of(t)})}static open(e){return new cC(e)}}function uC(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const fC=td.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:uC("#d11")},".cm-lintRange-warning":{backgroundImage:uC("orange")},".cm-lintRange-info":{backgroundImage:uC("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),hC=[Yx,td.decorations.compute([Yx],(e=>{let{selected:t,panel:a}=e.field(Yx);return t&&a&&t.from!=t.to?wu.set([Jx.range(t.from,t.to)]):wu.none})),up(eC,{hideOn:function(e,t){return!(!e.effects.some((e=>e.is(Qx)))&&!e.changes.touchesRange(t.pos))}}),fC];var dC=function(e){void 0===e&&(e={});var t=[];!1!==e.closeBracketsKeymap&&(t=t.concat(Dx)),!1!==e.defaultKeymap&&(t=t.concat(Vy)),!1!==e.searchKeymap&&(t=t.concat(Fv)),!1!==e.historyKeymap&&(t=t.concat(Hb)),!1!==e.foldKeymap&&(t=t.concat(Ag)),!1!==e.completionKeymap&&(t=t.concat(Gx)),!1!==e.lintKeymap&&(t=t.concat(nC));var a=[];return!1!==e.lineNumbers&&a.push(function(e={}){return[Rp.of(e),Op(),Np]}()),!1!==e.highlightActiveLineGutter&&a.push(zp),!1!==e.highlightSpecialChars&&a.push(function(e={}){return[Fd.of(e),zd||(zd=Qu.fromClass(class{constructor(e){this.view=e,this.decorations=wu.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(Fd)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Rd({regexp:e.specialChars,decoration:(t,a,n)=>{let{doc:i}=a.state,s=Ho(t[0],0);if(9==s){let e=i.lineAt(n),t=a.state.tabSize,s=oc(e.text,t,n-e.from);return wu.replace({widget:new Ud((t-s%t)*this.view.defaultCharacterWidth)})}return this.decorationCache[s]||(this.decorationCache[s]=wu.replace({widget:new Vd(e,s)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(Fd);e.startState.facet(Fd)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}()),!1!==e.history&&a.push(function(e={}){return[Ob,_b.of(e),td.domEventHandlers({beforeinput(e,t){let a="historyUndo"==e.inputType?Mb:"historyRedo"==e.inputType?$b:null;return!!a&&(e.preventDefault(),a(t))}})]}()),!1!==e.foldGutter&&a.push(function(e={}){let t=Object.assign(Object.assign({},Ng),e),a=new Lg(t,!0),n=new Lg(t,!1),i=Qu.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(ig)!=e.state.facet(ig)||e.startState.field(Eg,!1)!=e.state.field(Eg,!1)||Qm(e.startState)!=Qm(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new Xl;for(let i of e.viewportLineBlocks){let s=Mg(e.state,i.from,i.to)?n:Sg(e.state,i.from,i.to)?a:null;s&&t.add(i.from,i.from,s)}return t.finish()}}),{domEventHandlers:s}=t;return[i,kp({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(i))||void 0===t?void 0:t.markers)||Ql.empty},initialSpacer:()=>new Lg(t,!1),domEventHandlers:Object.assign(Object.assign({},s),{click:(e,t,a)=>{if(s.click&&s.click(e,t,a))return!0;let n=Mg(e.state,t.from,t.to);if(n)return e.dispatch({effects:_g.of(n)}),!0;let i=Sg(e.state,t.from,t.to);return!!i&&(e.dispatch({effects:kg.of(i)}),!0)}})}),Ig()]}()),!1!==e.drawSelection&&a.push(function(e={}){return[wd.of(e),_d,Ed,$d,Uu.of(!0)]}()),!1!==e.dropCursor&&a.push([Td,Ad]),!1!==e.allowMultipleSelections&&a.push(Hl.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&a.push(Hl.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let a=e.newDoc,{head:n}=e.newSelection.main,i=a.lineAt(n);if(n>i.from+200)return e;let s=a.sliceString(i.from,n);if(!t.some((e=>e.test(s))))return e;let{state:r}=e,o=-1,l=[];for(let{head:e}of r.selection.ranges){let t=r.doc.lineAt(e);if(t.from==o)continue;o=t.from;let a=ug(r,t.from);if(null==a)continue;let n=/^\s*/.exec(t.text)[0],i=cg(r,a);n!=i&&l.push({from:t.from,to:t.from+n.length,insert:i})}return l.length?[e,{changes:l,sequential:!0}]:e}))),!1!==e.syntaxHighlighting&&a.push(Gg(qg,{fallback:!0})),!1!==e.bracketMatching&&a.push(function(e={}){return[Kg.of(e),ab]}()),!1!==e.closeBrackets&&a.push([Ix,Px]),!1!==e.autocompletion&&a.push(function(e={}){return[kx,ix.of(e),cx,jx,Ox]}()),!1!==e.rectangularSelection&&a.push(function(e){let t=e=>e.altKey&&0==e.button;return td.mouseSelectionStyle.of(((e,a)=>t(a)?function(e,t){let a=qd(e,t),n=e.state.selection;return a?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(a.line).from),i=e.state.doc.lineAt(t);a={line:i.number,col:a.col,off:Math.min(a.off,i.length)},n=n.map(e.changes)}},get(t,i,s){let r=qd(e,t);if(!r)return n;let o=function(e,t,a){let n=Math.min(t.line,a.line),i=Math.max(t.line,a.line),s=[];if(t.off>Wd||a.off>Wd||t.col<0||a.col<0){let r=Math.min(t.off,a.off),o=Math.max(t.off,a.off);for(let t=n;t<=i;t++){let a=e.doc.line(t);a.length<=o&&s.push(nl.range(a.from+r,a.to+o))}}else{let r=Math.min(t.col,a.col),o=Math.max(t.col,a.col);for(let t=n;t<=i;t++){let a=e.doc.line(t),n=lc(a.text,r,e.tabSize,!0);if(n<0)s.push(nl.cursor(a.to));else{let t=lc(a.text,o,e.tabSize);s.push(nl.range(a.from+n,a.from+t))}}}return s}(e.state,a,r);return o.length?s?nl.create(o.concat(n.ranges)):nl.create(o):n}}:null}(e,a):null))}()),!1!==e.crosshairCursor&&a.push(function(e={}){let[t,a]=Zd[e.key||"Alt"],n=Qu.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventHandlers:{keydown(e){this.set(e.keyCode==t||a(e))},keyup(e){e.keyCode!=t&&a(e)||this.set(!1)},mousemove(e){this.set(a(e))}}});return[n,td.contentAttributes.of((e=>{var t;return(null===(t=e.plugin(n))||void 0===t?void 0:t.isDown)?Qd:null}))]}()),!1!==e.highlightActiveLine&&a.push(Gd),!1!==e.highlightSelectionMatches&&a.push(function(e){let t=[uv,cv];return t}()),e.tabSize&&"number"==typeof e.tabSize&&a.push(og.of(" ".repeat(e.tabSize))),a.concat([cd.of(t.flat())]).filter(Boolean)};const pC="#e06c75",mC="#abb2bf",gC="#7d8799",bC="#d19a66",yC="#2c313a",vC="#282c34",xC="#353a42",CC="#528bff",SC=[td.theme({"&":{color:mC,backgroundColor:vC},".cm-content":{caretColor:CC},".cm-cursor, .cm-dropCursor":{borderLeftColor:CC},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:mC},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:vC,color:gC,border:"none"},".cm-activeLineGutter":{backgroundColor:yC},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:xC},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:xC,borderBottomColor:xC},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:yC,color:mC}}},{dark:!0}),Gg(zg.define([{tag:Um.keyword,color:"#c678dd"},{tag:[Um.name,Um.deleted,Um.character,Um.propertyName,Um.macroName],color:pC},{tag:[Um.function(Um.variableName),Um.labelName],color:"#61afef"},{tag:[Um.color,Um.constant(Um.name),Um.standard(Um.name)],color:bC},{tag:[Um.definition(Um.name),Um.separator],color:mC},{tag:[Um.typeName,Um.className,Um.number,Um.changed,Um.annotation,Um.modifier,Um.self,Um.namespace],color:"#e5c07b"},{tag:[Um.operator,Um.operatorKeyword,Um.url,Um.escape,Um.regexp,Um.link,Um.special(Um.string)],color:"#56b6c2"},{tag:[Um.meta,Um.comment],color:gC},{tag:Um.strong,fontWeight:"bold"},{tag:Um.emphasis,fontStyle:"italic"},{tag:Um.strikethrough,textDecoration:"line-through"},{tag:Um.link,color:gC,textDecoration:"underline"},{tag:Um.heading,fontWeight:"bold",color:pC},{tag:[Um.atom,Um.bool,Um.special(Um.variableName)],color:bC},{tag:[Um.processingInstruction,Um.string,Um.inserted],color:"#98c379"},{tag:Um.invalid,color:"#ffffff"}]))];var wC=function(e){void 0===e&&(e={});var{indentWithTab:t=!0,editable:a=!0,readOnly:n=!1,theme:i="light",placeholder:s="",basicSetup:r=!0}=e,o=[],l=td.theme({"&":{backgroundColor:"#fff"}},{dark:!1});switch(t&&o.unshift(cd.of([Uy])),r&&("boolean"==typeof r?o.unshift(dC()):o.unshift(dC(r))),s&&o.unshift(function(e){return Qu.fromClass(class{constructor(t){this.view=t,this.placeholder=wu.set([wu.widget({widget:new jd(e),side:1}).range(0)])}get decorations(){return this.view.state.doc.length?wu.none:this.placeholder}},{decorations:e=>e.decorations})}(s)),i){case"light":o.push(l);break;case"dark":o.push(SC);break;case"none":break;default:o.push(i)}return!1===a&&o.push(td.editable.of(!1)),n&&o.push(Hl.readOnly.of(!0)),[...o]},kC=$l.define(),_C=a(893),OC=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],EC=(0,Mt.forwardRef)(((e,t)=>{var{className:a,value:n="",selection:i,extensions:s=[],onChange:r,onStatistics:o,onCreateEditor:l,onUpdate:c,autoFocus:u,theme:f="light",height:h,minHeight:d,maxHeight:p,width:m,minWidth:g,maxWidth:b,basicSetup:y,placeholder:v,indentWithTab:x,editable:C,readOnly:S,root:w,initialState:k}=e,_=(0,Ot.Z)(e,OC),O=(0,Mt.useRef)(null),{state:E,view:M,container:$}=function(e){var{value:t,selection:a,onChange:n,onStatistics:i,onCreateEditor:s,onUpdate:r,extensions:o=[],autoFocus:l,theme:c="light",height:u="",minHeight:f="",maxHeight:h="",placeholder:d="",width:p="",minWidth:m="",maxWidth:g="",editable:b=!0,readOnly:y=!1,indentWithTab:v=!0,basicSetup:x=!0,root:C,initialState:S}=e,[w,k]=(0,Mt.useState)(),[_,O]=(0,Mt.useState)(),[E,M]=(0,Mt.useState)(),$=td.theme({"&":{height:u,minHeight:f,maxHeight:h,width:p,minWidth:m,maxWidth:g}}),P=td.updateListener.of((e=>{if(e.docChanged&&"function"==typeof n&&!e.transactions.some((e=>e.annotation(kC)))){var t=e.state.doc.toString();n(t,e)}i&&i((e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map((t=>e.state.sliceDoc(t.from,t.to))),selectedText:e.state.selection.ranges.some((e=>!e.empty))}))(e))})),T=[P,$,...wC({theme:c,editable:b,readOnly:y,placeholder:d,indentWithTab:v,basicSetup:x})];return r&&"function"==typeof r&&T.push(td.updateListener.of(r)),T=T.concat(o),(0,Mt.useEffect)((()=>{if(w&&!E){var e={doc:t,selection:a,extensions:T},n=S?Hl.fromJSON(S.json,e,S.fields):Hl.create(e);if(M(n),!_){var i=new td({state:n,parent:w,root:C});O(i),s&&s(i,n)}}return()=>{_&&(M(void 0),O(void 0))}}),[w,E]),(0,Mt.useEffect)((()=>k(e.container)),[e.container]),(0,Mt.useEffect)((()=>()=>{_&&(_.destroy(),O(void 0))}),[_]),(0,Mt.useEffect)((()=>{l&&_&&_.focus()}),[l,_]),(0,Mt.useEffect)((()=>{_&&_.dispatch({effects:Al.reconfigure.of(T)})}),[c,o,u,f,h,p,m,g,d,b,y,v,x,n,r]),(0,Mt.useEffect)((()=>{if(void 0!==t){var e=_?_.state.doc.toString():"";_&&t!==e&&_.dispatch({changes:{from:0,to:e.length,insert:t||""},annotations:[kC.of(!0)]})}}),[t,_]),{state:E,setState:M,view:_,setView:O,container:w,setContainer:k}}({container:O.current,root:w,value:n,autoFocus:u,theme:f,height:h,minHeight:d,maxHeight:p,width:m,minWidth:g,maxWidth:b,basicSetup:y,placeholder:v,indentWithTab:x,editable:C,readOnly:S,selection:i,onChange:r,onStatistics:o,onCreateEditor:l,onUpdate:c,extensions:s,initialState:k});if((0,Mt.useImperativeHandle)(t,(()=>({editor:O.current,state:E,view:M})),[O,$,E,M]),"string"!=typeof n)throw new Error("value must be typeof string but got "+typeof n);var P="string"==typeof f?"cm-theme-"+f:"cm-theme";return(0,_C.jsx)("div",(0,Tt.Z)({ref:O,className:P+(a?" "+a:"")},_))}));EC.displayName="CodeMirror";const MC=EC;class $C{constructor(e,t,a,n,i,s,r,o,l,c=0,u){this.p=e,this.stack=t,this.state=a,this.reducePos=n,this.pos=i,this.score=s,this.buffer=r,this.bufferBase=o,this.curContext=l,this.lookAhead=c,this.parent=u}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,a=0){let n=e.parser.context;return new $C(e,[],t,a,a,0,[],0,n?new PC(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let a=e>>19,n=65535&e,{parser:i}=this.p,s=i.dynamicPrecedence(n);if(s&&(this.score+=s),0==a)return this.pushState(i.getGoto(this.state,n,!0),this.reducePos),n<i.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,4,!0),void this.reduceContext(n,this.reducePos);let r=this.stack.length-3*(a-1)-(262144&e?6:0),o=r?this.stack[r-2]:this.p.ranges[0].from,l=this.reducePos-o;l>=2e3&&!(null===(t=this.p.parser.nodeSet.types[n])||void 0===t?void 0:t.isAnonymous)&&(o==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSize<l&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=o,this.p.lastBigReductionSize=l));let c=r?this.stack[r-1]:0,u=this.bufferBase+this.buffer.length-c;if(n<i.minRepeatTerm||131072&e){let e=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,o,e,u+4,!0)}if(262144&e)this.state=this.stack[r];else{let e=this.stack[r-3];this.state=i.getGoto(e,n,!0)}for(;this.stack.length>r;)this.stack.pop();this.reduceContext(n,o)}storeNode(e,t,a,n=4,i=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this,n=this.buffer.length;if(0==n&&e.parent&&(n=e.bufferBase-e.parent.bufferBase,e=e.parent),n>0&&0==e.buffer[n-4]&&e.buffer[n-1]>-1){if(t==a)return;if(e.buffer[n-2]>=t)return void(e.buffer[n-2]=a)}}if(i&&this.pos!=a){let i=this.buffer.length;if(i>0&&0!=this.buffer[i-4])for(;i>0&&this.buffer[i-2]>a;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,n>4&&(n-=4);this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=a,this.buffer[i+3]=n}else this.buffer.push(e,t,a,n)}shift(e,t,a){let n=this.pos;if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let i=e,{parser:s}=this.p;(a>this.pos||t<=s.maxNode)&&(this.pos=a,s.stateFlag(i,1)||(this.reducePos=a)),this.pushState(i,n),this.shiftContext(t,n),t<=s.maxNode&&this.buffer.push(t,n,a,4)}else this.pos=a,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,a,4)}apply(e,t,a){65536&e?this.reduce(e):this.shift(e,t,a)}useNode(e,t){let a=this.p.reused.length-1;(a<0||this.p.reused[a]!=e)&&(this.p.reused.push(e),a++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(t,n),this.buffer.push(a,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let a=e.buffer.slice(t),n=e.bufferBase+t;for(;e&&n==e.bufferBase;)e=e.parent;return new $C(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,a,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let a=e<=this.p.parser.maxNode;a&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,a?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new AC(this);;){let a=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==a)return!1;if(0==(65536&a))return!0;t.reduce(a)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let a=[];for(let n,i=0;i<t.length;i+=2)(n=t[i+1])!=this.state&&this.p.parser.hasAction(n,e)&&a.push(t[i],n);if(this.stack.length<120)for(let e=0;a.length<8&&e<t.length;e+=2){let n=t[e+1];a.some(((e,t)=>1&t&&e==n))||a.push(t[e],n)}t=a}let a=[];for(let e=0;e<t.length&&a.length<4;e+=2){let n=t[e+1];if(n==this.state)continue;let i=this.split();i.pushState(n,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(t[e],this.pos),i.score-=200,a.push(i)}return a}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(0==(65536&t))return!1;if(!e.validAction(this.state,t)){let a=t>>19,n=65535&t,i=this.stack.length-3*a;if(i<0||e.getGoto(this.stack[i],n,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],a=(n,i)=>{if(!t.includes(n))return t.push(n),e.allActions(n,(t=>{if(393216&t);else if(65536&t){let a=(t>>19)-i;if(a>1){let n=65535&t,i=this.stack.length-3*a;if(i>=0&&e.getGoto(this.stack[i],n,!1)>=0)return a<<19|65536|n}}else{let e=a(t,i+1);if(null!=e)return e}}))};return a(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new PC(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class PC{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}var TC;!function(e){e[e.Insert=200]="Insert",e[e.Delete=190]="Delete",e[e.Reduce=100]="Reduce",e[e.MaxNext=4]="MaxNext",e[e.MaxInsertStackDepth=300]="MaxInsertStackDepth",e[e.DampenInsertStackDepth=120]="DampenInsertStackDepth",e[e.MinBigReduction=2e3]="MinBigReduction"}(TC||(TC={}));class AC{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,a=e>>19;0==a?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(a-1);let n=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=n}}class BC{constructor(e,t,a){this.stack=e,this.pos=t,this.index=a,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new BC(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new BC(this.stack,this.pos,this.index)}}function RC(e,t=Uint16Array){if("string"!=typeof e)return e;let a=null;for(let n=0,i=0;n<e.length;){let s=0;for(;;){let t=e.charCodeAt(n++),a=!1;if(126==t){s=65535;break}t>=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,a=!0),s+=i,a)break;s*=46}a?a[i++]=s:a=new t(s)}return a}class IC{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const DC=new IC;class NC{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=DC,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let a=this.range,n=this.rangeIndex,i=this.pos+e;for(;i<a.from;){if(!n)return null;let e=this.ranges[--n];i-=a.from-e.to,a=e}for(;t<0?i>a.to:i>=a.to;){if(n==this.ranges.length-1)return null;let e=this.ranges[++n];i+=e.from-a.to,a=e}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t,a,n=this.chunkOff+e;if(n>=0&&n<this.chunk.length)t=this.pos+e,a=this.chunk.charCodeAt(n);else{let n=this.resolveOffset(e,1);if(null==n)return-1;if(t=n,t>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)a=this.chunk2.charCodeAt(t-this.chunk2Pos);else{let e=this.rangeIndex,n=this.range;for(;n.to<=t;)n=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>n.to&&(this.chunk2=this.chunk2.slice(0,n.to-t)),a=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),a}acceptToken(e,t=0){let a=t?this.resolveOffset(t,-1):this.pos;if(null==a||a<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=a}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=DC,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let a="";for(let n of this.ranges){if(n.from>=t)break;n.to>e&&(a+=this.input.read(Math.max(n.from,e),Math.min(n.to,t)))}return a}}class LC{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:a}=t.p;!function(e,t,a,n,i,s){let r=0,o=1<<n,{dialect:l}=a.p.parser;e:for(;0!=(o&e[r]);){let a=e[r+1];for(let n=r+3;n<a;n+=2)if((e[n+1]&o)>0){let a=e[n];if(l.allows(a)&&(-1==t.token.value||t.token.value==a||VC(a,t.token.value,i,s))){t.acceptToken(a);break}}let n=t.next,c=0,u=e[r+2];if(!(t.next<0&&u>c&&65535==e[a+3*u-3]&&65535==e[a+3*u-3])){for(;c<u;){let i=c+u>>1,s=a+i+(i<<1),o=e[s],l=e[s+1]||65536;if(n<o)u=i;else{if(!(n>=l)){r=e[s+2],t.advance();continue e}c=i+1}}break}r=e[a+3*u-1]}}(this.data,e,t,this.id,a.data,a.tokenPrecTable)}}LC.prototype.contextual=LC.prototype.fallback=LC.prototype.extend=!1,LC.prototype.fallback=LC.prototype.extend=!1;class FC{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function zC(e,t,a){for(let n,i=t;65535!=(n=e[i]);i++)if(n==a)return i-t;return-1}function VC(e,t,a,n){let i=zC(a,n,t);return i<0||zC(a,n,e)<i}const UC="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG);let HC=null;var GC,jC;function WC(e,t,a){let n=e.cursor(Xp.IncludeAnonymous);for(n.moveTo(t);;)if(!(a<0?n.childBefore(t):n.childAfter(t)))for(;;){if((a<0?n.to<t:n.from>t)&&!n.type.isError)return a<0?Math.max(0,Math.min(n.to-1,t-25)):Math.min(e.length,Math.max(n.from+1,t+25));if(a<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return a<0?0:e.length}}!function(e){e[e.Margin=25]="Margin"}(GC||(GC={}));class qC{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?WC(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?WC(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let a=this.trees[t],n=this.index[t];if(n==a.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=a.children[n],s=this.start[t]+a.positions[n];if(s>e)return this.nextStart=s,null;if(i instanceof Kp){if(s==e){if(s<this.safeFrom)return null;let e=s+i.length;if(e<=this.safeTo){let t=i.prop(Gp.lookAhead);if(!t||e+t<this.fragment.to)return i}}this.index[t]++,s+i.length>=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(s),this.index.push(0))}else this.index[t]++,this.nextStart=s+i.length}}}class ZC{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new IC))}getActions(e){let t=0,a=null,{parser:n}=e.p,{tokenizers:i}=n,s=n.stateSlot(e.state,3),r=e.curContext?e.curContext.hash:0,o=0;for(let n=0;n<i.length;n++){if(0==(1<<n&s))continue;let l=i[n],c=this.tokens[n];if((!a||l.fallback)&&((l.contextual||c.start!=e.pos||c.mask!=s||c.context!=r)&&(this.updateCachedToken(c,l,e),c.mask=s,c.context=r),c.lookAhead>c.end+25&&(o=Math.max(c.lookAhead,o)),0!=c.value)){let n=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!l.extend&&(a=c,t>n))break}}for(;this.actions.length>t;)this.actions.pop();return o&&e.setLookAhead(o),a||e.pos!=this.stream.end||(a=new IC,a.value=e.p.parser.eofTerm,a.start=a.end=e.pos,t=this.addActions(e,a.value,a.end,t)),this.mainToken=a,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new IC,{pos:a,p:n}=e;return t.start=a,t.end=Math.min(a+1,n.stream.end),t.value=a==n.stream.end?n.parser.eofTerm:0,t}updateCachedToken(e,t,a){let n=this.stream.clipPos(a.pos);if(t.token(this.stream.reset(n,e),a),e.value>-1){let{parser:t}=a.p;for(let n=0;n<t.specialized.length;n++)if(t.specialized[n]==e.value){let i=t.specializers[n](this.stream.read(e.start,e.end),a);if(i>=0&&a.p.parser.dialect.allows(i>>1)){0==(1&i)?e.value=i>>1:e.extended=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,t,a,n){for(let t=0;t<n;t+=3)if(this.actions[t]==e)return n;return this.actions[n++]=e,this.actions[n++]=t,this.actions[n++]=a,n}addActions(e,t,a,n){let{state:i}=e,{parser:s}=e.p,{data:r}=s;for(let e=0;e<2;e++)for(let o=s.stateSlot(i,e?2:1);;o+=3){if(65535==r[o]){if(1!=r[o+1]){0==n&&2==r[o+1]&&(n=this.putAction(JC(r,o+2),t,a,n));break}o=JC(r,o+2)}r[o]==t&&(n=this.putAction(JC(r,o+1),t,a,n))}return n}}!function(e){e[e.Distance=5]="Distance",e[e.MaxRemainingPerStep=3]="MaxRemainingPerStep",e[e.MinBufferLengthPrune=500]="MinBufferLengthPrune",e[e.ForceReduceLimit=10]="ForceReduceLimit",e[e.CutDepth=15e3]="CutDepth",e[e.CutTo=9e3]="CutTo",e[e.MaxLeftAssociativeReductionCount=300]="MaxLeftAssociativeReductionCount",e[e.MaxStackCount=12]="MaxStackCount"}(jC||(jC={}));class QC{constructor(e,t,a,n){this.parser=e,this.input=t,this.ranges=n,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new NC(t,n),this.tokens=new ZC(e,this.stream),this.topTerm=e.top[1];let{from:i}=n[0];this.stacks=[$C.start(this,e.top[0],i)],this.fragments=a.length&&this.stream.end-i>4*e.bufferLength?new qC(a,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,a=this.stacks,n=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==a.length){let[e]=a;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<a.length;s++){let r=a[s];for(;;){if(this.tokens.mainToken=null,r.pos>n)i.push(r);else{if(this.advanceStack(r,i,a))continue;{e||(e=[],t=[]),e.push(r);let a=this.tokens.getMainToken(r);t.push(a.value,a.end)}}break}}if(!i.length){let t=e&&function(e){let t=null;for(let a of e){let e=a.p.stoppedAt;(a.pos==a.p.stream.end||null!=e&&a.pos>e)&&a.p.parser.stateFlag(a.state,2)&&(!t||t.score<a.score)&&(t=a)}return t}(e);if(t)return this.stackToTree(t);if(this.parser.strict)throw UC&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&e){let a=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,i);if(a)return this.stackToTree(a.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(i.length>e)for(i.sort(((e,t)=>t.score-e.score));i.length>e;)i.pop();i.some((e=>e.reducePos>n))&&this.recovering--}else if(i.length>1){e:for(let e=0;e<i.length-1;e++){let t=i[e];for(let a=e+1;a<i.length;a++){let n=i[a];if(t.sameState(n)||t.buffer.length>500&&n.buffer.length>500){if(!((t.score-n.score||t.buffer.length-n.buffer.length)>0)){i.splice(e--,1);continue e}i.splice(a--,1)}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let e=1;e<i.length;e++)i[e].pos<this.minStackPos&&(this.minStackPos=i[e].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,a){let n=e.pos,{parser:i}=this,s=UC?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&n>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,a=t?e.curContext.hash:0;for(let r=this.fragments.nodeAt(n);r;){let n=this.parser.nodeSet.types[r.type.id]==r.type?i.getGoto(e.state,r.type.id):-1;if(n>-1&&r.length&&(!t||(r.prop(Gp.contextHash)||0)==a))return e.useNode(r,n),UC&&console.log(s+this.stackID(e)+` (via reuse of ${i.getName(r.type.id)})`),!0;if(!(r instanceof Kp)||0==r.children.length||r.positions[0]>0)break;let o=r.children[0];if(!(o instanceof Kp&&0==r.positions[0]))break;r=o}}let r=i.stateSlot(e.state,4);if(r>0)return e.reduce(r),UC&&console.log(s+this.stackID(e)+` (via always-reduce ${i.getName(65535&r)})`),!0;if(e.stack.length>=15e3)for(;e.stack.length>9e3&&e.forceReduce(););let o=this.tokens.getActions(e);for(let r=0;r<o.length;){let l=o[r++],c=o[r++],u=o[r++],f=r==o.length||!a,h=f?e:e.split();if(h.apply(l,c,u),UC&&console.log(s+this.stackID(h)+` (via ${0==(65536&l)?"shift":`reduce of ${i.getName(65535&l)}`} for ${i.getName(c)} @ ${n}${h==e?"":", split"})`),f)return!0;h.pos>n?t.push(h):a.push(h)}return!1}advanceFully(e,t){let a=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>a)return XC(e,t),!0}}runRecovery(e,t,a){let n=null,i=!1;for(let s=0;s<e.length;s++){let r=e[s],o=t[s<<1],l=t[1+(s<<1)],c=UC?this.stackID(r)+" -> ":"";if(r.deadEnd){if(i)continue;if(i=!0,r.restart(),UC&&console.log(c+this.stackID(r)+" (restarted)"),this.advanceFully(r,a))continue}let u=r.split(),f=c;for(let e=0;u.forceReduce()&&e<10&&(UC&&console.log(f+this.stackID(u)+" (via force-reduce)"),!this.advanceFully(u,a));e++)UC&&(f=this.stackID(u)+" -> ");for(let e of r.recoverByInsert(o))UC&&console.log(c+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,a);this.stream.end>r.pos?(l==r.pos&&(l++,o=0),r.recoverByDelete(o,l),UC&&console.log(c+this.stackID(r)+` (via recover-delete ${this.parser.getName(o)})`),XC(r,a)):(!n||n.score<r.score)&&(n=r)}return n}stackToTree(e){return e.close(),Kp.build({buffer:BC.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(HC||(HC=new WeakMap)).get(e);return t||HC.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function XC(e,t){for(let a=0;a<t.length;a++){let n=t[a];if(n.pos==e.pos&&n.sameState(e))return void(t[a].score<e.score&&(t[a]=e))}t.push(e)}class KC{constructor(e,t,a){this.source=e,this.flags=t,this.disabled=a}allows(e){return!this.disabled||0==this.disabled[e]}}class YC extends mm{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let a=0;a<e.repeatNodeCount;a++)t.push("");let a=Object.keys(e.topRules).map((t=>e.topRules[t][1])),n=[];for(let e=0;e<t.length;e++)n.push([]);function i(e,t,a){n[e].push([t,t.deserialize(String(a))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];"string"==typeof e&&(e=Gp[e]);for(let a=1;a<t.length;){let n=t[a++];if(n>=0)i(n,e,t[a++]);else{let s=t[a+-n];for(let r=-n;r>0;r--)i(t[a++],e,s);a++}}}this.nodeSet=new qp(t.map(((t,i)=>Wp.define({name:i>=this.minRepeatTerm?void 0:t,id:i,props:n[i],top:a.indexOf(i)>-1,error:0==i,skipped:e.skippedNodes&&e.skippedNodes.indexOf(i)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Vp;let s=RC(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(eS),this.states=RC(e.states,Uint32Array),this.data=RC(e.stateData),this.goto=RC(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map((e=>"number"==typeof e?new LC(s,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,a){let n=new QC(this,e,t,a);for(let i of this.wrappers)n=i(n,e,t,a);return n}getGoto(e,t,a=!1){let n=this.goto;if(t>=n[0])return-1;for(let i=n[t+1];;){let t=n[i++],s=1&t,r=n[i++];if(s&&a)return r;for(let a=i+(t>>1);i<a;i++)if(n[i]==e)return r;if(s)return-1}}hasAction(e,t){let a=this.data;for(let n=0;n<2;n++)for(let i,s=this.stateSlot(e,n?2:1);;s+=3){if(65535==(i=a[s])){if(1!=a[s+1]){if(2==a[s+1])return JC(a,s+2);break}i=a[s=JC(a,s+2)]}if(i==t||0==i)return JC(a,s+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,(e=>e==t||null))}allActions(e,t){let a=this.stateSlot(e,4),n=a?t(a):void 0;for(let a=this.stateSlot(e,1);null==n;a+=3){if(65535==this.data[a]){if(1!=this.data[a+1])break;a=JC(this.data,a+2)}n=t(JC(this.data,a+1))}return n}nextStates(e){let t=[];for(let a=this.stateSlot(e,1);;a+=3){if(65535==this.data[a]){if(1!=this.data[a+1])break;a=JC(this.data,a+2)}if(0==(1&this.data[a+2])){let e=this.data[a+1];t.some(((t,a)=>1&a&&t==e))||t.push(this.data[a],e)}}return t}configure(e){let t=Object.assign(Object.create(YC.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let a=this.topRules[e.top];if(!a)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=a}return e.tokenizers&&(t.tokenizers=this.tokenizers.map((t=>{let a=e.tokenizers.find((e=>e.from==t));return a?a.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((a,n)=>{let i=e.specializers.find((e=>e.from==a.external));if(!i)return a;let s=Object.assign(Object.assign({},a),{external:i.to});return t.specializers[n]=eS(s),s}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),a=t.map((()=>!1));if(e)for(let n of e.split(" ")){let e=t.indexOf(n);e>=0&&(a[e]=!0)}let n=null;for(let e=0;e<t.length;e++)if(!a[e])for(let a,i=this.dialects[t[e]];65535!=(a=this.data[i++]);)(n||(n=new Uint8Array(this.maxTerm+1)))[a]=1;return new KC(e,a,n)}static deserialize(e){return new YC(e)}}function JC(e,t){return e[t]|e[t+1]<<16}function eS(e){if(e.external){let t=e.extend?1:0;return(a,n)=>e.external(a,n)<<1|t}return e.get}const tS=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function aS(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}const nS=new FC(((e,t)=>{for(let n=!1,i=0,s=0;;s++){let{next:r}=e;if(!(aS(r)||45==r||95==r||n&&(a=r,a>=48&&a<=57))){n&&e.acceptToken(40==r?96:2==i&&t.canShift(2)?2:97);break}!n&&(45!=r||s>0)&&(n=!0),i===s&&45==r&&i++,e.advance()}var a})),iS=new FC((e=>{if(tS.includes(e.peek(-1))){let{next:t}=e;(aS(t)||95==t||35==t||46==t||91==t||58==t||45==t)&&e.acceptToken(95)}})),sS=new FC((e=>{if(!tS.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),aS(t)){do{e.advance()}while(aS(e.next));e.acceptToken(1)}}})),rS=Cm({"AtKeyword import charset namespace keyframes media supports":Um.definitionKeyword,"from to selector":Um.keyword,NamespaceName:Um.namespace,KeyframeName:Um.labelName,KeyframeRangeName:Um.operatorKeyword,TagName:Um.tagName,ClassName:Um.className,PseudoClassName:Um.constant(Um.className),IdName:Um.labelName,"FeatureName PropertyName":Um.propertyName,AttributeName:Um.attributeName,NumberLiteral:Um.number,KeywordQuery:Um.keyword,UnaryQueryOp:Um.operatorKeyword,"CallTag ValueName":Um.atom,VariableName:Um.variableName,Callee:Um.operatorKeyword,Unit:Um.unit,"UniversalSelector NestingSelector":Um.definitionOperator,MatchOp:Um.compareOperator,"ChildOp SiblingOp, LogicOp":Um.logicOperator,BinOp:Um.arithmeticOperator,Important:Um.modifier,Comment:Um.blockComment,ColorLiteral:Um.color,"ParenthesizedContent StringLiteral":Um.string,":":Um.punctuation,"PseudoOp #":Um.derefOperator,"; ,":Um.separator,"( )":Um.paren,"[ ]":Um.squareBracket,"{ }":Um.brace}),oS={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},lS={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},cS={__proto__:null,not:128,only:128},uS=YC.deserialize({version:14,states:"8`QYQ[OOO#_Q[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO#fQ[O'#CfO$YQXO'#CaO$aQ[O'#ChO$lQ[O'#DPO$qQ[O'#DTOOQP'#Ee'#EeO$vQdO'#DeO%bQ[O'#DrO$vQdO'#DtO%sQ[O'#DvO&OQ[O'#DyO&WQ[O'#EPO&fQ[O'#EROOQS'#Ed'#EdOOQS'#ET'#ETQYQ[OOO&mQXO'#CdO'bQWO'#DaO'gQWO'#EkO'rQ[O'#EkQOQWOOOOQP'#Cg'#CgOOQP,59Q,59QO#fQ[O,59QO'|Q[O'#EWO(hQWO,58{O(pQ[O,59SO$lQ[O,59kO$qQ[O,59oO'|Q[O,59sO'|Q[O,59uO'|Q[O,59vO({Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)SQWO,59SO)XQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)^Q`O,59oOOQS'#Cp'#CpO$vQdO'#CqO)fQvO'#CsO*sQtO,5:POOQO'#Cx'#CxO)XQWO'#CwO+XQWO'#CyOOQS'#Eh'#EhOOQO'#Dh'#DhO+^Q[O'#DoO+lQWO'#ElO&WQ[O'#DmO+zQWO'#DpOOQO'#Em'#EmO(kQWO,5:^O,PQpO,5:`OOQS'#Dx'#DxO,XQWO,5:bO,^Q[O,5:bOOQO'#D{'#D{O,fQWO,5:eO,kQWO,5:kO,sQWO,5:mOOQS-E8R-E8RO$vQdO,59{O,{Q[O'#EYO-YQWO,5;VO-YQWO,5;VOOQP1G.l1G.lO.PQXO,5:rOOQO-E8U-E8UOOQS1G.g1G.gOOQP1G.n1G.nO)SQWO1G.nO)XQWO1G.nOOQP1G/V1G/VO.^Q`O1G/ZO.wQXO1G/_O/_QXO1G/aO/uQXO1G/bO0]QWO,59zO0bQ[O'#DOO0iQdO'#CoOOQP1G/Z1G/ZO$vQdO1G/ZO0pQpO,59]OOQS,59_,59_O$vQdO,59aO0xQWO1G/kOOQS,59c,59cO0}Q!bO,59eO1VQWO'#DhO1bQWO,5:TO1gQWO,5:ZO&WQ[O,5:VO&WQ[O'#EZO1oQWO,5;WO1zQWO,5:XO'|Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2]QWO1G/|O2bQdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO2mQtO1G/gOOQO,5:t,5:tO3TQ[O,5:tOOQO-E8W-E8WO3bQWO1G0qOOQP7+$Y7+$YOOQP7+$u7+$uO$vQdO7+$uOOQS1G/f1G/fO3mQXO'#EjO3tQWO,59jO3yQtO'#EUO4nQdO'#EgO4xQWO,59ZO4}QpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5VQWO1G/PO$vQdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5[QWO,5:uOOQO-E8X-E8XO5jQXO1G/vOOQS7+%h7+%hO5qQYO'#CsOOQO'#EO'#EOO5|Q`O'#D}OOQO'#D}'#D}O6XQWO'#E[O6aQdO,5:hOOQS,5:h,5:hO6lQtO'#EXO$vQdO'#EXO7jQdO7+%ROOQO7+%R7+%ROOQO1G0`1G0`O7}QpO<<HaO8VQWO,5;UOOQP1G/U1G/UOOQS-E8S-E8SO$vQdO'#EVO8_QWO,5;ROOQT1G.u1G.uOOQP<<Ha<<HaOOQS7+$k7+$kO8gQdO7+%ZOOQO7+%b7+%bOOQO,5:i,5:iO2eQdO'#E]O6XQWO,5:vOOQS,5:v,5:vOOQS-E8Y-E8YOOQS1G0S1G0SO8nQtO,5:sOOQS-E8V-E8VOOQO<<Hm<<HmOOQPAN={AN={O9lQdO,5:qOOQO-E8T-E8TOOQO<<Hu<<HuOOQO,5:w,5:wOOQO-E8Z-E8ZOOQS1G0b1G0b",stateData:":O~O#VOSROS~OUXOXXO]UO^UOtVOxWO!Y`O!ZYO!gZO!i[O!k]O!n^O!t_O#TQO#YSO~OQeOUXOXXO]UO^UOtVOxWO!Y`O!ZYO!gZO!i[O!k]O!n^O!t_O#TdO#YSO~O#Q#_P~P!ZO#TiO~O]nO^nOplOtoOxpO|qO!PsO#RrO#YkO~O!RtO~P#kO`zO#SwO#TvO~O#T{O~O#T}O~OQ!WOb!QOf!WOh!WOn!VO#S!TO#T!PO#]!RO~Ob!YO!b![O!e!]O#T!XO!R#`P~Oh!bOn!VO#T!aO~Oh!dO#T!dO~Ob!YO!b![O!e!]O#T!XO~O!W#`P~P%bO]WX]!UX^WXpWXtWXxWX|WX!PWX!RWX#RWX#YWX~O]!iO~O!W!jO#Q#_X!Q#_X~O#Q#_X!Q#_X~P!ZOUXOXXO]UO^UOtVOxWO#TQO#YSO~OplO!RtO~O`!sO#SwO#TvO~O!Q#_P~P!ZOb!zO~Ob!{O~Ov!|Oz!}O~OP#PObgXjgX!WgX!bgX!egX#TgXagXQgXfgXhgXngXpgX!VgX#QgX#SgX#]gXvgX!QgX~Ob!YOj#QO!b![O!e!]O#T!XO!W#`P~Ob#TO~Ob!YO!b![O!e!]O#T#UO~Op#YO!`#XO!R#`X!W#`X~Ob#]O~Oj#QO!W#_O~O!W#`O~Oh#aOn!VO~O!R#bO~O!RtO!`#XO~O!RtO!W#eO~O!W!|X#Q!|X!Q!|X~P!ZO!W!jO#Q#_a!Q#_a~O]nO^nOtoOxpO|qO!PsO#RrO#YkO~Op!za!R!zaa!za~P-eOv#lOz#mO~O]nO^nOtoOxpO#YkO~Op{i|{i!P{i!R{i#R{ia{i~P.fOp}i|}i!P}i!R}i#R}ia}i~P.fOp!Oi|!Oi!P!Oi!R!Oi#R!Oia!Oi~P.fO!Q#nO~Oa#^P~P'|Oa#ZP~P$vOa#uOj#QO~O!W#wO~Oh#xOo#xO~O]!^Xa![X!`![X~O]#yO~Oa#zO!`#XO~Op#YO!R#`a!W#`a~O!`#XOp!aa!R!aa!W!aaa!aa~O!W$PO~O!Q$WO#T$RO#]$QO~Oj#QOp$YO!V$[O!W!Ti#Q!Ti!Q!Ti~P$vO!W!|a#Q!|a!Q!|a~P!ZO!W!jO#Q#_i!Q#_i~Oa#^X~P#kOa$`O~Oj#QOQ!xXa!xXb!xXf!xXh!xXn!xXp!xX#S!xX#T!xX#]!xX~Op$bOa#ZX~P$vOa$dO~Oj#QOv$eO~Oa$fO~O!`#XOp!}a!R!}a!W!}a~Oa$hO~P-eOP#POpgX!RgX~O#]$QOp!qX!R!qX~Op$jO!RtO~O!Q$nO#T$RO#]$QO~Oj#QOQ!{Xb!{Xf!{Xh!{Xn!{Xp!{X!V!{X!W!{X#Q!{X#S!{X#T!{X#]!{X!Q!{X~Op$YO!V$qO!W!Tq#Q!Tq!Q!Tq~P$vOj#QOv$rO~OplOa#^a~Op$bOa#Za~Oa$uO~P$vOj#QOQ!{ab!{af!{ah!{an!{ap!{a!V!{a!W!{a#Q!{a#S!{a#T!{a#]!{a!Q!{a~Oa!yap!ya~P$vO#VoR#]j!Pj~",goto:",z#bPPPPP#cP#l#{P#l$[#lPP$bPPP$h$q$qP%TP$qP$q%o&RPPP&k&q#lP&wP#lP&}P#lP#l#lPPP'T'j'wPP#cPP(O(O(Y(OP(OP(O(OP#cP#cP#cP(]#cP(`(c(f(m#cP#cP(r)R)a)g)q)w*R*X*_PPPPPP*e*nP+Z+^P,S,V,],f_aOPcgt!j#hkXOPcglqrst!j!z#]#hkROPcglqrst!j!z#]#hQjSR!mkQxUR!qnQ!qzQ#S!UR#k!sq!WY[!Q!i!{!}#Q#f#m#r#y$Y$Z$b$g$sp!WY[!Q!i!{!}#Q#f#m#r#y$Y$Z$b$g$sU$T#b$V$jR$i$Sq!UY[!Q!i!{!}#Q#f#m#r#y$Y$Z$b$g$sp!WY[!Q!i!{!}#Q#f#m#r#y$Y$Z$b$g$sQ!b]R#a!cQyUR!rnQ!qyR#k!rQ|VR!toQ!OWR!upQuTQ!pmQ#^!_Q#d!fQ#e!gQ$l$UR$x$kSfPtQ!lgQ#g!jR$]#hZePgt!j#ha!^Z_`!S!Y![#X#YR#V!YR!c]R!e^R#c!eS$U#b$VR$v$jV$S#b$V$jQcOSgPtU!hcg#hR#h!jQ#r!{U$a#r$g$sQ$g#yR$s$bQ$c#rR$t$cQmTS!om$_R$_#oQ$Z#fR$p$ZQ!kfS#i!k#jR#j!lQ#Z!ZR#}#ZQ$V#bR$m$VQ$k$UR$w$k_bOPcgt!j#h^TOPcgt!j#hQ!nlQ!vqQ!wrQ!xsQ#o!zR$O#]R#s!{Q!SYQ!`[Q#O!QQ#f!i[#q!{#r#y$b$g$sQ#t!}Q#v#QS$X#f$ZQ$^#mR$o$YR#p!zQhPR!ytQ!_ZQ!g`R#R!SU!ZZ`!SQ!f_Q#W!YQ#[![Q#{#XR#|#Y",nodeNames:"⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent , PseudoClassName ArgList IdSelector # IdName ] AttributeSelector [ AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",maxTerm:109,nodeProps:[["openedBy",17,"(",48,"{"],["closedBy",18,")",49,"}"]],propSources:[rS],skippedNodes:[0,3],repeatNodeCount:9,tokenData:"Lq~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Cu![!]Dp!]!^El!^!_$}!_!`E}!`!aF`!a!b$}!b!cG[!c!}$}!}#OHt#O#P$}#P#QIV#Q#R6d#R#T$}#T#UIh#U#c$}#c#dJy#d#o$}#o#pK`#p#q6d#q#rKq#r#sLS#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;'S$};'S;=`Lk<%lO$}W%QSOy%^z;'S%^;'S;=`%o<%lO%^W%cSoWOy%^z;'S%^;'S;=`%o<%lO%^W%rP;=`<%l%^~%zh#V~OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^~'mh#V~oWOX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^^)[UOy%^z#]%^#]#^)n#^;'S%^;'S;=`%o<%lO%^^)sUoWOy%^z#a%^#a#b*V#b;'S%^;'S;=`%o<%lO%^^*[UoWOy%^z#d%^#d#e*n#e;'S%^;'S;=`%o<%lO%^^*sUoWOy%^z#c%^#c#d+V#d;'S%^;'S;=`%o<%lO%^^+[UoWOy%^z#f%^#f#g+n#g;'S%^;'S;=`%o<%lO%^^+sUoWOy%^z#h%^#h#i,V#i;'S%^;'S;=`%o<%lO%^^,[UoWOy%^z#T%^#T#U,n#U;'S%^;'S;=`%o<%lO%^^,sUoWOy%^z#b%^#b#c-V#c;'S%^;'S;=`%o<%lO%^^-[UoWOy%^z#h%^#h#i-n#i;'S%^;'S;=`%o<%lO%^^-uS!VUoWOy%^z;'S%^;'S;=`%o<%lO%^~.UWOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o<%lO.R~.sOh~~.vRO;'S.R;'S;=`/P;=`O.R~/SXOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o;=`<%l.R<%lO.R~/rP;=`<%l.R_/zYtPOy%^z!Q%^!Q![0j![!c%^!c!i0j!i#T%^#T#Z0j#Z;'S%^;'S;=`%o<%lO%^^0oYoWOy%^z!Q%^!Q![1_![!c%^!c!i1_!i#T%^#T#Z1_#Z;'S%^;'S;=`%o<%lO%^^1dYoWOy%^z!Q%^!Q![2S![!c%^!c!i2S!i#T%^#T#Z2S#Z;'S%^;'S;=`%o<%lO%^^2ZYfUoWOy%^z!Q%^!Q![2y![!c%^!c!i2y!i#T%^#T#Z2y#Z;'S%^;'S;=`%o<%lO%^^3QYfUoWOy%^z!Q%^!Q![3p![!c%^!c!i3p!i#T%^#T#Z3p#Z;'S%^;'S;=`%o<%lO%^^3uYoWOy%^z!Q%^!Q![4e![!c%^!c!i4e!i#T%^#T#Z4e#Z;'S%^;'S;=`%o<%lO%^^4lYfUoWOy%^z!Q%^!Q![5[![!c%^!c!i5[!i#T%^#T#Z5[#Z;'S%^;'S;=`%o<%lO%^^5aYoWOy%^z!Q%^!Q![6P![!c%^!c!i6P!i#T%^#T#Z6P#Z;'S%^;'S;=`%o<%lO%^^6WSfUoWOy%^z;'S%^;'S;=`%o<%lO%^Y6gUOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^Y7QSzQoWOy%^z;'S%^;'S;=`%o<%lO%^X7cSXPOy%^z;'S%^;'S;=`%o<%lO%^~7rWOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W<%lO7o~8_RO;'S7o;'S;=`8h;=`O7o~8kXOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W;=`<%l7o<%lO7o~9ZP;=`<%l7o_9cSbVOy%^z;'S%^;'S;=`%o<%lO%^~9tOa~_9{UUPjSOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^_:fWjS!PPOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^^;TUoWOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^^;nYoW#]UOy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^^<cYoWOy%^z{%^{|=R|}%^}!O=R!O!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^^=WUoWOy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^^=qUoW#]UOy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^^>[[oW#]UOy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^_?VSpVOy%^z;'S%^;'S;=`%o<%lO%^^?hWjSOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^_@VU#YPOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjSOy%^z{@}{;'S%^;'S;=`%o<%lO%^~ASUoWOy@}yzAfz{Bm{;'S@};'S;=`Co<%lO@}~AiTOzAfz{Ax{;'SAf;'S;=`Bg<%lOAf~A{VOzAfz{Ax{!PAf!P!QBb!Q;'SAf;'S;=`Bg<%lOAf~BgOR~~BjP;=`<%lAf~BrWoWOy@}yzAfz{Bm{!P@}!P!QC[!Q;'S@};'S;=`Co<%lO@}~CcSoWR~Oy%^z;'S%^;'S;=`%o<%lO%^~CrP;=`<%l@}^Cz[#]UOy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^XDuU]POy%^z![%^![!]EX!];'S%^;'S;=`%o<%lO%^XE`S^PoWOy%^z;'S%^;'S;=`%o<%lO%^_EqS!WVOy%^z;'S%^;'S;=`%o<%lO%^YFSSzQOy%^z;'S%^;'S;=`%o<%lO%^XFeU|POy%^z!`%^!`!aFw!a;'S%^;'S;=`%o<%lO%^XGOS|PoWOy%^z;'S%^;'S;=`%o<%lO%^XG_WOy%^z!c%^!c!}Gw!}#T%^#T#oGw#o;'S%^;'S;=`%o<%lO%^XHO[!YPoWOy%^z}%^}!OGw!O!Q%^!Q![Gw![!c%^!c!}Gw!}#T%^#T#oGw#o;'S%^;'S;=`%o<%lO%^XHySxPOy%^z;'S%^;'S;=`%o<%lO%^^I[SvUOy%^z;'S%^;'S;=`%o<%lO%^XIkUOy%^z#b%^#b#cI}#c;'S%^;'S;=`%o<%lO%^XJSUoWOy%^z#W%^#W#XJf#X;'S%^;'S;=`%o<%lO%^XJmS!`PoWOy%^z;'S%^;'S;=`%o<%lO%^XJ|UOy%^z#f%^#f#gJf#g;'S%^;'S;=`%o<%lO%^ZKeS!RROy%^z;'S%^;'S;=`%o<%lO%^_KvS!QVOy%^z;'S%^;'S;=`%o<%lO%^ZLXU!PPOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^WLnP;=`<%l$}",tokenizers:[iS,sS,nS,0,1,2,3],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:96,get:e=>oS[e]||-1},{term:56,get:e=>lS[e]||-1},{term:97,get:e=>cS[e]||-1}],tokenPrec:1142});let fS=null;function hS(){if(!fS&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],a=new Set;for(let n in e)"cssText"!=n&&"cssFloat"!=n&&"string"==typeof e[n]&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))),a.has(n)||(t.push(n),a.add(n)));fS=t.sort().map((e=>({type:"property",label:e})))}return fS||[]}const dS=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map((e=>({type:"class",label:e}))),pS=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","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","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","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","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","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","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","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","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","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","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","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","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","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","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","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"].map((e=>({type:"keyword",label:e}))).concat(["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","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","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","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((e=>({type:"constant",label:e})))),mS=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((e=>({type:"type",label:e}))),gS=/^(\w[\w-]*|-\w[\w-]*|)$/,bS=/^-(-[\w-]*)?$/,yS=new dm,vS=["Declaration"];function xS(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function CS(e,t,a){if(t.to-t.from>4096){let n=yS.get(t);if(n)return n;let i=[],s=new Set,r=t.cursor(Xp.IncludeAnonymous);if(r.firstChild())do{for(let t of CS(e,r.node,a))s.has(t.label)||(s.add(t.label),i.push(t))}while(r.nextSibling());return yS.set(t,i),i}{let n=[],i=new Set;return t.cursor().iterate((t=>{var s;if(a(t)&&t.matchContext(vS)&&":"==(null===(s=t.node.nextSibling)||void 0===s?void 0:s.name)){let a=e.sliceString(t.from,t.to);i.has(a)||(i.add(a),n.push({label:a,type:"variable"}))}})),n}}const SS=e=>t=>{let{state:a,pos:n}=t,i=Qm(a).resolveInner(n,-1),s=i.type.isError&&i.from==i.to-1&&"-"==a.doc.sliceString(i.from,i.to);if("PropertyName"==i.name||(s||"TagName"==i.name)&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:hS(),validFor:gS};if("ValueName"==i.name)return{from:i.from,options:pS,validFor:gS};if("PseudoClassName"==i.name)return{from:i.from,options:dS,validFor:gS};if(e(i)||(t.explicit||s)&&function(e,t){var a;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let n=null===(a=e.parent)||void 0===a?void 0:a.firstChild;return"Callee"==(null==n?void 0:n.name)&&"var"==t.sliceString(n.from,n.to)}(i,a.doc))return{from:e(i)||s?i.from:n,options:CS(a.doc,xS(i),e),validFor:bS};if("TagName"==i.name){for(let{parent:e}=i;e;e=e.parent)if("Block"==e.name)return{from:i.from,options:hS(),validFor:gS};return{from:i.from,options:mS,validFor:gS}}if(!t.explicit)return null;let r=i.resolve(n),o=r.childBefore(n);return o&&":"==o.name&&"PseudoClassSelector"==r.name?{from:n,options:dS,validFor:gS}:o&&":"==o.name&&"Declaration"==r.name||"ArgList"==r.name?{from:n,options:pS,validFor:gS}:"Block"==r.name||"Styles"==r.name?{from:n,options:hS(),validFor:gS}:null},wS=SS((e=>"VariableName"==e.name)),kS=Zm.define({name:"css",parser:uS.configure({props:[hg.add({Declaration:yg()}),xg.add({Block:function(e){let t=e.firstChild,a=e.lastChild;return t&&t.to<a.from?{from:t.to,to:a.type.isError?e.to:a.from}:null}})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function _S(a){const{attributes:n,setAttributes:s}=a,{blockId:r,customCss:o,hideOnDesktop:l,hideOnTab:c,hideOnMobile:u}=n,f=`\n .${r} {\n /*position: relative;*/\n}\n@media (max-width: 767px) {\n .${r} {\n /*display: block;*/\n }\n}\n`;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.PanelBody,{title:(0,t.__)("Responsive Control","essential-blocks"),initialOpen:!1},(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Hide on Desktop","essential-blocks"),checked:l,onChange:()=>s({hideOnDesktop:!l})}),(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Hide on Tab","essential-blocks"),checked:c,onChange:()=>s({hideOnTab:!c})}),(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Hide on Mobile","essential-blocks"),checked:u,onChange:()=>s({hideOnMobile:!u})})),(0,e.createElement)(to,{attributes:n,setAttributes:s}),(0,e.createElement)(i.PanelBody,{title:(0,t.__)("Custom CSS","essential-blocks"),initialOpen:!1},(0,e.createElement)(MC,{value:o||f.trim(),height:"250px",extensions:[new sg(kS,kS.data.of({autocomplete:wS}))],onChange:e=>(e=>{s({customCss:e})})(e)})))}})(),window.EBControls=n})();