PluginProbe
Elementor Website Builder – more than just a page builder / trunk
Elementor Website Builder – more than just a page builder vtrunk
4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 All 456 releases
← All changes | assets/js/packages/editor-props/editor-props.min.js +3 -1 4.1.0 → trunk View file →
@@ -1 +1,3 @@
1 -!function(){"use strict";var e={5140:function(e,t,r){var n=r(6677),i=n.ValidatorResult,a=n.SchemaError,o={ignoreProperties:{id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0}},s=o.validators={};function u(e,t,r,n,i){var a=t.throwError,o=t.throwAll;t.throwError=!1,t.throwAll=!1;var s=this.validateSchema(e,i,t,r);return t.throwError=a,t.throwAll=o,!s.valid&&n instanceof Function&&n(s),s.valid}function c(e,t){if(Object.hasOwnProperty.call(e,t))return e[t];if(t in e)for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,t))return e[t]}function l(e,t,r,n,i,a){if(this.types.object(e)&&(!t.properties||void 0===t.properties[i]))if(!1===t.additionalProperties)a.addError({name:"additionalProperties",argument:i,message:"is not allowed to have the additional property "+JSON.stringify(i)});else{var o=t.additionalProperties||{};"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,i,o,r,n);var s=this.validateSchema(e[i],o,r,n.makeChild(o,i));s.instance!==a.instance[i]&&(a.instance[i]=s.instance),a.importErrors(s)}}s.type=function(e,t,r,n){if(void 0===e)return null;var a=new i(e,t,r,n),o=Array.isArray(t.type)?t.type:[t.type];if(!o.some(this.testType.bind(this,e,t,r,n))){var s=o.map(function(e){if(e){var t=e.$id||e.id;return t?"<"+t+">":e+""}});a.addError({name:"type",argument:s,message:"is not of a type(s) "+s})}return a},s.anyOf=function(e,t,r,n){if(void 0===e)return null;var o=new i(e,t,r,n),s=new i(e,t,r,n);if(!Array.isArray(t.anyOf))throw new a("anyOf must be an array");if(!t.anyOf.some(u.bind(this,e,r,n,function(e){s.importErrors(e)}))){var c=t.anyOf.map(function(e,t){var r=e.$id||e.id;return r?"<"+r+">":e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+t+"]"});r.nestedErrors&&o.importErrors(s),o.addError({name:"anyOf",argument:c,message:"is not any of "+c.join(",")})}return o},s.allOf=function(e,t,r,n){if(void 0===e)return null;if(!Array.isArray(t.allOf))throw new a("allOf must be an array");var o=new i(e,t,r,n),s=this;return t.allOf.forEach(function(t,i){var a=s.validateSchema(e,t,r,n);if(!a.valid){var u=t.$id||t.id||t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+i+"]";o.addError({name:"allOf",argument:{id:u,length:a.errors.length,valid:a},message:"does not match allOf schema "+u+" with "+a.errors.length+" error[s]:"}),o.importErrors(a)}}),o},s.oneOf=function(e,t,r,n){if(void 0===e)return null;if(!Array.isArray(t.oneOf))throw new a("oneOf must be an array");var o=new i(e,t,r,n),s=new i(e,t,r,n),c=t.oneOf.filter(u.bind(this,e,r,n,function(e){s.importErrors(e)})).length,l=t.oneOf.map(function(e,t){return e.$id||e.id||e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+t+"]"});return 1!==c&&(r.nestedErrors&&o.importErrors(s),o.addError({name:"oneOf",argument:l,message:"is not exactly one from "+l.join(",")})),o},s.if=function(e,t,r,a){if(void 0===e)return null;if(!n.isSchema(t.if))throw new Error('Expected "if" keyword to be a schema');var o,s=u.call(this,e,r,a,null,t.if),c=new i(e,t,r,a);if(s){if(void 0===t.then)return;if(!n.isSchema(t.then))throw new Error('Expected "then" keyword to be a schema');o=this.validateSchema(e,t.then,r,a.makeChild(t.then)),c.importErrors(o)}else{if(void 0===t.else)return;if(!n.isSchema(t.else))throw new Error('Expected "else" keyword to be a schema');o=this.validateSchema(e,t.else,r,a.makeChild(t.else)),c.importErrors(o)}return c},s.propertyNames=function(e,t,r,o){if(this.types.object(e)){var s=new i(e,t,r,o),u=void 0!==t.propertyNames?t.propertyNames:{};if(!n.isSchema(u))throw new a('Expected "propertyNames" to be a schema (object or boolean)');for(var l in e)if(void 0!==c(e,l)){var f=this.validateSchema(l,u,r,o.makeChild(u));s.importErrors(f)}return s}},s.properties=function(e,t,r,n){if(this.types.object(e)){var o=new i(e,t,r,n),s=t.properties||{};for(var u in s){var l=s[u];if(void 0!==l){if(null===l)throw new a('Unexpected null, expected schema in "properties"');"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,u,l,r,n);var f=c(e,u),p=this.validateSchema(f,l,r,n.makeChild(l,u));p.instance!==o.instance[u]&&(o.instance[u]=p.instance),o.importErrors(p)}}return o}},s.patternProperties=function(e,t,r,n){if(this.types.object(e)){var o=new i(e,t,r,n),s=t.patternProperties||{};for(var u in e){var c=!0;for(var f in s){var p=s[f];if(void 0!==p){if(null===p)throw new a('Unexpected null, expected schema in "patternProperties"');try{var m=new RegExp(f,"u")}catch(e){m=new RegExp(f)}if(m.test(u)){c=!1,"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,u,p,r,n);var d=this.validateSchema(e[u],p,r,n.makeChild(p,u));d.instance!==o.instance[u]&&(o.instance[u]=d.instance),o.importErrors(d)}}}c&&l.call(this,e,t,r,n,u,o)}return o}},s.additionalProperties=function(e,t,r,n){if(this.types.object(e)){if(t.patternProperties)return null;var a=new i(e,t,r,n);for(var o in e)l.call(this,e,t,r,n,o,a);return a}},s.minProperties=function(e,t,r,n){if(this.types.object(e)){var a=new i(e,t,r,n);return Object.keys(e).length>=t.minProperties||a.addError({name:"minProperties",argument:t.minProperties,message:"does not meet minimum property length of "+t.minProperties}),a}},s.maxProperties=function(e,t,r,n){if(this.types.object(e)){var a=new i(e,t,r,n);return Object.keys(e).length<=t.maxProperties||a.addError({name:"maxProperties",argument:t.maxProperties,message:"does not meet maximum property length of "+t.maxProperties}),a}},s.items=function(e,t,r,n){var a=this;if(this.types.array(e)&&void 0!==t.items){var o=new i(e,t,r,n);return e.every(function(e,i){if(Array.isArray(t.items))var s=void 0===t.items[i]?t.additionalItems:t.items[i];else s=t.items;if(void 0===s)return!0;if(!1===s)return o.addError({name:"items",message:"additionalItems not permitted"}),!1;var u=a.validateSchema(e,s,r,n.makeChild(s,i));return u.instance!==o.instance[i]&&(o.instance[i]=u.instance),o.importErrors(u),!0}),o}},s.contains=function(e,t,r,a){var o=this;if(this.types.array(e)&&void 0!==t.contains){if(!n.isSchema(t.contains))throw new Error('Expected "contains" keyword to be a schema');var s=new i(e,t,r,a);return!1===e.some(function(e,n){return 0===o.validateSchema(e,t.contains,r,a.makeChild(t.contains,n)).errors.length})&&s.addError({name:"contains",argument:t.contains,message:"must contain an item matching given schema"}),s}},s.minimum=function(e,t,r,n){if(this.types.number(e)){var a=new i(e,t,r,n);return t.exclusiveMinimum&&!0===t.exclusiveMinimum?e>t.minimum||a.addError({name:"minimum",argument:t.minimum,message:"must be greater than "+t.minimum}):e>=t.minimum||a.addError({name:"minimum",argument:t.minimum,message:"must be greater than or equal to "+t.minimum}),a}},s.maximum=function(e,t,r,n){if(this.types.number(e)){var a=new i(e,t,r,n);return t.exclusiveMaximum&&!0===t.exclusiveMaximum?e<t.maximum||a.addError({name:"maximum",argument:t.maximum,message:"must be less than "+t.maximum}):e<=t.maximum||a.addError({name:"maximum",argument:t.maximum,message:"must be less than or equal to "+t.maximum}),a}},s.exclusiveMinimum=function(e,t,r,n){if("boolean"!=typeof t.exclusiveMinimum&&this.types.number(e)){var a=new i(e,t,r,n);return e>t.exclusiveMinimum||a.addError({name:"exclusiveMinimum",argument:t.exclusiveMinimum,message:"must be strictly greater than "+t.exclusiveMinimum}),a}},s.exclusiveMaximum=function(e,t,r,n){if("boolean"!=typeof t.exclusiveMaximum&&this.types.number(e)){var a=new i(e,t,r,n);return e<t.exclusiveMaximum||a.addError({name:"exclusiveMaximum",argument:t.exclusiveMaximum,message:"must be strictly less than "+t.exclusiveMaximum}),a}};var f=function(e,t,r,o,s,u){if(this.types.number(e)){var c=t[s];if(0==c)throw new a(s+" cannot be zero");var l=new i(e,t,r,o),f=n.getDecimalPlaces(e),p=n.getDecimalPlaces(c),m=Math.max(f,p),d=Math.pow(10,m);return Math.round(e*d)%Math.round(c*d)!==0&&l.addError({name:s,argument:c,message:u+JSON.stringify(c)}),l}};function p(e,t,r){var i,a=r.length;for(i=t+1;i<a;i++)if(n.deepCompareStrict(e,r[i]))return!1;return!0}s.multipleOf=function(e,t,r,n){return f.call(this,e,t,r,n,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(e,t,r,n){return f.call(this,e,t,r,n,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(e,t,r,n){var a=new i(e,t,r,n);return void 0===e&&!0===t.required?a.addError({name:"required",message:"is required"}):this.types.object(e)&&Array.isArray(t.required)&&t.required.forEach(function(t){void 0===c(e,t)&&a.addError({name:"required",argument:t,message:"requires property "+JSON.stringify(t)})}),a},s.pattern=function(e,t,r,n){if(this.types.string(e)){var a=new i(e,t,r,n),o=t.pattern;try{var s=new RegExp(o,"u")}catch(e){s=new RegExp(o)}return e.match(s)||a.addError({name:"pattern",argument:t.pattern,message:"does not match pattern "+JSON.stringify(t.pattern.toString())}),a}},s.format=function(e,t,r,a){if(void 0!==e){var o=new i(e,t,r,a);return o.disableFormat||n.isFormat(e,t.format,this)||o.addError({name:"format",argument:t.format,message:"does not conform to the "+JSON.stringify(t.format)+" format"}),o}},s.minLength=function(e,t,r,n){if(this.types.string(e)){var a=new i(e,t,r,n),o=e.match(/[\uDC00-\uDFFF]/g);return e.length-(o?o.length:0)>=t.minLength||a.addError({name:"minLength",argument:t.minLength,message:"does not meet minimum length of "+t.minLength}),a}},s.maxLength=function(e,t,r,n){if(this.types.string(e)){var a=new i(e,t,r,n),o=e.match(/[\uDC00-\uDFFF]/g);return e.length-(o?o.length:0)<=t.maxLength||a.addError({name:"maxLength",argument:t.maxLength,message:"does not meet maximum length of "+t.maxLength}),a}},s.minItems=function(e,t,r,n){if(this.types.array(e)){var a=new i(e,t,r,n);return e.length>=t.minItems||a.addError({name:"minItems",argument:t.minItems,message:"does not meet minimum length of "+t.minItems}),a}},s.maxItems=function(e,t,r,n){if(this.types.array(e)){var a=new i(e,t,r,n);return e.length<=t.maxItems||a.addError({name:"maxItems",argument:t.maxItems,message:"does not meet maximum length of "+t.maxItems}),a}},s.uniqueItems=function(e,t,r,n){if(!0===t.uniqueItems&&this.types.array(e)){var a=new i(e,t,r,n);return e.every(p)||a.addError({name:"uniqueItems",message:"contains duplicate item"}),a}},s.dependencies=function(e,t,r,n){if(this.types.object(e)){var a=new i(e,t,r,n);for(var o in t.dependencies)if(void 0!==e[o]){var s=t.dependencies[o],u=n.makeChild(s,o);if("string"==typeof s&&(s=[s]),Array.isArray(s))s.forEach(function(t){void 0===e[t]&&a.addError({name:"dependencies",argument:u.propertyPath,message:"property "+t+" not found, required by "+u.propertyPath})});else{var c=this.validateSchema(e,s,r,u);a.instance!==c.instance&&(a.instance=c.instance),c&&c.errors.length&&(a.addError({name:"dependencies",argument:u.propertyPath,message:"does not meet dependency required by "+u.propertyPath}),a.importErrors(c))}}return a}},s.enum=function(e,t,r,o){if(void 0===e)return null;if(!Array.isArray(t.enum))throw new a("enum expects an array",t);var s=new i(e,t,r,o);return t.enum.some(n.deepCompareStrict.bind(null,e))||s.addError({name:"enum",argument:t.enum,message:"is not one of enum values: "+t.enum.map(String).join(",")}),s},s.const=function(e,t,r,a){if(void 0===e)return null;var o=new i(e,t,r,a);return n.deepCompareStrict(t.const,e)||o.addError({name:"const",argument:t.const,message:"does not exactly match expected constant: "+t.const}),o},s.not=s.disallow=function(e,t,r,n){var a=this;if(void 0===e)return null;var o=new i(e,t,r,n),s=t.not||t.disallow;return s?(Array.isArray(s)||(s=[s]),s.forEach(function(i){if(a.testType(e,t,r,n,i)){var s=i&&(i.$id||i.id)||i;o.addError({name:"not",argument:s,message:"is of prohibited type "+s})}}),o):null},e.exports=o},5304:function(e,t,r){var n=r(6482);r(6677).ValidatorResult,r(6677).ValidatorResultError,r(6677).ValidationError,r(6677).SchemaError,r(9911),r(9911).S,e.exports.t=function(e,t,r){return(new n).validate(e,t,r)}},6482:function(e,t,r){var n=r(5140),i=r(6677),a=r(9911).S,o=i.ValidatorResult,s=i.ValidatorResultError,u=i.SchemaError,c=i.SchemaContext,l=function e(){this.customFormats=Object.create(e.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(p),this.attributes=Object.create(n.validators)};function f(e){var t="string"==typeof e?e:e.$ref;return"string"==typeof t&&t}l.prototype.customFormats={},l.prototype.schemas=null,l.prototype.types=null,l.prototype.attributes=null,l.prototype.unresolvedRefs=null,l.prototype.addSchema=function(e,t){var r=this;if(!e)return null;var n=a(t||"/",e),i=t||e.$id||e.id;for(var o in n.id)this.schemas[o]=n.id[o];for(var o in n.ref)this.unresolvedRefs.push(o);return this.unresolvedRefs=this.unresolvedRefs.filter(function(e){return void 0===r.schemas[e]}),this.schemas[i]},l.prototype.addSubSchemaArray=function(e,t){if(Array.isArray(t))for(var r=0;r<t.length;r++)this.addSubSchema(e,t[r])},l.prototype.addSubSchemaObject=function(e,t){if(t&&"object"==typeof t)for(var r in t)this.addSubSchema(e,t[r])},l.prototype.setSchemas=function(e){this.schemas=e},l.prototype.getSchema=function(e){return this.schemas[e]},l.prototype.validate=function(e,t,r,n){if("boolean"!=typeof t&&"object"!=typeof t||null===t)throw new u("Expected `schema` to be an object or boolean");r||(r={});var l=t.$id||t.id;let f=i.resolveUrl(r.base,l||"");if(!n){(n=new c(t,r,[],f,Object.create(this.schemas))).schemas[f]||(n.schemas[f]=t);var p=a(f,t);for(var m in p.id){var d=p.id[m];n.schemas[m]=d}}var h;if(r.required&&void 0===e)return(h=new o(e,t,r,n)).addError("is required, but is undefined"),h;if(!(h=this.validateSchema(e,t,r,n)))throw new Error("Result undefined");if(r.throwAll&&h.errors.length)throw new s(h);return h},l.prototype.validateSchema=function(e,t,r,a){var s=new o(e,t,r,a);if("boolean"==typeof t)!0===t?t={}:!1===t&&(t={type:[]});else if(!t)throw new Error("schema is undefined");if(t.extends)if(Array.isArray(t.extends)){var l={schema:t,ctx:a};t.extends.forEach(this.schemaTraverser.bind(this,l)),t=l.schema,l.schema=null,l.ctx=null,l=null}else t=i.deepMerge(t,this.superResolve(t.extends,a));var p=f(t);if(p){var m=this.resolve(t,p,a),d=new c(m.subschema,r,a.path,m.switchSchema,a.schemas);return this.validateSchema(e,m.subschema,r,d)}var h=r&&r.skipAttributes||[];for(var y in t)if(!n.ignoreProperties[y]&&h.indexOf(y)<0){var v=null,g=this.attributes[y];if(g)v=g.call(this,e,t,r,a);else if(!1===r.allowUnknownAttributes)throw new u("Unsupported attribute: "+y,t);v&&s.importErrors(v)}if("function"==typeof r.rewrite){var b=r.rewrite.call(this,e,t,r,a);s.instance=b}return s},l.prototype.schemaTraverser=function(e,t){e.schema=i.deepMerge(e.schema,this.superResolve(t,e.ctx))},l.prototype.superResolve=function(e,t){var r=f(e);return r?this.resolve(e,r,t).subschema:e},l.prototype.resolve=function(e,t,r){if(t=r.resolve(t),r.schemas[t])return{subschema:r.schemas[t],switchSchema:t};let n=new URL(t,"thismessage::/").hash;var a=n&&n.length&&t.substr(0,t.length-n.length);if(!a||!r.schemas[a])throw new u("no such schema <"+t+">",e);var o=i.objectGetPath(r.schemas[a],n.substr(1));if(void 0===o)throw new u("no such schema "+n+" located in <"+a+">",e);return{subschema:o,switchSchema:t}},l.prototype.testType=function(e,t,r,n,i){if(void 0!==i){if(null===i)throw new u('Unexpected null in "type" keyword');if("function"==typeof this.types[i])return this.types[i].call(this,e);if(i&&"object"==typeof i){var a=this.validateSchema(e,i,r,n);return void 0===a||!(a&&a.errors.length)}return!0}};var p=l.prototype.types={};p.string=function(e){return"string"==typeof e},p.number=function(e){return"number"==typeof e&&isFinite(e)},p.integer=function(e){return"number"==typeof e&&e%1==0},p.boolean=function(e){return"boolean"==typeof e},p.array=function(e){return Array.isArray(e)},p.null=function(e){return null===e},p.date=function(e){return e instanceof Date},p.any=function(e){return!0},p.object=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&!(e instanceof Date)},e.exports=l},6677:function(e,t){var r=t.ValidationError=function(e,t,r,n,i,a){if(Array.isArray(n)?(this.path=n,this.property=n.reduce(function(e,t){return e+c(t)},"instance")):void 0!==n&&(this.property=n),e&&(this.message=e),r){var o=r.$id||r.id;this.schema=o||r}void 0!==t&&(this.instance=t),this.name=i,this.argument=a,this.stack=this.toString()};r.prototype.toString=function(){return this.property+" "+this.message};var n=t.ValidatorResult=function(e,t,r,n){this.instance=e,this.schema=t,this.options=r,this.path=n.path,this.propertyPath=n.propertyPath,this.errors=[],this.throwError=r&&r.throwError,this.throwFirst=r&&r.throwFirst,this.throwAll=r&&r.throwAll,this.disableFormat=r&&!0===r.disableFormat};function i(e,t){return t+": "+e.toString()+"\n"}function a(e){"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,a),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}n.prototype.addError=function(e){var t;if("string"==typeof e)t=new r(e,this.instance,this.schema,this.path);else{if(!e)throw new Error("Missing error detail");if(!e.message)throw new Error("Missing error message");if(!e.name)throw new Error("Missing validator type");t=new r(e.message,this.instance,this.schema,this.path,e.name,e.argument)}if(this.errors.push(t),this.throwFirst)throw new a(this);if(this.throwError)throw t;return t},n.prototype.importErrors=function(e){"string"==typeof e||e&&e.validatorType?this.addError(e):e&&e.errors&&(this.errors=this.errors.concat(e.errors))},n.prototype.toString=function(e){return this.errors.map(i).join("")},Object.defineProperty(n.prototype,"valid",{get:function(){return!this.errors.length}}),e.exports.ValidatorResultError=a,a.prototype=new Error,a.prototype.constructor=a,a.prototype.name="Validation Error";var o=t.SchemaError=function e(t,r){this.message=t,this.schema=r,Error.call(this,t),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)};o.prototype=Object.create(Error.prototype,{constructor:{value:o,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var s=t.SchemaContext=function(e,t,r,n,i){this.schema=e,this.options=t,Array.isArray(r)?(this.path=r,this.propertyPath=r.reduce(function(e,t){return e+c(t)},"instance")):this.propertyPath=r,this.base=n,this.schemas=i};s.prototype.resolve=function(e){return(()=>h(this.base,e))()},s.prototype.makeChild=function(e,t){var r=void 0===t?this.path:this.path.concat([t]),n=e.$id||e.id;let i=(()=>h(this.base,n||""))();var a=new s(e,this.options,r,i,Object.create(this.schemas));return n&&!a.schemas[i]&&(a.schemas[i]=e),a};var u=t.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/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z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(e){return"string"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};u.regexp=u.regex,u.pattern=u.regex,u.ipv4=u["ip-address"],t.isFormat=function(e,t,r){if("string"==typeof e&&void 0!==u[t]){if(u[t]instanceof RegExp)return u[t].test(e);if("function"==typeof u[t])return u[t](e)}else if(r&&r.customFormats&&"function"==typeof r.customFormats[t])return r.customFormats[t](e);return!0};var c=t.makeSuffix=function(e){return(e=e.toString()).match(/[.\s\[\]]/)||e.match(/^[\d]/)?e.match(/^\d+$/)?"["+e+"]":"["+JSON.stringify(e)+"]":"."+e};function l(e,t,r,n){"object"==typeof r?t[n]=m(e[n],r):-1===e.indexOf(r)&&t.push(r)}function f(e,t,r){t[r]=e[r]}function p(e,t,r,n){"object"==typeof t[n]&&t[n]&&e[n]?r[n]=m(e[n],t[n]):r[n]=t[n]}function m(e,t){var r=Array.isArray(t),n=r&&[]||{};return r?(e=e||[],n=n.concat(e),t.forEach(l.bind(null,e,n))):(e&&"object"==typeof e&&Object.keys(e).forEach(f.bind(null,e,n)),Object.keys(t).forEach(p.bind(null,e,t,n))),n}function d(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}t.deepCompareStrict=function e(t,r){if(typeof t!=typeof r)return!1;if(Array.isArray(t))return!!Array.isArray(r)&&t.length===r.length&&t.every(function(n,i){return e(t[i],r[i])});if("object"==typeof t){if(!t||!r)return t===r;var n=Object.keys(t),i=Object.keys(r);return n.length===i.length&&n.every(function(n){return e(t[n],r[n])})}return t===r},e.exports.deepMerge=m,t.objectGetPath=function(e,t){for(var r,n=t.split("/").slice(1);"string"==typeof(r=n.shift());){var i=decodeURIComponent(r.replace(/~0/,"~").replace(/~1/g,"/"));if(!(i in e))return;e=e[i]}return e},t.encodePath=function(e){return e.map(d).join("")},t.getDecimalPlaces=function(e){var t=0;if(isNaN(e))return t;"number"!=typeof e&&(e=Number(e));var r=e.toString().split("e");if(2===r.length){if("-"!==r[1][0])return t;t=Number(r[1].slice(1))}var n=r[0].split(".");return 2===n.length&&(t+=n[1].length),t},t.isSchema=function(e){return"object"==typeof e&&e||"boolean"==typeof e};var h=t.resolveUrl=function(e,t){const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:e,search:t,hash:n}=r;return e+t+n}return r.toString()}},9911:function(e,t,r){var n=r(6677);function i(e,t){this.id=e,this.ref=t}e.exports.S=function(e,t){function r(e,t){if(!t||"object"!=typeof t)return;if(t.$ref){let r=n.resolveUrl(e,t.$ref);return void(u[r]=u[r]?u[r]+1:0)}var i=t.$id||t.id;let c=n.resolveUrl(e,i);var l=i?c:e;if(l){if(l.indexOf("#")<0&&(l+="#"),s[l]){if(!n.deepCompareStrict(s[l],t))throw new Error("Schema <"+l+"> already exists with different definition");return s[l]}s[l]=t,"#"==l[l.length-1]&&(s[l.substring(0,l.length-1)]=t)}a(l+"/items",Array.isArray(t.items)?t.items:[t.items]),a(l+"/extends",Array.isArray(t.extends)?t.extends:[t.extends]),r(l+"/additionalItems",t.additionalItems),o(l+"/properties",t.properties),r(l+"/additionalProperties",t.additionalProperties),o(l+"/definitions",t.definitions),o(l+"/patternProperties",t.patternProperties),o(l+"/dependencies",t.dependencies),a(l+"/disallow",t.disallow),a(l+"/allOf",t.allOf),a(l+"/anyOf",t.anyOf),a(l+"/oneOf",t.oneOf),r(l+"/not",t.not)}function a(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)r(e+"/"+n,t[n])}function o(e,t){if(t&&"object"==typeof t)for(var n in t)r(e+"/"+n,t[n])}var s={},u={};return r(e,t),new i(s,u)}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{CLASSES_PROP_KEY:function(){return d},DateTimePropTypeUtil:function(){return W},Schema:function(){return tt},backdropFilterPropTypeUtil:function(){return be},backgroundColorOverlayPropTypeUtil:function(){return R},backgroundGradientOverlayPropTypeUtil:function(){return q},backgroundImageOverlayPropTypeUtil:function(){return I},backgroundImagePositionOffsetPropTypeUtil:function(){return L},backgroundImageSizeScalePropTypeUtil:function(){return J},backgroundOverlayItem:function(){return N},backgroundOverlayPropTypeUtil:function(){return D},backgroundPropTypeUtil:function(){return V},blurFilterPropTypeUtil:function(){return ie},booleanPropTypeUtil:function(){return K},borderRadiusPropTypeUtil:function(){return p},borderWidthPropTypeUtil:function(){return m},boxShadowPropTypeUtil:function(){return f},classesPropTypeUtil:function(){return h},colorPropTypeUtil:function(){return y},colorStopPropTypeUtil:function(){return G},colorToneFilterPropTypeUtil:function(){return ae},createArrayPropUtils:function(){return u},createPropUtils:function(){return s},cssFilterFunctionPropUtil:function(){return ue},dateRangePropTypeUtil:function(){return Ae},dateStringPropTypeUtil:function(){return ze},dimensionsPropTypeUtil:function(){return $},dropShadowFilterPropTypeUtil:function(){return ne},emailPropTypeUtil:function(){return _},evaluateTerm:function(){return Ge},extractValue:function(){return Be},filterEmptyValues:function(){return Ve},filterPropTypeUtil:function(){return ce},flexPropTypeUtil:function(){return v},getPropSchemaFromCache:function(){return o},gradientColorStopPropTypeUtil:function(){return H},htmlPropTypeUtil:function(){return Q},htmlV2PropTypeUtil:function(){return te},htmlV3PropTypeUtil:function(){return re},hueRotateFilterPropTypeUtil:function(){return oe},imageAttachmentIdPropType:function(){return b},imagePropTypeUtil:function(){return g},imageSrcPropTypeUtil:function(){return A},intensityFilterPropTypeUtil:function(){return se},isDependency:function(){return We},isDependencyMet:function(){return Ke},isEmpty:function(){return Re},isOverridable:function(){return De},isTransformable:function(){return Ce},keyValuePropTypeUtil:function(){return M},layoutDirectionPropTypeUtil:function(){return T},linkPropTypeUtil:function(){return U},mergeProps:function(){return Je},moveTransformPropTypeUtil:function(){return fe},numberPropTypeUtil:function(){return x},numberRangePropTypeUtil:function(){return B},parseHtmlChildren:function(){return et},perspectiveOriginPropTypeUtil:function(){return ge},positionPropTypeUtil:function(){return Y},queryPropTypeUtil:function(){return X},rewrapOverridableValue:function(){return Le},rotateTransformPropTypeUtil:function(){return pe},scaleTransformPropTypeUtil:function(){return me},selectionSizePropTypeUtil:function(){return C},shadowPropTypeUtil:function(){return l},sizePropTypeUtil:function(){return j},skewTransformPropTypeUtil:function(){return de},spanPropTypeUtil:function(){return P},stringArrayPropTypeUtil:function(){return S},stringPropTypeUtil:function(){return E},strokePropTypeUtil:function(){return Z},svgSrcPropTypeUtil:function(){return z},timeRangePropTypeUtil:function(){return Fe},timeStringPropTypeUtil:function(){return we},transformFunctionsPropTypeUtil:function(){return ye},transformOriginPropTypeUtil:function(){return ve},transformPropTypeUtil:function(){return le},urlPropTypeUtil:function(){return k},videoAttachmentIdPropType:function(){return F},videoSrcPropTypeUtil:function(){return w}});var i=window.elementorV2.schema;const a=new Map;function o(e){return a.get(e)}function s(e,t){const r=i.z.strictObject({$$type:i.z.literal(e),value:t,disabled:i.z.boolean().optional()});function n(e){return r.safeParse(e).success}const o={extract:function(e){return n(e)?e.value:null},isValid:n,create:function(t,r){const i="function"==typeof t?t:()=>t,{base:a,disabled:o}=r||{};if(!a)return{$$type:e,value:i(),...o&&{disabled:o}};if(!n(a))throw new Error(`Cannot create prop based on invalid value: ${JSON.stringify(a)}`);return{$$type:e,value:i(a.value),...o&&{disabled:o}}},schema:r,key:e};return a.set(e,o),o}function u(e,t,r){return s(r||`${e}-array`,i.z.array(t))}const c=i.z.any().nullable(),l=s("shadow",i.z.strictObject({position:c,hOffset:c,vOffset:c,blur:c,spread:c,color:c})),f=s("box-shadow",i.z.array(l.schema)),p=s("border-radius",i.z.strictObject({"start-start":c,"start-end":c,"end-start":c,"end-end":c})),m=s("border-width",i.z.strictObject({"block-start":c,"block-end":c,"inline-start":c,"inline-end":c})),d="classes",h=s(d,i.z.array(i.z.string().regex(/^[a-z][a-z-_0-9]*$/i))),y=s("color",i.z.string()),v=s("flex",i.z.strictObject({flexGrow:c,flexShrink:c,flexBasis:c})),g=s("image",i.z.strictObject({src:c,size:c})),b=s("image-attachment-id",i.z.number()),A=s("image-src",i.z.strictObject({id:c,url:i.z.null()}).or(i.z.strictObject({id:i.z.null(),url:c,alt:c}))),z=s("svg-src",i.z.strictObject({id:c,url:i.z.null()}).or(i.z.strictObject({id:i.z.null(),url:c})).or(i.z.strictObject({id:c,url:c}))),F=s("video-attachment-id",i.z.number()),w=s("video-src",i.z.strictObject({id:c,url:i.z.null()}).or(i.z.strictObject({id:i.z.null(),url:c}))),$=s("dimensions",i.z.strictObject({"block-start":c,"block-end":c,"inline-start":c,"inline-end":c})),x=s("number",i.z.number().nullable()),O=i.z.union([i.z.number(),i.z.literal("")]),j=s("size",i.z.strictObject({unit:i.z.enum(["px","em","rem","%","vw","vh","ch"]),size:O}).or(i.z.strictObject({unit:i.z.enum(["deg","rad","grad","turn"]),size:O})).or(i.z.strictObject({unit:i.z.enum(["s","ms"]),size:O})).or(i.z.strictObject({unit:i.z.literal("auto"),size:i.z.literal("")})).or(i.z.strictObject({unit:i.z.literal("custom"),size:i.z.string()}))),P=s("span",i.z.number().nullable()),E=s("string",i.z.string().nullable()),S=u(E.key,E.schema),Z=s("stroke",i.z.strictObject({color:c,width:c})),k=s("url",i.z.string().nullable()),T=s("layout-direction",i.z.object({row:i.z.any(),column:i.z.any()})),U=s("link",i.z.strictObject({destination:c,isTargetBlank:c,tag:c})),_=s("email",i.z.strictObject({to:c,subject:c,message:c,from:c,"meta-data":c,"send-as":c,"from-name":c,"reply-to":c,cc:c,bcc:c})),M=s("key-value",i.z.strictObject({key:c,value:c})),C=s("selection-size",i.z.strictObject({selection:i.z.union([M.schema,E.schema]),size:c})),V=s("background",i.z.strictObject({color:c,clip:c,"background-overlay":c})),R=s("background-color-overlay",c),q=s("background-gradient-overlay",c),I=s("background-image-overlay",c),N=R.schema.or(q.schema).or(I.schema),D=s("background-overlay",i.z.array(N)),L=s("background-image-position-offset",c),J=s("background-image-size-scale",c),K=s("boolean",i.z.boolean().nullable()),G=s("color-stop",i.z.strictObject({color:c,offset:c})),H=s("gradient-color-stop",i.z.array(G.schema)),B=s("number-range",i.z.strictObject({min:c,max:c})),W=s("date-time",i.z.strictObject({date:c,time:c})),Y=s("object-position",i.z.strictObject({x:c,y:c})),X=s("query",i.z.strictObject({id:c,label:c})),Q=s("html",i.z.string().nullable()),ee=i.z.lazy(()=>i.z.object({id:i.z.string(),type:i.z.string(),content:i.z.string().optional(),children:i.z.array(ee).optional()})),te=s("html-v2",i.z.object({content:i.z.string().nullable(),children:i.z.array(ee)})),re=s("html-v3",i.z.object({content:E.schema.nullable(),children:i.z.array(i.z.unknown())})),ne=s("drop-shadow",i.z.object({xAxis:c,yAxis:c,blur:c,color:c})),ie=s("blur",i.z.strictObject({size:c})),ae=s("color-tone",i.z.strictObject({size:c})),oe=s("hue-rotate",i.z.strictObject({size:c})),se=s("intensity",i.z.strictObject({size:c})),ue=s("css-filter-func",i.z.object({func:E.schema,args:i.z.union([ie.schema,se.schema,ae.schema,oe.schema,ne.schema])})),ce=s("filter",i.z.array(ue.schema)),le=s("transform",i.z.strictObject({"transform-functions":c,"transform-origin":c,perspective:c,"perspective-origin":c})),fe=s("transform-move",i.z.strictObject({x:c,y:c,z:c})),pe=s("transform-rotate",i.z.strictObject({x:c,y:c,z:c})),me=s("transform-scale",i.z.strictObject({x:x.schema.nullable(),y:x.schema.nullable(),z:x.schema.nullable()})),de=s("transform-skew",i.z.strictObject({x:c,y:c})),he=fe.schema.or(me.schema).or(pe.schema).or(de.schema),ye=s("transform-functions",i.z.array(he)),ve=s("transform-origin",i.z.strictObject({x:c,y:c,z:c})),ge=s("perspective-origin",i.z.strictObject({x:c,y:c})),be=s("backdrop-filter",i.z.array(ue.schema)),Ae=s("date-range",i.z.strictObject({min:c,max:c})),ze=s("date-string",i.z.string()),Fe=s("time-range",i.z.strictObject({min:c,max:c})),we=s("time-string",i.z.string()),$e=(e,t)=>null===e?t:e,xe={transformers:{}},Oe=(e,{transformers:t={},forceKey:r}=xe)=>{const n=structuredClone(e);if("object"!=typeof n||null===n)return null;if(Array.isArray(n))return n.map(e=>Oe(e,{forceKey:r,transformers:t}));const i=n;switch("$intention"in i&&delete i.$intention,r&&(i.$$type=r),i.$$type){case"size":{const{value:e}=i;return{$$type:"size",value:{unit:"string"==typeof e.unit?e.unit:$e(E.extract(e.unit),"px"),size:"string"==typeof e.size||"number"==typeof e.size?e.size:$e(E.extract(e.size),x.extract(e.size))}}}case"html-v3":{const{value:e}=i;return{$$type:"html-v3",value:{content:e.content,children:e.children??[]}}}default:const e=t?.[i.$$type];if(e)return e(i.value)}if("object"==typeof i.value)if(Array.isArray(i.value))i.value=Oe(i.value,{transformers:t});else{const{value:e}=i,r=n;r.value={},Object.entries(e).forEach(([e,n])=>{r.value[e]=Oe(n,{transformers:t})})}return n};function je(e,t=e.key){const r={};return e.description&&(r.description=e.description),e.anyOf&&Array.isArray(e.anyOf)?function(e,t){const r={};if(!e.anyOf||!Array.isArray(e.anyOf))throw new Error("Invalid anyOf schema");for(const t of e.anyOf)if("object"===t.type&&t.properties&&t.properties.$$type&&t.properties.value){const e=t.properties.$$type;let n;if(!(e.enum&&Array.isArray(e.enum)&&e.enum.length>0))continue;n=e.enum[0];const i=Pe(t.properties.value);r[n]=i}return{kind:"union",prop_types:r,settings:{},meta:t}}(e,r):"object"===e.type&&e.properties?function(e,t,r=e.key){const n={};if(!e.properties)return{kind:"object",key:r,shape:{},settings:{},meta:t};const i=Array.isArray(e.required)?e.required:[];for(const[t,a]of Object.entries(e.properties)){const e=Pe(a,r);i.includes(t)&&(e.settings={...e.settings,required:!0}),n[t]=e}return{kind:"object",key:r||"object",shape:n,settings:{},meta:t}}(e,r,t):"array"===e.type&&e.items?function(e,t,r=e.key){if(!e.items)throw new Error("Array schema must have items property");return{kind:"array",key:r||"array",item_prop_type:Pe(e.items),settings:{},meta:t}}(e,r,t):function(e,t,r=e.key){const n={};let i=r||"string";return"number"===e.type?i="number":"boolean"===e.type?i="boolean":"string"===e.type&&(i="string"),Array.isArray(e.enum)&&(n.enum=e.enum),{kind:"plain",key:i,settings:n,meta:t}}(e,r,t)}function Pe(e,t){return je(e,t)}function Ee(e){const t=e.meta?.description,r={};switch(t&&(r.description=t),null!==e.initial_value&&void 0!==e.initial_value&&(r.examples=[e.initial_value]),e.kind){case"union":return function(e,t){const r=structuredClone(t),n=e.prop_types||{},i=[];for(const[e,t]of Object.entries(n)){if("dynamic"===e||"overridable"===e)continue;const r=Se(t);i.push(r)}i.length>0&&(r.anyOf=i);const a=e.meta?.description;return a&&(r.description=a),r}(e,r);case"object":return function(e,t){const r=structuredClone(t);r.type="object";const n={properties:{$$type:{type:"string",const:e.key},value:{type:"object",properties:{},additionalProperties:!1}}},i=[],a=e.shape||{};for(const[e,t]of Object.entries(a)){const r=Ee(t);!0===t.settings?.required&&i.push(e),n.properties.value.properties&&(n.properties.value.properties[e]=r)}return r.required=["$$type","value"],i.length>0&&(n.properties.value.required=i),{...r,...n}}(e,r);case"array":return function(e,t){const r=structuredClone(t);let n;r.type="object";const i=e.item_prop_type;return i&&(n=Se(i)),r.properties={$$type:{type:"string",const:e.key},value:{type:"array",...n?{items:n}:{}}},r}(e,r);default:return function(e,t){const r={...t};if(!Object.hasOwn(e,"kind"))throw new Error(`PropType kind is undefined for propType with key: ${e.key??"[unknown key]"}`);const n=e.settings?.enum||[];switch(e.kind){case"string":case"number":case"boolean":return{...r,type:"object",properties:{$$type:{type:"string",const:e.key??e.kind},value:{type:e.kind,...n.length>0?{enum:n}:{}}},required:["$$type","value"]};default:return{...r,type:"object",$$type:e.kind,value:{type:e.kind}}}}(e,r)}}function Se(e){return Ee(e)}const Ze=["_cssid","classes","attributes"];function ke(e,t){return!Ze.includes(e)||!(Array.isArray(t?.meta)||!t?.meta?.llm_configurable)}var Te=r(5304);function Ue(e){const t={path:e.path,message:e.message,schema:e.schema,instance:e.instance,name:e.name};if("anyOf"===e.name&&e.schema&&"object"==typeof e.schema&&"anyOf"in e.schema){const r=(e.schema.anyOf||[]).map((t,r)=>{const n=(0,Te.t)(e.instance,t);let i=`variant-${r}`;if(t&&"object"==typeof t&&"properties"in t&&t.properties&&"object"==typeof t.properties&&"$$type"in t.properties){const e=t.properties.$$type;e&&"object"==typeof e&&"const"in e&&"string"==typeof e.const&&(i=e.const)}return{discriminator:i,errors:n.errors.map(Ue)}});t.variants=r}return t}function _e(e,t=""){const r=[];for(const n of e){const e=n.path.length>0?n.path.join("."):"root";if(r.push(`${t}Error at ${e}: ${n.message}`),n.variants&&n.variants.length>0){r.push(`${t} Tried ${n.variants.length} variant(s):`);for(const e of n.variants)if(r.push(`${t} - ${e.discriminator}:`),0===e.errors.length)r.push(`${t} (no errors - this variant matched!)`);else for(const n of e.errors){const e=n.path.length>0?n.path.join("."):"root";r.push(`${t} ${e}: ${n.message}`),n.variants&&n.variants.length>0&&r.push(_e([n],`${t} `))}}}return r.join("\n")}const Me=i.z.object({$$type:i.z.string(),value:i.z.any(),disabled:i.z.boolean().optional()}),Ce=e=>Me.safeParse(e).success,Ve=e=>Re(e)?null:Array.isArray(e)?e.map(Ve).filter(e=>!Re(e)):"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Ve(t)]).filter(([,e])=>!Re(e))):e,Re=e=>e&&Ce(e)?Re(e.value):qe(e)||Ie(e)||Ne(e),qe=e=>null==e||""===e,Ie=e=>Array.isArray(e)&&e.every(Re),Ne=e=>"object"==typeof e&&Ie(Object.values(e));function De(e){return Ce(e)&&"overridable"===e.$$type}function Le(e,t){return{...e,value:{...e.value,origin_value:t}}}function Je(e,t){let r={};return Array.isArray(e)||(r=structuredClone(e)),Object.entries(t).forEach(([e,t])=>{null==t?delete r[e]:r[e]=t}),r}function Ke(e,t){if(!e?.terms.length)return{isMet:!0};const{relation:r,terms:n}=e,i=function(e){switch(e){case"or":return"some";case"and":return"every";default:throw new Error(`Relation not supported ${e}`)}}(r),a=[];return{isMet:n[i](e=>{const r=We(e)?Ke(e,t).isMet:Ge(e,Be(e.path,t,e.nestedPath)?.value);return r||a.push(e),r}),failingDependencies:a}}function Ge(e,t){const{value:r,operator:n}=e;switch(n){case"eq":case"ne":return t===r==("eq"===n);case"gt":case"lte":return!(!He(t)||!He(r))&&Number(t)>Number(r)==("gt"===n);case"lt":case"gte":return!(!He(t)||!He(r))&&Number(t)<Number(r)==("lt"===n);case"in":case"nin":return!!Array.isArray(r)&&r.includes(t)===("in"===n);case"contains":case"ncontains":return!!("string"==typeof t&&"string"==typeof r||Array.isArray(t))&&"contains"===n===(Array.isArray(t)?t.map(e=>Ce(e)?e.value:e):t).includes(r);case"exists":case"not_exist":return"exists"===n==(!!t||0===t||!1===t);default:return!0}}function He(e){return"number"==typeof e&&!isNaN(e)}function Be(e,t,r=[],n={}){const{unwrapOverridableLeaf:i=!0}=n;let a=e.reduce((t,r,n)=>{const i=t?.[r];if(n===e.length-1)return i;if(De(i)){const e=i.value.origin_value;return Ce(e)?e.value??null:e}return Ce(i)?i.value??null:i},t);return i&&a&&De(a)&&(a=a.value.origin_value??null),r?.length?{$$type:"unknown",value:r.reduce((e,t)=>e?.[t],a?.value)}:a}function We(e){return"terms"in e}const Ye=new Set(["span","b","strong","i","em","u","a","del","sup","sub","s"]);function Xe(){return`e-${Date.now().toString(36)}-${Math.random().toString(36).substring(2,9)}`}function Qe(e){const t=[];for(const r of Array.from(e.children)){const e=r.tagName.toLowerCase();if(!Ye.has(e)){t.push(...Qe(r));continue}let n=r.getAttribute("id");n||(n=Xe(),r.setAttribute("id",n));const i={id:n,type:e},a=r.textContent?.trim();a&&(i.content=a);const o=Qe(r);o.length>0&&(i.children=o),t.push(i)}return t}function et(e){if(!e)return{content:e,children:[]};const t=(new DOMParser).parseFromString(`<body>${e}</body>`,"text/html"),r=t.querySelector("parsererror");if(r)return console.warn("HTML parsing error, returning original content:",r.textContent),{content:e,children:[]};const n=t.body,i=Qe(n);return{content:n.innerHTML,children:i}}const tt={jsonSchemaToPropType:je,propTypeToJsonSchema:Ee,adjustLlmPropValueSchema:Oe,isPropKeyConfigurable:ke,nonConfigurablePropKeys:Ze,configurableKeys:function(e){return Object.keys(e).filter(t=>ke(t,e[t]))},validatePropValue:(e,t)=>{const r=Ee(e);if(null===t)return{valid:!0,errors:[],errorMessages:[],jsonSchema:JSON.stringify(Ee(e))};const n=(0,Te.t)(t,r),i=n.errors.map(Ue);return{valid:n.valid,errors:n.errors,errorMessages:_e(i),jsonSchema:JSON.stringify(r)}},enrichWithIntention:function(e,t="Describe the desired outcome"){const r=structuredClone(e);return r.properties?(r.properties.$intention={type:"string",description:t},r.required=[...r.required||[],"$intention"],r):e},removeIntention:function(e){const t=structuredClone(e);return t.properties?(delete t.properties.$intention,t.required&&(t.required=t.required.filter(e=>"$intention"!==e)),t):e}};(window.elementorV2=window.elementorV2||{}).editorProps=n}(),window.elementorV2.editorProps?.init?.();
1 +(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,__commonJSMin=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),__copyProps=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},__toESM=(n,r,a)=>(a=n==null?{}:e(i(n)),__copyProps(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),o=__commonJSMin(((e,t)=>{var n=e.ValidationError=function ValidationError(e,t,n,r,i,a){if(Array.isArray(r)?(this.path=r,this.property=r.reduce(function(e,t){return e+s(t)},`instance`)):r!==void 0&&(this.property=r),e&&(this.message=e),n){var o=n.$id||n.id;this.schema=o||n}t!==void 0&&(this.instance=t),this.name=i,this.argument=a,this.stack=this.toString()};n.prototype.toString=function toString(){return this.property+` `+this.message};var r=e.ValidatorResult=function ValidatorResult(e,t,n,r){this.instance=e,this.schema=t,this.options=n,this.path=r.path,this.propertyPath=r.propertyPath,this.errors=[],this.throwError=n&&n.throwError,this.throwFirst=n&&n.throwFirst,this.throwAll=n&&n.throwAll,this.disableFormat=n&&n.disableFormat===!0};r.prototype.addError=function addError(e){var t;if(typeof e==`string`)t=new n(e,this.instance,this.schema,this.path);else{if(!e)throw Error(`Missing error detail`);if(!e.message)throw Error(`Missing error message`);if(!e.name)throw Error(`Missing validator type`);t=new n(e.message,this.instance,this.schema,this.path,e.name,e.argument)}if(this.errors.push(t),this.throwFirst)throw new ValidatorResultError(this);if(this.throwError)throw t;return t},r.prototype.importErrors=function importErrors(e){typeof e==`string`||e&&e.validatorType?this.addError(e):e&&e.errors&&(this.errors=this.errors.concat(e.errors))};function stringizer(e,t){return t+`: `+e.toString()+`
2 +`}r.prototype.toString=function toString(e){return this.errors.map(stringizer).join(``)},Object.defineProperty(r.prototype,"valid",{get:function(){return!this.errors.length}}),t.exports.ValidatorResultError=ValidatorResultError;function ValidatorResultError(e){typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,ValidatorResultError),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}ValidatorResultError.prototype=Error(),ValidatorResultError.prototype.constructor=ValidatorResultError,ValidatorResultError.prototype.name=`Validation Error`;var i=e.SchemaError=function SchemaError(e,t){this.message=e,this.schema=t,Error.call(this,e),typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,SchemaError)};i.prototype=Object.create(Error.prototype,{constructor:{value:i,enumerable:!1},name:{value:`SchemaError`,enumerable:!1}});var a=e.SchemaContext=function SchemaContext(e,t,n,r,i){this.schema=e,this.options=t,Array.isArray(n)?(this.path=n,this.propertyPath=n.reduce(function(e,t){return e+s(t)},`instance`)):this.propertyPath=n,this.base=r,this.schemas=i};a.prototype.resolve=function resolve(e){return c(this.base,e)},a.prototype.makeChild=function makeChild(e,t){var n=t===void 0?this.path:this.path.concat([t]),r=e.$id||e.id;let i=c(this.base,r||``);var o=new a(e,this.options,n,i,Object.create(this.schemas));return r&&!o.schemas[i]&&(o.schemas[i]=e),o};var o=e.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-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FF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(e){return typeof e==`string`&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch{t=!1}return t},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};o.regexp=o.regex,o.pattern=o.regex,o.ipv4=o[`ip-address`],e.isFormat=function isFormat(e,t,n){if(typeof e==`string`&&o[t]!==void 0){if(o[t]instanceof RegExp)return o[t].test(e);if(typeof o[t]==`function`)return o[t](e)}else if(n&&n.customFormats&&typeof n.customFormats[t]==`function`)return n.customFormats[t](e);return!0};var s=e.makeSuffix=function makeSuffix(e){return e=e.toString(),!e.match(/[.\s\[\]]/)&&!e.match(/^[\d]/)?`.`+e:e.match(/^\d+$/)?`[`+e+`]`:`[`+JSON.stringify(e)+`]`};e.deepCompareStrict=function deepCompareStrict(e,t){if(typeof e!=typeof t)return!1;if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:e.every(function(n,r){return deepCompareStrict(e[r],t[r])});if(typeof e==`object`){if(!e||!t)return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(n){return deepCompareStrict(e[n],t[n])})}return e===t};function deepMerger(e,t,n,r){typeof n==`object`?t[r]=deepMerge(e[r],n):e.indexOf(n)===-1&&t.push(n)}function copyist(e,t,n){t[n]=e[n]}function copyistWithDeepMerge(e,t,n,r){typeof t[r]!=`object`||!t[r]?n[r]=t[r]:e[r]?n[r]=deepMerge(e[r],t[r]):n[r]=t[r]}function deepMerge(e,t){var n=Array.isArray(t),r=n&&[]||{};return n?(e||=[],r=r.concat(e),t.forEach(deepMerger.bind(null,e,r))):(e&&typeof e==`object`&&Object.keys(e).forEach(copyist.bind(null,e,r)),Object.keys(t).forEach(copyistWithDeepMerge.bind(null,e,t,r))),r}t.exports.deepMerge=deepMerge,e.objectGetPath=function objectGetPath(e,t){for(var n=t.split(`/`).slice(1),r;typeof(r=n.shift())==`string`;){var i=decodeURIComponent(r.replace(/~0/,`~`).replace(/~1/g,`/`));if(!(i in e))return;e=e[i]}return e};function pathEncoder(e){return`/`+encodeURIComponent(e).replace(/~/g,`%7E`)}e.encodePath=function encodePointer(e){return e.map(pathEncoder).join(``)},e.getDecimalPlaces=function getDecimalPlaces(e){var t=0;if(isNaN(e))return t;typeof e!=`number`&&(e=Number(e));var n=e.toString().split(`e`);if(n.length===2){if(n[1][0]!==`-`)return t;t=Number(n[1].slice(1))}var r=n[0].split(`.`);return r.length===2&&(t+=r[1].length),t},e.isSchema=function isSchema(e){return typeof e==`object`&&e||typeof e==`boolean`};var c=e.resolveUrl=function resolveUrl(e,t){let n=new URL(t,new URL(e,`resolve://`));if(n.protocol===`resolve:`){let{pathname:e,search:t,hash:r}=n;return e+t+r}return n.toString()}})),s=__commonJSMin(((e,t)=>{var n=o(),r=n.ValidatorResult,i=n.SchemaError,a={};a.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var s=a.validators={};s.type=function validateType(e,t,n,i){if(e===void 0)return null;var a=new r(e,t,n,i),o=Array.isArray(t.type)?t.type:[t.type];if(!o.some(this.testType.bind(this,e,t,n,i))){var s=o.map(function(e){if(e){var t=e.$id||e.id;return t?`<`+t+`>`:e+``}});a.addError({name:`type`,argument:s,message:`is not of a type(s) `+s})}return a};function testSchemaNoThrow(e,t,n,r,i){var a=t.throwError,o=t.throwAll;t.throwError=!1,t.throwAll=!1;var s=this.validateSchema(e,i,t,n);return t.throwError=a,t.throwAll=o,!s.valid&&r instanceof Function&&r(s),s.valid}s.anyOf=function validateAnyOf(e,t,n,a){if(e===void 0)return null;var o=new r(e,t,n,a),s=new r(e,t,n,a);if(!Array.isArray(t.anyOf))throw new i(`anyOf must be an array`);if(!t.anyOf.some(testSchemaNoThrow.bind(this,e,n,a,function(e){s.importErrors(e)}))){var c=t.anyOf.map(function(e,t){var n=e.$id||e.id;return n?`<`+n+`>`:e.title&&JSON.stringify(e.title)||e.$ref&&`<`+e.$ref+`>`||`[subschema `+t+`]`});n.nestedErrors&&o.importErrors(s),o.addError({name:`anyOf`,argument:c,message:`is not any of `+c.join(`,`)})}return o},s.allOf=function validateAllOf(e,t,n,a){if(e===void 0)return null;if(!Array.isArray(t.allOf))throw new i(`allOf must be an array`);var o=new r(e,t,n,a),s=this;return t.allOf.forEach(function(t,r){var i=s.validateSchema(e,t,n,a);if(!i.valid){var c=t.$id||t.id||t.title&&JSON.stringify(t.title)||t.$ref&&`<`+t.$ref+`>`||`[subschema `+r+`]`;o.addError({name:`allOf`,argument:{id:c,length:i.errors.length,valid:i},message:`does not match allOf schema `+c+` with `+i.errors.length+` error[s]:`}),o.importErrors(i)}}),o},s.oneOf=function validateOneOf(e,t,n,a){if(e===void 0)return null;if(!Array.isArray(t.oneOf))throw new i(`oneOf must be an array`);var o=new r(e,t,n,a),s=new r(e,t,n,a),c=t.oneOf.filter(testSchemaNoThrow.bind(this,e,n,a,function(e){s.importErrors(e)})).length,l=t.oneOf.map(function(e,t){return e.$id||e.id||e.title&&JSON.stringify(e.title)||e.$ref&&`<`+e.$ref+`>`||`[subschema `+t+`]`});return c!==1&&(n.nestedErrors&&o.importErrors(s),o.addError({name:`oneOf`,argument:l,message:`is not exactly one from `+l.join(`,`)})),o},s.if=function validateIf(e,t,i,a){if(e===void 0)return null;if(!n.isSchema(t.if))throw Error(`Expected "if" keyword to be a schema`);var o=testSchemaNoThrow.call(this,e,i,a,null,t.if),s=new r(e,t,i,a),c;if(o){if(t.then===void 0)return;if(!n.isSchema(t.then))throw Error(`Expected "then" keyword to be a schema`);c=this.validateSchema(e,t.then,i,a.makeChild(t.then)),s.importErrors(c)}else{if(t.else===void 0)return;if(!n.isSchema(t.else))throw Error(`Expected "else" keyword to be a schema`);c=this.validateSchema(e,t.else,i,a.makeChild(t.else)),s.importErrors(c)}return s};function getEnumerableProperty(e,t){if(Object.hasOwnProperty.call(e,t))return e[t];if(t in e){for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,t))return e[t]}}s.propertyNames=function validatePropertyNames(e,t,a,o){if(this.types.object(e)){var s=new r(e,t,a,o),c=t.propertyNames===void 0?{}:t.propertyNames;if(!n.isSchema(c))throw new i(`Expected "propertyNames" to be a schema (object or boolean)`);for(var l in e)if(getEnumerableProperty(e,l)!==void 0){var u=this.validateSchema(l,c,a,o.makeChild(c));s.importErrors(u)}return s}},s.properties=function validateProperties(e,t,n,a){if(this.types.object(e)){var o=new r(e,t,n,a),s=t.properties||{};for(var c in s){var l=s[c];if(l!==void 0){if(l===null)throw new i(`Unexpected null, expected schema in "properties"`);typeof n.preValidateProperty==`function`&&n.preValidateProperty(e,c,l,n,a);var u=getEnumerableProperty(e,c),d=this.validateSchema(u,l,n,a.makeChild(l,c));d.instance!==o.instance[c]&&(o.instance[c]=d.instance),o.importErrors(d)}}return o}};function testAdditionalProperty(e,t,n,r,i,a){if(this.types.object(e)&&!(t.properties&&t.properties[i]!==void 0))if(t.additionalProperties===!1)a.addError({name:`additionalProperties`,argument:i,message:`is not allowed to have the additional property `+JSON.stringify(i)});else{var o=t.additionalProperties||{};typeof n.preValidateProperty==`function`&&n.preValidateProperty(e,i,o,n,r);var s=this.validateSchema(e[i],o,n,r.makeChild(o,i));s.instance!==a.instance[i]&&(a.instance[i]=s.instance),a.importErrors(s)}}s.patternProperties=function validatePatternProperties(e,t,n,a){if(this.types.object(e)){var o=new r(e,t,n,a),s=t.patternProperties||{};for(var c in e){var l=!0;for(var u in s){var d=s[u];if(d!==void 0){if(d===null)throw new i(`Unexpected null, expected schema in "patternProperties"`);try{var f=new RegExp(u,`u`)}catch{f=new RegExp(u)}if(f.test(c)){l=!1,typeof n.preValidateProperty==`function`&&n.preValidateProperty(e,c,d,n,a);var p=this.validateSchema(e[c],d,n,a.makeChild(d,c));p.instance!==o.instance[c]&&(o.instance[c]=p.instance),o.importErrors(p)}}}l&&testAdditionalProperty.call(this,e,t,n,a,c,o)}return o}},s.additionalProperties=function validateAdditionalProperties(e,t,n,i){if(this.types.object(e)){if(t.patternProperties)return null;var a=new r(e,t,n,i);for(var o in e)testAdditionalProperty.call(this,e,t,n,i,o,a);return a}},s.minProperties=function validateMinProperties(e,t,n,i){if(this.types.object(e)){var a=new r(e,t,n,i);return Object.keys(e).length>=t.minProperties||a.addError({name:`minProperties`,argument:t.minProperties,message:`does not meet minimum property length of `+t.minProperties}),a}},s.maxProperties=function validateMaxProperties(e,t,n,i){if(this.types.object(e)){var a=new r(e,t,n,i);return Object.keys(e).length<=t.maxProperties||a.addError({name:`maxProperties`,argument:t.maxProperties,message:`does not meet maximum property length of `+t.maxProperties}),a}},s.items=function validateItems(e,t,n,i){var a=this;if(this.types.array(e)&&t.items!==void 0){var o=new r(e,t,n,i);return e.every(function(e,r){if(Array.isArray(t.items))var s=t.items[r]===void 0?t.additionalItems:t.items[r];else var s=t.items;if(s===void 0)return!0;if(s===!1)return o.addError({name:`items`,message:`additionalItems not permitted`}),!1;var c=a.validateSchema(e,s,n,i.makeChild(s,r));return c.instance!==o.instance[r]&&(o.instance[r]=c.instance),o.importErrors(c),!0}),o}},s.contains=function validateContains(e,t,i,a){var o=this;if(this.types.array(e)&&t.contains!==void 0){if(!n.isSchema(t.contains))throw Error(`Expected "contains" keyword to be a schema`);var s=new r(e,t,i,a);return e.some(function(e,n){return o.validateSchema(e,t.contains,i,a.makeChild(t.contains,n)).errors.length===0})===!1&&s.addError({name:`contains`,argument:t.contains,message:`must contain an item matching given schema`}),s}},s.minimum=function validateMinimum(e,t,n,i){if(this.types.number(e)){var a=new r(e,t,n,i);return t.exclusiveMinimum&&t.exclusiveMinimum===!0?e>t.minimum||a.addError({name:`minimum`,argument:t.minimum,message:`must be greater than `+t.minimum}):e>=t.minimum||a.addError({name:`minimum`,argument:t.minimum,message:`must be greater than or equal to `+t.minimum}),a}},s.maximum=function validateMaximum(e,t,n,i){if(this.types.number(e)){var a=new r(e,t,n,i);return t.exclusiveMaximum&&t.exclusiveMaximum===!0?e<t.maximum||a.addError({name:`maximum`,argument:t.maximum,message:`must be less than `+t.maximum}):e<=t.maximum||a.addError({name:`maximum`,argument:t.maximum,message:`must be less than or equal to `+t.maximum}),a}},s.exclusiveMinimum=function validateExclusiveMinimum(e,t,n,i){if(typeof t.exclusiveMinimum!=`boolean`&&this.types.number(e)){var a=new r(e,t,n,i);return e>t.exclusiveMinimum||a.addError({name:`exclusiveMinimum`,argument:t.exclusiveMinimum,message:`must be strictly greater than `+t.exclusiveMinimum}),a}},s.exclusiveMaximum=function validateExclusiveMaximum(e,t,n,i){if(typeof t.exclusiveMaximum!=`boolean`&&this.types.number(e)){var a=new r(e,t,n,i);return e<t.exclusiveMaximum||a.addError({name:`exclusiveMaximum`,argument:t.exclusiveMaximum,message:`must be strictly less than `+t.exclusiveMaximum}),a}};var c=function validateMultipleOfOrDivisbleBy(e,t,a,o,s,c){if(this.types.number(e)){var l=t[s];if(l==0)throw new i(s+` cannot be zero`);var u=new r(e,t,a,o),d=n.getDecimalPlaces(e),f=n.getDecimalPlaces(l),p=10**Math.max(d,f);return Math.round(e*p)%Math.round(l*p)!==0&&u.addError({name:s,argument:l,message:c+JSON.stringify(l)}),u}};s.multipleOf=function validateMultipleOf(e,t,n,r){return c.call(this,e,t,n,r,`multipleOf`,`is not a multiple of (divisible by) `)},s.divisibleBy=function validateDivisibleBy(e,t,n,r){return c.call(this,e,t,n,r,`divisibleBy`,`is not divisible by (multiple of) `)},s.required=function validateRequired(e,t,n,i){var a=new r(e,t,n,i);return e===void 0&&t.required===!0?a.addError({name:`required`,message:`is required`}):this.types.object(e)&&Array.isArray(t.required)&&t.required.forEach(function(t){getEnumerableProperty(e,t)===void 0&&a.addError({name:`required`,argument:t,message:`requires property `+JSON.stringify(t)})}),a},s.pattern=function validatePattern(e,t,n,i){if(this.types.string(e)){var a=new r(e,t,n,i),o=t.pattern;try{var s=new RegExp(o,`u`)}catch{s=new RegExp(o)}return e.match(s)||a.addError({name:`pattern`,argument:t.pattern,message:`does not match pattern `+JSON.stringify(t.pattern.toString())}),a}},s.format=function validateFormat(e,t,i,a){if(e!==void 0){var o=new r(e,t,i,a);return!o.disableFormat&&!n.isFormat(e,t.format,this)&&o.addError({name:`format`,argument:t.format,message:`does not conform to the `+JSON.stringify(t.format)+` format`}),o}},s.minLength=function validateMinLength(e,t,n,i){if(this.types.string(e)){var a=new r(e,t,n,i),o=e.match(/[\uDC00-\uDFFF]/g);return e.length-(o?o.length:0)>=t.minLength||a.addError({name:`minLength`,argument:t.minLength,message:`does not meet minimum length of `+t.minLength}),a}},s.maxLength=function validateMaxLength(e,t,n,i){if(this.types.string(e)){var a=new r(e,t,n,i),o=e.match(/[\uDC00-\uDFFF]/g);return e.length-(o?o.length:0)<=t.maxLength||a.addError({name:`maxLength`,argument:t.maxLength,message:`does not meet maximum length of `+t.maxLength}),a}},s.minItems=function validateMinItems(e,t,n,i){if(this.types.array(e)){var a=new r(e,t,n,i);return e.length>=t.minItems||a.addError({name:`minItems`,argument:t.minItems,message:`does not meet minimum length of `+t.minItems}),a}},s.maxItems=function validateMaxItems(e,t,n,i){if(this.types.array(e)){var a=new r(e,t,n,i);return e.length<=t.maxItems||a.addError({name:`maxItems`,argument:t.maxItems,message:`does not meet maximum length of `+t.maxItems}),a}};function testArrays(e,t,r){var i,a=r.length;for(i=t+1;i<a;i++)if(n.deepCompareStrict(e,r[i]))return!1;return!0}s.uniqueItems=function validateUniqueItems(e,t,n,i){if(t.uniqueItems===!0&&this.types.array(e)){var a=new r(e,t,n,i);return e.every(testArrays)||a.addError({name:`uniqueItems`,message:`contains duplicate item`}),a}},s.dependencies=function validateDependencies(e,t,n,i){if(this.types.object(e)){var a=new r(e,t,n,i);for(var o in t.dependencies)if(e[o]!==void 0){var s=t.dependencies[o],c=i.makeChild(s,o);if(typeof s==`string`&&(s=[s]),Array.isArray(s))s.forEach(function(t){e[t]===void 0&&a.addError({name:`dependencies`,argument:c.propertyPath,message:`property `+t+` not found, required by `+c.propertyPath})});else{var l=this.validateSchema(e,s,n,c);a.instance!==l.instance&&(a.instance=l.instance),l&&l.errors.length&&(a.addError({name:`dependencies`,argument:c.propertyPath,message:`does not meet dependency required by `+c.propertyPath}),a.importErrors(l))}}return a}},s.enum=function validateEnum(e,t,a,o){if(e===void 0)return null;if(!Array.isArray(t.enum))throw new i(`enum expects an array`,t);var s=new r(e,t,a,o);return t.enum.some(n.deepCompareStrict.bind(null,e))||s.addError({name:`enum`,argument:t.enum,message:`is not one of enum values: `+t.enum.map(String).join(`,`)}),s},s.const=function validateEnum(e,t,i,a){if(e===void 0)return null;var o=new r(e,t,i,a);return n.deepCompareStrict(t.const,e)||o.addError({name:`const`,argument:t.const,message:`does not exactly match expected constant: `+t.const}),o},s.not=s.disallow=function validateNot(e,t,n,i){var a=this;if(e===void 0)return null;var o=new r(e,t,n,i),s=t.not||t.disallow;return s?(Array.isArray(s)||(s=[s]),s.forEach(function(r){if(a.testType(e,t,n,i,r)){var s=r&&(r.$id||r.id)||r;o.addError({name:`not`,argument:s,message:`is of prohibited type `+s})}}),o):null},t.exports=a})),c=__commonJSMin(((e,t)=>{var n=o();t.exports.SchemaScanResult=SchemaScanResult;function SchemaScanResult(e,t){this.id=e,this.ref=t}t.exports.scan=function scan(e,t){function scanSchema(e,t){if(!t||typeof t!=`object`)return;if(t.$ref){let r=n.resolveUrl(e,t.$ref);i[r]=i[r]?i[r]+1:0;return}var a=t.$id||t.id;let o=n.resolveUrl(e,a);var s=a?o:e;if(s){if(s.indexOf(`#`)<0&&(s+=`#`),r[s]){if(!n.deepCompareStrict(r[s],t))throw Error(`Schema <`+s+`> already exists with different definition`);return r[s]}r[s]=t,s[s.length-1]==`#`&&(r[s.substring(0,s.length-1)]=t)}scanArray(s+`/items`,Array.isArray(t.items)?t.items:[t.items]),scanArray(s+`/extends`,Array.isArray(t.extends)?t.extends:[t.extends]),scanSchema(s+`/additionalItems`,t.additionalItems),scanObject(s+`/properties`,t.properties),scanSchema(s+`/additionalProperties`,t.additionalProperties),scanObject(s+`/definitions`,t.definitions),scanObject(s+`/patternProperties`,t.patternProperties),scanObject(s+`/dependencies`,t.dependencies),scanArray(s+`/disallow`,t.disallow),scanArray(s+`/allOf`,t.allOf),scanArray(s+`/anyOf`,t.anyOf),scanArray(s+`/oneOf`,t.oneOf),scanSchema(s+`/not`,t.not)}function scanArray(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)scanSchema(e+`/`+n,t[n])}function scanObject(e,t){if(!(!t||typeof t!=`object`))for(var n in t)scanSchema(e+`/`+n,t[n])}var r={},i={};return scanSchema(e,t),new SchemaScanResult(r,i)}})),l=__commonJSMin(((e,t)=>{var n=s(),r=o(),i=c().scan,a=r.ValidatorResult,l=r.ValidatorResultError,u=r.SchemaError,d=r.SchemaContext,f=`/`,p=function Validator(){this.customFormats=Object.create(Validator.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(m),this.attributes=Object.create(n.validators)};p.prototype.customFormats={},p.prototype.schemas=null,p.prototype.types=null,p.prototype.attributes=null,p.prototype.unresolvedRefs=null,p.prototype.addSchema=function addSchema(e,t){var n=this;if(!e)return null;var r=i(t||f,e),a=t||e.$id||e.id;for(var o in r.id)this.schemas[o]=r.id[o];for(var o in r.ref)this.unresolvedRefs.push(o);return this.unresolvedRefs=this.unresolvedRefs.filter(function(e){return n.schemas[e]===void 0}),this.schemas[a]},p.prototype.addSubSchemaArray=function addSubSchemaArray(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.addSubSchema(e,t[n])},p.prototype.addSubSchemaObject=function addSubSchemaArray(e,t){if(!(!t||typeof t!=`object`))for(var n in t)this.addSubSchema(e,t[n])},p.prototype.setSchemas=function setSchemas(e){this.schemas=e},p.prototype.getSchema=function getSchema(e){return this.schemas[e]},p.prototype.validate=function validate(e,t,n,o){if(typeof t!=`boolean`&&typeof t!=`object`||t===null)throw new u("Expected `schema` to be an object or boolean");n||={};var s=t.$id||t.id;let c=r.resolveUrl(n.base,s||``);if(!o){o=new d(t,n,[],c,Object.create(this.schemas)),o.schemas[c]||(o.schemas[c]=t);var f=i(c,t);for(var p in f.id){var m=f.id[p];o.schemas[p]=m}}if(n.required&&e===void 0){var h=new a(e,t,n,o);return h.addError(`is required, but is undefined`),h}var h=this.validateSchema(e,t,n,o);if(!h)throw Error(`Result undefined`);if(n.throwAll&&h.errors.length)throw new l(h);return h};function shouldResolve(e){var t=typeof e==`string`?e:e.$ref;return typeof t==`string`&&t}p.prototype.validateSchema=function validateSchema(e,t,i,o){var s=new a(e,t,i,o);if(typeof t==`boolean`)t===!0?t={}:t===!1&&(t={type:[]});else if(!t)throw Error(`schema is undefined`);if(t.extends)if(Array.isArray(t.extends)){var c={schema:t,ctx:o};t.extends.forEach(this.schemaTraverser.bind(this,c)),t=c.schema,c.schema=null,c.ctx=null,c=null}else t=r.deepMerge(t,this.superResolve(t.extends,o));var l=shouldResolve(t);if(l){var f=this.resolve(t,l,o),p=new d(f.subschema,i,o.path,f.switchSchema,o.schemas);return this.validateSchema(e,f.subschema,i,p)}var m=i&&i.skipAttributes||[];for(var h in t)if(!n.ignoreProperties[h]&&m.indexOf(h)<0){var g=null,_=this.attributes[h];if(_)g=_.call(this,e,t,i,o);else if(i.allowUnknownAttributes===!1)throw new u(`Unsupported attribute: `+h,t);g&&s.importErrors(g)}return typeof i.rewrite==`function`&&(s.instance=i.rewrite.call(this,e,t,i,o)),s},p.prototype.schemaTraverser=function schemaTraverser(e,t){e.schema=r.deepMerge(e.schema,this.superResolve(t,e.ctx))},p.prototype.superResolve=function superResolve(e,t){var n=shouldResolve(e);return n?this.resolve(e,n,t).subschema:e},p.prototype.resolve=function resolve(e,t,n){if(t=n.resolve(t),n.schemas[t])return{subschema:n.schemas[t],switchSchema:t};let i=new URL(t,`thismessage::/`).hash;var a=i&&i.length&&t.substr(0,t.length-i.length);if(!a||!n.schemas[a])throw new u(`no such schema <`+t+`>`,e);var o=r.objectGetPath(n.schemas[a],i.substr(1));if(o===void 0)throw new u(`no such schema `+i+` located in <`+a+`>`,e);return{subschema:o,switchSchema:t}},p.prototype.testType=function validateType(e,t,n,r,i){if(i!==void 0){if(i===null)throw new u(`Unexpected null in "type" keyword`);if(typeof this.types[i]==`function`)return this.types[i].call(this,e);if(i&&typeof i==`object`){var a=this.validateSchema(e,i,n,r);return a===void 0||!(a&&a.errors.length)}return!0}};var m=p.prototype.types={};m.string=function testString(e){return typeof e==`string`},m.number=function testNumber(e){return typeof e==`number`&&isFinite(e)},m.integer=function testInteger(e){return typeof e==`number`&&e%1==0},m.boolean=function testBoolean(e){return typeof e==`boolean`},m.array=function testArray(e){return Array.isArray(e)},m.null=function testNull(e){return e===null},m.date=function testDate(e){return e instanceof Date},m.any=function testAny(e){return!0},m.object=function testObject(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!(e instanceof Date)},t.exports=p})),u=__commonJSMin(((e,t)=>{var n=t.exports.Validator=l();t.exports.ValidatorResult=o().ValidatorResult,t.exports.ValidatorResultError=o().ValidatorResultError,t.exports.ValidationError=o().ValidationError,t.exports.SchemaError=o().SchemaError,t.exports.SchemaScanResult=c().SchemaScanResult,t.exports.scan=c().scan,t.exports.validate=function(e,t,r){return new n().validate(e,t,r)}})),d=__toESM(__commonJSMin(((e,t)=>{var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},__toCommonJS=e=>__copyProps(n({},`__esModule`,{value:!0}),e),o={};__export(o,{CLASSES_PROP_KEY:()=>v,DateTimePropTypeUtil:()=>je,Schema:()=>ct,backdropFilterPropTypeUtil:()=>Z,backgroundColorOverlayPropTypeUtil:()=>j,backgroundGradientOverlayPropTypeUtil:()=>M,backgroundImageOverlayPropTypeUtil:()=>N,backgroundImagePositionOffsetPropTypeUtil:()=>Ee,backgroundImageSizeScalePropTypeUtil:()=>De,backgroundOverlayItem:()=>P,backgroundOverlayPropTypeUtil:()=>Te,backgroundPropTypeUtil:()=>A,blurFilterPropTypeUtil:()=>V,booleanPropTypeUtil:()=>Oe,borderRadiusPropTypeUtil:()=>h,borderWidthPropTypeUtil:()=>g,boxShadowPropTypeUtil:()=>m,classesPropTypeUtil:()=>ee,colorPropTypeUtil:()=>te,colorStopPropTypeUtil:()=>F,colorToneFilterPropTypeUtil:()=>H,createArrayPropUtils:()=>createArrayPropUtils,createPropUtils:()=>createPropUtils,cssFilterFunctionPropUtil:()=>G,dateRangePropTypeUtil:()=>Ze,dateStringPropTypeUtil:()=>Qe,dimensionsPropTypeUtil:()=>fe,dropShadowFilterPropTypeUtil:()=>B,emailPropTypeUtil:()=>xe,emailsPropTypeUtil:()=>Se,escapedHtmlPropTypeUtil:()=>ze,evaluateTerm:()=>evaluateTerm,extractValue:()=>extractValue,filterEmptyValues:()=>filterEmptyValues,filterPropTypeUtil:()=>Be,flexPropTypeUtil:()=>ne,fontFamilyPropTypeUtil:()=>ie,getPropSchemaFromCache:()=>getPropSchemaFromCache,gradientColorStopPropTypeUtil:()=>ke,gridTrackSizePropTypeUtil:()=>me,htmlPropTypeUtil:()=>Fe,htmlV2PropTypeUtil:()=>Le,htmlV3PropTypeUtil:()=>Re,hueRotateFilterPropTypeUtil:()=>U,iconPropTypeUtil:()=>ce,imageAttachmentIdPropType:()=>oe,imagePropTypeUtil:()=>ae,imageSrcPropTypeUtil:()=>se,intensityFilterPropTypeUtil:()=>W,isDependency:()=>isDependency,isDependencyMet:()=>isDependencyMet,isEmpty:()=>isEmpty,isOverridable:()=>isOverridable,isTransformable:()=>isTransformable,keyValuePropTypeUtil:()=>O,layoutDirectionPropTypeUtil:()=>ye,linkPropTypeUtil:()=>be,mergeProps:()=>mergeProps,moveTransformPropTypeUtil:()=>q,numberPropTypeUtil:()=>S,numberRangePropTypeUtil:()=>Ae,parseHtmlChildren:()=>parseHtmlChildren,perspectiveOriginPropTypeUtil:()=>Xe,positionPropTypeUtil:()=>Me,queryFilterArrayPropTypeUtil:()=>Pe,queryFilterPropTypeUtil:()=>I,queryPropTypeUtil:()=>Ne,rewrapOverridableValue:()=>rewrapOverridableValue,rotateTransformPropTypeUtil:()=>J,scaleTransformPropTypeUtil:()=>Y,selectionSizePropTypeUtil:()=>k,shadowPropTypeUtil:()=>p,sizePropTypeUtil:()=>pe,skewTransformPropTypeUtil:()=>X,spanPropTypeUtil:()=>he,stringArrayPropTypeUtil:()=>ge,stringPropTypeUtil:()=>E,strokePropTypeUtil:()=>_e,svgSrcPropTypeUtil:()=>le,timeRangePropTypeUtil:()=>$e,timeStringPropTypeUtil:()=>et,transformFunctionsPropTypeUtil:()=>Je,transformOriginPropTypeUtil:()=>Ye,transformPropTypeUtil:()=>Ve,urlPropTypeUtil:()=>ve,videoAttachmentIdPropType:()=>ue,videoSrcPropTypeUtil:()=>de}),t.exports=__toCommonJS(o);var s=globalThis.elementorV2.schema,c=globalThis.elementorV2.schema,l=new Map;function getPropSchemaFromCache(e){return l.get(e)}function createPropUtils(e,t){let n=c.z.strictObject({$$type:c.z.literal(e),value:t,disabled:c.z.boolean().optional()});function isValid(e){return n.safeParse(e).success}function create(t,n){let r=typeof t==`function`?t:()=>t,{base:i,disabled:a}=n||{};if(!i)return{$$type:e,value:r(),...a&&{disabled:a}};if(!isValid(i))throw Error(`Cannot create prop based on invalid value: ${JSON.stringify(i)}`);return{$$type:e,value:r(i.value),...a&&{disabled:a}}}function extract(e){return isValid(e)?e.value:null}let r={extract,isValid,create,schema:n,key:e};return l.set(e,r),r}function createArrayPropUtils(e,t,n){return createPropUtils(n||`${e}-array`,c.z.array(t))}var d=globalThis.elementorV2.schema,f=globalThis.elementorV2.schema.z.any().nullable(),p=createPropUtils(`shadow`,d.z.strictObject({position:f,hOffset:f,vOffset:f,blur:f,spread:f,color:f})),m=createPropUtils(`box-shadow`,s.z.array(p.schema)),h=createPropUtils(`border-radius-v2`,globalThis.elementorV2.schema.z.strictObject({"start-start":f,"start-end":f,"end-start":f,"end-end":f})),g=createPropUtils(`border-width-v2`,globalThis.elementorV2.schema.z.strictObject({"block-start":f,"block-end":f,"inline-start":f,"inline-end":f})),_=globalThis.elementorV2.schema,v=`classes`,ee=createPropUtils(v,_.z.array(_.z.string().regex(/^[a-z][a-z-_0-9]*$/i))),te=createPropUtils(`color`,globalThis.elementorV2.schema.z.string()),ne=createPropUtils(`flex`,globalThis.elementorV2.schema.z.strictObject({flexGrow:f,flexShrink:f,flexBasis:f})),re=createPropUtils(`font-family`,globalThis.elementorV2.schema.z.string().nullable()),ie=Object.assign(re,{getEnqueueFontFamily:e=>{let t=e.trim();return t.startsWith(`"`)&&t.endsWith(`"`)||t.startsWith(`'`)&&t.endsWith(`'`)?t.slice(1,-1).trim():t}}),ae=createPropUtils(`image`,globalThis.elementorV2.schema.z.strictObject({src:f,size:f})),oe=createPropUtils(`image-attachment-id`,globalThis.elementorV2.schema.z.number()),y=globalThis.elementorV2.schema,se=createPropUtils(`image-src`,y.z.strictObject({id:f,url:y.z.null(),alt:f.optional().default(null)}).or(y.z.strictObject({id:f.optional().default(null),url:f,alt:f.optional().default(null)}))),ce=createPropUtils(`icon`,globalThis.elementorV2.schema.z.strictObject({value:f,library:f})),b=globalThis.elementorV2.schema,le=createPropUtils(`svg-src`,b.z.strictObject({id:f,url:b.z.null()}).or(b.z.strictObject({id:b.z.null(),url:f})).or(b.z.strictObject({id:f,url:f}))),ue=createPropUtils(`video-attachment-id`,globalThis.elementorV2.schema.z.number()),x=globalThis.elementorV2.schema,de=createPropUtils(`video-src`,x.z.strictObject({id:f,url:x.z.literal(null).optional()}).or(x.z.strictObject({id:x.z.literal(null).optional(),url:f}))),fe=createPropUtils(`dimensions`,globalThis.elementorV2.schema.z.strictObject({"block-start":f,"block-end":f,"inline-start":f,"inline-end":f})),S=createPropUtils(`number`,globalThis.elementorV2.schema.z.number().nullable()),C=globalThis.elementorV2.schema,w=C.z.union([C.z.number(),C.z.literal(``)]),pe=createPropUtils(`size`,C.z.strictObject({unit:C.z.enum([`px`,`em`,`rem`,`%`,`vw`,`vh`,`ch`,`fr`]),size:w}).or(C.z.strictObject({unit:C.z.enum([`deg`,`rad`,`grad`,`turn`]),size:w})).or(C.z.strictObject({unit:C.z.enum([`s`,`ms`]),size:w})).or(C.z.strictObject({unit:C.z.literal(`auto`),size:C.z.literal(``)})).or(C.z.strictObject({unit:C.z.literal(`custom`),size:C.z.string()}))),T=globalThis.elementorV2.schema,me=createPropUtils(`grid-track-size`,T.z.strictObject({unit:T.z.literal(`fr`),size:T.z.union([T.z.number(),T.z.literal(``)])}).or(T.z.strictObject({unit:T.z.literal(`custom`),size:T.z.string()}))),he=createPropUtils(`span`,globalThis.elementorV2.schema.z.string().nullable()),E=createPropUtils(`string`,globalThis.elementorV2.schema.z.string().nullable()),ge=createArrayPropUtils(E.key,E.schema),_e=createPropUtils(`stroke`,globalThis.elementorV2.schema.z.strictObject({color:f,width:f})),ve=createPropUtils(`url`,globalThis.elementorV2.schema.z.string().nullable()),D=globalThis.elementorV2.schema,ye=createPropUtils(`layout-direction`,D.z.object({row:D.z.any(),column:D.z.any()})),be=createPropUtils(`link`,globalThis.elementorV2.schema.z.strictObject({destination:f,isTargetBlank:f,tag:f})),xe=createPropUtils(`email`,globalThis.elementorV2.schema.z.strictObject({to:f,subject:f,message:f,from:f,"meta-data":f,"send-as":f,"from-name":f,"reply-to":f,cc:f,bcc:f})),Se=createPropUtils(`emails`,globalThis.elementorV2.schema.z.strictObject({to:f,subject:f,message:f,from:f,"meta-data":f,"send-as":f,"from-name":f,"reply-to":f,cc:f,bcc:f})),Ce=globalThis.elementorV2.schema,O=createPropUtils(`key-value`,globalThis.elementorV2.schema.z.strictObject({key:f,value:f})),k=createPropUtils(`selection-size`,Ce.z.strictObject({selection:Ce.z.union([O.schema,E.schema]),size:f})),A=createPropUtils(`background`,globalThis.elementorV2.schema.z.strictObject({color:f,clip:f,"background-overlay":f})),we=globalThis.elementorV2.schema,j=createPropUtils(`background-color-overlay`,f),M=createPropUtils(`background-gradient-overlay`,f),N=createPropUtils(`background-image-overlay`,f),P=j.schema.or(M.schema).or(N.schema),Te=createPropUtils(`background-overlay`,we.z.array(P)),Ee=createPropUtils(`background-image-position-offset`,f),De=createPropUtils(`background-image-size-scale`,f),Oe=createPropUtils(`boolean`,globalThis.elementorV2.schema.z.boolean().nullable()),F=createPropUtils(`color-stop`,globalThis.elementorV2.schema.z.strictObject({color:f,offset:f})),ke=createPropUtils(`gradient-color-stop`,globalThis.elementorV2.schema.z.array(F.schema)),Ae=createPropUtils(`number-range`,globalThis.elementorV2.schema.z.strictObject({min:f,max:f})),je=createPropUtils(`date-time`,globalThis.elementorV2.schema.z.strictObject({date:f,time:f})),Me=createPropUtils(`object-position`,globalThis.elementorV2.schema.z.strictObject({x:f,y:f})),Ne=createPropUtils(`query`,globalThis.elementorV2.schema.z.strictObject({id:f,label:f})),I=createPropUtils(`query-filter`,globalThis.elementorV2.schema.z.strictObject({key:f,values:f,taxonomies:f})),Pe=createArrayPropUtils(I.key,I.schema),Fe=createPropUtils(`html`,globalThis.elementorV2.schema.z.string().nullable()),L=globalThis.elementorV2.schema,Ie=L.z.lazy(()=>L.z.object({id:L.z.string(),type:L.z.string(),content:L.z.string().optional(),children:L.z.array(Ie).optional()})),Le=createPropUtils(`html-v2`,L.z.object({content:L.z.string().nullable(),children:L.z.array(Ie)})),R=globalThis.elementorV2.schema,Re=createPropUtils(`html-v3`,R.z.object({content:E.schema.nullable(),children:R.z.array(R.z.unknown())})),ze=createPropUtils(`escaped-html`,globalThis.elementorV2.schema.z.string().nullable()),z=globalThis.elementorV2.schema,B=createPropUtils(`drop-shadow`,globalThis.elementorV2.schema.z.object({xAxis:f,yAxis:f,blur:f,color:f})),V=createPropUtils(`blur`,globalThis.elementorV2.schema.z.strictObject({size:f})),H=createPropUtils(`color-tone`,globalThis.elementorV2.schema.z.strictObject({size:f})),U=createPropUtils(`hue-rotate`,globalThis.elementorV2.schema.z.strictObject({size:f})),W=createPropUtils(`intensity`,globalThis.elementorV2.schema.z.strictObject({size:f})),G=createPropUtils(`css-filter-func`,z.z.object({func:E.schema,args:z.z.union([V.schema,W.schema,H.schema,U.schema,B.schema])})),Be=createPropUtils(`filter`,z.z.array(G.schema)),Ve=createPropUtils(`transform`,globalThis.elementorV2.schema.z.strictObject({"transform-functions":f,"transform-origin":f,perspective:f,"perspective-origin":f})),He=globalThis.elementorV2.schema,Ue=globalThis.elementorV2.schema,K={move:`transform-move`,scale:`transform-scale`,rotate:`transform-rotate`,skew:`transform-skew`},q=createPropUtils(K.move,Ue.z.strictObject({x:f,y:f,z:f})),We=globalThis.elementorV2.schema,J=createPropUtils(K.rotate,We.z.strictObject({x:f,y:f,z:f})),Ge=globalThis.elementorV2.schema,Y=createPropUtils(K.scale,Ge.z.strictObject({x:S.schema.nullable(),y:S.schema.nullable(),z:S.schema.nullable()})),Ke=globalThis.elementorV2.schema,X=createPropUtils(K.skew,Ke.z.strictObject({x:f,y:f})),qe=q.schema.or(Y.schema).or(J.schema).or(X.schema),Je=createPropUtils(`transform-functions`,He.z.array(qe)),Ye=createPropUtils(`transform-origin`,globalThis.elementorV2.schema.z.strictObject({x:f,y:f,z:f})),Xe=createPropUtils(`perspective-origin`,globalThis.elementorV2.schema.z.strictObject({x:f,y:f})),Z=createPropUtils(`backdrop-filter`,globalThis.elementorV2.schema.z.array(G.schema)),Ze=createPropUtils(`date-range`,globalThis.elementorV2.schema.z.strictObject({min:f,max:f})),Qe=createPropUtils(`date-string`,globalThis.elementorV2.schema.z.string()),$e=createPropUtils(`time-range`,globalThis.elementorV2.schema.z.strictObject({min:f,max:f})),et=createPropUtils(`time-string`,globalThis.elementorV2.schema.z.string()),ensureNotNull=(e,t)=>e===null?t:e,tt={transformers:{}},adjustLlmPropValueSchema=(e,{transformers:t={},forceKey:n=void 0}=tt)=>{let r=structuredClone(e);if(typeof r!=`object`||!r)return null;if(Array.isArray(r))return r.map(e=>adjustLlmPropValueSchema(e,{forceKey:n,transformers:t}));let i=r;switch(`$intention`in i&&delete i.$intention,n&&(i.$$type=n),i.$$type){case`size`:{let{value:e}=i;return{$$type:`size`,value:{unit:typeof e.unit==`string`?e.unit:ensureNotNull(E.extract(e.unit),`px`),size:typeof e.size==`string`||typeof e.size==`number`?e.size:ensureNotNull(E.extract(e.size),S.extract(e.size))}}}case`html-v3`:{let{value:e}=i;return{$$type:`html-v3`,value:{...e,children:Array.isArray(e.children)?e.children:[]}}}default:let e=t?.[i.$$type];if(e)return e(i.value)}if(typeof i.value==`object`)if(Array.isArray(i.value))i.value=adjustLlmPropValueSchema(i.value,{transformers:t});else{let{value:e}=i,n=r;n.value={},Object.entries(e).forEach(([e,r])=>{n.value[e]=adjustLlmPropValueSchema(r,{transformers:t})})}return r};function jsonSchemaToPropType(e,t=e.key){let n={};return e.description&&(n.description=e.description),e.anyOf&&Array.isArray(e.anyOf)?convertJsonSchemaToUnionPropType(e,n):e.type===`object`&&e.properties?convertJsonSchemaToObjectPropType(e,n,t):e.type===`array`&&e.items?convertJsonSchemaToArrayPropType(e,n,t):convertJsonSchemaToPlainPropType(e,n,t)}function convertJsonSchemaToPlainPropType(e,t,n=e.key){let r={},i=n||`string`;return e.type===`number`?i=`number`:e.type===`boolean`?i=`boolean`:e.type===`string`&&(i=`string`),Array.isArray(e.enum)&&(r.enum=e.enum),{kind:`plain`,key:i,settings:r,meta:t}}function convertJsonSchemaToUnionPropType(e,t){let n={};if(!e.anyOf||!Array.isArray(e.anyOf))throw Error(`Invalid anyOf schema`);for(let t of e.anyOf)if(t.type===`object`&&t.properties&&t.properties.$$type&&t.properties.value){let e=t.properties.$$type,r;if(e.enum&&Array.isArray(e.enum)&&e.enum.length>0)r=e.enum[0];else continue;n[r]=convertJsonSchemaToPropType(t.properties.value)}return{kind:`union`,prop_types:n,settings:{},meta:t}}function convertJsonSchemaToObjectPropType(e,t,n=e.key){let r={};if(!e.properties)return{kind:`object`,key:n,shape:{},settings:{},meta:t};let i=Array.isArray(e.required)?e.required:[];for(let[t,a]of Object.entries(e.properties)){let e=convertJsonSchemaToPropType(a,n);i.includes(t)&&(e.settings={...e.settings,required:!0}),r[t]=e}return{kind:`object`,key:n||`object`,shape:r,settings:{},meta:t}}function convertJsonSchemaToArrayPropType(e,t,n=e.key){if(!e.items)throw Error(`Array schema must have items property`);let r=convertJsonSchemaToPropType(e.items);return{kind:`array`,key:n||`array`,item_prop_type:r,settings:{},meta:t}}function convertJsonSchemaToPropType(e,t){return jsonSchemaToPropType(e,t)}var Q=`dynamic`,nt=`overridable`,rt=null;function setDynamicTagNamesResolver(e){rt=e}function propTypeToJsonSchema(e,t=!1){let n=e.meta?.description,r={};switch(n&&(r.description=n),e.initial_value!==null&&e.initial_value!==void 0&&(r.examples=[e.initial_value]),e.kind){case`union`:return convertUnionPropType(e,r,t);case`object`:return convertObjectPropType(e,r,t);case`array`:return convertArrayPropType(e,r,t);default:return convertPlainPropType(e,r)}}function convertPlainPropType(e,t){let n={...t};if(!Object.hasOwn(e,`kind`))throw Error(`PropType kind is undefined for propType with key: ${e.key??`[unknown key]`}`);let r=e.settings?.enum||[];switch(e.kind){case`string`:case`number`:case`boolean`:return{...n,type:`object`,properties:{$$type:{type:`string`,const:e.key??e.kind},value:{type:e.kind,...r.length>0?{enum:r}:{}}},required:[`$$type`,`value`]};case`unknown`:return{};default:return{...n,type:`object`,$$type:e.kind,value:{type:e.kind}}}}function convertUnionPropType(e,t,n){let r=structuredClone(t),i=e.prop_types||{},a=!n&&!!i[Q],o=n||a,s=[];for(let[e,t]of Object.entries(i))if(e!==nt){if(e===Q){a&&s.push(convertDynamicPropType(t));continue}s.push(propTypeToJsonSchema(t,o))}s.length>0&&(r.anyOf=s);let c=e.meta?.description;return c&&(r.description=c),r}function convertDynamicPropType(e){let t=Array.isArray(e.settings?.categories)?e.settings.categories:[],n=rt?.(t)??[];return{type:`object`,description:`Bind THIS value to a dynamic tag instead of a static value (this may be a nested field, e.g. an image's "src"). Look up the chosen tag in the "elementor://dynamic-tags" resource and populate "settings" exactly as its schema requires.`,properties:{$$type:{type:`string`,const:Q},value:{type:`object`,properties:{name:{type:`string`,description:`Dynamic tag name from "elementor://dynamic-tags".`,...n.length?{enum:n}:{}},settings:{type:`object`,description:`Tag settings matching the chosen tag's schema in the resource.`}},required:[`name`]}},required:[`$$type`,`value`]}}function convertObjectPropType(e,t,n){let r=structuredClone(t);r.type=`object`;let i={properties:{$$type:{type:`string`,const:e.key},value:{type:`object`,properties:{},additionalProperties:!1}}},a=[`$$type`,`value`],o=[],s=e.shape||{};for(let[e,t]of Object.entries(s)){let r=propTypeToJsonSchema(t,n);t.settings?.required===!0&&o.push(e),i.properties.value.properties&&(i.properties.value.properties[e]=r)}return r.required=a,o.length>0&&(i.properties.value.required=o),{...r,...i}}function convertArrayPropType(e,t,n){let r=structuredClone(t);r.type=`object`;let i,a=e.item_prop_type;return a&&(i=propTypeToJsonSchema(a,n)),r.properties={$$type:{type:`string`,const:e.key},value:{type:`array`,...i?{items:i}:{}}},r}var it=[`_cssid`,`classes`,`attributes`];function isPropKeyConfigurable(e,t){return!it.includes(e)||!!(!Array.isArray(t?.meta)&&t?.meta?.llm_configurable)}function configurableKeys(e){return Object.keys(e).filter(t=>isPropKeyConfigurable(t,e[t]))}function enrichWithIntention(e,t=`Describe the desired outcome`){let n=structuredClone(e);return n.properties?(n.properties.$intention={type:`string`,description:t},n.required=[...n.required||[],`$intention`],n):e}function removeIntention(e){let t=structuredClone(e);return t.properties?(delete t.properties.$intention,t.required&&=t.required.filter(e=>e!==`$intention`),t):e}var at=u();function processValidationError(e){let t={path:e.path,message:e.message,schema:e.schema,instance:e.instance,name:e.name};return e.name===`anyOf`&&e.schema&&typeof e.schema==`object`&&`anyOf`in e.schema&&(t.variants=(e.schema.anyOf||[]).map((t,n)=>{let r=(0,at.validate)(e.instance,t),i=`variant-${n}`;if(t&&typeof t==`object`&&`properties`in t&&t.properties&&typeof t.properties==`object`&&`$$type`in t.properties){let e=t.properties.$$type;e&&typeof e==`object`&&`const`in e&&typeof e.const==`string`&&(i=e.const)}return{discriminator:i,errors:r.errors.map(processValidationError)}})),t}function formatDetailedErrors(e,t=``){let n=[];for(let r of e){let e=r.path.length>0?r.path.join(`.`):`root`;if(n.push(`${t}Error at ${e}: ${r.message}`),r.variants&&r.variants.length>0){n.push(`${t} Tried ${r.variants.length} variant(s):`);for(let e of r.variants)if(n.push(`${t} - ${e.discriminator}:`),e.errors.length===0)n.push(`${t} (no errors - this variant matched!)`);else for(let r of e.errors){let e=r.path.length>0?r.path.join(`.`):`root`;n.push(`${t} ${e}: ${r.message}`),r.variants&&r.variants.length>0&&n.push(formatDetailedErrors([r],`${t} `))}}}return n.join(`
3 +`)}var validatePropValue=(e,t)=>{let n=propTypeToJsonSchema(e);if(t===null)return{valid:!0,errors:[],errorMessages:[],jsonSchema:JSON.stringify(propTypeToJsonSchema(e))};let r=(0,at.validate)(t,n),i=r.errors.map(processValidationError);return{valid:r.valid,errors:r.errors,errorMessages:formatDetailedErrors(i),jsonSchema:JSON.stringify(n)}},$=globalThis.elementorV2.schema,ot=$.z.object({$$type:$.z.string(),value:$.z.any(),disabled:$.z.boolean().optional()}),isTransformable=e=>ot.safeParse(e).success,filterEmptyValues=e=>isEmpty(e)?null:Array.isArray(e)?e.map(filterEmptyValues).filter(e=>!isEmpty(e)):typeof e==`object`?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,filterEmptyValues(t)]).filter(([,e])=>!isEmpty(e))):e,isEmpty=e=>e&&isTransformable(e)?isEmpty(e.value):isNullish(e)||isNullishArray(e)||isNullishObject(e),isNullish=e=>e==null||e===``,isNullishArray=e=>Array.isArray(e)&&e.every(isEmpty),isNullishObject=e=>typeof e==`object`&&isNullishArray(Object.values(e));function isOverridable(e){return isTransformable(e)&&e.$$type===`overridable`}function rewrapOverridableValue(e,t){return{...e,value:{...e.value,origin_value:t}}}function mergeProps(e,t){let n={};return Array.isArray(e)||(n=structuredClone(e)),Object.entries(t).forEach(([e,t])=>{t==null?delete n[e]:n[e]=t}),n}function isDependencyMet(e,t){if(!e?.terms.length)return{isMet:!0};let{relation:n,terms:r}=e,i=getRelationMethod(n),a=[];return{isMet:r[i](e=>{let n=isDependency(e)?isDependencyMet(e,t).isMet:evaluateTerm(e,extractValue(e.path,t,e.nestedPath)?.value);return n||a.push(e),n}),failingDependencies:a}}function evaluateTerm(e,t){let{value:n,operator:r}=e;switch(r){case`eq`:case`ne`:return t===n==(r===`eq`);case`gt`:case`lte`:return!isNumber(t)||!isNumber(n)?!1:Number(t)>Number(n)==(r===`gt`);case`lt`:case`gte`:return!isNumber(t)||!isNumber(n)?!1:Number(t)<Number(n)==(r===`lt`);case`in`:case`nin`:return Array.isArray(n)?n.includes(t)===(r===`in`):!1;case`contains`:case`ncontains`:if((typeof t!=`string`||typeof n!=`string`)&&!Array.isArray(t))return!1;let e=Array.isArray(t)?t.map(e=>isTransformable(e)?e.value:e):t;return r===`contains`===e.includes(n);case`exists`:case`not_exist`:return r===`exists`==(!!t||t===0||!1===t);default:return!0}}function isNumber(e){return typeof e==`number`&&!isNaN(e)}function getRelationMethod(e){switch(e){case`or`:return`some`;case`and`:return`every`;default:throw Error(`Relation not supported ${e}`)}}function extractValue(e,t,n=[],r={}){let{unwrapOverridableLeaf:i=!0}=r,a=e.reduce((t,n,r)=>{let i=t?.[n];if(r===e.length-1)return i;if(isOverridable(i)){let e=i.value.origin_value;return isTransformable(e)?e.value??null:e}return isTransformable(i)?i.value??null:i},t);return i&&a&&isOverridable(a)&&(a=a.value.origin_value??null),n?.length?{$$type:`unknown`,value:n.reduce((e,t)=>e?.[t],a?.value)}:a}function isDependency(e){return`terms`in e}var st=new Set([`span`,`b`,`strong`,`i`,`em`,`u`,`a`,`del`,`sup`,`sub`,`s`]);function generateElementId(){return`e-${Date.now().toString(36)}-${Math.random().toString(36).substring(2,9)}`}function traverseChildren(e){let t=[];for(let n of Array.from(e.children)){let e=n.tagName.toLowerCase();if(!st.has(e)){t.push(...traverseChildren(n));continue}let r=n.getAttribute(`id`);r||(r=generateElementId(),n.setAttribute(`id`,r));let i={id:r,type:e},a=n.textContent?.trim();a&&(i.content=a);let o=traverseChildren(n);o.length>0&&(i.children=o),t.push(i)}return t}function parseHtmlChildren(e){if(!e)return{content:e,children:[]};let t=new DOMParser().parseFromString(`<body>${e}</body>`,`text/html`),n=t.querySelector(`parsererror`);if(n)return console.warn(`HTML parsing error, returning original content:`,n.textContent),{content:e,children:[]};let r=t.body,i=traverseChildren(r);return{content:r.innerHTML,children:i}}var ct={jsonSchemaToPropType,propTypeToJsonSchema,adjustLlmPropValueSchema,isPropKeyConfigurable,nonConfigurablePropKeys:it,configurableKeys,validatePropValue,enrichWithIntention,removeIntention,setDynamicTagNamesResolver};0&&(t.exports={CLASSES_PROP_KEY:v,DateTimePropTypeUtil:je,Schema:ct,backdropFilterPropTypeUtil:Z,backgroundColorOverlayPropTypeUtil:j,backgroundGradientOverlayPropTypeUtil:M,backgroundImageOverlayPropTypeUtil:N,backgroundImagePositionOffsetPropTypeUtil:Ee,backgroundImageSizeScalePropTypeUtil:De,backgroundOverlayItem:P,backgroundOverlayPropTypeUtil:Te,backgroundPropTypeUtil:A,blurFilterPropTypeUtil:V,booleanPropTypeUtil:Oe,borderRadiusPropTypeUtil:h,borderWidthPropTypeUtil:g,boxShadowPropTypeUtil:m,classesPropTypeUtil:ee,colorPropTypeUtil:te,colorStopPropTypeUtil:F,colorToneFilterPropTypeUtil:H,createArrayPropUtils,createPropUtils,cssFilterFunctionPropUtil:G,dateRangePropTypeUtil:Ze,dateStringPropTypeUtil:Qe,dimensionsPropTypeUtil:fe,dropShadowFilterPropTypeUtil:B,emailPropTypeUtil:xe,emailsPropTypeUtil:Se,escapedHtmlPropTypeUtil:ze,evaluateTerm,extractValue,filterEmptyValues,filterPropTypeUtil:Be,flexPropTypeUtil:ne,fontFamilyPropTypeUtil:ie,getPropSchemaFromCache,gradientColorStopPropTypeUtil:ke,gridTrackSizePropTypeUtil:me,htmlPropTypeUtil:Fe,htmlV2PropTypeUtil:Le,htmlV3PropTypeUtil:Re,hueRotateFilterPropTypeUtil:U,iconPropTypeUtil:ce,imageAttachmentIdPropType:oe,imagePropTypeUtil:ae,imageSrcPropTypeUtil:se,intensityFilterPropTypeUtil:W,isDependency,isDependencyMet,isEmpty,isOverridable,isTransformable,keyValuePropTypeUtil:O,layoutDirectionPropTypeUtil:ye,linkPropTypeUtil:be,mergeProps,moveTransformPropTypeUtil:q,numberPropTypeUtil:S,numberRangePropTypeUtil:Ae,parseHtmlChildren,perspectiveOriginPropTypeUtil:Xe,positionPropTypeUtil:Me,queryFilterArrayPropTypeUtil:Pe,queryFilterPropTypeUtil:I,queryPropTypeUtil:Ne,rewrapOverridableValue,rotateTransformPropTypeUtil:J,scaleTransformPropTypeUtil:Y,selectionSizePropTypeUtil:k,shadowPropTypeUtil:p,sizePropTypeUtil:pe,skewTransformPropTypeUtil:X,spanPropTypeUtil:he,stringArrayPropTypeUtil:ge,stringPropTypeUtil:E,strokePropTypeUtil:_e,svgSrcPropTypeUtil:le,timeRangePropTypeUtil:$e,timeStringPropTypeUtil:et,transformFunctionsPropTypeUtil:Je,transformOriginPropTypeUtil:Ye,transformPropTypeUtil:Ve,urlPropTypeUtil:ve,videoAttachmentIdPropType:ue,videoSrcPropTypeUtil:de})}))());(window.elementorV2=window.elementorV2||{}).editorProps=d})(),window.elementorV2.editorProps?.init?.();