JezK
Edit File: web-cli.min.js
(function(r){var c=Object.create,l=Object.defineProperty,__name=(r,c)=>l(r,`name`,{value:c,configurable:!0}),u=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,m=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,__esmMin=(r,c,l)=>()=>{if(l)throw l[0];try{return r&&(c=r(r=0)),c}catch(r){throw l=[r],r}},__commonJSMin=(r,c)=>()=>(c||(r((c={exports:{}}).exports,c),r=null),c.exports),__exportAll=(r,c)=>{let u={};for(var p in r)l(u,p,{get:r[p],enumerable:!0});return c||l(u,Symbol.toStringTag,{value:`Module`}),u},__copyProps=(r,c,m,g)=>{if(c&&typeof c==`object`||typeof c==`function`)for(var v=p(c),y=0,b=v.length,x;y<b;y++)x=v[y],!h.call(r,x)&&x!==m&&l(r,x,{get:(r=>c[r]).bind(null,x),enumerable:!(g=u(c,x))||g.enumerable});return r},__toESM=(r,u,p)=>(p=r==null?{}:c(m(r)),__copyProps(u||!r||!r.__esModule?l(p,`default`,{value:r,enumerable:!0}):p,r));function _classCallCheck(r,c){if(!(r instanceof c))throw TypeError(`Cannot call a class as a function`)}function _typeof(r){"@babel/helpers - typeof";return _typeof=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(r){return typeof r}:function(r){return r&&typeof Symbol==`function`&&r.constructor===Symbol&&r!==Symbol.prototype?`symbol`:typeof r},_typeof(r)}var g=__esmMin((()=>{}));g();function toPrimitive(r,c){if(_typeof(r)!=`object`||!r)return r;var l=r[Symbol.toPrimitive];if(l!==void 0){var u=l.call(r,c||`default`);if(_typeof(u)!=`object`)return u;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(c===`string`?String:Number)(r)}g();function toPropertyKey(r){var c=toPrimitive(r,`string`);return _typeof(c)==`symbol`?c:c+``}function _defineProperties(r,c){for(var l=0;l<c.length;l++){var u=c[l];u.enumerable=u.enumerable||!1,u.configurable=!0,`value`in u&&(u.writable=!0),Object.defineProperty(r,toPropertyKey(u.key),u)}}function _createClass(r,c,l){return c&&_defineProperties(r.prototype,c),l&&_defineProperties(r,l),Object.defineProperty(r,"prototype",{writable:!1}),r}function _assertThisInitialized(r){if(r===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return r}g();function _possibleConstructorReturn(r,c){if(c&&(_typeof(c)==`object`||typeof c==`function`))return c;if(c!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return _assertThisInitialized(r)}function _getPrototypeOf(r){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_getPrototypeOf(r)}function _setPrototypeOf(r,c){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,c){return r.__proto__=c,r},_setPrototypeOf(r,c)}function _inherits(r,c){if(typeof c!=`function`&&c!==null)throw TypeError(`Super expression must either be null or a function`);r.prototype=Object.create(c&&c.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),c&&_setPrototypeOf(r,c)}function _defineProperty(r,c,l){return(c=toPropertyKey(c))in r?Object.defineProperty(r,c,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[c]=l,r}function _arrayWithHoles(r){if(Array.isArray(r))return r}function _iterableToArrayLimit(r,c){var l=r==null?null:typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(l!=null){var u,p,m,h,g=[],v=!0,y=!1;try{if(m=(l=l.call(r)).next,c===0){if(Object(l)!==l)return;v=!1}else for(;!(v=(u=m.call(l)).done)&&(g.push(u.value),g.length!==c);v=!0);}catch(r){y=!0,p=r}finally{try{if(!v&&l.return!=null&&(h=l.return(),Object(h)!==h))return}finally{if(y)throw p}}return g}}function _arrayLikeToArray$2(r,c){(c==null||c>r.length)&&(c=r.length);for(var l=0,u=Array(c);l<c;l++)u[l]=r[l];return u}__name(_arrayLikeToArray$2,`_arrayLikeToArray`);function _unsupportedIterableToArray$2(r,c){if(r){if(typeof r==`string`)return _arrayLikeToArray$2(r,c);var l={}.toString.call(r).slice(8,-1);return l===`Object`&&r.constructor&&(l=r.constructor.name),l===`Map`||l===`Set`?Array.from(r):l===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?_arrayLikeToArray$2(r,c):void 0}}__name(_unsupportedIterableToArray$2,`_unsupportedIterableToArray`);function _nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(r,c){return _arrayWithHoles(r)||_iterableToArrayLimit(r,c)||_unsupportedIterableToArray$2(r,c)||_nonIterableRest()}function _superPropBase(r,c){for(;!{}.hasOwnProperty.call(r,c)&&(r=_getPrototypeOf(r))!==null;);return r}function _get(){return _get=typeof Reflect<`u`&&Reflect.get?Reflect.get.bind():function(r,c,l){var u=_superPropBase(r,c);if(u){var p=Object.getOwnPropertyDescriptor(u,c);return p.get?p.get.call(arguments.length<3?r:l):p.value}},_get.apply(null,arguments)}function _superPropGet$5(r,c,l,u){var p=_get(_getPrototypeOf(1&u?r.prototype:r),c,l);return 2&u&&typeof p==`function`?function(r){return p.apply(l,r)}:p}__name(_superPropGet$5,`_superPropGet`);var v=function(){function InstanceType(){var r=this;_classCallCheck(this,InstanceType);for(var c=this instanceof InstanceType?this.constructor:void 0,l=[];c.__proto__&&c.__proto__.name;)l.push(c.__proto__),c=c.__proto__;l.reverse().forEach(function(c){return r instanceof c})}return _createClass(InstanceType,null,[{key:Symbol.hasInstance,value:function value(r){var c=_superPropGet$5(InstanceType,Symbol.hasInstance,this,2)([r]);if(r&&!r.constructor.getInstanceType)return c;if(r&&(r.instanceTypes||(r.instanceTypes=[]),c||this.getInstanceType()===r.constructor.getInstanceType()&&(c=!0),c)){var l=this.getInstanceType===InstanceType.getInstanceType?`BaseInstanceType`:this.getInstanceType();r.instanceTypes.indexOf(l)===-1&&r.instanceTypes.push(l)}return!c&&r&&(c=r.instanceTypes&&Array.isArray(r.instanceTypes)&&r.instanceTypes.indexOf(this.getInstanceType())!==-1),c}},{key:`getInstanceType`,value:function getInstanceType(){elementorModules.ForceMethodImplementation()}}])}();function _createForOfIteratorHelper$1(r,c){var l=typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(!l){if(Array.isArray(r)||(l=_unsupportedIterableToArray$1(r))||c&&r&&typeof r.length==`number`){l&&(r=l);var u=0,p=function F(){};return{s:p,n:function n(){return u>=r.length?{done:!0}:{done:!1,value:r[u++]}},e:function e(r){throw r},f:p}}throw TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m,h=!0,g=!1;return{s:function s(){l=l.call(r)},n:function n(){var r=l.next();return h=r.done,r},e:function e(r){g=!0,m=r},f:function f(){try{h||l.return==null||l.return()}finally{if(g)throw m}}}}__name(_createForOfIteratorHelper$1,`_createForOfIteratorHelper`);function _unsupportedIterableToArray$1(r,c){if(r){if(typeof r==`string`)return _arrayLikeToArray$1(r,c);var l={}.toString.call(r).slice(8,-1);return l===`Object`&&r.constructor&&(l=r.constructor.name),l===`Map`||l===`Set`?Array.from(r):l===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?_arrayLikeToArray$1(r,c):void 0}}__name(_unsupportedIterableToArray$1,`_unsupportedIterableToArray`);function _arrayLikeToArray$1(r,c){(c==null||c>r.length)&&(c=r.length);for(var l=0,u=Array(c);l<c;l++)u[l]=r[l];return u}__name(_arrayLikeToArray$1,`_arrayLikeToArray`);var y=__name((function(r,c){c=Array.isArray(c)?c:[c];var l=_createForOfIteratorHelper$1(c),u;try{for(l.s();!(u=l.n()).done;){var p=u.value;if(r.constructor.name===p.prototype[Symbol.toStringTag])return!0}}catch(r){l.e(r)}finally{l.f()}return!1}),`default`);g();function _callSuper$35(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$36()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$35,`_callSuper`);function _isNativeReflectConstruct$36(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$36=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$36,`_isNativeReflectConstruct`);var b=function(r){function ArgsObject(r){var c;return _classCallCheck(this,ArgsObject),c=_callSuper$35(this,ArgsObject),c.args=r,c}return _inherits(ArgsObject,r),_createClass(ArgsObject,[{key:`requireArgument`,value:function requireArgument(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.args;if(!Object.prototype.hasOwnProperty.call(c,r))throw Error(`${r} is required.`)}},{key:`requireArgumentType`,value:function requireArgumentType(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.args;if(this.requireArgument(r,l),_typeof(l[r])!==c)throw Error(`${r} invalid type: ${c}.`)}},{key:`requireArgumentInstance`,value:function requireArgumentInstance(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.args;if(this.requireArgument(r,l),!(l[r]instanceof c)&&!y(l[r],c))throw Error(`${r} invalid instance.`)}},{key:`requireArgumentConstructor`,value:function requireArgumentConstructor(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.args;if(this.requireArgument(r,l),l[r].constructor.toString()!==c.prototype.constructor.toString())throw Error(`${r} invalid constructor type.`)}}],[{key:`getInstanceType`,value:function getInstanceType(){return`ArgsObject`}}])}(v),x=function(){function Console(){_classCallCheck(this,Console)}return _createClass(Console,null,[{key:`error`,value:function error(r){$e.devTools&&$e.devTools.log.error(r),r instanceof $e.modules.HookBreak||console.error(r)}},{key:`warn`,value:function warn(){for(var r,c=`font-size: 12px; background-image: url("${elementorWebCliConfig.urls.assets}images/logo-icon.png"); background-repeat: no-repeat; background-size: contain;`,l=arguments.length,u=Array(l),p=0;p<l;p++)u[p]=arguments[p];u.unshift(`%c %c`,c,``),(r=console).warn.apply(r,u)}}])}(),S=function softDeprecated(r,c,l){elementorWebCliConfig.isDebug&&w(`soft`,r,c,l)},C=function hardDeprecated(r,c,l){w(`hard`,r,c,l)},w=function deprecatedMessage(r,c,l,u){var p=`\`${c}\` is ${r} deprecated since ${l}`;u&&(p+=` - Use \`${u}\` instead`),x.warn(p)},T=function(){function Deprecation(){_classCallCheck(this,Deprecation)}return _createClass(Deprecation,null,[{key:`deprecated`,value:function deprecated(r,c,l){this.isHardDeprecated(c)?C(r,c,l):S(r,c,l)}},{key:`parseVersion`,value:function parseVersion(r){var c=r.split(`.`);if(c.length<3||c.length>4)throw RangeError(`Invalid Semantic Version string provided`);var l=_slicedToArray(c,4),u=l[0],p=l[1],m=l[2],h=l[3];return{major1:parseInt(u),major2:parseInt(p),minor:parseInt(m),build:h===void 0?``:h}}},{key:`getTotalMajor`,value:function getTotalMajor(r){var c=parseInt(`${r.major1}${r.major2}0`);return c=Number((c/10).toFixed(0)),r.major2>9&&(c=r.major2-9),c}},{key:`compareVersion`,value:function compareVersion(r,c){var l=this;return[this.parseVersion(r),this.parseVersion(c)].map(function(r){return l.getTotalMajor(r)}).reduce(function(r,c){return r-c})}},{key:`isSoftDeprecated`,value:function isSoftDeprecated(r){return this.compareVersion(r,elementorWebCliConfig.version)<=4}},{key:`isHardDeprecated`,value:function isHardDeprecated(r){var c=this.compareVersion(r,elementorWebCliConfig.version);return c<0||c>=8}}])}();function _callSuper$34(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$35()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$34,`_callSuper`);function _isNativeReflectConstruct$35(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$35=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$35,`_isNativeReflectConstruct`);var E=function(r){function CommandInfra(){var r,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(_classCallCheck(this,CommandInfra),r=_callSuper$34(this,CommandInfra,[c]),!r.constructor.registerConfig)throw RangeError("Doing it wrong: Each command type should have `registerConfig`.");return r.command=r.constructor.getCommand(),r.component=r.constructor.getComponent(),r.initialize(c),c=r.args,r.validateArgs(c),r}return _inherits(CommandInfra,r),_createClass(CommandInfra,[{key:`currentCommand`,get:function get(){return T.deprecated(`this.currentCommand`,`3.7.0`,`this.command`),this.command}},{key:`initialize`,value:function initialize(){arguments.length>0&&arguments[0]!==void 0&&arguments[0]}},{key:`validateArgs`,value:function validateArgs(){arguments.length>0&&arguments[0]!==void 0&&arguments[0]}},{key:`apply`,value:function apply(){arguments.length>0&&arguments[0]!==void 0&&arguments[0],elementorModules.ForceMethodImplementation()}},{key:`run`,value:function run(){return this.apply(this.args)}},{key:`onBeforeRun`,value:function onBeforeRun(){arguments.length>0&&arguments[0]!==void 0&&arguments[0]}},{key:`onAfterRun`,value:function onAfterRun(){arguments.length>0&&arguments[0]!==void 0&&arguments[0],arguments.length>1&&arguments[1]}},{key:`onBeforeApply`,value:function onBeforeApply(){arguments.length>0&&arguments[0]!==void 0&&arguments[0]}},{key:`onAfterApply`,value:function onAfterApply(){arguments.length>0&&arguments[0]!==void 0&&arguments[0],arguments.length>1&&arguments[1]}},{key:`onCatchApply`,value:function onCatchApply(r){}}],[{key:`getInstanceType`,value:function getInstanceType(){return`CommandInfra`}},{key:`getInfo`,value:function getInfo(){return{}}},{key:`getCommand`,value:function getCommand(){return this.registerConfig.command}},{key:`getComponent`,value:function getComponent(){return this.registerConfig.component}},{key:`setRegisterConfig`,value:function setRegisterConfig(r){this.registerConfig=Object.freeze(r)}}])}(b);_defineProperty(E,`registerConfig`,null);function _callSuper$33(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$34()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$33,`_callSuper`);function _isNativeReflectConstruct$34(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$34=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$34,`_isNativeReflectConstruct`);var D=function(r){function CommandBase(){return _classCallCheck(this,CommandBase),_callSuper$33(this,CommandBase,arguments)}return _inherits(CommandBase,r),_createClass(CommandBase,[{key:`onBeforeRun`,value:function onBeforeRun(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$e.hooks.runUIBefore(this.command,r)}},{key:`onAfterRun`,value:function onAfterRun(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;$e.hooks.runUIAfter(this.command,r,c)}},{key:`onBeforeApply`,value:function onBeforeApply(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$e.hooks.runDataDependency(this.command,r)}},{key:`onAfterApply`,value:function onAfterApply(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;return $e.hooks.runDataAfter(this.command,r,c)}},{key:`onCatchApply`,value:function onCatchApply(r){this.runCatchHooks(r)}},{key:`runCatchHooks`,value:function runCatchHooks(r){$e.hooks.runDataCatch(this.command,this.args,r),$e.hooks.runUICatch(this.command,this.args,r)}},{key:`requireContainer`,value:function requireContainer(){var r=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.args;if(T.deprecated(`requireContainer()`,`3.7.0`,"Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`"),!c.container&&!c.containers)throw Error(`container or containers are required.`);if(c.container&&c.containers)throw Error(`container and containers cannot go together please select one of them.`);(c.containers||[c.container]).forEach(function(c){r.requireArgumentInstance(`container`,elementorModules.editor.Container,{container:c})})}}],[{key:`getInstanceType`,value:function getInstanceType(){return`CommandBase`}}])}(E);function _callSuper$32(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$33()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$32,`_callSuper`);function _isNativeReflectConstruct$33(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$33=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$33,`_isNativeReflectConstruct`);var ee=function(r){function CommandCallbackBase(){return _classCallCheck(this,CommandCallbackBase),_callSuper$32(this,CommandCallbackBase,arguments)}return _inherits(CommandCallbackBase,r),_createClass(CommandCallbackBase,[{key:`apply`,value:function apply(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.constructor.getCallback()(r)}}],[{key:`getInstanceType`,value:function getInstanceType(){return`CommandCallbackBase`}},{key:`getCallback`,value:function getCallback(){return this.registerConfig.callback}}])}(D),O=__toESM(__commonJSMin(((r,c)=>{g();var l=function Module(){var r=jQuery,c=arguments,l=this,u={},p,m=function ensureClosureMethods(){r.each(l,function(r){var c=l[r];typeof c==`function`&&(l[r]=function(){return c.apply(l,arguments)})})},h=function initSettings(){p=l.getDefaultSettings();var u=c[0];u&&r.extend(!0,p,u)},g=function init(){l.__construct.apply(l,c),m(),h(),l.trigger(`init`)};this.getItems=function(r,c){if(c){var l=c.split(`.`),u=l.splice(0,1);return l.length?r[u]?this.getItems(r[u],l.join(`.`)):void 0:r[u]}return r},this.getSettings=function(r){return this.getItems(p,r)},this.setSettings=function(c,u,m){if(m||(m=p),_typeof(c)===`object`)return r.extend(m,c),l;var h=c.split(`.`),g=h.splice(0,1);return h.length?(m[g]||(m[g]={}),l.setSettings(h.join(`.`),u,m[g])):(m[g]=u,l)},this.getErrorMessage=function(r,c){var l;switch(r){case`forceMethodImplementation`:l=`The method '${c}' must to be implemented in the inheritor child.`;break;default:l=`An error occurs`}return l},this.forceMethodImplementation=function(r){throw Error(this.getErrorMessage(`forceMethodImplementation`,r))},this.on=function(c,p){return _typeof(c)===`object`?(r.each(c,function(r){l.on(r,this)}),l):(c.split(` `).forEach(function(r){u[r]||(u[r]=[]),u[r].push(p)}),l)},this.off=function(r,c){if(!u[r])return l;if(!c)return delete u[r],l;var p=u[r].indexOf(c);return p!==-1&&(delete u[r][p],u[r]=u[r].filter(function(r){return r})),l},this.trigger=function(c){var p=`on`+c[0].toUpperCase()+c.slice(1),m=Array.prototype.slice.call(arguments,1);l[p]&&l[p].apply(l,m);var h=u[c];return h&&r.each(h,function(r,c){c.apply(l,m)}),l},g()};l.prototype.__construct=function(){},l.prototype.getDefaultSettings=function(){return{}},l.prototype.getConstructorID=function(){return this.constructor.name},l.extend=function(r){var c=jQuery,l=this,u=function child(){return l.apply(this,arguments)};return c.extend(u,l),u.prototype=Object.create(c.extend({},l.prototype,r)),u.prototype.constructor=u,u.__super__=l.prototype,u},c.exports=l}))());function _isNativeFunction(r){try{return Function.toString.call(r).indexOf(`[native code]`)!==-1}catch(c){return typeof r==`function`}}function _isNativeReflectConstruct$32(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$32=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$32,`_isNativeReflectConstruct`);function _construct(r,c,l){if(_isNativeReflectConstruct$32())return Reflect.construct.apply(null,arguments);var u=[null];u.push.apply(u,c);var p=new(r.bind.apply(r,u));return l&&_setPrototypeOf(p,l.prototype),p}function _wrapNativeSuper(r){var c=typeof Map==`function`?new Map:void 0;return _wrapNativeSuper=function _wrapNativeSuper(r){if(r===null||!_isNativeFunction(r))return r;if(typeof r!=`function`)throw TypeError(`Super expression must either be null or a function`);if(c!==void 0){if(c.has(r))return c.get(r);c.set(r,Wrapper)}function Wrapper(){return _construct(r,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(r.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,r)},_wrapNativeSuper(r)}function _callSuper$31(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$31()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$31,`_callSuper`);function _isNativeReflectConstruct$31(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$31=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$31,`_isNativeReflectConstruct`);var te=function(r){function ForceMethodImplementation(){var r,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _classCallCheck(this,ForceMethodImplementation),r=_callSuper$31(this,ForceMethodImplementation,[`${c.isStatic?`static `:``}${c.fullName}() should be implemented, please provide '${c.functionName||c.fullName}' functionality.`]),Error.captureStackTrace(r,ForceMethodImplementation),r}return _inherits(ForceMethodImplementation,r),_createClass(ForceMethodImplementation)}(_wrapNativeSuper(Error)),k=__name((function(){var r=Error().stack.split(` `)[2].trim(),c=r.startsWith(`at new`)?`constructor`:r.split(` `)[1],l={};if(l.functionName=c,l.fullName=c,l.functionName.includes(`.`)){var u=l.functionName.split(`.`);l.className=u[0],l.functionName=u[1]}else l.isStatic=!0;throw new te(l)}),`default`);function ownKeys$3(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}__name(ownKeys$3,`ownKeys`);function _objectSpread$3(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$3(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$3(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}__name(_objectSpread$3,`_objectSpread`);function _callSuper$30(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$30()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$30,`_callSuper`);function _isNativeReflectConstruct$30(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$30=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$30,`_isNativeReflectConstruct`);var A=function(c){function ComponentBase(){return _classCallCheck(this,ComponentBase),_callSuper$30(this,ComponentBase,arguments)}return _inherits(ComponentBase,c),_createClass(ComponentBase,[{key:`__construct`,value:function __construct(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.manager&&(this.manager=r.manager),this.commands=this.defaultCommands(),this.commandsInternal=this.defaultCommandsInternal(),this.hooks=this.defaultHooks(),this.routes=this.defaultRoutes(),this.tabs=this.defaultTabs(),this.shortcuts=this.defaultShortcuts(),this.utils=this.defaultUtils(),this.data=this.defaultData(),this.uiStates=this.defaultUiStates(),this.states=this.defaultStates(),this.defaultRoute=``,this.currentTab=``}},{key:`registerAPI`,value:function registerAPI(){var r=this;Object.entries(this.getTabs()).forEach(function(c){return r.registerTabRoute(c[0])}),Object.entries(this.getRoutes()).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return r.registerRoute(u,p)}),Object.entries(this.getCommands()).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return r.registerCommand(u,p)}),Object.entries(this.getCommandsInternal()).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return r.registerCommandInternal(u,p)}),Object.values(this.getHooks()).forEach(function(c){return r.registerHook(c)}),Object.entries(this.getData()).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return r.registerData(u,p)}),Object.values(this.getUiStates()).forEach(function(c){return r.registerUiState(c)}),Object.entries(this.getStates()).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return r.registerState(u,p)})}},{key:`getNamespace`,value:function getNamespace(){k()}},{key:`getRootContainer`,value:function getRootContainer(){return T.deprecated(`getRootContainer()`,`3.7.0`,`getServiceName()`),this.getServiceName()}},{key:`getServiceName`,value:function getServiceName(){return this.getNamespace().split(`/`)[0]}},{key:`store`,get:function get(){return $e.store.get(this.getNamespace())}},{key:`defaultTabs`,value:function defaultTabs(){return{}}},{key:`defaultRoutes`,value:function defaultRoutes(){return{}}},{key:`defaultCommands`,value:function defaultCommands(){return{}}},{key:`defaultCommandsInternal`,value:function defaultCommandsInternal(){return{}}},{key:`defaultHooks`,value:function defaultHooks(){return{}}},{key:`defaultUiStates`,value:function defaultUiStates(){return{}}},{key:`defaultStates`,value:function defaultStates(){return{}}},{key:`defaultShortcuts`,value:function defaultShortcuts(){return{}}},{key:`defaultUtils`,value:function defaultUtils(){return{}}},{key:`defaultData`,value:function defaultData(){return{}}},{key:`getCommands`,value:function getCommands(){return this.commands}},{key:`getCommandsInternal`,value:function getCommandsInternal(){return this.commandsInternal}},{key:`getHooks`,value:function getHooks(){return this.hooks}},{key:`getUiStates`,value:function getUiStates(){return this.uiStates}},{key:`getStates`,value:function getStates(){return this.states}},{key:`getRoutes`,value:function getRoutes(){return this.routes}},{key:`getTabs`,value:function getTabs(){return this.tabs}},{key:`getShortcuts`,value:function getShortcuts(){return this.shortcuts}},{key:`getData`,value:function getData(){return this.data}},{key:`registerCommand`,value:function registerCommand(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`default`,u;switch(l){case`default`:u=$e.commands;break;case`internal`:u=$e.commandsInternal;break;case`data`:u=$e.data;break;default:throw Error(`Invalid commands type: '${r}'`)}var p=this.getNamespace()+`/`+r,m=c.getInstanceType?c.getInstanceType():!1,h={command:p,component:this};m||($e.devTools&&$e.devTools.log.warn(`Attach command-callback-base, on command: '${p}', context is unknown type.`),h.callback=c,c=function(r){function context(){return _classCallCheck(this,context),_callSuper$30(this,context,arguments)}return _inherits(context,r),_createClass(context)}(ee)),c.setRegisterConfig(h),u.register(this,r,c)}},{key:`registerHook`,value:function registerHook(r){return r.register()}},{key:`registerCommandInternal`,value:function registerCommandInternal(r,c){this.registerCommand(r,c,`internal`)}},{key:`registerUiState`,value:function registerUiState(r){$e.uiStates.register(r)}},{key:`registerState`,value:function registerState(c,l){c=this.getNamespace()+(c?`/${c}`:``);var u=(0,r.createSlice)(_objectSpread$3(_objectSpread$3({},l),{},{name:c}));$e.store.register(c,u)}},{key:`registerRoute`,value:function registerRoute(r,c){$e.routes.register(this,r,c)}},{key:`registerData`,value:function registerData(r,c){this.registerCommand(r,c,`data`)}},{key:`unregisterRoute`,value:function unregisterRoute(r){$e.routes.unregister(this,r)}},{key:`registerTabRoute`,value:function registerTabRoute(r){var c=this;this.registerRoute(r,function(l){return c.activateTab(r,l)})}},{key:`dependency`,value:function dependency(){return!0}},{key:`open`,value:function open(){return!0}},{key:`close`,value:function close(){return this.isOpen?(this.isOpen=!1,this.inactivate(),$e.routes.clearCurrent(this.getNamespace()),$e.routes.clearHistory(this.getServiceName()),!0):!1}},{key:`activate`,value:function activate(){$e.components.activate(this.getNamespace())}},{key:`inactivate`,value:function inactivate(){$e.components.inactivate(this.getNamespace())}},{key:`isActive`,value:function isActive(){return $e.components.isActive(this.getNamespace())}},{key:`onRoute`,value:function onRoute(r){this.toggleRouteClass(r,!0),this.toggleHistoryClass(),this.activate(),this.trigger(`route/open`,r)}},{key:`onCloseRoute`,value:function onCloseRoute(r){this.toggleRouteClass(r,!1),this.inactivate(),this.trigger(`route/close`,r)}},{key:`setDefaultRoute`,value:function setDefaultRoute(r){this.defaultRoute=this.getNamespace()+`/`+r}},{key:`getDefaultRoute`,value:function getDefaultRoute(){return this.defaultRoute}},{key:`removeTab`,value:function removeTab(r){delete this.tabs[r],this.unregisterRoute(r)}},{key:`hasTab`,value:function hasTab(r){return!!this.tabs[r]}},{key:`addTab`,value:function addTab(r,c,l){var u=this;if(this.tabs[r]=c,l!==void 0){var p={},m=Object.keys(this.tabs);m.pop(),m.splice(l,0,r),m.forEach(function(r){p[r]=u.tabs[r]}),this.tabs=p}this.registerTabRoute(r)}},{key:`getTabsWrapperSelector`,value:function getTabsWrapperSelector(){return``}},{key:`getTabRoute`,value:function getTabRoute(r){return this.getNamespace()+`/`+r}},{key:`renderTab`,value:function renderTab(r){}},{key:`activateTab`,value:function activateTab(r,c){var l=this;this.renderTab(r,c),jQuery(this.getTabsWrapperSelector()+` .elementor-component-tab`).off(`click`).on(`click`,function(r){$e.route(l.getTabRoute(r.currentTarget.dataset.tab),c)}).removeClass(`elementor-active`).filter(`[data-tab="`+r+`"]`).addClass(`elementor-active`)}},{key:`getActiveTabConfig`,value:function getActiveTabConfig(){return this.tabs[this.currentTab]||{}}},{key:`getBodyClass`,value:function getBodyClass(r){return`e-route-`+r.replace(/\//g,`-`)}},{key:`normalizeCommandName`,value:function normalizeCommandName(r){return r.replace(/[A-Z]/g,function(r,c){return(c>0?`-`:``)+r.toLowerCase()})}},{key:`importCommands`,value:function importCommands(r){var c=this,l={};return Object.entries(r).forEach(function(r){var u=_slicedToArray(r,2),p=u[0],m=u[1],h=c.normalizeCommandName(p);l[h]=m}),l}},{key:`importHooks`,value:function importHooks(r){var c={};for(var l in r){var u=new r[l];c[u.getId()]=u}return c}},{key:`importUiStates`,value:function importUiStates(r){var c=this,l={};return Object.values(r).forEach(function(r){var u=new r(c);l[u.getId()]=u}),l}},{key:`setUiState`,value:function setUiState(r,c){$e.uiStates.set(`${this.getNamespace()}/${r}`,c)}},{key:`toggleRouteClass`,value:function toggleRouteClass(r,c){document.body.classList.toggle(this.getBodyClass(r),c)}},{key:`toggleHistoryClass`,value:function toggleHistoryClass(){document.body.classList.toggle(`e-routes-has-history`,!!$e.routes.getHistory(this.getServiceName()).length)}}])}(O.default);function _callSuper$29(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$29()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$29,`_callSuper`);function _isNativeReflectConstruct$29(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$29=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$29,`_isNativeReflectConstruct`);var ne=function(){function BackwardsCompatibility(){_classCallCheck(this,BackwardsCompatibility)}return _createClass(BackwardsCompatibility,[{key:`ensureTab`,value:function ensureTab(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:``,u=$e.components.get(r);if(!u){var p=function(c){function Component(){return _classCallCheck(this,Component),_callSuper$29(this,Component,arguments)}return _inherits(Component,c),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return r}},{key:`renderTab`,value:function renderTab(r){elementor.getPanelView().setPage(l).activateTab(r)}}])}(A);u=$e.components.register(new p)}!u.hasTab(c)&&elementor.config.tabs[c]&&u.addTab(c,{title:elementor.config.tabs[c]})}}])}();function _callSuper$28(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$28()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$28,`_callSuper`);function _isNativeReflectConstruct$28(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$28=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$28,`_isNativeReflectConstruct`);var re=function(r){function CommandInternalBase(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$e.commandsInternal;return _classCallCheck(this,CommandInternalBase),_callSuper$28(this,CommandInternalBase,[r,c])}return _inherits(CommandInternalBase,r),_createClass(CommandInternalBase,null,[{key:`getInstanceType`,value:function getInstanceType(){return`CommandInternalBase`}}])}(D);function ownKeys$2(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}__name(ownKeys$2,`ownKeys`);function _objectSpread$2(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$2(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$2(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}__name(_objectSpread$2,`_objectSpread`);function _callSuper$27(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$27()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$27,`_callSuper`);function _isNativeReflectConstruct$27(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$27=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$27,`_isNativeReflectConstruct`);var j=function(r){function BaseError(){var r,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return _classCallCheck(this,BaseError),r=_callSuper$27(this,BaseError,[c]),_defineProperty(r,`code`,``),_defineProperty(r,`data`,[]),r.code=l,r.data=u,r}return _inherits(BaseError,r),_createClass(BaseError,[{key:`notify`,value:function notify(){x.error(_objectSpread$2({message:this.message},this))}}],[{key:`create`,value:function create(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return new this(r,c,l)}},{key:`getHTTPErrorCode`,value:function getHTTPErrorCode(){k()}}])}(_wrapNativeSuper(Error));function _callSuper$26(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$26()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$26,`_callSuper`);function _isNativeReflectConstruct$26(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$26=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$26,`_isNativeReflectConstruct`);var M=function(r){function DefaultError(){return _classCallCheck(this,DefaultError),_callSuper$26(this,DefaultError,arguments)}return _inherits(DefaultError,r),_createClass(DefaultError,null,[{key:`getHTTPErrorCode`,value:function getHTTPErrorCode(){return 501}}])}(j);function _callSuper$25(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$25()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$25,`_callSuper`);function _isNativeReflectConstruct$25(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$25=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$25,`_isNativeReflectConstruct`);var ie=function(r){function Error404(){return _classCallCheck(this,Error404),_callSuper$25(this,Error404,arguments)}return _inherits(Error404,r),_createClass(Error404,[{key:`notify`,value:function notify(){x.warn(this.message)}}],[{key:`getHTTPErrorCode`,value:function getHTTPErrorCode(){return 404}}])}(j),ae=__exportAll({DefaultError:()=>M,Error404:()=>ie});function _callSuper$24(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$24()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$24,`_callSuper`);function _isNativeReflectConstruct$24(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$24=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$24,`_isNativeReflectConstruct`);var oe=function(r){function CommandData(r){var c,l,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$e.data;return _classCallCheck(this,CommandData),l=_callSuper$24(this,CommandData,[r,u]),_defineProperty(l,`data`,void 0),_defineProperty(l,`type`,void 0),(c=l.args.options)!=null&&c.type&&(l.type=l.args.options.type),l}return _inherits(CommandData,r),_createClass(CommandData,[{key:`getApplyMethods`,value:function getApplyMethods(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.type,c,l;switch(r){case`create`:c=this.applyBeforeCreate,l=this.applyAfterCreate;break;case`delete`:c=this.applyBeforeDelete,l=this.applyAfterDelete;break;case`get`:c=this.applyBeforeGet,l=this.applyAfterGet;break;case`update`:c=this.applyBeforeUpdate,l=this.applyAfterUpdate;break;case`options`:c=this.applyBeforeOptions,l=this.applyAfterOptions;break;default:return!1}return{before:c.bind(this),after:l.bind(this)}}},{key:`getRequestData`,value:function getRequestData(){return{type:this.type,args:this.args,timestamp:new Date().getTime(),component:this.component,command:this.command,endpoint:$e.data.commandToEndpoint(this.command,JSON.parse(JSON.stringify(this.args)),this.constructor.getEndpointFormat())}}},{key:`apply`,value:function apply(){var r=this,c=this.getApplyMethods();this.args=c.before(this.args);var l=this.getRequestData();return $e.data.fetch(l).then(function(u){return r.data=u,r.data=c.after(u,r.args),r.data={data:r.data},r.data=Object.assign({__requestData__:l},r.data),r.data})}},{key:`applyBeforeCreate`,value:function applyBeforeCreate(){return arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}}},{key:`applyAfterCreate`,value:function applyAfterCreate(r){return arguments.length>1&&arguments[1]!==void 0&&arguments[1],r}},{key:`applyBeforeDelete`,value:function applyBeforeDelete(){return arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}}},{key:`applyAfterDelete`,value:function applyAfterDelete(r){return arguments.length>1&&arguments[1]!==void 0&&arguments[1],r}},{key:`applyBeforeGet`,value:function applyBeforeGet(){return arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}}},{key:`applyAfterGet`,value:function applyAfterGet(r){return arguments.length>1&&arguments[1]!==void 0&&arguments[1],r}},{key:`applyBeforeUpdate`,value:function applyBeforeUpdate(){return arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}}},{key:`applyAfterUpdate`,value:function applyAfterUpdate(r){return arguments.length>1&&arguments[1]!==void 0&&arguments[1],r}},{key:`applyBeforeOptions`,value:function applyBeforeOptions(){return arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}}},{key:`applyAfterOptions`,value:function applyAfterOptions(r){return arguments.length>1&&arguments[1]!==void 0&&arguments[1],r}},{key:`applyAfterCatch`,value:function applyAfterCatch(r){r.notify()}},{key:`onCatchApply`,value:function onCatchApply(r){var c,l=((c=r)==null||(c=c.data)==null?void 0:c.status)||501,u=Object.values(ae).find(function(r){return r.getHTTPErrorCode()===l});u||(u=M),r=u.create(r.message,r.code,r.data||[]),this.runCatchHooks(r),this.applyAfterCatch(r)}}],[{key:`getInstanceType`,value:function getInstanceType(){return`CommandData`}},{key:`getEndpointFormat`,value:function getEndpointFormat(){return null}}])}(D);function asyncGeneratorStep(r,c,l,u,p,m,h){try{var g=r[m](h),v=g.value}catch(r){l(r);return}g.done?c(v):Promise.resolve(v).then(u,p)}function _asyncToGenerator(r){return function(){var c=this,l=arguments;return new Promise(function(u,p){var m=r.apply(c,l);function _next(r){asyncGeneratorStep(m,u,p,_next,_throw,`next`,r)}function _throw(r){asyncGeneratorStep(m,u,p,_next,_throw,`throw`,r)}_next(void 0)})}}var N=__commonJSMin(((r,c)=>{function _OverloadYield(r,c){this.v=r,this.k=c}c.exports=_OverloadYield,c.exports.__esModule=!0,c.exports.default=c.exports})),P=__commonJSMin(((r,c)=>{function _regeneratorDefine(r,l,u,p){var m=Object.defineProperty;try{m({},``,{})}catch(r){m=0}c.exports=_regeneratorDefine=function regeneratorDefine(r,c,l,u){function o(c,l){_regeneratorDefine(r,c,function(r){return this._invoke(c,l,r)})}c?m?m(r,c,{value:l,enumerable:!u,configurable:!u,writable:!u}):r[c]=l:(o(`next`,0),o(`throw`,1),o(`return`,2))},c.exports.__esModule=!0,c.exports.default=c.exports,_regeneratorDefine(r,l,u,p)}c.exports=_regeneratorDefine,c.exports.__esModule=!0,c.exports.default=c.exports})),I=__commonJSMin(((r,c)=>{var l=P();function _regenerator(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var r,u,p=typeof Symbol==`function`?Symbol:{},m=p.iterator||`@@iterator`,h=p.toStringTag||`@@toStringTag`;function i(c,p,m,h){var v=p&&p.prototype instanceof Generator?p:Generator,y=Object.create(v.prototype);return l(y,`_invoke`,function(c,l,p){var m,h,v,y=0,b=p||[],x=!1,S={p:0,n:0,v:r,a:d,f:d.bind(r,4),d:function d(c,l){return m=c,h=0,v=r,S.n=l,g}};function d(c,l){for(h=c,v=l,u=0;!x&&y&&!p&&u<b.length;u++){var p,m=b[u],C=S.p,w=m[2];c>3?(p=w===l)&&(v=m[(h=m[4])?5:(h=3,3)],m[4]=m[5]=r):m[0]<=C&&((p=c<2&&C<m[1])?(h=0,S.v=l,S.n=m[1]):C<w&&(p=c<3||m[0]>l||l>w)&&(m[4]=c,m[5]=l,S.n=w,h=0))}if(p||c>1)return g;throw x=!0,l}return function(p,b,C){if(y>1)throw TypeError(`Generator is already running`);for(x&&b===1&&d(b,C),h=b,v=C;(u=h<2?r:v)||!x;){m||(h?h<3?(h>1&&(S.n=-1),d(h,v)):S.n=v:S.v=v);try{if(y=2,m){if(h||(p=`next`),u=m[p]){if(!(u=u.call(m,v)))throw TypeError(`iterator result is not an object`);if(!u.done)return u;v=u.value,h<2&&(h=0)}else h===1&&(u=m.return)&&u.call(m),h<2&&(v=TypeError(`The iterator does not provide a '`+p+`' method`),h=1);m=r}else if((u=(x=S.n<0)?v:c.call(l,S))!==g)break}catch(c){m=r,h=1,v=c}finally{y=1}}return{value:u,done:x}}}(c,m,h),!0),y}var g={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}u=Object.getPrototypeOf;var v=[][m]?u(u([][m]())):(l(u={},m,function(){return this}),u),y=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(v);function f(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,GeneratorFunctionPrototype):(r.__proto__=GeneratorFunctionPrototype,l(r,h,`GeneratorFunction`)),r.prototype=Object.create(y),r}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(y,`constructor`,GeneratorFunctionPrototype),l(GeneratorFunctionPrototype,`constructor`,GeneratorFunction),GeneratorFunction.displayName=`GeneratorFunction`,l(GeneratorFunctionPrototype,h,`GeneratorFunction`),l(y),l(y,h,`Generator`),l(y,m,function(){return this}),l(y,`toString`,function(){return`[object Generator]`}),(c.exports=_regenerator=function _regenerator(){return{w:i,m:f}},c.exports.__esModule=!0,c.exports.default=c.exports)()}c.exports=_regenerator,c.exports.__esModule=!0,c.exports.default=c.exports})),L=__commonJSMin(((r,c)=>{var l=N(),u=P();function AsyncIterator(r,c){function n(u,p,m,h){try{var g=r[u](p),v=g.value;return v instanceof l?c.resolve(v.v).then(function(r){n(`next`,r,m,h)},function(r){n(`throw`,r,m,h)}):c.resolve(v).then(function(r){g.value=r,m(g)},function(r){return n(`throw`,r,m,h)})}catch(r){h(r)}}var p;this.next||(u(AsyncIterator.prototype),u(AsyncIterator.prototype,typeof Symbol==`function`&&Symbol.asyncIterator||`@asyncIterator`,function(){return this})),u(this,`_invoke`,function(r,l,u){function f(){return new c(function(c,l){n(r,u,c,l)})}return p=p?p.then(f,f):f()},!0)}c.exports=AsyncIterator,c.exports.__esModule=!0,c.exports.default=c.exports})),R=__commonJSMin(((r,c)=>{var l=I(),u=L();function _regeneratorAsyncGen(r,c,p,m,h){return new u(l().w(r,c,p,m),h||Promise)}c.exports=_regeneratorAsyncGen,c.exports.__esModule=!0,c.exports.default=c.exports})),se=__commonJSMin(((r,c)=>{var l=R();function _regeneratorAsync(r,c,u,p,m){var h=l(r,c,u,p,m);return h.next().then(function(r){return r.done?r.value:h.next()})}c.exports=_regeneratorAsync,c.exports.__esModule=!0,c.exports.default=c.exports})),ce=__commonJSMin(((r,c)=>{function _regeneratorKeys(r){var c=Object(r),l=[];for(var u in c)l.unshift(u);return function e(){for(;l.length;)if((u=l.pop())in c)return e.value=u,e.done=!1,e;return e.done=!0,e}}c.exports=_regeneratorKeys,c.exports.__esModule=!0,c.exports.default=c.exports})),le=__commonJSMin(((r,c)=>{function _typeof(r){"@babel/helpers - typeof";return c.exports=_typeof=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(r){return typeof r}:function(r){return r&&typeof Symbol==`function`&&r.constructor===Symbol&&r!==Symbol.prototype?`symbol`:typeof r},c.exports.__esModule=!0,c.exports.default=c.exports,_typeof(r)}c.exports=_typeof,c.exports.__esModule=!0,c.exports.default=c.exports})),ue=__commonJSMin(((r,c)=>{var l=le().default;function _regeneratorValues(r){if(r!=null){var c=r[typeof Symbol==`function`&&Symbol.iterator||`@@iterator`],u=0;if(c)return c.call(r);if(typeof r.next==`function`)return r;if(!isNaN(r.length))return{next:function next(){return r&&u>=r.length&&(r=void 0),{value:r&&r[u++],done:!r}}}}throw TypeError(l(r)+` is not iterable`)}c.exports=_regeneratorValues,c.exports.__esModule=!0,c.exports.default=c.exports})),de=__commonJSMin(((r,c)=>{var l=N(),u=I(),p=se(),m=R(),h=L(),g=ce(),v=ue();function _regeneratorRuntime(){"use strict";var r=u(),y=r.m(_regeneratorRuntime),b=(Object.getPrototypeOf?Object.getPrototypeOf(y):y.__proto__).constructor;function n(r){var c=typeof r==`function`&&r.constructor;return!!c&&(c===b||(c.displayName||c.name)===`GeneratorFunction`)}var x={throw:1,return:2,break:3,continue:3};function a(r){var c,l;return function(u){c||(c={stop:function stop(){return l(u.a,2)},catch:function _catch(){return u.v},abrupt:function abrupt(r,c){return l(u.a,x[r],c)},delegateYield:function delegateYield(r,p,m){return c.resultName=p,l(u.d,v(r),m)},finish:function finish(r){return l(u.f,r)}},l=function t(r,l,p){u.p=c.prev,u.n=c.next;try{return r(l,p)}finally{c.next=u.n}}),c.resultName&&(c[c.resultName]=u.v,c.resultName=void 0),c.sent=u.v,c.next=u.n;try{return r.call(this,c)}finally{u.p=c.prev,u.n=c.next}}}return(c.exports=_regeneratorRuntime=function _regeneratorRuntime(){return{wrap:function wrap(c,l,u,p){return r.w(a(c),l,u,p&&p.reverse())},isGeneratorFunction:n,mark:r.m,awrap:function awrap(r,c){return new l(r,c)},AsyncIterator:h,async:function async(r,c,l,u,h){return(n(c)?m:p)(a(r),c,l,u,h)},keys:g,values:v}},c.exports.__esModule=!0,c.exports.default=c.exports)()}c.exports=_regeneratorRuntime,c.exports.__esModule=!0,c.exports.default=c.exports})),z=__toESM(__commonJSMin(((r,c)=>{var l=de()();c.exports=l;try{regeneratorRuntime=l}catch(r){typeof globalThis==`object`?globalThis.regeneratorRuntime=l:Function(`r`,`regeneratorRuntime = r`)(l)}}))());function _callSuper$23(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$23()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$23,`_callSuper`);function _isNativeReflectConstruct$23(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$23=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$23,`_isNativeReflectConstruct`);var fe=function(r){function CommandsBackwardsCompatibility(){var r;_classCallCheck(this,CommandsBackwardsCompatibility);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper$23(this,CommandsBackwardsCompatibility,[].concat(l)),_defineProperty(r,`on`,function(c,l){if(c===`run`){var u=r.getConstructorID();u=u.replace(/^./,function(r){return r.toLowerCase()}),T.deprecated(`\$e.${u}.on( 'run', ... )`,`3.0.0`,`\$e.${u}.on( 'run:before', ... )`),r.onOrig(`run:before`,l);return}r.onOrig(c,l)}),r}return _inherits(CommandsBackwardsCompatibility,r),_createClass(CommandsBackwardsCompatibility,[{key:`__construct`,value:function __construct(){this.onOrig=this.on}}])}(O.default);g();function ownKeys$1(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}__name(ownKeys$1,`ownKeys`);function _objectSpread$1(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$1(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$1(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}__name(_objectSpread$1,`_objectSpread`);function _callSuper$22(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$22()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$22,`_callSuper`);function _isNativeReflectConstruct$22(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$22=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$22,`_isNativeReflectConstruct`);var B=function(r){function Commands(){var r;_classCallCheck(this,Commands);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper$22(this,Commands,[].concat(l)),r.current={},r.currentArgs={},r.currentTrace=[],r.commands={},r.components={},Object.defineProperty(r,"classes",{get:function get(){return T.deprecated(`$e.commands.classes`,`3.7.0`,`$e.commands.getCommandClass(), $e.commandsInternal.getCommandClass(), $e.data.getCommandClass(), $e.routes.getCommandClass() according to the requested command infra-structure,`),_objectSpread$1(_objectSpread$1(_objectSpread$1(_objectSpread$1({},$e.commands.commands),$e.commandsInternal.commands),$e.data.commands),$e.routes.commands)}}),r}return _inherits(Commands,r),_createClass(Commands,[{key:`getCommandClass`,value:function getCommandClass(r){return this.commands[r]}},{key:`getAll`,value:function getAll(){return Object.keys(this.commands).sort()}},{key:`register`,value:function register(r,c,l){var u=this,p;typeof r==`string`?(p=r,r=$e.components.get(p),r||this.error(`'${p}' component is not exist.`)):p=r.getNamespace();var m=p+(c?`/`+c:``);this.commands[m]&&this.error(`\`${m}\` is already registered.`),this.commands[m]=l,this.components[m]=p;var h=r.getShortcuts()[c];return h&&(h.command=m,h.callback=function(r){return u.runShortcut(m,r)},$e.shortcuts.register(h.keys,h)),this}},{key:`unregister`,value:function unregister(r,c){var l;typeof r==`string`?(l=r,r=$e.components.get(l),r||this.error(`'${l}' component is not exist.`)):l=r.getNamespace();var u=l+(c?`/`+c:``);this.commands[u]||this.error(`\`${u}\` not exist.`),delete this.commands[u],delete this.components[u];var p=r.getShortcuts()[c];return p&&$e.shortcuts.unregister(p.keys,p),this}},{key:`getComponent`,value:function getComponent(r){var c=this.components[r];return $e.components.get(c)}},{key:`is`,value:function is(r){var c=this.getComponent(r);return c?r===this.current[c.getServiceName()]:!1}},{key:`isCurrentFirstTrace`,value:function isCurrentFirstTrace(r){return r===this.getCurrentFirstTrace()}},{key:`getCurrent`,value:function getCurrent(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``;return r?this.current[r]?this.current[r]:!1:this.current}},{key:`getCurrentArgs`,value:function getCurrentArgs(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``;return r?this.currentArgs[r]?this.currentArgs[r]:!1:this.currentArgs}},{key:`getCurrentFirst`,value:function getCurrentFirst(){return Object.values(this.current)[0]}},{key:`getCurrentLast`,value:function getCurrentLast(){var r=Object.values(this.current);return r[r.length-1]}},{key:`getCurrentFirstTrace`,value:function getCurrentFirstTrace(){return this.currentTrace[0]}},{key:`beforeRun`,value:function beforeRun(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=this.getComponent(r),p=u.getServiceName();l&&this.addCurrentTrace(p,r,c),c.onBefore&&c.onBefore.apply(u,[c]),this.trigger(`run:before`,u,r,c),window.dispatchEvent(new CustomEvent(`elementor/commands/run/before`,{detail:{command:r,args:c}}))}},{key:`validateRun`,value:function validateRun(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.commands[r]||this.error(`\`${r}\` not found.`),this.getComponent(r).dependency(r,c)}},{key:`run`,value:function run(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.validateRun(r,c))return!1;this.beforeRun(r,c);var l=this.commands[r];l.getInstanceType&&(l=new l(c));var u=this.getComponent(r);if(!(l instanceof D)){var p=l.apply(u,[c]);return this.afterRun(r,c,p),p}return this.validateInstanceScope(l,u,r)?this.runInstance(l):this.removeCurrentTrace(u)}},{key:`runInstance`,value:function runInstance(r){var c=null;r.onBeforeRun(r.args);try{r.onBeforeApply(r.args),c=r.run()}catch(c){if(this.catchApply(c,r),c instanceof $e.modules.HookBreak)return this.removeCurrentTrace(r.component),!1}return this.applyRunAfter(r,c)}},{key:`applyRunAfter`,value:function applyRunAfter(r,c){var l=this;return c&&_typeof(c)===`object`&&c.promise&&c.then&&c.fail?function handleJQueryDeferred(c){return c.fail(function(c){l.catchApply(c,r),l.afterRun(r.command,r.args,c)}),c.done(function(c){return l.applyRunAfterAsyncResult(r,c)})}(c):c instanceof Promise?this.applyRunAfterAsync(r,c):(this.applyRunAfterSync(r,c),c)}},{key:`applyRunAfterSync`,value:function applyRunAfterSync(r,c){r.onAfterApply(r.args,c),r.onAfterRun(r.args,c),this.afterRun(r.command,r.args,c)}},{key:`applyRunAfterAsync`,value:function applyRunAfterAsync(r,c){var l=this;return _asyncToGenerator(z.default.mark(function _callee(){return z.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=1,c.catch(function(c){l.catchApply(c,r),l.afterRun(r.command,r.args,c)});case 1:return u.next=2,c.then(function(c){return l.applyRunAfterAsyncResult(r,c)});case 2:return u.abrupt(`return`,c);case 3:case`end`:return u.stop()}},_callee)}))()}},{key:`applyRunAfterAsyncResult`,value:function(){var r=_asyncToGenerator(z.default.mark(function _callee2(r,c){var l,u;return z.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(l=r.onAfterApply(r.args,c),u=Array.isArray(l)?l.flat().filter(function(r){return r instanceof Promise}):[],!u.length){p.next=1;break}return p.next=1,Promise.all(u);case 1:r.onAfterRun(r.args,c),this.afterRun(r.command,r.args,c);case 2:case`end`:return p.stop()}},_callee2,this)}));function applyRunAfterAsyncResult(c,l){return r.apply(this,arguments)}return applyRunAfterAsyncResult}()},{key:`afterRun`,value:function afterRun(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,p=this.getComponent(r);c.onAfter&&c.onAfter.apply(p,[c,l]),this.trigger(`run:after`,p,r,c,l),window.dispatchEvent(new CustomEvent(`elementor/commands/run/after`,{detail:{command:r,args:c}})),u&&this.removeCurrentTrace(p)}},{key:`catchApply`,value:function catchApply(r,c){c.onCatchApply(r),x.error(r)}},{key:`runShortcut`,value:function runShortcut(r,c){return this.run(r,c)}},{key:`validateInstanceScope`,value:function validateInstanceScope(r,c,l){return r instanceof D||this.error(`invalid instance, command: '${l}' `),c===r.component?!0:($e.devTools&&$e.devTools.log.warn(`Command: '${l}' registerArgs.component: '${r.component.getNamespace()}' while current component is: '${c.getNamespace()}'`),!1)}},{key:`addCurrentTrace`,value:function addCurrentTrace(r,c,l){this.currentTrace.push(c),Commands.trace.push(c),this.attachCurrent(r,c,l)}},{key:`removeCurrentTrace`,value:function removeCurrentTrace(r){var c=r.getServiceName();this.currentTrace.pop(),Commands.trace.pop(),this.detachCurrent(c)}},{key:`attachCurrent`,value:function attachCurrent(r,c,l){this.current[r]=c,this.currentArgs[r]=l}},{key:`detachCurrent`,value:function detachCurrent(r){delete this.current[r],delete this.currentArgs[r]}},{key:`error`,value:function error(r){throw Error(`Commands: ${r}`)}}])}(fe);_defineProperty(B,`trace`,[]);function _callSuper$21(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$21()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$21,`_callSuper`);function _isNativeReflectConstruct$21(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$21=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$21,`_isNativeReflectConstruct`);var V=function(r){function CommandsInternal(){return _classCallCheck(this,CommandsInternal),_callSuper$21(this,CommandsInternal,arguments)}return _inherits(CommandsInternal,r),_createClass(CommandsInternal,[{key:`error`,value:function error(r){throw Error(`Commands internal: `+r)}}])}(B);function _callSuper$20(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$20()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$20,`_callSuper`);function _isNativeReflectConstruct$20(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$20=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$20,`_isNativeReflectConstruct`);var pe=function(r){function Close(){return _classCallCheck(this,Close),_callSuper$20(this,Close,arguments)}return _inherits(Close,r),_createClass(Close,[{key:`apply`,value:function apply(){this.component.close()}}])}(D);function _callSuper$19(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$19()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$19,`_callSuper`);function _isNativeReflectConstruct$19(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$19=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$19,`_isNativeReflectConstruct`);var me=function(r){function Open(){return _classCallCheck(this,Open),_callSuper$19(this,Open,arguments)}return _inherits(Open,r),_createClass(Open,[{key:`apply`,value:function apply(){$e.route(this.component.getNamespace())}}])}(D);function _callSuper$18(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$18()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$18,`_callSuper`);function _isNativeReflectConstruct$18(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$18=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$18,`_isNativeReflectConstruct`);var he=function(r){function Toggle(){return _classCallCheck(this,Toggle),_callSuper$18(this,Toggle,arguments)}return _inherits(Toggle,r),_createClass(Toggle,[{key:`apply`,value:function apply(){this.component.isOpen?this.component.close():$e.route(this.component.getNamespace())}}])}(D),ge=__exportAll({Close:()=>pe,Open:()=>me,Toggle:()=>he});function _callSuper$17(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$17()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$17,`_callSuper`);function _isNativeReflectConstruct$17(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$17=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$17,`_isNativeReflectConstruct`);function _superPropGet$4(r,c,l,u){var p=_get(_getPrototypeOf(1&u?r.prototype:r),c,l);return 2&u&&typeof p==`function`?function(r){return p.apply(l,r)}:p}__name(_superPropGet$4,`_superPropGet`);var _e=function(r){function ComponentModalBase(){return _classCallCheck(this,ComponentModalBase),_callSuper$17(this,ComponentModalBase,arguments)}return _inherits(ComponentModalBase,r),_createClass(ComponentModalBase,[{key:`registerAPI`,value:function registerAPI(){var r=this;_superPropGet$4(ComponentModalBase,`registerAPI`,this,3)([]),$e.shortcuts.register(`esc`,{scopes:[this.getNamespace()],callback:function callback(){return r.close()}})}},{key:`defaultCommands`,value:function defaultCommands(){return this.importCommands(ge)}},{key:`defaultRoutes`,value:function defaultRoutes(){return{"":function _(){}}}},{key:`open`,value:function open(){var r=this;if(!this.layout){var c=this.getModalLayout();this.layout=new c({component:this}),this.layout.getModal().on(`hide`,function(){return r.close()})}return this.layout.showModal(),!0}},{key:`close`,value:function close(){return _superPropGet$4(ComponentModalBase,`close`,this,3)([])?(elementor.hooks.applyFilters(`component/modal/close`,this.layout.getModal().hide.bind(this.layout.getModal()),this)(),!0):!1}},{key:`getModalLayout`,value:function getModalLayout(){k()}}])}(A);function _callSuper$16(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$16()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$16,`_callSuper`);function _isNativeReflectConstruct$16(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$16=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$16,`_isNativeReflectConstruct`);var ve=function(r){function _default(){var r;_classCallCheck(this,_default);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper$16(this,_default,[].concat(l)),r.components={},r.activeComponents={},r}return _inherits(_default,r),_createClass(_default,[{key:`getAll`,value:function getAll(){return Object.keys(this.components).sort()}},{key:`register`,value:function register(r){if(!this.components[r.getNamespace()])return r.registerAPI(),this.components[r.getNamespace()]=r,r}},{key:`get`,value:function get(r){return this.components[r]}},{key:`getActive`,value:function getActive(){return this.activeComponents}},{key:`activate`,value:function activate(r){this.inactivate(r),this.activeComponents[r]=!0}},{key:`inactivate`,value:function inactivate(r){delete this.activeComponents[r]}},{key:`isActive`,value:function isActive(r){return!!this.activeComponents[r]}}])}(O.default),ye=function(){function BaseStorage(r){if(_classCallCheck(this,BaseStorage),BaseStorage===(this instanceof BaseStorage?this.constructor:void 0))throw TypeError(`Cannot construct BaseStorage instances directly`);this.provider=r}return _createClass(BaseStorage,[{key:`clear`,value:function clear(){return this.provider.clear()}},{key:`getItem`,value:function getItem(r){var c=this.provider.getItem(r);return c===null?c:JSON.parse(c)}},{key:`key`,value:function key(r){return this.provider.key(r)}},{key:`removeItem`,value:function removeItem(r){return this.provider.removeItem(r)}},{key:`setItem`,value:function setItem(r,c){return this.provider.setItem(r,JSON.stringify(c))}},{key:`getAll`,value:function getAll(){var r=this,c=Object.keys(this.provider),l={};return c.forEach(function(c){l[c]=r.getItem(c)}),l}}])}();function _callSuper$15(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$15()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$15,`_callSuper`);function _isNativeReflectConstruct$15(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$15=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$15,`_isNativeReflectConstruct`);function _superPropGet$3(r,c,l,u){var p=_get(_getPrototypeOf(1&u?r.prototype:r),c,l);return 2&u&&typeof p==`function`?function(r){return p.apply(l,r)}:p}__name(_superPropGet$3,`_superPropGet`);var H=function(r){function BasePrefixStorage(){return _classCallCheck(this,BasePrefixStorage),_callSuper$15(this,BasePrefixStorage,arguments)}return _inherits(BasePrefixStorage,r),_createClass(BasePrefixStorage,[{key:`clear`,value:function clear(){var r=this;Object.keys(this.getAll()).forEach(function(c){return r.removeItem(c)})}},{key:`getItem`,value:function getItem(r){return _superPropGet$3(BasePrefixStorage,`getItem`,this,3)([BasePrefixStorage.DEFAULT_KEY_PREFIX+r])}},{key:`removeItem`,value:function removeItem(r){return _superPropGet$3(BasePrefixStorage,`removeItem`,this,3)([BasePrefixStorage.DEFAULT_KEY_PREFIX+r])}},{key:`setItem`,value:function setItem(r,c){return _superPropGet$3(BasePrefixStorage,`setItem`,this,3)([BasePrefixStorage.DEFAULT_KEY_PREFIX+r,c])}},{key:`getAll`,value:function getAll(){var r=this,c=BasePrefixStorage.DEFAULT_KEY_PREFIX,l=Object.keys(this.provider),u={};return l.forEach(function(l){l.startsWith(c)&&(l=l.replace(c,``),u[l]=r.getItem(l))}),u}}])}(ye);_defineProperty(H,`DEFAULT_KEY_PREFIX`,`e_`);function _callSuper$14(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$14()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$14,`_callSuper`);function _isNativeReflectConstruct$14(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$14=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$14,`_isNativeReflectConstruct`);var be=function(r){function LocalStorage(){return _classCallCheck(this,LocalStorage),_callSuper$14(this,LocalStorage,[localStorage])}return _inherits(LocalStorage,r),_createClass(LocalStorage,[{key:`debug`,value:function debug(){var r=this.getAll(),c={};return Object.keys(r).sort().forEach(function(l){c[l]=r[l]}),c}}])}(H);g();var xe=function(){function Cache(r){_classCallCheck(this,Cache),this.manager=r,this.storage=new be}return _createClass(Cache,[{key:`getAsync`,value:function getAsync(r){var c=this.get(r);return c===null?!1:(r.cache=`hit`,new Promise(function(r){r(c)}))}},{key:`set`,value:function set(r,c){$e.data.validateRequestData(r);var l=r.component.getNamespace(),u=r.endpoint.replace(l+`/`,``),p=u.split(`/`),m={};if(p.length&&u!==l){var h=p.reduce(function(r,c){return r[c]={},r[c]},m);Object.assign(h,c)}else m=c;var g=this.storage.getItem(l);g!==null&&(m=jQuery.extend(!0,g,m)),this.storage.setItem(l,m)}},{key:`get`,value:function get(r){$e.data.validateRequestData(r);var c=r.component.getNamespace(),l=this.storage.getItem(c);return l===null?null:c===r.endpoint?l:r.endpoint.replace(r.component.getNamespace()+`/`,``).split(`/`).reduce(function(r,c){if(r&&r[c])return r[c]},l)||null}},{key:`update`,value:function update(r){$e.data.validateRequestData(r,!0);var c=r.endpoint,l={};return Object.entries(this.storage.getAll()).forEach(function(u){var p=_slicedToArray(u,2),m=p[0],h=p[1];if(h&&c.includes(m)){var g=h,v=r.endpoint.replace(r.component.getNamespace()+`/`,``).split(`/`);if(v.length===1&&m===r.endpoint&&m===r.component.getNamespace())l=jQuery.extend(!0,g,r.args.data);else{var y=v.reduce(function(r,c){return r[c]},g);l=jQuery.extend(!0,y,r.args.data)}}}),Object.values(l).length===0?!1:(this.set(r,l),!0)}},{key:`delete`,value:function _delete(r){$e.data.validateRequestData(r);var c=!1,l=r.component.getNamespace();if(l!==r.endpoint){var u=this.storage.getItem(l),p={};if(u===null)return!1;var m=r.endpoint.replace(l+`/`,``).split(`/`),h=m[m.length-1];if(m.reduce(function(r,c){return c===h?r[c]=null:r[c]={},r[c]},p),Object.keys(u).length){var g=function deleteKeys(r,l){return l?Object.keys(l).forEach(function(u){l[u]&&_typeof(l[u])===`object`?g(r[u],l[u]):l[u]===null&&(delete r[u],c=!0)}):Object.keys(r).forEach(function(c){return delete r[c]}),r};this.storage.setItem(l,g(u,p))}}else for(var v in this.storage.getAll())if(v===r.endpoint){this.storage.removeItem(r.endpoint),c=!0;break}return c}}])}();function _callSuper$13(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$13()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$13,`_callSuper`);function _isNativeReflectConstruct$13(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$13=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$13,`_isNativeReflectConstruct`);function _superPropGet$2(r,c,l,u){var p=_get(_getPrototypeOf(1&u?r.prototype:r),c,l);return 2&u&&typeof p==`function`?function(r){return p.apply(l,r)}:p}__name(_superPropGet$2,`_superPropGet`);var Se=[`GET`],Ce=[`POST`],we=[`POST`,`PUT`,`PATCH`],Te=[`DELETE`],Ee=function(r){function Data(){var r,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _classCallCheck(this,Data),r=_callSuper$13(this,Data,[c]),r.args=Object.assign(c,{namespace:`elementor`,version:`1`,baseEndpointURL:elementorWebCliConfig.urls.rest}),r.cache=new xe(r),r.validatedRequests={},r.commandFormats={},r}return _inherits(Data,r),_createClass(Data,[{key:`getHTTPMethod`,value:function getHTTPMethod(r){switch(r){case`create`:return`POST`;case`delete`:return`DELETE`;case`get`:return`GET`;case`update`:return`PUT`;case`options`:return`OPTIONS`}return!1}},{key:`getAllowedMethods`,value:function getAllowedMethods(r){switch(r){case`create`:return Ce;case`delete`:return Te;case`get`:return Se;case`update`:return we;case`options`:return[`OPTIONS`]}return!1}},{key:`getEndpointURL`,value:function getEndpointURL(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.endpoint,l=r.baseEndpointURL,u=l===void 0?this.args.baseEndpointURL:l,p=r.namespace,m=p===void 0?this.args.namespace:p,h=r.version;return`${u}${m}/v${h===void 0?this.args.version:h}/`+c}},{key:`commandToEndpoint`,value:function commandToEndpoint(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=r;if(c!=null&&c.query&&Object.values(c.query).length&&l&&l.includes(`/{`)&&l.split(`/`).filter(function(r){return r.charAt(0)===`{`}).forEach(function(r){r=r.replace(`{`,``),r=r.replace(`}`,``);var u=Object.entries(c.query).find(function(c){return _slicedToArray(c,1)[0]===r});if(u){var p=u[0],m=u[1].toString();l=l.replace(RegExp(`{`+r+`}`,`g`),m),delete c.query[p]}}),l&&(u=l),l&&u.includes(`/{`)&&(u=u.substring(0,u.indexOf(`/{`))),c.query&&Object.values(c.query).length){var p=Object.entries(c.query).sort(function(r,c){return _slicedToArray(r,1)[0]-_slicedToArray(c,1)[0]});p.length&&(u+=`?`,p.forEach(function(r){var c=_slicedToArray(r,2),l=c[0],p=c[1];p=`${p}`.replace(/\//g,`%2F`),u+=l+`=`+p+`&`})),u=u.replace(/&$/,``)}return u}},{key:`commandExtractArgs`,value:function commandExtractArgs(r){var c,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if((c=r)!=null&&c.includes(`?`)){l.query||(l.query={});var u=r.split(`?`),p=u[0],m=u[1],h=new URLSearchParams(m);Object.assign(l.query,Object.fromEntries(h)),r=p}return{command:r,args:l}}},{key:`validateRequestData`,value:function validateRequestData(r){var c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!(r.timestamp&&this.validatedRequests[r.timestamp])){var l=new b(r);l.requireArgument(`component`),l.requireArgumentType(`command`,`string`),l.requireArgumentType(`endpoint`,`string`),c&&l.requireArgumentType(`data`,`object`,r.args),r.timestamp||(r.timestamp=new Date().getTime()),this.validatedRequests[r.timestamp]=!0}}},{key:`prepareHeaders`,value:function prepareHeaders(r){var c,l=r.type,u=elementorWebCliConfig.nonce,p={signal:(c=r.args)==null||(c=c.options)==null?void 0:c.signal,credentials:`include`},m={"X-WP-Nonce":u},h=this.getAllowedMethods(l),g=this.getHTTPMethod(l);if(g===`GET`)Object.assign(p,{headers:m});else if(h){var v,y;if([`POST`,`PUT`].includes(g)&&!((v=r.args)!=null&&v.data))throw Error(`Invalid requestData.args.data`);Object.assign(m,{"Content-Type":`application/json`}),(y=r.args)!=null&&y.headers&&Object.assign(m,r.args.headers),Object.assign(p,{method:g,headers:m,body:m[`Content-Type`]===`application/json`?JSON.stringify(r.args.data):r.args.data})}else throw Error(`Invalid type: '${l}'`);return p}},{key:`prepareEndpoint`,value:function prepareEndpoint(r){var c=r.endpoint.split(`?`),l=c.shift(),u=this.getEndpointURL(r,l);if(c.length){var p=u.includes(`?`)?`&`:`?`;u+=p+c.pop()}return u}},{key:`fetch`,value:function fetch(r){var c,l=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window.fetch;r.cache=`miss`;var p=(c=r.args.options)==null?void 0:c.refresh,m=r.type===`get`&&!p,h=[`create`,`get`].includes(r.type)&&!p;if(m){var g=this.cache.getAsync(r);if(g)return g}var v=this.prepareHeaders(r);return new Promise(function(){var c=_asyncToGenerator(z.default.mark(function _callee2(c,p){var m,g,y,b;return z.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.prev=0,m=l.prepareEndpoint(r),g=u(m,v),x.next=1,g.then(function(){var r=_asyncToGenerator(z.default.mark(function _callee(r){return z.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(r.ok){c.next=3;break}if(!r.headers.get(`content-type`).includes(`application/json`)){c.next=2;break}return c.next=1,r.json();case 1:r=c.sent;case 2:throw r;case 3:return c.abrupt(`return`,r.json());case 4:case`end`:return c.stop()}},_callee)}));return function(c){return r.apply(this,arguments)}}());case 1:y=x.sent,h&&l.cache.set(r,y),c(y),x.next=3;break;case 2:x.prev=2,b=x.catch(0),p(b);case 3:case`end`:return x.stop()}},_callee2,null,[[0,2]])}));return function(r,l){return c.apply(this,arguments)}}())}},{key:`getCache`,value:function getCache(r,c){var l={query:arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}};return this.cache.get({endpoint:this.commandToEndpoint(c,l,this.commandFormats[c]),component:r,command:c,args:l})}},{key:`setCache`,value:function setCache(r,c,l,u){var p={query:l};this.cache.set({endpoint:this.commandToEndpoint(c,p,this.commandFormats[c]),component:r,command:c,args:p},u)}},{key:`updateCache`,value:function updateCache(r,c,l,u){var p={query:l,data:u};this.cache.update({endpoint:this.commandToEndpoint(c,p,this.commandFormats[c]),component:r,command:c,args:p})}},{key:`deleteCache`,value:function deleteCache(r,c){var l={query:arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}};this.cache.delete({endpoint:this.commandToEndpoint(c,l,this.commandFormats[c]),component:r,command:c,args:l})}},{key:`registerFormat`,value:function registerFormat(r,c){this.commandFormats[r]=c}},{key:`create`,value:function create(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.run(`create`,r,{query:l,options:u,data:c})}},{key:`delete`,value:function _delete(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.run(`delete`,r,{query:c,options:l})}},{key:`get`,value:function get(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.run(`get`,r,{query:c,options:l})}},{key:`update`,value:function update(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.run(`update`,r,{query:l,options:u,data:c})}},{key:`options`,value:function options(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.run(`options`,r,{query:c,options:l})}},{key:`register`,value:function register(r,c,l){_superPropGet$2(Data,`register`,this,3)([r,c,l]);var u=r.getNamespace()+`/`+c,p=$e.data.getCommandClass(u),m=p!=null&&p.getEndpointFormat?p.getEndpointFormat():!1;return m&&$e.data.registerFormat(u,m),this}},{key:`run`,value:function run(r,c,l){l.options.type=r;var u=this.commandExtractArgs(c,l);return c=u.command,l=u.args,_superPropGet$2(Data,`run`,this,3)([c,l])}},{key:`error`,value:function error(r){throw Error(`Data commands: `+r)}}])}(B);function _createForOfIteratorHelper(r,c){var l=typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(!l){if(Array.isArray(r)||(l=_unsupportedIterableToArray(r))||c&&r&&typeof r.length==`number`){l&&(r=l);var u=0,p=function F(){};return{s:p,n:function n(){return u>=r.length?{done:!0}:{done:!1,value:r[u++]}},e:function e(r){throw r},f:p}}throw TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m,h=!0,g=!1;return{s:function s(){l=l.call(r)},n:function n(){var r=l.next();return h=r.done,r},e:function e(r){g=!0,m=r},f:function f(){try{h||l.return==null||l.return()}finally{if(g)throw m}}}}function _unsupportedIterableToArray(r,c){if(r){if(typeof r==`string`)return _arrayLikeToArray(r,c);var l={}.toString.call(r).slice(8,-1);return l===`Object`&&r.constructor&&(l=r.constructor.name),l===`Map`||l===`Set`?Array.from(r):l===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?_arrayLikeToArray(r,c):void 0}}function _arrayLikeToArray(r,c){(c==null||c>r.length)&&(c=r.length);for(var l=0,u=Array(c);l<c;l++)u[l]=r[l];return u}var De=function(){function HashCommands(){_classCallCheck(this,HashCommands),_defineProperty(this,`dispatchersList`,{"e:run":{runner:function runner(){return $e.run},isSafe:function isSafe(r){var c;return(c=$e.commands.getCommandClass(r))==null?void 0:c.getInfo().isSafe},isSafeWithArgs:function isSafeWithArgs(r){var c;return(c=$e.commands.getCommandClass(r))==null?void 0:c.getInfo().isSafeWithArgs}},"e:route":{runner:function runner(){return $e.route},isSafe:function isSafe(){return!0},isSafeWithArgs:function isSafeWithArgs(){return!1}}}),_defineProperty(this,`commands`,[]),this.commands=this.get()}return _createClass(HashCommands,[{key:`get`,value:function get(){var r=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:location.hash,l=[];return c&&c.substr(1).split(`&`).forEach(function(c){var u=_slicedToArray(c.split(`?`),2),p=u[0],m=u[1],h=p.split(`:`);if(h.length===3){var g=h[0]+`:`+h[1];if(r.dispatchersList[g]){var v=h[2],y=r.parseCommandArgs(m);l.push({method:g,command:v,args:y})}}}),l}},{key:`run`,value:function(){var r=_asyncToGenerator(z.default.mark(function _callee(){var r,c,l,u,p,m,h,g,v,y=arguments,b,x;return z.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:r=y.length>0&&y[0]!==void 0?y[0]:this.commands,c=_createForOfIteratorHelper(r),S.prev=1,c.s();case 2:if((l=c.n()).done){S.next=5;break}if(u=l.value,p=this.dispatchersList[u.method],p){S.next=3;break}return S.abrupt(`return`,Promise.reject(Error(`No dispatcher found for the command: \`${u.command}\`.`)));case 3:if(p.isSafe(u.command)){S.next=4;break}return S.abrupt(`return`,Promise.reject(Error(`Attempting to run unsafe or non exist command: \`${u.command}\`.`)));case 4:S.next=2;break;case 5:S.next=7;break;case 6:S.prev=6,b=S.catch(1),c.e(b);case 7:return S.prev=7,c.f(),S.finish(7);case 8:m=_createForOfIteratorHelper(r),S.prev=9,m.s();case 10:if((h=m.n()).done){S.next=12;break}return g=h.value,v=this.dispatchersList[g.method],S.next=11,v.runner()(g.command,v.isSafeWithArgs(g.command)?g.args:void 0);case 11:S.next=10;break;case 12:S.next=14;break;case 13:S.prev=13,x=S.catch(9),m.e(x);case 14:return S.prev=14,m.f(),S.finish(14);case 15:case`end`:return S.stop()}},_callee,this,[[1,6,7,8],[9,13,14,15]])}));function run(){return r.apply(this,arguments)}return run}()},{key:`runOnce`,value:function runOnce(){var r=this;this.run(this.commands).then(function(){r.commands=[]})}},{key:`parseCommandArgs`,value:function parseCommandArgs(r){try{return JSON.parse(decodeURI(r||`{}`))}catch(r){return x.warn(`Hash commands JSON args cannot be parsed. `,r),{}}}}])}();function _callSuper$12(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$12()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$12,`_callSuper`);function _isNativeReflectConstruct$12(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$12=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$12,`_isNativeReflectConstruct`);var Oe=function(r){function HookBreak(){return _classCallCheck(this,HookBreak),_callSuper$12(this,HookBreak,[`HookBreak`])}return _inherits(HookBreak,r),_createClass(HookBreak)}(_wrapNativeSuper(Error));function _callSuper$11(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$11()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$11,`_callSuper`);function _isNativeReflectConstruct$11(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$11=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$11,`_isNativeReflectConstruct`);var U=function(r){function HooksBase(){var r;_classCallCheck(this,HooksBase);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper$11(this,HooksBase,[].concat(l)),r.current=``,r.usedIds=[],r.callbacks={after:{},catch:{}},r.depth={after:{},catch:{}},r.callbacksFlatList={},r}return _inherits(HooksBase,r),_createClass(HooksBase,[{key:`activate`,value:function activate(){Object.values(this.getAll(!0)).forEach(function(r){r.activate()})}},{key:`deactivate`,value:function deactivate(){Object.values(this.getAll(!0)).forEach(function(r){r.deactivate()})}},{key:`getType`,value:function getType(){k()}},{key:`get`,value:function get(r){return this.callbacksFlatList[r]}},{key:`getAll`,value:function getAll(){var r=this;if(arguments.length>0&&arguments[0]!==void 0&&arguments[0])return this.callbacksFlatList;var c={};return Object.keys(this.callbacks).forEach(function(l){c[l]||(c[l]=[]),Object.keys(r.callbacks[l]).forEach(function(u){c[l].push({command:u,callbacks:r.callbacks[l][u]})})}),c}},{key:`getCurrent`,value:function getCurrent(){return this.current}},{key:`getUsedIds`,value:function getUsedIds(){return this.usedIds}},{key:`getCallbacks`,value:function getCallbacks(r,c,l){var u=l.containers,p=u===void 0?[l.container]:u,m=p[0]?p[0].type:!1,h=[];return this.callbacks[r]&&this.callbacks[r][c]&&(m&&this.callbacks[r][c][m]&&(h=h.concat(this.callbacks[r][c][m])),this.callbacks[r][c].all&&(h=h.concat(this.callbacks[r][c].all))),h.length?h:!1}},{key:`checkEvent`,value:function checkEvent(r){if(Object.keys(this.callbacks).indexOf(r)===-1)throw Error(`${this.getType()}: '${r}' is not available.`)}},{key:`checkInstance`,value:function checkInstance(r){if(r.getType()!==this.getType())throw Error(`invalid instance, please use: 'elementor-api/modules/hook-base.js'. `)}},{key:`checkId`,value:function checkId(r){if(this.usedIds.indexOf(r)!==-1)throw Error(`id: '${r}' is already in use.`)}},{key:`shouldRun`,value:function shouldRun(r){return!!r&&r.length}},{key:`register`,value:function register(r,c){var l=c.getCommand(),u=c.getId(),p=c.getContainerType();return this.checkEvent(r),this.checkInstance(c),this.checkId(u),this.registerCallback(u,r,l,c,p)}},{key:`registerCallback`,value:function registerCallback(r,c,l,u,p){this.callbacks[c][l]||(this.callbacks[c][l]=[]),this.usedIds.push(r),this.callbacks[c][l]||(this.callbacks[c][l]={});var m={id:r,callback:u.run.bind(u),isActive:!0,activate:function activate(){this.isActive=!0},deactivate:function deactivate(){this.isActive=!1}};return p?(this.callbacks[c][l][p]||(this.callbacks[c][l][p]=[]),this.callbacks[c][l][p].push(m)):(this.callbacks[c][l].all||(this.callbacks[c][l].all=[]),this.callbacks[c][l].all.push(m)),this.callbacksFlatList[m.id]=m,m}},{key:`run`,value:function run(r,c,l){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:void 0,p=this.getCallbacks(r,c,l);return this.shouldRun(p)?(this.current=c,this.onRun(c,l,r),this.runCallbacks(r,c,p,l,u)):!1}},{key:`runCallbacks`,value:function runCallbacks(r,c,l,u,p){var m=[];for(var h in l){var g=l[h];if(g.isActive){if(this.depth[r][g.id]===void 0&&(this.depth[r][g.id]=0),this.depth[r][g.id]++,this.depth[r][g.id]===1){this.onCallback(c,u,r,g.id);try{var v=this.runCallback(r,g,u,p);if(!v)throw Error(`Callback failed, event: '${r}'`);m.push(v)}catch(r){if(r instanceof $e.modules.HookBreak)throw r;x.error(r)}}this.depth[r][g.id]--}}return m}},{key:`runCallback`,value:function runCallback(r,c,l,u){k()}},{key:`onRun`,value:function onRun(r,c,l){k()}},{key:`onCallback`,value:function onCallback(r,c,l,u){k()}}])}(O.default);function _callSuper$10(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$10()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$10,`_callSuper`);function _isNativeReflectConstruct$10(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$10=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$10,`_isNativeReflectConstruct`);function _superPropGet$1(r,c,l,u){var p=_get(_getPrototypeOf(1&u?r.prototype:r),c,l);return 2&u&&typeof p==`function`?function(r){return p.apply(l,r)}:p}__name(_superPropGet$1,`_superPropGet`);var ke=function(r){function Data(){var r;_classCallCheck(this,Data);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper$10(this,Data,[].concat(l)),r.callbacks.dependency={},r.depth.dependency={},r}return _inherits(Data,r),_createClass(Data,[{key:`getType`,value:function getType(){return`data`}},{key:`runCallback`,value:function runCallback(r,c,l,u){switch(r){case`dependency`:if(!c.callback(l))throw this.depth[r][c.id]--,new $e.modules.HookBreak;return!0;case`catch`:case`after`:return c.callback(l,u)||r===`after`}return!1}},{key:`shouldRun`,value:function shouldRun(r){return _superPropGet$1(Data,`shouldRun`,this,3)([r])&&elementor.documents.getCurrent().history.getActive()}},{key:`onRun`,value:function onRun(r,c,l){$e.devTools&&$e.devTools.log.callbacks().run(this.getType(),r,c,l)}},{key:`onCallback`,value:function onCallback(r,c,l,u){$e.devTools&&$e.devTools.log.callbacks().callback(this.getType(),r,c,l,u)}}])}(U);function _callSuper$9(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$9()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$9,`_callSuper`);function _isNativeReflectConstruct$9(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$9=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$9,`_isNativeReflectConstruct`);var Ae=function(r){function Ui(){var r;_classCallCheck(this,Ui);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper$9(this,Ui,[].concat(l)),r.callbacks.before={},r.depth.before={},r}return _inherits(Ui,r),_createClass(Ui,[{key:`getType`,value:function getType(){return`ui`}},{key:`runCallback`,value:function runCallback(r,c,l,u){switch(r){case`before`:c.callback(l);break;case`catch`:case`after`:c.callback(l,u);break;default:return!1}return!0}},{key:`onRun`,value:function onRun(r,c,l){$e.devTools&&$e.devTools.log.callbacks().run(this.getType(),r,c,l)}},{key:`onCallback`,value:function onCallback(r,c,l,u){$e.devTools&&$e.devTools.log.callbacks().callback(this.getType(),r,c,l,u)}}])}(U),je=function(){function Hooks(){_classCallCheck(this,Hooks),_defineProperty(this,`data`,new ke),_defineProperty(this,`ui`,new Ae)}return _createClass(Hooks,[{key:`activate`,value:function activate(){this.getTypes().forEach(function(r){r.activate()})}},{key:`deactivate`,value:function deactivate(){this.getTypes().forEach(function(r){r.deactivate()})}},{key:`getAll`,value:function getAll(){var r=arguments.length>0&&arguments[0]!==void 0&&arguments[0],c={};return this.getTypes().forEach(function(l){c[l.getType()]=l.getAll(r)}),c}},{key:`getTypes`,value:function getTypes(){return[this.data,this.ui]}},{key:`getType`,value:function getType(r){return this.getTypes().find(function(c){return r===c.getType()})}},{key:`register`,value:function register(r,c,l){return this.getType(r).register(c,l)}},{key:`run`,value:function run(r,c,l,u){var p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0;return this.getType(r).run(c,l,u,p)}},{key:`registerDataAfter`,value:function registerDataAfter(r){return this.register(`data`,`after`,r)}},{key:`registerDataCatch`,value:function registerDataCatch(r){return this.register(`data`,`catch`,r)}},{key:`registerDataDependency`,value:function registerDataDependency(r){return this.register(`data`,`dependency`,r)}},{key:`registerUIAfter`,value:function registerUIAfter(r){return this.register(`ui`,`after`,r)}},{key:`registerUICatch`,value:function registerUICatch(r){return this.register(`ui`,`catch`,r)}},{key:`registerUIBefore`,value:function registerUIBefore(r){return this.register(`ui`,`before`,r)}},{key:`runDataAfter`,value:function runDataAfter(r,c,l){return this.run(`data`,`after`,r,c,l)}},{key:`runDataCatch`,value:function runDataCatch(r,c,l){return this.run(`data`,`catch`,r,c,l)}},{key:`runDataDependency`,value:function runDataDependency(r,c){return this.run(`data`,`dependency`,r,c)}},{key:`runUIAfter`,value:function runUIAfter(r,c,l){return this.run(`ui`,`after`,r,c,l)}},{key:`runUICatch`,value:function runUICatch(r,c,l){return this.run(`ui`,`catch`,r,c,l)}},{key:`runUIBefore`,value:function runUIBefore(r,c){return this.run(`ui`,`before`,r,c)}}])}();function _callSuper$8(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$8()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$8,`_callSuper`);function _isNativeReflectConstruct$8(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$8=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$8,`_isNativeReflectConstruct`);function _superPropGet(r,c,l,u){var p=_get(_getPrototypeOf(1&u?r.prototype:r),c,l);return 2&u&&typeof p==`function`?function(r){return p.apply(l,r)}:p}var Me=function(r){function Routes(){var r;_classCallCheck(this,Routes);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper$8(this,Routes,[].concat(l)),r.savedStates={},r.historyPerComponent={},r}return _inherits(Routes,r),_createClass(Routes,[{key:`refreshContainer`,value:function refreshContainer(r){var c=this.getCurrent(r),l=this.getCurrentArgs(r);this.clearCurrent(r),this.to(c,l)}},{key:`getHistory`,value:function getHistory(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``;return r?this.historyPerComponent[r]||[]:this.historyPerComponent}},{key:`clearHistory`,value:function clearHistory(r){delete this.historyPerComponent[r]}},{key:`clearCurrent`,value:function clearCurrent(r){var c=this.current[r];c&&(this.detachCurrent(r),this.getComponent(c).onCloseRoute(c),this.dispatchOnClose(c))}},{key:`clear`,value:function clear(){var r=this;Object.keys(this.current).forEach(function(c){return r.clearCurrent(c)})}},{key:`saveState`,value:function saveState(r){return this.savedStates[r]={route:this.current[r],args:this.currentArgs[r]},this}},{key:`restoreState`,value:function restoreState(r){return this.savedStates[r]?(this.to(this.savedStates[r].route,this.savedStates[r].args),!0):!1}},{key:`validateRun`,value:function validateRun(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!_superPropGet(Routes,`validateRun`,this,3)([r,c])||this.is(r,c)&&!c.refresh)return!1;var l=this.getComponent(r);return(!l.isOpen||c.reOpen)&&(l.isOpen=l.open(c)),l.isOpen}},{key:`beforeRun`,value:function beforeRun(r,c){var l=this.getComponent(r).getServiceName(),u=this.current[l];u&&this.getComponent(u).onCloseRoute(u),B.trace.push(r),_superPropGet(Routes,`beforeRun`,this,3)([r,c,!1]),this.attachCurrent(l,r,c),u&&this.dispatchOnClose(u)}},{key:`to`,value:function to(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{history:!0};this.run(r,c);var u=this.getComponent(r).getServiceName();l.history&&(this.historyPerComponent[u]||(this.historyPerComponent[u]=[]),this.historyPerComponent[u].push({route:r,args:c}))}},{key:`back`,value:function back(r){var c=this.getHistory(r);c.pop();var l=c.pop();l&&this.to(l.route,l.args)}},{key:`runShortcut`,value:function runShortcut(r){this.to(r)}},{key:`afterRun`,value:function afterRun(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.getComponent(r).onRoute(r,c),this.dispatchOnOpen(r),_superPropGet(Routes,`afterRun`,this,3)([r,c,l,!1]),B.trace.pop()}},{key:`is`,value:function is(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!_superPropGet(Routes,`is`,this,3)([r]))return!1;var l=this.getComponent(r).getServiceName();return _.isEqual(c,this.currentArgs[l])}},{key:`isPartOf`,value:function isPartOf(r){var c=r.split(`/`)[0],l=[],u=this.current[c]?this.current[c].split(`/`):[],p=!1;return u.forEach(function(c){l.push(c),l.join(`/`)===r&&(p=!0)}),p}},{key:`error`,value:function error(r){throw Error(`Routes: `+r)}},{key:`dispatchOnOpen`,value:function dispatchOnOpen(r){window.dispatchEvent(new CustomEvent(`elementor/routes/open`,{detail:{route:r}}))}},{key:`dispatchOnClose`,value:function dispatchOnClose(r){window.dispatchEvent(new CustomEvent(`elementor/routes/close`,{detail:{route:r}}))}}])}(B),W=function matchUserAgent(r){return G.indexOf(r)>=0},G=navigator.userAgent,K=!!window.opr&&!!opr.addons||!!window.opera||W(` OPR/`),Ne=W(`Firefox`),Pe=/^((?!chrome|android).)*safari/i.test(G)||/constructor/i.test(window.HTMLElement)||function(r){return r.toString()===`[object SafariRemoteNotification]`}(!window.safari||typeof safari<`u`&&safari.pushNotification),q=/Trident|MSIE/.test(G)&&!!document.documentMode,J=!q&&!!window.StyleMedia||W(`Edg`),Fe=!!window.chrome&&W(`Chrome`)&&!(J||K),Y=W(`Chrome`)&&!!window.CSS,Ie={appleWebkit:W(`AppleWebKit`)&&!Y,blink:Y,chrome:Fe,edge:J,firefox:Ne,ie:q,mac:W(`Macintosh`),opera:K,safari:Pe,webkit:W(`AppleWebKit`)},Le=function(){function Shortcuts(r){_classCallCheck(this,Shortcuts),this.specialKeys={13:`enter`,27:`esc`,38:`up`,40:`down`,46:`del`,191:`?`},this.component=``,this.handlers={},this.bindListener(r)}return _createClass(Shortcuts,[{key:`bindListener`,value:function bindListener(r){var c=this;r.on(`keydown`,function(r){return c.handle(r)})}},{key:`getAll`,value:function getAll(){var r={};return jQuery.each(this.handlers,function(c,l){jQuery.each(l,function(l,u){r[u.command]=c})}),r}},{key:`register`,value:function register(r,c){var l=this;r.replace(` `,``).split(`,`).forEach(function(r){l.handlers[r]||(l.handlers[r]=[]),l.handlers[r].push(c)})}},{key:`unregister`,value:function unregister(r,c){var l=this;r.replace(` `,``).split(`,`).forEach(function(r){l.handlers[r].forEach(function(u,p){c===p&&delete l.handlers[r][u]})})}},{key:`handle`,value:function handle(r){var c=this.getHandlersByPriority(r);if(c){var l=c.filter(function(c){if(c.exclude&&c.exclude.indexOf(`input`)!==-1){var l=jQuery(r.target);if(l.is(`:input, .elementor-input`)||l.closest(`[contenteditable="true"]`).length)return!1}return!(c.dependency&&!c.dependency(r)||!c.allowAltKey&&r.altKey)});l.length&&(1<l.length&&elementorWebCliConfig.isDebug&&x.warn(`Multiple handlers for shortcut.`,l,r),r.preventDefault(),l[0].callback(r))}}},{key:`isControlEvent`,value:function isControlEvent(r){return r[Ie.mac?`metaKey`:`ctrlKey`]}},{key:`getEventShortcut`,value:function getEventShortcut(r){var c=[];return r.altKey&&c.push(`alt`),this.isControlEvent(r)&&c.push(`ctrl`),r.shiftKey&&c.push(`shift`),this.specialKeys[r.which]?c.push(this.specialKeys[r.which]):c.push(String.fromCharCode(r.which).toLowerCase()),c.join(`+`)}},{key:`isActiveScope`,value:function isActiveScope(r){var c=Object.keys($e.components.activeComponents),l=c[c.length-1],u=$e.components.get(l);if(!u)return!1;var p=u.getNamespace();if(r.some(function(r){return p===r}))return!0;var m=u.getServiceName();return r.some(function(r){return m===r})}},{key:`getHandlersByPriority`,value:function getHandlersByPriority(r){var c=this,l=this.handlers[this.getEventShortcut(r)];if(!l)return!1;var u=l.filter(function(r){return r.scopes&&c.isActiveScope(r.scopes)});if(u.length)return u;var p=l.filter(function(r){return!r.scopes});if(p.length)return p}}])}();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var Re=function(){function Store(){_classCallCheck(this,Store),_defineProperty(this,`slices`,{}),_defineProperty(this,`reduxStore`,void 0),this.slices={},this.reduxStore=this.createStore()}return _createClass(Store,[{key:`createStore`,value:function createStore(){return(0,r.configureStore)({reducer:function reducer(){}})}},{key:`injectReducer`,value:function injectReducer(c,l){var u=this.getReducers();this.reduxStore.replaceReducer((0,r.combineReducers)(_objectSpread(_objectSpread({},u),{},_defineProperty({},c,l))))}},{key:`register`,value:function register(r,c){if(this.slices[r])throw`Slice with ID '${r}' already exists.`;this.slices[r]=c,this.injectReducer(r,c.reducer)}},{key:`get`,value:function get(r){return this.slices[r]}},{key:`getAllSlices`,value:function getAllSlices(){return this.slices}},{key:`getAll`,value:function getAll(){return Object.keys(this.slices).sort()}},{key:`getReducers`,value:function getReducers(){return Object.entries(this.slices).reduce(function(r,c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return _objectSpread(_objectSpread({},r),{},_defineProperty({},u,p.reducer))},{})}},{key:`getReduxStore`,value:function getReduxStore(){return this.reduxStore}},{key:`dispatch`,value:function dispatch(){var r;return(r=this.reduxStore).dispatch.apply(r,arguments)}},{key:`getState`,value:function getState(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,c=this.reduxStore.getState();return r?c[r]:c}},{key:`replaceReducer`,value:function replaceReducer(){var r;return(r=this.reduxStore).replaceReducer.apply(r,arguments)}},{key:`subscribe`,value:function subscribe(){var r;return(r=this.reduxStore).subscribe.apply(r,arguments)}}])}(),ze=function(){function UiStates(){_classCallCheck(this,UiStates),this.states={}}return _createClass(UiStates,[{key:`register`,value:function register(r){var c=r.getPrefixedId();if(this.states[c])throw`State '${c}' already exists.`;this.states[c]=r}},{key:`getAll`,value:function getAll(){var r={};return Object.entries(this.states).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1].getOptions();r[u]=Object.keys(p)}),r}},{key:`get`,value:function get(r){return r?this.states[r]:this.states}},{key:`set`,value:function set(r,c){if(!this.get(r))throw`State '${r}' doesn't exist.`;var l=this.getCurrent(r),u=`e-ui-state--${r.replaceAll(`/`,`-`)}`,p=`${u}__${l}`,m=`${u}__${c}`,h=this.get(r).getScopes();this.get(r).set(c),h.forEach(function(u){u.classList.remove(p),c&&u.classList.add(m);var h=new CustomEvent(`e-ui-state:${r}`,{detail:{oldValue:l,newValue:c}});u.dispatchEvent(h)})}},{key:`remove`,value:function remove(r){this.set(r,``)}},{key:`getCurrent`,value:function getCurrent(r){var c;return(c=this.get(r))==null?void 0:c.getCurrent()}}])}(),X=function(){function HookBase(){_classCallCheck(this,HookBase),_defineProperty(this,`type`,void 0),_defineProperty(this,`command`,void 0),_defineProperty(this,`id`,void 0),this.initialize(),this.type=this.getType(),this.command=this.getCommand(),this.id=this.getId()}return _createClass(HookBase,[{key:`initialize`,value:function initialize(){}},{key:`register`,value:function register(){k()}},{key:`getType`,value:function getType(){k()}},{key:`getCommand`,value:function getCommand(){k()}},{key:`getId`,value:function getId(){k()}},{key:`getContainerType`,value:function getContainerType(){}},{key:`getConditions`,value:function getConditions(){return arguments.length>0&&arguments[0]!==void 0&&arguments[0],arguments.length>1&&arguments[1],!0}},{key:`apply`,value:function apply(r){k()}},{key:`run`,value:function run(){var r=(arguments.length<=0?void 0:arguments[0]).options,c=r===void 0?{}:r;return c.callbacks&&!1===c.callbacks[this.id]?!0:this.getConditions.apply(this,arguments)?($e.devTools&&$e.devTools.log.callbacks().active(this.type,this.command,this.id),this.apply.apply(this,arguments)):!0}}])}();function _callSuper$7(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$7()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$7,`_callSuper`);function _isNativeReflectConstruct$7(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$7=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$7,`_isNativeReflectConstruct`);var Z=function(r){function Base(){return _classCallCheck(this,Base),_callSuper$7(this,Base,arguments)}return _inherits(Base,r),_createClass(Base,[{key:`getType`,value:function getType(){return`data`}}])}(X);function _callSuper$6(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$6()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$6,`_callSuper`);function _isNativeReflectConstruct$6(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$6=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$6,`_isNativeReflectConstruct`);var Q=function(r){function After(){return _classCallCheck(this,After),_callSuper$6(this,After,arguments)}return _inherits(After,r),_createClass(After,[{key:`register`,value:function register(){$e.hooks.registerDataAfter(this)}}])}(Z);function _callSuper$5(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$5()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$5,`_callSuper`);function _isNativeReflectConstruct$5(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$5=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$5,`_isNativeReflectConstruct`);var Be=function(r){function Catch(){return _classCallCheck(this,Catch),_callSuper$5(this,Catch,arguments)}return _inherits(Catch,r),_createClass(Catch,[{key:`register`,value:function register(){$e.hooks.registerDataCatch(this)}}])}(Z);function _callSuper$4(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$4()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$4,`_callSuper`);function _isNativeReflectConstruct$4(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$4=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$4,`_isNativeReflectConstruct`);var Ve=function(r){function Dependency(){return _classCallCheck(this,Dependency),_callSuper$4(this,Dependency,arguments)}return _inherits(Dependency,r),_createClass(Dependency,[{key:`register`,value:function register(){$e.hooks.registerDataDependency(this)}}])}(Z),He=__exportAll({After:()=>Q,Base:()=>Z,Catch:()=>Be,Dependency:()=>Ve});function _callSuper$3(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$3()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$3,`_callSuper`);function _isNativeReflectConstruct$3(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$3=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$3,`_isNativeReflectConstruct`);var $=function(r){function Base(){return _classCallCheck(this,Base),_callSuper$3(this,Base,arguments)}return _inherits(Base,r),_createClass(Base,[{key:`getType`,value:function getType(){return`ui`}}])}(X);function _callSuper$2(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$2()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$2,`_callSuper`);function _isNativeReflectConstruct$2(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$2=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$2,`_isNativeReflectConstruct`);var Ue=function(r){function After(){return _classCallCheck(this,After),_callSuper$2(this,After,arguments)}return _inherits(After,r),_createClass(After,[{key:`register`,value:function register(){$e.hooks.registerUIAfter(this)}}])}($);function _callSuper$1(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$1()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$1,`_callSuper`);function _isNativeReflectConstruct$1(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$1=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$1,`_isNativeReflectConstruct`);var We=function(r){function Before(){return _classCallCheck(this,Before),_callSuper$1(this,Before,arguments)}return _inherits(Before,r),_createClass(Before,[{key:`register`,value:function register(){$e.hooks.registerUIBefore(this)}}])}($);function _callSuper(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!r})()}var Ge=function(r){function Catch(){return _classCallCheck(this,Catch),_callSuper(this,Catch,arguments)}return _inherits(Catch,r),_createClass(Catch,[{key:`register`,value:function register(){$e.hooks.registerUICatch(this)}}])}($),Ke=__exportAll({After:()=>Ue,Base:()=>$,Before:()=>We,Catch:()=>Ge});window.$e=new(function(){function API(){_classCallCheck(this,API),this.components=new ve,this.commands=new B,this.commandsInternal=new V,this.hooks=new je,this.routes=new Me,this.shortcuts=new Le(jQuery(window)),this.data=new Ee,this.store=new Re,this.uiStates=new ze,this.modules={CommandBase:D,CommandInternalBase:re,CommandData:oe,ComponentBase:A,ComponentModalBase:_e,HookBreak:Oe,hookData:He,hookUI:Ke},this.extras={hashCommands:new De},this.bc=new ne}return _createClass(API,[{key:`run`,value:function run(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $e.commands.run(r,c)}},{key:`internal`,value:function internal(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $e.commandsInternal.run(r,c)}},{key:`route`,value:function route(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{history:!0};return $e.routes.to(r,c,l)}}])}())})(elementorVendors.reduxToolkit);