File: /home/shrsglobal/public_html/wp-content/plugins/header-footer-elementor/build/main.js
/*! For license information please see main.js.LICENSE.txt */
(()=>{var e,t,n={67:(e,t)=>{"use strict";t.YW=function(e,t={}){const{decode:p=decodeURIComponent,delimiter:f=n}=t,{regexp:h,keys:g}=function(e,t={}){const{delimiter:p=n,end:f=!0,sensitive:h=!1,trailing:g=!0}=t,y=[],v=[],x=h?"":"i",b=(Array.isArray(e)?e:[e]).map((e=>e instanceof u?e:function(e,t={}){const{encodePath:n=r}=t,l=new c(function*(e){const t=[...e];let n=0;function r(){let e="";if(o.test(t[++n]))for(e+=t[n];a.test(t[++n]);)e+=t[n];else if('"'===t[n]){let r=n;for(;n<t.length;){if('"'===t[++n]){n++,r=0;break}e+="\\"===t[n]?t[++n]:t[n]}if(r)throw new TypeError(`Unterminated quote at ${r}: ${s}`)}if(!e)throw new TypeError(`Missing parameter name at ${n}: ${s}`);return e}for(;n<t.length;){const e=t[n],o=i[e];if(o)yield{type:o,index:n++,value:e};else if("\\"===e)yield{type:"ESCAPED",index:n++,value:t[n++]};else if(":"===e){const e=r();yield{type:"PARAM",index:n,value:e}}else if("*"===e){const e=r();yield{type:"WILDCARD",index:n,value:e}}else yield{type:"CHAR",index:n,value:t[n++]}}return{type:"END",index:n,value:""}}(e)),d=function e(t){const r=[];for(;;){const o=l.text();o&&r.push({type:"text",value:n(o)});const a=l.tryConsume("PARAM");if(a){r.push({type:"param",name:a});continue}const s=l.tryConsume("WILDCARD");if(s)r.push({type:"wildcard",name:s});else{if(!l.tryConsume("{"))return l.consume(t),r;r.push({type:"group",tokens:e("}")})}}}("END");return new u(d)}(e,t)));for(const{tokens:e}of b)for(const t of d(e,0,[])){const e=m(t,p,y);v.push(e)}let w=`^(?:${v.join("|")})`;return g&&(w+=`(?:${l(p)}$)?`),w+=f?"$":`(?=${l(p)}|$)`,{regexp:new RegExp(w,x),keys:y}}(e,t),y=g.map((e=>!1===p?r:"param"===e.type?p:e=>e.split(f).map(p)));return function(e){const t=h.exec(e);if(!t)return!1;const n=t[0],r=Object.create(null);for(let e=1;e<t.length;e++){if(void 0===t[e])continue;const n=g[e-1],o=y[e-1];r[n.name]=o(t[e])}return{path:n,params:r}}};const n="/",r=e=>e,o=/^[$_\p{ID_Start}]$/u,a=/^[$\u200c\u200d\p{ID_Continue}]$/u,s="https://git.new/pathToRegexpError",i={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function l(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class c{constructor(e){this.tokens=e}peek(){if(!this._peek){const e=this.tokens.next();this._peek=e.value}return this._peek}tryConsume(e){const t=this.peek();if(t.type===e)return this._peek=void 0,t.value}consume(e){const t=this.tryConsume(e);if(void 0!==t)return t;const{type:n,index:r}=this.peek();throw new TypeError(`Unexpected ${n} at ${r}, expected ${e}: ${s}`)}text(){let e,t="";for(;e=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=e;return t}}class u{constructor(e){this.tokens=e}}function*d(e,t,n){if(t===e.length)return yield n;const r=e[t];if("group"===r.type){const o=n.slice();for(const n of d(r.tokens,0,o))yield*d(e,t+1,n)}else n.push(r);yield*d(e,t+1,n)}function m(e,t,n){let r="",o="",a=!0;for(let i=0;i<e.length;i++){const c=e[i];if("text"!==c.type)if("param"!==c.type&&"wildcard"!==c.type);else{if(!a&&!o)throw new TypeError(`Missing text after "${c.name}": ${s}`);"param"===c.type?r+=`(${p(t,a?"":o)}+)`:r+="([\\s\\S]+)",n.push(c),o="",a=!1}else r+=l(c.value),o+=c.value,a||(a=c.value.includes(t))}return r}function p(e,t){return t.length<2?e.length<2?`[^${l(e+t)}]`:`(?:(?!${l(e)})[^${l(t)}])`:e.length<2?`(?:(?!${l(t)})[^${l(e)}])`:`(?:(?!${l(t)}|${l(e)})[\\s\\S])`}},338:(e,t,n)=>{"use strict";var r=n(795);t.H=r.createRoot,r.hydrateRoot},795:e=>{"use strict";e.exports=window.ReactDOM},942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},992:(e,t)=>{"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,a,s=[];for(a in"string"!=typeof t&&(t="?"),e)if(n.call(e,a)){if((r=e[a])||null!=r&&!isNaN(r)||(r=""),a=o(a),r=o(r),null===a||null===r)continue;s.push(a+"="+r)}return s.length?t+s.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var a=r(t[1]),s=r(t[2]);null===a||null===s||a in o||(o[a]=s)}return o}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);o.r(a);var s={};e=e||[null,t({}),t([]),t(t)];for(var i=2&r&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(a,s),a},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=o(338);const t=window.wp.domReady;var n=o.n(t);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,s,i=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return i}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const i=window.React;var l=o.t(i,2),c=o.n(i);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function h(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g=window.wp.element;var y,v=o(992);function x(e){return{path:e.pathname,hash:e.hash,query:v.parse(e.search)}}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(null,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(y||(y={}));var w="beforeunload";function E(e){e.preventDefault(),e.returnValue=""}function _(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}var k=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function o(){var e=n.location,t=e.pathname,o=e.search,a=e.hash,s=r.state||{};return[s.idx,{pathname:t,search:o,hash:a,state:s.usr||null,key:s.key||"default"}]}var a=null;n.addEventListener("popstate",(function(){if(a)d.call(a),a=null;else{var e=y.Pop,t=o(),n=t[0],r=t[1];if(d.length){if(null!=n){var s=l-n;s&&(a={action:e,location:r,retry:function(){v(-1*s)}},v(s))}}else g(e)}}));var s=y.Pop,i=o(),l=i[0],c=i[1],u=_(),d=_();function m(e){return"string"==typeof e?e:(n=(t=e).pathname,r=void 0===n?"/":n,o=t.search,a=void 0===o?"":o,s=t.hash,i=void 0===s?"":s,a&&"?"!==a&&(r+="?"===a.charAt(0)?a:"?"+a),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r);var t,n,r,o,a,s,i}function p(e,t){return void 0===t&&(t=null),b({pathname:c.pathname,hash:"",search:""},"string"==typeof e?function(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}(e):e,{state:t,key:Math.random().toString(36).substr(2,8)})}function f(e,t){return[{usr:e.state,key:e.key,idx:t},m(e)]}function h(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function g(e){s=e;var t=o();l=t[0],c=t[1],u.call({action:s,location:c})}function v(e){r.go(e)}return null==l&&(l=0,r.replaceState(b({},r.state,{idx:l}),"")),{get action(){return s},get location(){return c},createHref:m,push:function e(t,o){var a=y.Push,s=p(t,o);if(h(a,s,(function(){e(t,o)}))){var i=f(s,l+1),c=i[0],u=i[1];try{r.pushState(c,"",u)}catch(e){n.location.assign(u)}g(a)}},replace:function e(t,n){var o=y.Replace,a=p(t,n);if(h(o,a,(function(){e(t,n)}))){var s=f(a,l),i=s[0],c=s[1];r.replaceState(i,"",c),g(o)}},go:v,back:function(){v(-1)},forward:function(){v(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(w,E),function(){t(),d.length||n.removeEventListener(w,E)}}}}(),S=wp.element.createContext({route:x(k.location)}),N=o(67),C=wp.element.useContext,P="";function T(e){var t=e.path,n=e.onRoute,r=e.children,o=C(S).route,a=(0,N.YW)("".concat(t))("".concat(o.hash.substr(1)));return a?(n&&(P!==a.path&&n(),P=a.path),React.createElement("div",null,wp.element.cloneElement(r,{route:a}))):null}var j=o(942),R=o.n(j);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var A=wp.element.useContext;function D(e){var t=e.to,n=e.onClick,r=e.children,o=e.activeClassName,a=A(S).route,s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete s.activeClassName,React.createElement("a",b({},s,{className:R()(h({},o,(0,N.YW)("".concat(t))("".concat(a.hash.substr(1)))),e.className),onClick:function(e){if(e.preventDefault(),a.path!==t||e.target.classList.contains("hfe-user-icon"))if(n&&n(e),"elementor-hf"===t&&hfeSettingsData.header_footer_builder)window.location.href=hfeSettingsData.header_footer_builder;else{var r=k.location.search,o=window.location.hash;if(r.includes("admin.php?page=hfe")&&o.includes(t))if(t.includes("settings")){var s=r+"&tab=1";e.target.classList.contains("hfe-user-icon")&&window.location.hash.includes("settings")?window.location.href="".concat(s,"#").concat(t):k.push("".concat(r,"#").concat(t))}else{var i=r.replace(/&tab=[^&]*/,"");k.push("".concat(i,"#").concat(t))}else window.location.href="".concat(hfeSettingsData.hfe_settings_url,"#").concat(t)}}}),r)}function M(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(M=function(){return!!e})()}var L=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,n){return t=p(t),function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,M()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}(this,t,[e]),h(n,"handleRouteChange",(function(e){localStorage.setItem("hfeSelectedItemId","1");var t=x(null==e?void 0:e.location);n.setState({route:t})})),n.routes=Object.keys(e.routes).map((function(t){return e.routes[t].path})),n.unlisten=k.listen(n.handleRouteChange);var r=x(k.location),o=k.location.search;return n.state={route:r,defaultRoute:null!=e&&e.defaultRoute?"".concat(o,"#").concat(null==e?void 0:e.defaultRoute):"".concat(o,"#/")},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),function(e,t){return t&&m(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"componentWillUnmount",value:function(){this.unlisten()}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.NotFound,this.state),r=n.route,o=n.defaultRoute;if(!r.hash)return k.push(o),React.createElement("div",null);var a=!1;(this.routes||[]).forEach((function(e){var t=(0,N.YW)(r.hash.substr(1))("".concat(r.hash.substr(1)));t&&(a={name:e,data:t})}));var s={route:r,matched:a},i=!a;return React.createElement(S.Provider,{value:s},i?React.createElement("div",null,"Not found"):t)}}])}(g.Component);const O=window.ReactJSXRuntime,I=e=>{const t=U(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),B(n,t)||V(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},B=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?B(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return t.validators.find((({validator:e})=>e(a)))?.classGroupId},z=/^\[(.+)\]$/,V=e=>{if(z.test(e)){const t=z.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},U=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return q(Object.entries(e.classGroups),n).forEach((([e,n])=>{W(n,r,e,t)})),r},W=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return $(e)?void W(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{W(o,H(t,e),n,r)}))}else(""===e?t:H(t,e)).classGroupId=n}))},H=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},$=e=>e.isThemeGetter,q=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,Y=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},G=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],a=t.length,s=e=>{const n=[];let s,i=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===i){if(u===o&&(r||e.slice(c,c+a)===t)){n.push(e.slice(l,c)),l=c+a;continue}if("/"===u){s=c;continue}}"["===u?i++:"]"===u&&i--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:s&&s>l?s-l:void 0}};return n?e=>n({className:e,parseClassName:s}):s},X=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},K=/\s+/;function Z(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=J(e))&&(r&&(r+=" "),r+=t);return r}const J=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=J(e[r]))&&(n&&(n+=" "),n+=t);return n};function Q(e,...t){let n,r,o,a=function(i){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:Y(e.cacheSize),parseClassName:G(e),...I(e)}))(l),r=n.cache.get,o=n.cache.set,a=s,s(i)};function s(e){const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],s=e.trim().split(K);let i="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let m=Boolean(d),p=r(m?u.substring(0,d):u);if(!p){if(!m){i=t+(i.length>0?" "+i:i);continue}if(p=r(u),!p){i=t+(i.length>0?" "+i:i);continue}m=!1}const f=X(l).join(":"),h=c?f+"!":f,g=h+p;if(a.includes(g))continue;a.push(g);const y=o(p,m);for(let e=0;e<y.length;++e){const t=y[e];a.push(h+t)}i=t+(i.length>0?" "+i:i)}return i})(e,n);return o(e,a),a}return function(){return a(Z.apply(null,arguments))}}const ee=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},te=/^\[(?:([a-z-]+):)?(.+)\]$/i,ne=/^\d+\/\d+$/,re=new Set(["px","full","screen"]),oe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ae=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,se=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ie=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,le=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=e=>de(e)||re.has(e)||ne.test(e),ue=e=>ke(e,"length",Se),de=e=>Boolean(e)&&!Number.isNaN(Number(e)),me=e=>ke(e,"number",de),pe=e=>Boolean(e)&&Number.isInteger(Number(e)),fe=e=>e.endsWith("%")&&de(e.slice(0,-1)),he=e=>te.test(e),ge=e=>oe.test(e),ye=new Set(["length","size","percentage"]),ve=e=>ke(e,ye,Ne),xe=e=>ke(e,"position",Ne),be=new Set(["image","url"]),we=e=>ke(e,be,Pe),Ee=e=>ke(e,"",Ce),_e=()=>!0,ke=(e,t,n)=>{const r=te.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},Se=e=>ae.test(e)&&!se.test(e),Ne=()=>!1,Ce=e=>ie.test(e),Pe=e=>le.test(e),Te=(Symbol.toStringTag,()=>{const e=ee("colors"),t=ee("spacing"),n=ee("blur"),r=ee("brightness"),o=ee("borderColor"),a=ee("borderRadius"),s=ee("borderSpacing"),i=ee("borderWidth"),l=ee("contrast"),c=ee("grayscale"),u=ee("hueRotate"),d=ee("invert"),m=ee("gap"),p=ee("gradientColorStops"),f=ee("gradientColorStopPositions"),h=ee("inset"),g=ee("margin"),y=ee("opacity"),v=ee("padding"),x=ee("saturate"),b=ee("scale"),w=ee("sepia"),E=ee("skew"),_=ee("space"),k=ee("translate"),S=()=>["auto",he,t],N=()=>[he,t],C=()=>["",ce,ue],P=()=>["auto",de,he],T=()=>["","0",he],j=()=>[de,he];return{cacheSize:500,separator:":",theme:{colors:[_e],spacing:[ce,ue],blur:["none","",ge,he],brightness:j(),borderColor:[e],borderRadius:["none","","full",ge,he],borderSpacing:N(),borderWidth:C(),contrast:j(),grayscale:T(),hueRotate:j(),invert:T(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[fe,ue],inset:S(),margin:S(),opacity:j(),padding:N(),saturate:j(),scale:j(),sepia:T(),skew:j(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",he]}],container:["container"],columns:[{columns:[ge]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",he]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",pe,he]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",he]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",pe,he]}],"grid-cols":[{"grid-cols":[_e]}],"col-start-end":[{col:["auto",{span:["full",pe,he]},he]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[_e]}],"row-start-end":[{row:["auto",{span:[pe,he]},he]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",he]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",he]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",he,t]}],"min-w":[{"min-w":[he,t,"min","max","fit"]}],"max-w":[{"max-w":[he,t,"none","full","min","max","fit","prose",{screen:[ge]},ge]}],h:[{h:[he,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[he,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[he,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[he,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ge,ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",me]}],"font-family":[{font:[_e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",he]}],"line-clamp":[{"line-clamp":["none",de,me]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ce,he]}],"list-image":[{"list-image":["none",he]}],"list-style-type":[{list:["none","disc","decimal",he]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ce,ue]}],"underline-offset":[{"underline-offset":["auto",ce,he]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",xe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ve]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},we]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[ce,he]}],"outline-w":[{outline:[ce,ue]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:C()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ce,ue]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ge,Ee]}],"shadow-color":[{shadow:[_e]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ge,he]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",he]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",he]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",he]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[pe,he]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",he]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",he]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",he]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ce,ue,me]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),je=Q(Te);function Re(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Re(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Fe(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Re(e))&&(r&&(r+=" "),r+=t);return r}const Ae=(...e)=>je(Fe(...e)),De=(...e)=>(...t)=>e.forEach((e=>e?.(...t))),Me=e=>{const t={0:"gap-0",xxs:"gap-1",xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-5",xl:"gap-6","2xl":"gap-8"};return t[e]||t.md},Le={sm:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"}},Oe={sm:{xs:"gap-2",sm:"gap-4",md:"gap-5",lg:"gap-6",xl:"gap-6","2xl":"gap-8"},md:{xs:"md:gap-2",sm:"md:gap-4",md:"md:gap-5",lg:"md:gap-6",xl:"md:gap-6","2xl":"md:gap-8"},lg:{xs:"lg:gap-2",sm:"lg:gap-4",md:"lg:gap-5",lg:"lg:gap-6",xl:"lg:gap-6","2xl":"lg:gap-8"}},Ie={sm:{xs:"gap-x-2",sm:"gap-x-4",md:"gap-x-5",lg:"gap-x-6",xl:"gap-x-6","2xl":"gap-x-8"},md:{xs:"md:gap-x-2",sm:"md:gap-x-4",md:"md:gap-x-5",lg:"md:gap-x-6",xl:"md:gap-x-6","2xl":"md:gap-x-8"},lg:{xs:"lg:gap-x-2",sm:"lg:gap-x-4",md:"lg:gap-x-5",lg:"lg:gap-x-6",xl:"lg:gap-x-6","2xl":"lg:gap-x-8"}},Be={sm:{xs:"gap-y-2",sm:"gap-y-4",md:"gap-y-5",lg:"gap-y-6",xl:"gap-y-6","2xl":"gap-y-8"},md:{xs:"md:gap-y-2",sm:"md:gap-y-4",md:"md:gap-y-5",lg:"md:gap-y-6",xl:"md:gap-y-6","2xl":"md:gap-y-8"},lg:{xs:"lg:gap-y-2",sm:"lg:gap-y-4",md:"lg:gap-y-5",lg:"lg:gap-y-6",xl:"lg:gap-y-6","2xl":"lg:gap-y-8"}},ze={sm:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12"}},Ve={sm:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12"},md:{1:"md:col-start-1",2:"md:col-start-2",3:"md:col-start-3",4:"md:col-start-4",5:"md:col-start-5",6:"md:col-start-6",7:"md:col-start-7",8:"md:col-start-8",9:"md:col-start-9",10:"md:col-start-10",11:"md:col-start-11",12:"md:col-start-12"},lg:{1:"lg:col-start-1",2:"lg:col-start-2",3:"lg:col-start-3",4:"lg:col-start-4",5:"lg:col-start-5",6:"lg:col-start-6",7:"lg:col-start-7",8:"lg:col-start-8",9:"lg:col-start-9",10:"lg:col-start-10",11:"lg:col-start-11",12:"lg:col-start-12"}},Ue={sm:{row:"grid-flow-row",column:"grid-flow-col","row-dense":"grid-flow-row-dense","column-dense":"grid-flow-col-dense"},md:{row:"md:grid-flow-row",column:"md:grid-flow-col","row-dense":"md:grid-flow-row-dense","column-dense":"md:grid-flow-col-dense"},lg:{row:"lg:grid-flow-row",column:"lg:grid-flow-col","row-dense":"lg:grid-flow-row-dense","column-dense":"lg:grid-flow-col-dense"}},We={sm:{normal:"justify-normal",start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},md:{normal:"md:justify-normal",start:"md:justify-start",end:"md:justify-end",center:"md:justify-center",between:"md:justify-between",around:"md:justify-around",evenly:"md:justify-evenly",stretch:"md:justify-stretch"},lg:{normal:"lg:justify-normal",start:"lg:justify-start",end:"lg:justify-end",center:"lg:justify-center",between:"lg:justify-between",around:"lg:justify-around",evenly:"lg:justify-evenly",stretch:"lg:justify-stretch"}},He={sm:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md:{start:"md:items-start",end:"md:items-end",center:"md:items-center",baseline:"md:items-baseline",stretch:"md:items-stretch"},lg:{start:"lg:items-start",end:"lg:items-end",center:"lg:items-center",baseline:"lg:items-baseline",stretch:"lg:items-stretch"}},$e={sm:{start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"},md:{start:"md:self-start",end:"md:self-end",center:"md:self-center",baseline:"md:self-baseline",stretch:"md:self-stretch"},lg:{start:"lg:self-start",end:"lg:self-end",center:"lg:self-center",baseline:"lg:self-baseline",stretch:"lg:self-stretch"}},qe={sm:{auto:"justify-self-auto",start:"justify-self-start",end:"justify-self-end",center:"justify-self-center",baseline:"justify-self-baseline",stretch:"justify-self-stretch"},md:{auto:"md:justify-self-auto",start:"md:justify-self-start",end:"md:justify-self-end",center:"md:justify-self-center",baseline:"md:justify-self-baseline",stretch:"md:justify-self-stretch"},lg:{auto:"lg:justify-self-auto",start:"lg:justify-self-start",end:"lg:justify-self-end",center:"lg:justify-self-center",baseline:"lg:justify-self-baseline",stretch:"lg:justify-self-stretch"}},Ye={sm:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},md:{row:"md:flex-row","row-reverse":"md:flex-row-reverse",column:"md:flex-col","column-reverse":"md:flex-col-reverse"},lg:{row:"lg:flex-row","row-reverse":"lg:flex-row-reverse",column:"lg:flex-col","column-reverse":"lg:flex-col-reverse"}},Ge={sm:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},md:{wrap:"md:flex-wrap","wrap-reverse":"md:flex-wrap-reverse",nowrap:"md:flex-nowrap"},lg:{wrap:"lg:flex-wrap","wrap-reverse":"lg:flex-wrap-reverse",nowrap:"lg:flex-nowrap"}},Xe={sm:{1:"w-full",2:"w-1/2",3:"w-1/3",4:"w-1/4",5:"w-1/5",6:"w-1/6",7:"w-1/7",8:"w-1/8",9:"w-1/9",10:"w-1/10",11:"w-1/11",12:"w-1/12"},md:{1:"md:w-full",2:"md:w-1/2",3:"md:w-1/3",4:"md:w-1/4",5:"md:w-1/5",6:"md:w-1/6",7:"md:w-1/7",8:"md:w-1/8",9:"md:w-1/9",10:"md:w-1/10",11:"md:w-1/11",12:"md:w-1/12"},lg:{1:"lg:w-full",2:"lg:w-1/2",3:"lg:w-1/3",4:"lg:w-1/4",5:"lg:w-1/5",6:"lg:w-1/6",7:"lg:w-1/7",8:"lg:w-1/8",9:"lg:w-1/9",10:"lg:w-1/10",11:"lg:w-1/11",12:"lg:w-1/12"}},Ke={sm:{1:"order-1",2:"order-2",3:"order-3",4:"order-4",5:"order-5",6:"order-6",7:"order-7",8:"order-8",9:"order-9",10:"order-10",11:"order-11",12:"order-12",first:"order-first",last:"order-last",none:"order-none"},md:{1:"md:order-1",2:"md:order-2",3:"md:order-3",4:"md:order-4",5:"md:order-5",6:"md:order-6",7:"md:order-7",8:"md:order-8",9:"md:order-9",10:"md:order-10",11:"md:order-11",12:"md:order-12",first:"md:order-first",last:"md:order-last",none:"md:order-none"},lg:{1:"lg:order-1",2:"lg:order-2",3:"lg:order-3",4:"lg:order-4",5:"lg:order-5",6:"lg:order-6",7:"lg:order-7",8:"lg:order-8",9:"lg:order-9",10:"lg:order-10",11:"lg:order-11",12:"lg:order-12",first:"lg:order-first",last:"lg:order-last",none:"lg:order-none"}},Ze={sm:{0:"grow-0",1:"grow"},md:{0:"md:grow-0",1:"md:grow"},lg:{0:"lg:grow-0",1:"lg:grow"}},Je={sm:{0:"shrink-0",1:"shrink"},md:{0:"md:shrink-0",1:"md:shrink"},lg:{0:"lg:shrink-0",1:"lg:shrink"}},Qe=(e,t,n,r="sm")=>{const o=[];switch(typeof e){case"object":for(const[r,a]of Object.entries(e))t[r]&&o.push(t?.[r]?.[a]??t?.[r]?.[n?.[r]]??"");break;case"string":case"number":const a=r;o.push(t?.[a]?.[e]??t?.[a]?.[n?.[a]]??"");break;default:if(void 0===e)break;o.push(t?.[r]?.[n]??"")}return o.join(" ")},et=({className:e,cols:t,gap:n,gapX:r,gapY:o,align:a,justify:s,gridFlow:i,colsSubGrid:l=!1,rowsSubGrid:c=!1,autoRows:u=!1,autoCols:d=!1,children:m,...p})=>{const f=Qe(t,Le,1),h=Qe(n,Oe,"sm"),g=Qe(r,Ie,""),y=Qe(o,Be,""),v=Qe(a,He,""),x=Qe(s,We,""),b=Qe(i,Ue,"");return(0,O.jsx)("div",{className:Ae("grid",{"grid-cols-subgrid":l,"grid-rows-subgrid":c,"auto-cols-auto":d,"auto-rows-auto":u},f,h,g,y,v,x,b,e),...p,children:m})};et.Item=({className:e,children:t,colSpan:n,colStart:r,alignSelf:o,justifySelf:a,...s})=>{const i=Qe(n,ze,0),l=Qe(r,Ve,0),c=Qe(o,$e,""),u=Qe(a,qe,"");return(0,O.jsx)("div",{className:Ae(i,l,c,u,e),...s,children:t})};const tt=(0,i.createContext)({}),nt=({containerType:e="flex",gap:t="sm",gapX:n,gapY:r,direction:o,justify:a,align:s,wrap:i,cols:l,className:c,children:u,...d})=>{if("grid"===e)return(0,O.jsx)(tt.Provider,{value:{containerType:e},children:(0,O.jsx)(et,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:u,align:s,justify:a,...d})});const m=Qe(i,Ge,""),p=Qe(t,Oe,"sm"),f=Qe(n,Ie,""),h=Qe(r,Be,""),g=Qe(o,Ye,""),y=Qe(a,We,""),v=Qe(s,He,""),x=Ae("flex",m,p,f,h,g,y,v,c);return(0,O.jsx)(tt.Provider,{value:{containerType:e,cols:l},children:"flex"===e?(0,O.jsx)("div",{className:x,children:u}):(0,O.jsx)(et,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:u,align:s,justify:a,...d})})},rt=({grow:e,shrink:t,order:n,alignSelf:r,justifySelf:o,className:a,children:s,...l})=>{const{containerType:c,cols:u}=(0,i.useContext)(tt);if("grid"===c)return(0,O.jsx)(et.Item,{className:a,alignSelf:r,justifySelf:o,children:s,...l});const d=Qe(r,$e,""),m=Qe(o,qe,""),p=Qe(e,Ze,0),f=Qe(t,Je,0),h=Qe(n,Ke,0),g=Qe(u,Xe,1);return(0,O.jsx)("div",{className:Ae("box-border",p,f,h,d,m,g,a),children:s})};nt.Item=rt,nt.displayName="Container",rt.displayName="Container.Item";const ot=({children:e,gap:t="lg",className:n,...r})=>(0,O.jsx)("div",{className:Ae("w-full box-border flex items-center justify-between bg-background-primary p-5 min-h-16",Me(t),n),...r,children:e});ot.displayName="Topbar";const at=({gap:e="sm",children:t,className:n})=>(0,O.jsx)("div",{className:Ae("flex items-center",Me(e),n),children:t});at.displayName="Topbar.Left";const st=({gap:e="md",children:t,align:n="center",className:r})=>{const o={left:"justify-start",center:"justify-center",right:"justify-end"}[n];return(0,O.jsx)("div",{className:Ae("flex items-center grow",Me(e),o,r),children:t})};st.displayName="Topbar.Middle";const it=({gap:e="sm",children:t,className:n})=>(0,O.jsx)("div",{className:Ae("flex items-center",Me(e),n),children:t});it.displayName="Topbar.Right";const lt=({children:e,className:t})=>(0,O.jsx)("div",{className:Ae("flex items-center [&>svg]:block h-full",t),children:e});lt.displayName="Topbar.Item",ot.Left=at,ot.Middle=st,ot.Right=it,ot.Item=lt;const ct=(0,i.forwardRef)(((e,t)=>{const{variant:n="primary",size:r="md",type:o="button",tag:a="button",className:s,children:l,disabled:c=!1,destructive:u=!1,icon:d=null,iconPosition:m="left",loading:p=!1,...f}=e,h=u&&"focus:ring-focus-error",g=p?"opacity-50 disabled:cursor-not-allowed":"",y={primary:"text-text-on-color bg-button-primary hover:bg-button-primary-hover outline-button-primary hover:outline-button-primary-hover shadow-xs disabled:shadow-none focus:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",secondary:"text-text-on-color bg-button-secondary hover:bg-button-secondary-hover outline-button-secondary hover:outline-button-secondary-hover shadow-xs focus:shadow-none disabled:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",outline:"text-button-tertiary-color outline-border-subtle bg-button-tertiary shadow-sm focus:shadow-none hover:bg-button-tertiary-hover hover:outline-border-subtle disabled:bg-button-tertiary disabled:outline-border-disabled",ghost:"text-text-primary bg-transparent outline-transparent hover:bg-button-tertiary-hover",link:"outline-none text-link-primary bg-transparent hover:text-link-primary-hover hover:underline p-0 border-0 leading-none"}[n],v=u&&!c?{primary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",secondary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",outline:"text-button-danger outline outline-1 outline-button-danger hover:outline-button-danger bg-button-tertiary hover:bg-field-background-error",ghost:"text-button-danger hover:bg-field-background-error",link:"text-button-danger hover:text-button-danger-secondary"}[n]:"",x={xs:"p-1 rounded [&>svg]:size-4",sm:"p-2 rounded [&>svg]:size-4 gap-0.5",md:"p-2.5 rounded-md text-sm [&>svg]:size-5 gap-1",lg:"p-3 rounded-lg text-base [&>svg]:size-6 gap-1"}[r];let b,w=null,E="";return d&&(E="flex items-center justify-center","left"===m?b=d:w=d),(0,O.jsxs)(a,{ref:t,type:o,className:Ae(E,"outline outline-1 border-none cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled",x,y,v,h,g,{"cursor-default":c},s),disabled:c,...f,children:[(0,O.jsx)(i.Fragment,{children:b},"left-icon"),l?(0,O.jsx)("span",{className:"px-1",children:l}):null,(0,O.jsx)(i.Fragment,{children:w},"right-icon")]})}));function ut(){return"undefined"!=typeof window}function dt(e){return ft(e)?(e.nodeName||"").toLowerCase():"#document"}function mt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function pt(e){var t;return null==(t=(ft(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ft(e){return!!ut()&&(e instanceof Node||e instanceof mt(e).Node)}function ht(e){return!!ut()&&(e instanceof Element||e instanceof mt(e).Element)}function gt(e){return!!ut()&&(e instanceof HTMLElement||e instanceof mt(e).HTMLElement)}function yt(e){return!(!ut()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof mt(e).ShadowRoot)}function vt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function xt(e){return["table","td","th"].includes(dt(e))}function bt(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function wt(e){const t=Et(),n=ht(e)?kt(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Et(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function _t(e){return["html","body","#document"].includes(dt(e))}function kt(e){return mt(e).getComputedStyle(e)}function St(e){return ht(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Nt(e){if("html"===dt(e))return e;const t=e.assignedSlot||e.parentNode||yt(e)&&e.host||pt(e);return yt(t)?t.host:t}function Ct(e){const t=Nt(e);return _t(t)?e.ownerDocument?e.ownerDocument.body:e.body:gt(t)&&vt(t)?t:Ct(t)}function Pt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ct(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),s=mt(o);if(a){const e=Tt(s);return t.concat(s,s.visualViewport||[],vt(o)?o:[],e&&n?Pt(e):[])}return t.concat(o,Pt(o,[],n))}function Tt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jt(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Rt(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&yt(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ft(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function At(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function Dt(){return/apple/i.test(navigator.vendor)}function Mt(){const e=/android/i;return e.test(Ft())||e.test(At())}function Lt(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Ot(e){return(null==e?void 0:e.ownerDocument)||document}function It(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Bt(e){return"composedPath"in e?e.composedPath()[0]:e.target}function zt(e){return gt(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}ct.displayName="Button";var Vt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),Ut="undefined"==typeof Element,Wt=Ut?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ht=!Ut&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},$t=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},qt=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var s=a.shift();if(!$t(s,!1))if("SLOT"===s.tagName){var i=s.assignedElements(),l=e(i.length?i:s.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:s,candidates:l})}else{Wt.call(s,Vt)&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var c=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),u=!$t(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(c&&u){var d=e(!0===c?s.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:s,candidates:d})}else a.unshift.apply(a,s.children)}}return o},Yt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Gt=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Yt(e)?0:e.tabIndex},Xt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Kt=function(e){return"INPUT"===e.tagName},Zt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Jt=function(e,t){return!(t.disabled||$t(t)||function(e){return Kt(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Wt.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Wt.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Zt(e)}else{if("function"==typeof r){for(var a=e;e;){var s=e.parentElement,i=Ht(e);if(s&&!s.shadowRoot&&!0===r(s))return Zt(e);e=e.assignedSlot?e.assignedSlot:s||i===e.ownerDocument?s:i.host}e=a}if(function(e){var t,n,r,o,a=e&&Ht(e),s=null===(t=a)||void 0===t?void 0:t.host,i=!1;if(a&&a!==e)for(i=!!(null!==(n=s)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(s)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!i&&s;){var l,c,u;i=!(null===(c=s=null===(l=a=Ht(s))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(s))}return i}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Wt.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Qt=function(e,t){return!(function(e){return function(e){return Kt(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Ht(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||Gt(t)<0||!Jt(e,t))},en=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},tn=function e(t){var n=[],r=[];return t.forEach((function(t,o){var a=!!t.scopeParent,s=a?t.scopeParent:t,i=function(e,t){var n=Gt(e);return n<0&&t&&!Yt(e)?0:n}(s,a),l=a?e(t.candidates):s;0===i?a?n.push.apply(n,l):n.push(s):r.push({documentOrder:o,tabIndex:i,item:t,isScope:a,content:l})})),r.sort(Xt).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},nn=function(e,t){var n;return n=(t=t||{}).getShadowRoot?qt([e],t.includeContainer,{filter:Qt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:en}):function(e,t,n){if($t(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Vt));return t&&Wt.call(e,Vt)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Qt.bind(null,t)),tn(n)},rn=o(795);const on=Math.min,an=Math.max,sn=Math.round,ln=Math.floor,cn=e=>({x:e,y:e}),un={left:"right",right:"left",bottom:"top",top:"bottom"},dn={start:"end",end:"start"};function mn(e,t,n){return an(e,on(t,n))}function pn(e,t){return"function"==typeof e?e(t):e}function fn(e){return e.split("-")[0]}function hn(e){return e.split("-")[1]}function gn(e){return"x"===e?"y":"x"}function yn(e){return"y"===e?"height":"width"}function vn(e){return["top","bottom"].includes(fn(e))?"y":"x"}function xn(e){return gn(vn(e))}function bn(e){return e.replace(/start|end/g,(e=>dn[e]))}function wn(e){return e.replace(/left|right|bottom|top/g,(e=>un[e]))}function En(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function _n(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function kn(e,t,n){let{reference:r,floating:o}=e;const a=vn(t),s=xn(t),i=yn(s),l=fn(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(hn(t)){case"start":p[s]-=m*(n&&c?-1:1);break;case"end":p[s]+=m*(n&&c?-1:1)}return p}async function Sn(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=pn(t,e),f=En(p),h=i[m?"floating"===d?"reference":"floating":d],g=_n(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(i.floating)),x=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},b=_n(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-b.top+f.top)/x.y,bottom:(b.bottom-g.bottom+f.bottom)/x.y,left:(g.left-b.left+f.left)/x.x,right:(b.right-g.right+f.right)/x.x}}function Nn(e){const t=kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=gt(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=sn(n)!==a||sn(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Cn(e){return ht(e)?e:e.contextElement}function Pn(e){const t=Cn(e);if(!gt(t))return cn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Nn(t);let s=(a?sn(n.width):n.width)/r,i=(a?sn(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),i&&Number.isFinite(i)||(i=1),{x:s,y:i}}const Tn=cn(0);function jn(e){const t=mt(e);return Et()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Tn}function Rn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Cn(e);let s=cn(1);t&&(r?ht(r)&&(s=Pn(r)):s=Pn(e));const i=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==mt(e))&&t}(a,n,r)?jn(a):cn(0);let l=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(a){const e=mt(a),t=r&&ht(r)?mt(r):r;let n=e,o=Tt(n);for(;o&&r&&t!==n;){const e=Pn(o),t=o.getBoundingClientRect(),r=kt(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=s,n=mt(o),o=Tt(n)}}return _n({width:u,height:d,x:l,y:c})}function Fn(e,t){const n=St(e).scrollLeft;return t?t.left+n:Rn(pt(e)).left+n}function An(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Fn(e,r)),y:r.top+t.scrollTop}}function Dn(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=mt(e),r=pt(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const e=Et();(!e||e&&"fixed"===t)&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i,y:l}}(e,n);else if("document"===t)r=function(e){const t=pt(e),n=St(e),r=e.ownerDocument.body,o=an(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=an(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Fn(e);const i=-n.scrollTop;return"rtl"===kt(r).direction&&(s+=an(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}(pt(e));else if(ht(t))r=function(e,t){const n=Rn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=gt(e)?Pn(e):cn(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=jn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return _n(r)}function Mn(e,t){const n=Nt(e);return!(n===t||!ht(n)||_t(n))&&("fixed"===kt(n).position||Mn(n,t))}function Ln(e,t,n){const r=gt(t),o=pt(t),a="fixed"===n,s=Rn(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=cn(0);function c(){l.x=Fn(o)}if(r||!r&&!a)if(("body"!==dt(t)||vt(o))&&(i=St(t)),r){const e=Rn(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();a&&!r&&o&&c();const u=!o||r||a?cn(0):An(o,i);return{x:s.left+i.scrollLeft-l.x-u.x,y:s.top+i.scrollTop-l.y-u.y,width:s.width,height:s.height}}function On(e){return"static"===kt(e).position}function In(e,t){if(!gt(e)||"fixed"===kt(e).position)return null;if(t)return t(e);let n=e.offsetParent;return pt(e)===n&&(n=n.ownerDocument.body),n}function Bn(e,t){const n=mt(e);if(bt(e))return n;if(!gt(e)){let t=Nt(e);for(;t&&!_t(t);){if(ht(t)&&!On(t))return t;t=Nt(t)}return n}let r=In(e,t);for(;r&&xt(r)&&On(r);)r=In(r,t);return r&&_t(r)&&On(r)&&!wt(r)?n:r||function(e){let t=Nt(e);for(;gt(t)&&!_t(t);){if(wt(t))return t;if(bt(t))return null;t=Nt(t)}return null}(e)||n}const zn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,s=pt(r),i=!!t&&bt(t.floating);if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},c=cn(1);const u=cn(0),d=gt(r);if((d||!d&&!a)&&(("body"!==dt(r)||vt(s))&&(l=St(r)),gt(r))){const e=Rn(r);c=Pn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const m=!s||d||a?cn(0):An(s,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+m.x,y:n.y*c.y-l.scrollTop*c.y+u.y+m.y}},getDocumentElement:pt,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?bt(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Pt(e,[],!1).filter((e=>ht(e)&&"body"!==dt(e))),o=null;const a="fixed"===kt(e).position;let s=a?Nt(e):e;for(;ht(s)&&!_t(s);){const t=kt(s),n=wt(s);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||vt(s)&&!n&&Mn(e,s))?r=r.filter((e=>e!==s)):o=t,s=Nt(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=a[0],i=a.reduce(((e,n)=>{const r=Dn(t,n,o);return e.top=an(r.top,e.top),e.right=on(r.right,e.right),e.bottom=on(r.bottom,e.bottom),e.left=an(r.left,e.left),e}),Dn(t,s,o));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:Bn,getElementRects:async function(e){const t=this.getOffsetParent||Bn,n=this.getDimensions,r=await n(e.floating);return{reference:Ln(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Nn(e);return{width:t,height:n}},getScale:Pn,isElement:ht,isRTL:function(e){return"rtl"===kt(e).direction}};function Vn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Un(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Cn(e),u=o||a?[...c?Pt(c):[],...Pt(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=c&&i?function(e,t){let n,r=null;const o=pt(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(i,l){void 0===i&&(i=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:m,height:p}=c;if(i||t(),!m||!p)return;const f={rootMargin:-ln(d)+"px "+-ln(o.clientWidth-(u+m))+"px "+-ln(o.clientHeight-(d+p))+"px "+-ln(u)+"px",threshold:an(0,on(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==r||Vn(c,e.getBoundingClientRect())||s(),h=!1}try{r=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),a}(c,n):null;let m,p=-1,f=null;s&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let h=l?Rn(e):null;return l&&function t(){const r=Rn(e);h&&!Vn(h,r)&&n(),h=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(m)}}const Wn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=fn(n),i=hn(n),l="y"===vn(n),c=["left","top"].includes(s)?-1:1,u=a&&l?-1:1,d=pn(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&"number"==typeof f&&(p="end"===i?-1*f:f),l?{x:p*u,y:m*c}:{x:m*c,y:p*u}}(t,e);return s===(null==(n=i.offset)?void 0:n.placement)&&null!=(r=i.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},Hn=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=pn(e,t),c={x:n,y:r},u=await Sn(t,l),d=vn(fn(o)),m=gn(d);let p=c[m],f=c[d];if(a){const e="y"===m?"bottom":"right";p=mn(p+u["y"===m?"top":"left"],p,p-u[e])}if(s){const e="y"===d?"bottom":"right";f=mn(f+u["y"===d?"top":"left"],f,f-u[e])}const h=i.fn({...t,[m]:p,[d]:f});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:a,[d]:s}}}}}},$n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...g}=pn(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const y=fn(o),v=vn(i),x=fn(i)===i,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=m||(x||!h?[wn(i)]:function(e){const t=wn(e);return[bn(e),t,bn(t)]}(i)),E="none"!==f;!m&&E&&w.push(...function(e,t,n,r){const o=hn(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}(fn(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(bn)))),a}(i,h,f,b));const _=[i,...w],k=await Sn(t,g),S=[];let N=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&S.push(k[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=hn(e),o=xn(e),a=yn(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=wn(s)),[s,wn(s)]}(o,s,b);S.push(k[e[0]],k[e[1]])}if(N=[...N,{placement:o,overflows:S}],!S.every((e=>e<=0))){var C,P;const e=((null==(C=a.flip)?void 0:C.index)||0)+1,t=_[e];if(t){var T;const n="alignment"===d&&v!==vn(t),r=(null==(T=N[0])?void 0:T.overflows[0])>0;if(!n||r)return{data:{index:e,overflows:N},reset:{placement:t}}}let n=null==(P=N.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var j;const e=null==(j=N.filter((e=>{if(E){const t=vn(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:j[0];e&&(n=e);break}case"initialPlacement":n=i}if(o!==n)return{reset:{placement:n}}}return{}}}},qn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:u=0}=pn(e,t)||{};if(null==c)return{};const d=En(u),m={x:n,y:r},p=xn(o),f=yn(p),h=await s.getDimensions(c),g="y"===p,y=g?"top":"left",v=g?"bottom":"right",x=g?"clientHeight":"clientWidth",b=a.reference[f]+a.reference[p]-m[p]-a.floating[f],w=m[p]-a.reference[p],E=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let _=E?E[x]:0;_&&await(null==s.isElement?void 0:s.isElement(E))||(_=i.floating[x]||a.floating[f]);const k=b/2-w/2,S=_/2-h[f]/2-1,N=on(d[y],S),C=on(d[v],S),P=N,T=_-h[f]-C,j=_/2-h[f]/2+k,R=mn(P,j,T),F=!l.arrow&&null!=hn(o)&&j!==R&&a.reference[f]/2-(j<P?N:C)-h[f]/2<0,A=F?j<P?j-P:j-T:0;return{[p]:m[p]+A,data:{[p]:R,centerOffset:j-R-A,...F&&{alignmentOffset:A}},reset:F}}}),Yn=(e,t,n)=>{const r=new Map,o={platform:zn,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=kn(c,r,l),m=r,p={},f=0;for(let n=0;n<i.length;n++){const{name:a,fn:h}=i[n],{x:g,y,data:v,reset:x}=await h({x:u,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,p={...p,[a]:{...p[a],...v}},x&&f<=50&&(f++,"object"==typeof x&&(x.placement&&(m=x.placement),x.rects&&(c=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:d}=kn(c,m,l))),n=-1)}return{x:u,y:d,placement:m,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var Gn="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function Xn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Xn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||Xn(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Kn(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zn(e,t){const n=Kn(e);return Math.round(t*n)/n}function Jn(e){const t=i.useRef(e);return Gn((()=>{t.current=e})),t}const Qn=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?qn({element:n.current,padding:r}).fn(t):{}:n?qn({element:n,padding:r}).fn(t):{};var o}}),er=(e,t)=>({...Wn(e),options:[e,t]}),tr=(e,t)=>({...Hn(e),options:[e,t]}),nr=(e,t)=>({...$n(e),options:[e,t]}),rr={...l},or=rr.useInsertionEffect||(e=>e());function ar(e){const t=i.useRef((()=>{}));return or((()=>{t.current=e})),i.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var sr="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}let lr=!1,cr=0;const ur=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+cr++,dr=rr.useId||function(){const[e,t]=i.useState((()=>lr?ur():void 0));return sr((()=>{null==e&&t(ur())}),[]),i.useEffect((()=>{lr=!0}),[]),e},mr=i.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:a}},width:s=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:m,d:p,style:{transform:f,...h}={},...g}=e,y=dr(),[v,x]=i.useState(!1);if(sr((()=>{r&&"rtl"===kt(r).direction&&x(!0)}),[r]),!r)return null;const[b,w]=n.split("-"),E="top"===b||"bottom"===b;let _=d;(E&&null!=a&&a.x||!E&&null!=a&&a.y)&&(_=null);const k=2*u,S=k/2,N=s/2*(c/-8+1),C=l/2*c/4,P=!!p,T=_&&"end"===w?"bottom":"top";let j=_&&"end"===w?"right":"left";_&&v&&(j="end"===w?"left":"right");const R=null!=(null==o?void 0:o.x)?_||o.x:"",F=null!=(null==o?void 0:o.y)?_||o.y:"",A=p||"M0,0 H"+s+" L"+(s-N)+","+(l-C)+" Q"+s/2+","+l+" "+N+","+(l-C)+" Z",D={top:P?"rotate(180deg)":"",left:P?"rotate(90deg)":"rotate(-90deg)",bottom:P?"":"rotate(180deg)",right:P?"rotate(-90deg)":"rotate(90deg)"}[b];return i.createElement("svg",ir({},g,{"aria-hidden":!0,ref:t,width:P?s:s+k,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[j]:R,[T]:F,[b]:E||P?"100%":"calc(100% - "+k/2+"px)",transform:[D,f].filter((e=>!!e)).join(" "),...h}}),k>0&&i.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:m,strokeWidth:k+(p?0:1),d:A}),i.createElement("path",{stroke:k&&!p?g.fill:"none",d:A}),i.createElement("clipPath",{id:y},i.createElement("rect",{x:-S,y:S*(P?-1:1),width:s+k,height:s})))}));const pr=i.createContext(null),fr=i.createContext(null),hr=()=>{var e;return(null==(e=i.useContext(pr))?void 0:e.id)||null},gr=()=>i.useContext(fr);function yr(e){return"data-floating-ui-"+e}function vr(e){const t=(0,i.useRef)(e);return sr((()=>{t.current=e})),t}const xr=yr("safe-polygon");function br(e,t,n){return n&&!Lt(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function wr(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}const Er=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function _r(e,t){const n=nn(e,Er());"prev"===t&&n.reverse();const r=n.indexOf(jt(Ot(e)));return n.slice(r+1)[0]}function kr(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Rt(n,r)}function Sr(e){nn(e,Er()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Nr(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Cr={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Pr(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const Tr=i.forwardRef((function(e,t){const[n,r]=i.useState();sr((()=>(Dt()&&r("button"),document.addEventListener("keydown",Pr),()=>{document.removeEventListener("keydown",Pr)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[yr("focus-guard")]:"",style:Cr};return i.createElement("span",ir({},e,o))})),jr=i.createContext(null),Rr=yr("portal");function Fr(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,a=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=dr(),o=Ar(),[a,s]=i.useState(null),l=i.useRef(null);return sr((()=>()=>{null==a||a.remove(),queueMicrotask((()=>{l.current=null}))}),[a]),sr((()=>{if(!r)return;if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Rr,""),e.appendChild(n),l.current=n,s(n)}),[t,r]),sr((()=>{if(null===n)return;if(!r)return;if(l.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!ht(e)&&(e=e.current),e=e||document.body;let a=null;t&&(a=document.createElement("div"),a.id=t,e.appendChild(a));const i=document.createElement("div");i.id=r,i.setAttribute(Rr,""),e=a||e,e.appendChild(i),l.current=i,s(i)}),[t,n,r,o]),a}({id:n,root:r}),[s,l]=i.useState(null),c=i.useRef(null),u=i.useRef(null),d=i.useRef(null),m=i.useRef(null),p=null==s?void 0:s.modal,f=null==s?void 0:s.open,h=!!s&&!s.modal&&s.open&&o&&!(!r&&!a);return i.useEffect((()=>{if(a&&o&&!p)return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){a&&kr(e)&&("focusin"===e.type?Nr:Sr)(a)}}),[a,o,p]),i.useEffect((()=>{a&&(f||Nr(a))}),[f,a]),i.createElement(jr.Provider,{value:i.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:m,portalNode:a,setFocusManagerState:l})),[o,a])},h&&a&&i.createElement(Tr,{"data-type":"outside",ref:c,onFocus:e=>{if(kr(e,a)){var t;null==(t=d.current)||t.focus()}else{const e=_r(document.body,"prev")||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),h&&a&&i.createElement("span",{"aria-owns":a.id,style:Cr}),a&&rn.createPortal(t,a),h&&a&&i.createElement(Tr,{"data-type":"outside",ref:u,onFocus:e=>{if(kr(e,a)){var t;null==(t=m.current)||t.focus()}else{const t=_r(document.body,"next")||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Ar=()=>i.useContext(jr),Dr="data-floating-ui-focusable";function Mr(e){return gt(e.target)&&"BUTTON"===e.target.tagName}function Lr(e){return zt(e)}function Or(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:a}}=e,{enabled:s=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0,stickIfOpen:m=!0}=t,p=i.useRef(),f=i.useRef(!1),h=i.useMemo((()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==l&&(Lt(t,!0)&&u||(!n||!c||o.current.openEvent&&m&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===l&&p.current?p.current=void 0:Lt(t,!0)&&u||(!n||!c||o.current.openEvent&&m&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!d||Mr(e)||(" "!==e.key||Lr(a)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Mr(e)||Lr(a)||" "===e.key&&f.current&&(f.current=!1,r(!n||!c,e.nativeEvent,"click"))}})),[o,a,l,u,d,r,n,m,c]);return i.useMemo((()=>s?{reference:h}:{}),[s,h])}const Ir={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Br={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},zr=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Vr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:a}=e,{enabled:s=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:f,capture:h}=t,g=gr(),y=ar("function"==typeof c?c:()=>!1),v="function"==typeof c?y:c,x=i.useRef(!1),b=i.useRef(!1),{escapeKey:w,outsidePress:E}=zr(f),{escapeKey:_,outsidePress:k}=zr(h),S=i.useRef(!1),N=ar((e=>{var t;if(!n||!s||!l||"Escape"!==e.key)return;if(S.current)return;const o=null==(t=a.current.floatingContext)?void 0:t.nodeId,i=g?wr(g.nodesRef.current,o):[];if(!w&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),C=ar((e=>{var t;const n=()=>{var t;N(e),null==(t=Bt(e))||t.removeEventListener("keydown",n)};null==(t=Bt(e))||t.addEventListener("keydown",n)})),P=ar((e=>{var t;const n=x.current;x.current=!1;const s=b.current;if(b.current=!1,"click"===u&&s)return;if(n)return;if("function"==typeof v&&!v(e))return;const i=Bt(e),l="["+yr("inert")+"]",c=Ot(o.floating).querySelectorAll(l);let d=ht(i)?i:null;for(;d&&!_t(d);){const e=Nt(d);if(_t(e)||!ht(e))break;d=e}if(c.length&&ht(i)&&!i.matches("html,body")&&!Rt(i,o.floating)&&Array.from(c).every((e=>!Rt(d,e))))return;if(gt(i)&&R){const t=i.clientWidth>0&&i.scrollWidth>i.clientWidth,n=i.clientHeight>0&&i.scrollHeight>i.clientHeight;let r=n&&e.offsetX>i.clientWidth;if(n&&"rtl"===kt(i).direction&&(r=e.offsetX<=i.offsetWidth-i.clientWidth),r||t&&e.offsetY>i.clientHeight)return}const m=null==(t=a.current.floatingContext)?void 0:t.nodeId,p=g&&wr(g.nodesRef.current,m).some((t=>{var n;return It(e,null==(n=t.context)?void 0:n.elements.floating)}));if(It(e,o.floating)||It(e,o.domReference)||p)return;const f=g?wr(g.nodesRef.current,m):[];if(f.length>0){let e=!0;if(f.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),T=ar((e=>{var t;const n=()=>{var t;P(e),null==(t=Bt(e))||t.removeEventListener(u,n)};null==(t=Bt(e))||t.addEventListener(u,n)}));i.useEffect((()=>{if(!n||!s)return;a.current.__escapeKeyBubbles=w,a.current.__outsidePressBubbles=E;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function i(){window.clearTimeout(e),S.current=!0}function c(){e=window.setTimeout((()=>{S.current=!1}),Et()?5:0)}const d=Ot(o.floating);l&&(d.addEventListener("keydown",_?C:N,_),d.addEventListener("compositionstart",i),d.addEventListener("compositionend",c)),v&&d.addEventListener(u,k?T:P,k);let m=[];return p&&(ht(o.domReference)&&(m=Pt(o.domReference)),ht(o.floating)&&(m=m.concat(Pt(o.floating))),!ht(o.reference)&&o.reference&&o.reference.contextElement&&(m=m.concat(Pt(o.reference.contextElement)))),m=m.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),m.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(d.removeEventListener("keydown",_?C:N,_),d.removeEventListener("compositionstart",i),d.removeEventListener("compositionend",c)),v&&d.removeEventListener(u,k?T:P,k),m.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[a,o,l,v,u,n,r,p,s,w,E,N,_,C,P,k,T]),i.useEffect((()=>{x.current=!1}),[v,u]);const j=i.useMemo((()=>({onKeyDown:N,[Ir[m]]:e=>{d&&r(!1,e.nativeEvent,"reference-press")}})),[N,r,d,m]),R=i.useMemo((()=>({onKeyDown:N,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[Br[u]]:()=>{x.current=!0}})),[N,u]);return i.useMemo((()=>s?{reference:j,floating:R}:{}),[s,j,R])}function Ur(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=dr(),a=i.useRef({}),[s]=i.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=hr(),[c,u]=i.useState(r.reference),d=ar(((e,t,r)=>{a.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),m=i.useMemo((()=>({setPositionReference:u})),[]),p=i.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return i.useMemo((()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:s,floatingId:o,refs:m})),[t,d,p,s,o,m])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,s]=i.useState(null),[l,c]=i.useState(null),u=(null==o?void 0:o.domReference)||a,d=i.useRef(null),m=gr();sr((()=>{u&&(d.current=u)}),[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,m]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=i.useState(r);Xn(p,r)||f(r);const[h,g]=i.useState(null),[y,v]=i.useState(null),x=i.useCallback((e=>{e!==_.current&&(_.current=e,g(e))}),[]),b=i.useCallback((e=>{e!==k.current&&(k.current=e,v(e))}),[]),w=a||h,E=s||y,_=i.useRef(null),k=i.useRef(null),S=i.useRef(d),N=null!=c,C=Jn(c),P=Jn(o),T=Jn(u),j=i.useCallback((()=>{if(!_.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),Yn(_.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==T.current};R.current&&!Xn(S.current,t)&&(S.current=t,rn.flushSync((()=>{m(t)})))}))}),[p,t,n,P,T]);Gn((()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,m((e=>({...e,isPositioned:!1}))))}),[u]);const R=i.useRef(!1);Gn((()=>(R.current=!0,()=>{R.current=!1})),[]),Gn((()=>{if(w&&(_.current=w),E&&(k.current=E),w&&E){if(C.current)return C.current(w,E,j);j()}}),[w,E,j,C,N]);const F=i.useMemo((()=>({reference:_,floating:k,setReference:x,setFloating:b})),[x,b]),A=i.useMemo((()=>({reference:w,floating:E})),[w,E]),D=i.useMemo((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=Zn(A.floating,d.x),r=Zn(A.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Kn(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,A.floating,d.x,d.y]);return i.useMemo((()=>({...d,update:j,refs:F,elements:A,floatingStyles:D})),[d,j,F,A,D])}({...e,elements:{...o,...l&&{reference:l}}}),f=i.useCallback((e=>{const t=ht(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)}),[p.refs]),h=i.useCallback((e=>{(ht(e)||null===e)&&(d.current=e,s(e)),(ht(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!ht(e))&&p.refs.setReference(e)}),[p.refs]),g=i.useMemo((()=>({...p.refs,setReference:h,setPositionReference:f,domReference:d})),[p.refs,h,f]),y=i.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),v=i.useMemo((()=>({...p,...r,refs:g,elements:y,nodeId:t})),[p,g,y,t,r]);return sr((()=>{r.dataRef.current.floatingContext=v;const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),i.useMemo((()=>({...p,context:v,refs:g,elements:y})),[p,g,y,v])}function Wr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:a,elements:s}=e,{enabled:l=!0,visibleOnly:c=!0}=t,u=i.useRef(!1),d=i.useRef(),m=i.useRef(!0);i.useEffect((()=>{if(!l)return;const e=mt(s.domReference);function t(){!n&>(s.domReference)&&s.domReference===jt(Ot(s.domReference))&&(u.current=!0)}function r(){m.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[s.domReference,n,l]),i.useEffect((()=>{if(l)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}}),[o,l]),i.useEffect((()=>()=>{clearTimeout(d.current)}),[]);const p=i.useMemo((()=>({onPointerDown(e){(function(e){return!At().includes("jsdom/")&&(!Mt()&&0===e.width&&0===e.height||Mt()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)})(e.nativeEvent)||(m.current=!1)},onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=Bt(e.nativeEvent);if(c&&ht(t))try{if(Dt()&&Ft().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!m.current&&!zt(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=ht(t)&&t.hasAttribute(yr("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout((()=>{var e;const i=jt(s.domReference?s.domReference.ownerDocument:document);(t||i!==s.domReference)&&(Rt(null==(e=a.current.floatingContext)?void 0:e.refs.floating.current,i)||Rt(s.domReference,i)||o||r(!1,n,"focus"))}))}})),[a,s.domReference,r,c]);return i.useMemo((()=>l?{reference:p}:{}),[l,p])}const Hr="active",$r="selected";function qr(e,t,n){const r=new Map,o="item"===n;let a=e;if(o&&e){const{[Hr]:t,[$r]:n,...r}=e;a=r}return{..."floating"===n&&{tabIndex:-1,[Dr]:""},...a,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var s;o&&[Hr,$r].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof a&&(null==(s=r.get(n))||s.push(a),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=a)})),e):e),{})}}function Yr(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=i.useCallback((t=>qr(t,e,"reference")),t),a=i.useCallback((t=>qr(t,e,"floating")),n),s=i.useCallback((t=>qr(t,e,"item")),r);return i.useMemo((()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:s})),[o,a,s])}const Gr=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Xr(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:a=!0,role:s="dialog"}=t,l=null!=(n=Gr.get(s))?n:s,c=dr(),u=null!=hr(),d=i.useMemo((()=>"tooltip"===l||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":r?o:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&u&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}}),[l,o,u,r,c,s]),m=i.useMemo((()=>{const e={id:o,...l&&{role:l}};return"tooltip"===l||"label"===s?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,o,c,s]),p=i.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[o,s]);return i.useMemo((()=>a?{reference:d,floating:m,item:p}:{}),[a,d,m,p])}const Kr=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function Zr(e,t){return"function"==typeof e?e(t):e}function Jr(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:o,common:a,duration:s=250}=t,l=e.placement,c=l.split("-")[0],u=i.useMemo((()=>({side:c,placement:l})),[c,l]),d="number"==typeof s,m=(d?s:s.open)||0,p=(d?s:s.close)||0,[f,h]=i.useState((()=>({...Zr(a,u),...Zr(n,u)}))),{isMounted:g,status:y}=function(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,a=("number"==typeof o?o:o.close)||0,[s,l]=i.useState("unmounted"),c=function(e,t){const[n,r]=i.useState(e);return e&&!n&&r(!0),i.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>r(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,a);return c||"close"!==s||l("unmounted"),sr((()=>{if(r){if(n){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}l("close")}}),[n,r]),{isMounted:c,status:s}}(e,{duration:s}),v=vr(n),x=vr(r),b=vr(o),w=vr(a);return sr((()=>{const e=Zr(v.current,u),t=Zr(b.current,u),n=Zr(w.current,u),r=Zr(x.current,u)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===y&&h((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===y&&h({transitionProperty:Object.keys(r).map(Kr).join(","),transitionDuration:m+"ms",...n,...r}),"close"===y){const r=t||e;h({transitionProperty:Object.keys(r).map(Kr).join(","),transitionDuration:p+"ms",...n,...r})}}),[p,b,v,x,w,m,y,u]),{isMounted:g,styles:f}}function Qr(e,t){const[n,r]=e;let o=!1;const a=t.length;for(let e=0,s=a-1;e<a;s=e++){const[a,i]=t[e]||[0,0],[l,c]=t[s]||[0,0];i>=r!=c>=r&&n<=(l-a)*(r-i)/(c-i)+a&&(o=!o)}return o}function eo(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,a=!1,s=null,i=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:m,nodeId:p,tree:f}=e;return function(e){function h(){clearTimeout(o),m()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:g,clientY:y}=e,v=[g,y],x=Bt(e),b="mouseleave"===e.type,w=Rt(d.floating,x),E=Rt(d.domReference,x),_=d.domReference.getBoundingClientRect(),k=d.floating.getBoundingClientRect(),S=u.split("-")[0],N=n>k.right-k.width/2,C=c>k.bottom-k.height/2,P=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(v,_),T=k.width>_.width,j=k.height>_.height,R=(T?_:k).left,F=(T?_:k).right,A=(j?_:k).top,D=(j?_:k).bottom;if(w&&(a=!0,!b))return;if(E&&(a=!1),E&&!b)return void(a=!0);if(b&&ht(e.relatedTarget)&&Rt(d.floating,e.relatedTarget))return;if(f&&wr(f.nodesRef.current,p).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===S&&c>=_.bottom-1||"bottom"===S&&c<=_.top+1||"left"===S&&n>=_.right-1||"right"===S&&n<=_.left+1)return h();let M=[];switch(S){case"top":M=[[R,_.top+1],[R,k.bottom-1],[F,k.bottom-1],[F,_.top+1]];break;case"bottom":M=[[R,k.top+1],[R,_.bottom-1],[F,_.bottom-1],[F,k.top+1]];break;case"left":M=[[k.right-1,D],[k.right-1,A],[_.left+1,A],[_.left+1,D]];break;case"right":M=[[_.right-1,D],[_.right-1,A],[k.left+1,A],[k.left+1,D]]}if(!Qr([g,y],M)){if(a&&!P)return h();if(!b&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===s||null===i||0===r)return s=e,i=t,l=n,null;const o=e-s,a=t-i,c=Math.sqrt(o*o+a*a);return s=e,i=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}Qr([g,y],function(e){let[n,r]=e;switch(S){case"top":return[[T?n+t/2:N?n+4*t:n-4*t,r+t+1],[T?n-t/2:N?n+4*t:n-4*t,r+t+1],[k.left,N||T?k.bottom-t:k.top],[k.right,N?T?k.bottom-t:k.top:k.bottom-t]];case"bottom":return[[T?n+t/2:N?n+4*t:n-4*t,r-t],[T?n-t/2:N?n+4*t:n-4*t,r-t],[k.left,N||T?k.top+t:k.bottom],[k.right,N?T?k.top+t:k.bottom:k.top+t]];case"left":{const e=[n+t+1,j?r+t/2:C?r+4*t:r-4*t],o=[n+t+1,j?r-t/2:C?r+4*t:r-4*t];return[[C||j?k.right-t:k.left,k.top],[C?j?k.right-t:k.left:k.right-t,k.bottom],e,o]}case"right":return[[n-t,j?r+t/2:C?r+4*t:r-4*t],[n-t,j?r-t/2:C?r+4*t:r-4*t],[C||j?k.left+t:k.right,k.top],[C?j?k.left+t:k.right:k.left+t,k.bottom]]}}([n,c]))?!a&&r&&(o=window.setTimeout(h,40)):h()}}};return c.__options={blockPointerEvents:n},c}function to(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function no(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const ro=e=>Array.isArray(e);function oo(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function ao(e){return"string"==typeof e||Array.isArray(e)}function so(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function io(e,t,n,r){if("function"==typeof t){const[o,a]=so(r);t=t(void 0!==n?n:e.custom,o,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,a]=so(r);t=t(void 0!==n?n:e.custom,o,a)}return t}function lo(e,t,n){const r=e.getProps();return io(r,t,void 0!==n?n:r.custom,e)}const co=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uo=["initial",...co];function mo(e){let t;return()=>(void 0===t&&(t=e()),t)}const po=mo((()=>void 0!==window.ScrollTimeline));class fo{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map((e=>"finished"in e?e.finished:e)))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map((n=>po()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0));return()=>{n.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class ho extends fo{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function go(e,t){return e?e[t]||e.default||e:void 0}const yo=2e4;function vo(e){let t=0,n=e.next(t);for(;!n.done&&t<yo;)t+=50,n=e.next(t);return t>=yo?1/0:t}function xo(e){return"function"==typeof e}function bo(e,t){e.timeline=t,e.onfinish=null}const wo=e=>Array.isArray(e)&&"number"==typeof e[0],Eo={linearEasing:void 0};function _o(e,t){const n=mo(e);return()=>{var e;return null!==(e=Eo[t])&&void 0!==e?e:n()}}const ko=_o((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),So=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},No=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=e(So(0,o-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function Co(e){return Boolean("function"==typeof e&&ko()||!e||"string"==typeof e&&(e in To||ko())||wo(e)||Array.isArray(e)&&e.every(Co))}const Po=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,To={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Po([0,.65,.55,1]),circOut:Po([.55,0,1,.45]),backIn:Po([.31,.01,.66,-.59]),backOut:Po([.33,1.53,.69,.99])};function jo(e,t){return e?"function"==typeof e&&ko()?No(e,t):wo(e)?Po(e):Array.isArray(e)?e.map((e=>jo(e,t)||To.easeOut)):To[e]:void 0}const Ro={x:!1,y:!1};function Fo(){return Ro.x||Ro.y}function Ao(e,t){const n=function(e){if(e instanceof Element)return[e];if("string"==typeof e){let t=document;const n=t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Do(e){return t=>{"touch"===t.pointerType||Fo()||e(t)}}const Mo=(e,t)=>!!t&&(e===t||Mo(e,t.parentElement)),Lo=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,Oo=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),Io=new WeakSet;function Bo(e){return t=>{"Enter"===t.key&&e(t)}}function zo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Vo(e){return Lo(e)&&!Fo()}const Uo=e=>1e3*e,Wo=e=>e/1e3,Ho=e=>e,$o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qo=new Set($o),Yo=new Set(["width","height","top","left","right","bottom",...$o]),Go=e=>ro(e)?e[e.length-1]||0:e,Xo=["read","resolveKeyframes","update","preRender","render","postRender"];function Ko(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=Xo.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function i(t){a.has(t)&&(l.schedule(t),e()),t(s)}const l={schedule:(e,o=!1,s=!1)=>{const i=s&&r?t:n;return o&&a.add(e),i.has(e)||i.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{s=e,r?o=!0:(r=!0,[t,n]=[n,t],t.forEach(i),t.clear(),r=!1,o&&(o=!1,l.process(e)))}};return l}(a),e)),{}),{read:i,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:m}=s,p=()=>{const a=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(a-o.timestamp,40),1),o.timestamp=a,o.isProcessing=!0,i.process(o),l.process(o),c.process(o),u.process(o),d.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))};return{schedule:Xo.reduce(((t,a)=>{const i=s[a];return t[a]=(t,a=!1,s=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(p)),i.schedule(t,a,s)),t}),{}),cancel:e=>{for(let t=0;t<Xo.length;t++)s[Xo[t]].cancel(e)},state:o,steps:s}}const{schedule:Zo,cancel:Jo,state:Qo,steps:ea}=Ko("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Ho,!0);let ta;function na(){ta=void 0}const ra={now:()=>(void 0===ta&&ra.set(Qo.isProcessing?Qo.timestamp:performance.now()),ta),set:e=>{ta=e,queueMicrotask(na)}};function oa(e,t){-1===e.indexOf(t)&&e.push(t)}function aa(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class sa{constructor(){this.subscriptions=[]}add(e){return oa(this.subscriptions,e),()=>aa(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ia(e,t){return t?e*(1e3/t):0}const la={current:void 0};class ca{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=ra.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=ra.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new sa);const n=this.events[e].add(t);return"change"===e?()=>{n(),Zo.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return la.current&&la.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=ra.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ia(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ua(e,t){return new ca(e,t)}function da(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ua(n))}const ma=e=>Boolean(e&&e.getVelocity);function pa(e,t){const n=e.getValue("willChange");if(r=n,Boolean(ma(r)&&r.add))return n.add(t);var r}const fa=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ha="data-"+fa("framerAppearId");function ga(e){return e.props[ha]}const ya=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function va(e,t,n,r){if(e===t&&n===r)return Ho;return o=>0===o||1===o?o:ya(function(e,t,n,r,o){let a,s,i=0;do{s=t+(n-t)/2,a=ya(s,r,o)-e,a>0?n=s:t=s}while(Math.abs(a)>1e-7&&++i<12);return s}(o,0,1,e,n),t,r)}const xa=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ba=e=>t=>1-e(1-t),wa=va(.33,1.53,.69,.99),Ea=ba(wa),_a=xa(Ea),ka=e=>(e*=2)<1?.5*Ea(e):.5*(2-Math.pow(2,-10*(e-1))),Sa=e=>1-Math.sin(Math.acos(e)),Na=ba(Sa),Ca=xa(Sa),Pa=e=>/^0[^.\s]+$/u.test(e),Ta=(e,t,n)=>n>t?t:n<e?e:n,ja={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Ra={...ja,transform:e=>Ta(0,1,e)},Fa={...ja,default:1},Aa=e=>Math.round(1e5*e)/1e5,Da=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Ma=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,La=(e,t)=>n=>Boolean("string"==typeof n&&Ma.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),Oa=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,a,s,i]=r.match(Da);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==i?parseFloat(i):1}},Ia={...ja,transform:e=>Math.round((e=>Ta(0,255,e))(e))},Ba={test:La("rgb","red"),parse:Oa("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ia.transform(e)+", "+Ia.transform(t)+", "+Ia.transform(n)+", "+Aa(Ra.transform(r))+")"},za={test:La("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Ba.transform},Va=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Ua=Va("deg"),Wa=Va("%"),Ha=Va("px"),$a=Va("vh"),qa=Va("vw"),Ya={...Wa,parse:e=>Wa.parse(e)/100,transform:e=>Wa.transform(100*e)},Ga={test:La("hsl","hue"),parse:Oa("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Wa.transform(Aa(t))+", "+Wa.transform(Aa(n))+", "+Aa(Ra.transform(r))+")"},Xa={test:e=>Ba.test(e)||za.test(e)||Ga.test(e),parse:e=>Ba.test(e)?Ba.parse(e):Ga.test(e)?Ga.parse(e):za.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?Ba.transform(e):Ga.transform(e)},Ka=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Za="number",Ja="color",Qa=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function es(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let a=0;const s=t.replace(Qa,(e=>(Xa.test(e)?(r.color.push(a),o.push(Ja),n.push(Xa.parse(e))):e.startsWith("var(")?(r.var.push(a),o.push("var"),n.push(e)):(r.number.push(a),o.push(Za),n.push(parseFloat(e))),++a,"${}"))).split("${}");return{values:n,split:s,indexes:r,types:o}}function ts(e){return es(e).values}function ns(e){const{split:t,types:n}=es(e),r=t.length;return e=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],void 0!==e[a]){const t=n[a];o+=t===Za?Aa(e[a]):t===Ja?Xa.transform(e[a]):e[a]}return o}}const rs=e=>"number"==typeof e?0:e,os={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(Da))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Ka))||void 0===n?void 0:n.length)||0)>0},parse:ts,createTransformer:ns,getAnimatableNone:function(e){const t=ts(e);return ns(e)(t.map(rs))}},as=new Set(["brightness","contrast","saturate","opacity"]);function ss(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Da)||[];if(!r)return e;const o=n.replace(r,"");let a=as.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const is=/\b([a-z-]*)\(.*?\)/gu,ls={...os,getAnimatableNone:e=>{const t=e.match(is);return t?t.map(ss).join(" "):e}},cs={borderWidth:Ha,borderTopWidth:Ha,borderRightWidth:Ha,borderBottomWidth:Ha,borderLeftWidth:Ha,borderRadius:Ha,radius:Ha,borderTopLeftRadius:Ha,borderTopRightRadius:Ha,borderBottomRightRadius:Ha,borderBottomLeftRadius:Ha,width:Ha,maxWidth:Ha,height:Ha,maxHeight:Ha,top:Ha,right:Ha,bottom:Ha,left:Ha,padding:Ha,paddingTop:Ha,paddingRight:Ha,paddingBottom:Ha,paddingLeft:Ha,margin:Ha,marginTop:Ha,marginRight:Ha,marginBottom:Ha,marginLeft:Ha,backgroundPositionX:Ha,backgroundPositionY:Ha},us={rotate:Ua,rotateX:Ua,rotateY:Ua,rotateZ:Ua,scale:Fa,scaleX:Fa,scaleY:Fa,scaleZ:Fa,skew:Ua,skewX:Ua,skewY:Ua,distance:Ha,translateX:Ha,translateY:Ha,translateZ:Ha,x:Ha,y:Ha,z:Ha,perspective:Ha,transformPerspective:Ha,opacity:Ra,originX:Ya,originY:Ya,originZ:Ha},ds={...ja,transform:Math.round},ms={...cs,...us,zIndex:ds,size:Ha,fillOpacity:Ra,strokeOpacity:Ra,numOctaves:ds},ps={...ms,color:Xa,backgroundColor:Xa,outlineColor:Xa,fill:Xa,stroke:Xa,borderColor:Xa,borderTopColor:Xa,borderRightColor:Xa,borderBottomColor:Xa,borderLeftColor:Xa,filter:ls,WebkitFilter:ls},fs=e=>ps[e];function hs(e,t){let n=fs(e);return n!==ls&&(n=os),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const gs=new Set(["auto","none","0"]),ys=e=>e===ja||e===Ha,vs=(e,t)=>parseFloat(e.split(", ")[t]),xs=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return vs(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?vs(t[1],e):0}},bs=new Set(["x","y","z"]),ws=$o.filter((e=>!bs.has(e))),Es={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:xs(4,13),y:xs(5,14)};Es.translateX=Es.x,Es.translateY=Es.y;const _s=new Set;let ks=!1,Ss=!1;function Ns(){if(Ss){const e=Array.from(_s).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return ws.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}Ss=!1,ks=!1,_s.forEach((e=>e.complete())),_s.clear()}function Cs(){_s.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(Ss=!0)}))}class Ps{constructor(e,t,n,r,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(_s.add(this),ks||(ks=!0,Zo.read(Cs),Zo.resolveKeyframes(Ns))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),a=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,a);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=a),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),_s.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,_s.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let Ts=Ho,js=Ho;const Rs=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Fs=e=>t=>"string"==typeof t&&t.startsWith(e),As=Fs("--"),Ds=Fs("var(--"),Ms=e=>!!Ds(e)&&Ls.test(e.split("/*")[0].trim()),Ls=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Os=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Is(e,t,n=1){js(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Os.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const e=a.trim();return Rs(e)?parseFloat(e):e}return Ms(o)?Is(o,t,n+1):o}const Bs=e=>t=>t.test(e),zs=[ja,Ha,Wa,Ua,qa,$a,{test:e=>"auto"===e,parse:e=>e}],Vs=e=>zs.find(Bs(e));class Us extends Ps{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),Ms(r))){const o=Is(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Yo.has(n)||2!==e.length)return;const[r,o]=e,a=Vs(r),s=Vs(o);if(a!==s)if(ys(a)&&ys(s))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||Pa(r))&&n.push(t);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!gs.has(t)&&es(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=hs(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Es[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const a=r.length-1,s=r[a];r[a]=Es[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}const Ws=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!os.test(e)&&"0"!==e||e.startsWith("url(")));function Hs(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const a=e[e.length-1],s=Ws(o,t),i=Ws(a,t);return Ts(s===i,`You are trying to animate ${t} from "${o}" to "${a}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${a} via the \`style\` property.`),!(!s||!i)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||xo(n))&&r)}const $s=e=>null!==e;function qs(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter($s),a=t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==r?r:o[a]}class Ys{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ra.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:a,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Cs(),Ns()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=ra.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:a,onComplete:s,onUpdate:i,isGenerator:l}=this.options;if(!l&&!Hs(e,n,r,o)){if(!a)return i&&i(qs(e,this.options,t)),s&&s(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}const Gs=(e,t,n)=>e+(t-e)*n;function Xs(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ks(e,t){return n=>n>0?t:e}const Zs=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Js=[za,Ba,Ga];function Qs(e){const t=(e=>Js.find((t=>t.test(e))))(e);if(Ts(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let n=t.parse(e);return t===Ga&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;o=Xs(i,r,e+1/3),a=Xs(i,r,e),s=Xs(i,r,e-1/3)}else o=a=s=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:r}}(n)),n}const ei=(e,t)=>{const n=Qs(e),r=Qs(t);if(!n||!r)return Ks(e,t);const o={...n};return e=>(o.red=Zs(n.red,r.red,e),o.green=Zs(n.green,r.green,e),o.blue=Zs(n.blue,r.blue,e),o.alpha=Gs(n.alpha,r.alpha,e),Ba.transform(o))},ti=(e,t)=>n=>t(e(n)),ni=(...e)=>e.reduce(ti),ri=new Set(["none","hidden"]);function oi(e,t){return n=>Gs(e,t,n)}function ai(e){return"number"==typeof e?oi:"string"==typeof e?Ms(e)?Ks:Xa.test(e)?ei:li:Array.isArray(e)?si:"object"==typeof e?Xa.test(e)?ei:ii:Ks}function si(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>ai(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function ii(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=ai(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const li=(e,t)=>{const n=os.createTransformer(t),r=es(e),o=es(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?ri.has(e)&&!o.values.length||ri.has(t)&&!r.values.length?function(e,t){return ri.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):ni(si(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],i=e.indexes[s][o[s]],l=null!==(n=e.values[i])&&void 0!==n?n:0;r[a]=l,o[s]++}return r}(r,o),o.values),n):(Ts(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ks(e,t))};function ci(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?Gs(e,t,n):ai(e)(e,t)}function ui(e,t,n){const r=Math.max(t-5,0);return ia(n-e(r),t-r)}const di=.01,mi=2,pi=.005,fi=.5;const hi=12;function gi(e,t){return e*Math.sqrt(1-t*t)}const yi=["duration","bounce"],vi=["stiffness","damping","mass"];function xi(e,t){return t.some((t=>void 0!==e[t]))}function bi(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],i={done:!1,value:a},{stiffness:l,damping:c,mass:u,duration:d,velocity:m,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!xi(e,vi)&&xi(e,yi))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,a=2*Ta(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:1,stiffness:o,damping:a}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let o,a;Ts(e<=Uo(10),"Spring duration must be 10 seconds or less");let s=1-t;s=Ta(.05,1,s),e=Ta(.01,10,Wo(e)),s<1?(o=t=>{const r=t*s,o=r*e;return.001-(r-n)/gi(t,s)*Math.exp(-o)},a=t=>{const r=t*s*e,a=r*n+n,i=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=gi(Math.pow(t,2),s);return(.001-o(t)>0?-1:1)*((a-i)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const i=function(e,t,n){let r=n;for(let n=1;n<hi;n++)r-=e(r)/t(r);return r}(o,a,5/e);if(e=Uo(e),isNaN(i))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(i,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Wo(n.velocity||0)}),f=m||0,h=c/(2*Math.sqrt(l*u)),g=s-a,y=Wo(Math.sqrt(l/u)),v=Math.abs(g)<5;let x;if(r||(r=v?di:mi),o||(o=v?pi:fi),h<1){const e=gi(y,h);x=t=>{const n=Math.exp(-h*y*t);return s-n*((f+h*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===h)x=e=>s-Math.exp(-y*e)*(g+(f+y*g)*e);else{const e=y*Math.sqrt(h*h-1);x=t=>{const n=Math.exp(-h*y*t),r=Math.min(e*t,300);return s-n*((f+h*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const b={calculatedDuration:p&&d||null,next:e=>{const t=x(e);if(p)i.done=e>=d;else{let n=0;h<1&&(n=0===e?Uo(f):ui(x,e,t));const a=Math.abs(n)<=r,l=Math.abs(s-t)<=o;i.done=a&&l}return i.value=i.done?s:t,i},toString:()=>{const e=Math.min(vo(b),yo),t=No((t=>b.next(e*t).value),e,30);return e+"ms "+t}};return b}function wi({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:s,min:i,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],m={done:!1,value:d},p=e=>void 0===i?l:void 0===l||Math.abs(i-e)<Math.abs(l-e)?i:l;let f=n*t;const h=d+f,g=void 0===s?h:s(h);g!==h&&(f=g-d);const y=e=>-f*Math.exp(-e/r),v=e=>g+y(e),x=e=>{const t=y(e),n=v(e);m.done=Math.abs(t)<=c,m.value=m.done?g:n};let b,w;const E=e=>{(e=>void 0!==i&&e<i||void 0!==l&&e>l)(m.value)&&(b=e,w=bi({keyframes:[m.value,p(m.value)],velocity:ui(v,e,m.value),damping:o,stiffness:a,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==b||(t=!0,x(e),E(e)),void 0!==b&&e>=b?w.next(e-b):(!t&&x(e),m)}}}const Ei=va(.42,0,1,1),_i=va(0,0,.58,1),ki=va(.42,0,.58,1),Si={linear:Ho,easeIn:Ei,easeInOut:ki,easeOut:_i,circIn:Sa,circInOut:Ca,circOut:Na,backIn:Ea,backInOut:_a,backOut:wa,anticipate:ka},Ni=e=>{if(wo(e)){js(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return va(t,n,r,o)}return"string"==typeof e?(js(void 0!==Si[e],`Invalid easing type '${e}'`),Si[e]):e};function Ci({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Ni):Ni(r),a={done:!1,value:t[0]},s=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=So(0,t,r);e.push(Gs(n,1,o))}}(t,e.length-1),t}(t),e),i=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;if(js(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];if(2===a&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=function(e,t,n){const r=[],o=n||ci,a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Ho:t;a=ni(e,a)}r.push(a)}return r}(t,r,o),l=i.length,c=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=So(e[r],e[r+1],n);return i[r](o)};return n?t=>c(Ta(e[0],e[a-1],t)):c}(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||ki)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(a.value=i(t),a.done=t>=e,a)}}const Pi=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Zo.update(t,!0),stop:()=>Jo(t),now:()=>Qo.isProcessing?Qo.timestamp:ra.now()}},Ti={decay:wi,inertia:wi,tween:Ci,keyframes:Ci,spring:bi},ji=e=>e/100;class Ri extends Ys{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,a=(null==r?void 0:r.KeyframeResolver)||Ps;this.resolver=new a(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:a=0}=this.options,s=xo(t)?t:Ti[t]||Ci;let i,l;s!==Ci&&"number"!=typeof e[0]&&(i=ni(ji,ci(e[0],e[1])),e=[0,100]);const c=s({...this.options,keyframes:e});"mirror"===o&&(l=s({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===c.calculatedDuration&&(c.calculatedDuration=vo(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:i,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:i,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:m,repeatType:p,repeatDelay:f,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let v=this.currentTime,x=o;if(m){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,m+1),Boolean(t%2)&&("reverse"===p?(n=1-n,f&&(n-=f/u)):"mirror"===p&&(x=a)),v=Ta(0,1,n)*u}const b=y?{done:!1,value:i[0]}:x.next(v);s&&(b.value=s(b.value));let{done:w}=b;y||null===l||(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return E&&void 0!==r&&(b.value=qs(i,this.options,r)),h&&h(b.value),E&&this.finish(),b}get duration(){const{resolved:e}=this;return e?Wo(e.calculatedDuration):0}get time(){return Wo(this.currentTime)}set time(e){e=Uo(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Wo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Pi,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Fi=new Set(["opacity","clipPath","filter","transform"]),Ai=mo((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Di={anticipate:ka,backInOut:_a,circInOut:Ca};class Mi extends Ys{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new Us(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:o,type:a,motionValue:s,name:i,startTime:l}=this.options;if(!s.owner||!s.owner.current)return!1;var c;if("string"==typeof o&&ko()&&o in Di&&(o=Di[o]),xo((c=this.options).type)||"spring"===c.type||!Co(c.ease)){const{onComplete:t,onUpdate:s,motionValue:i,element:l,...c}=this.options,u=function(e,t){const n=new Ri({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let a=0;for(;!r.done&&a<2e4;)r=n.sample(a),o.push(r.value),a+=10;return{times:void 0,keyframes:o,duration:a-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),n=u.duration,r=u.times,o=u.ease,a="keyframes"}const u=function(e,t,n,{delay:r=0,duration:o=300,repeat:a=0,repeatType:s="loop",ease:i="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=jo(i,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:"reverse"===s?"alternate":"normal"})}(s.owner.current,i,e,{...this.options,duration:n,times:r,ease:o});return u.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(bo(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;s.set(qs(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:r,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Wo(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Wo(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=Uo(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Ho;const{animation:n}=t;bo(n,e)}else this.pendingTimeline=e;return Ho}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:a,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:i,element:l,...c}=this.options,u=new Ri({...c,keyframes:n,duration:r,type:o,ease:a,times:s,isGenerator:!0}),d=Uo(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:i}=this.options;i&&i(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:a,type:s}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:i,transformTemplate:l}=t.owner.getProps();return Ai()&&n&&Fi.has(n)&&!i&&!l&&!r&&"mirror"!==o&&0!==a&&"inertia"!==s}}const Li={type:"spring",stiffness:500,damping:25,restSpeed:10},Oi={type:"keyframes",duration:.8},Ii={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Bi=(e,{keyframes:t})=>t.length>2?Oi:qo.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Li:Ii,zi=(e,t,n,r={},o,a)=>s=>{const i=go(r,e)||{},l=i.delay||r.delay||0;let{elapsed:c=0}=r;c-=Uo(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-c,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:a?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:a,repeatType:s,repeatDelay:i,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(i)||(u={...u,...Bi(e,u)}),u.duration&&(u.duration=Uo(u.duration)),u.repeatDelay&&(u.repeatDelay=Uo(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),d&&!a&&void 0!==t.get()){const e=qs(u.keyframes,i);if(void 0!==e)return Zo.update((()=>{u.onUpdate(e),u.onComplete()})),new ho([])}return!a&&Mi.supports(u)?new Mi(u):new Ri(u)};function Vi({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Ui(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var a;let{transition:s=e.getDefaultTransition(),transitionEnd:i,...l}=t;r&&(s=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(a=e.latestValues[t])&&void 0!==a?a:null),o=l[t];if(void 0===o||u&&Vi(u,t))continue;const i={delay:n,...go(s||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=ga(e);if(n){const e=window.MotionHandoffAnimation(n,t,Zo);null!==e&&(i.startTime=e,d=!0)}}pa(e,t),r.start(zi(t,r,o,e.shouldReduceMotion&&Yo.has(t)?{type:!1}:i,e,d));const m=r.animation;m&&c.push(m)}return i&&Promise.all(c).then((()=>{Zo.update((()=>{i&&function(e,t){const n=lo(e,t);let{transitionEnd:r={},transition:o={},...a}=n||{};a={...a,...r};for(const t in a)da(e,t,Go(a[t]))}(e,i)}))})),c}function Wi(e,t,n={}){var r;const o=lo(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const s=o?()=>Promise.all(Ui(e,o,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:i}=a;return function(e,t,n=0,r=0,o=1,a){const s=[],i=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>i-e*r;return Array.from(e.variantChildren).sort(Hi).forEach(((e,r)=>{e.notify("AnimationStart",t),s.push(Wi(e,t,{...a,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(s)}(e,t,o+r,s,i,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[e,t]="beforeChildren"===l?[s,i]:[i,s];return e().then((()=>t()))}return Promise.all([s(),i(n.delay)])}function Hi(e,t){return e.sortNodePosition(t)}const $i=uo.length;function qi(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&qi(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<$i;n++){const r=uo[n],o=e.props[r];(ao(o)||!1===o)&&(t[r]=o)}return t}const Yi=[...co].reverse(),Gi=co.length;function Xi(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>Wi(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=Wi(e,t,n);else{const o="function"==typeof t?lo(e,t,n.custom):t;r=Promise.all(Ui(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}(e),n=Ji(),r=!0;const o=t=>(n,r)=>{var o;const a=lo(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(a){const{transition:e,transitionEnd:t,...r}=a;n={...n,...r,...t}}return n};function a(a){const{props:s}=e,i=qi(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<Gi;t++){const m=Yi[t],p=n[m],f=void 0!==s[m]?s[m]:i[m],h=ao(f),g=m===a?p.isActive:null;!1===g&&(d=t);let y=f===i[m]&&f!==s[m]&&h;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...u},!p.isActive&&null===g||!f&&!p.prevProp||no(f)||"boolean"==typeof f)continue;const v=Ki(p.prevProp,f);let x=v||m===a&&p.isActive&&!y&&h||t>d&&h,b=!1;const w=Array.isArray(f)?f:[f];let E=w.reduce(o(m),{});!1===g&&(E={});const{prevResolvedValues:_={}}=p,k={..._,...E},S=t=>{x=!0,c.has(t)&&(b=!0,c.delete(t)),p.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in k){const t=E[e],n=_[e];if(u.hasOwnProperty(e))continue;let r=!1;r=ro(t)&&ro(n)?!oo(t,n):t!==n,r?null!=t?S(e):c.add(e):void 0!==t&&c.has(e)?S(e):p.protectedKeys[e]=!0}p.prevProp=f,p.prevResolvedValues=E,p.isActive&&(u={...u,...E}),r&&e.blockInitialAnimation&&(x=!1),x&&(!y||!v||b)&&l.push(...w.map((e=>({animation:e,options:{type:m}}))))}if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let m=Boolean(l.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(m=!1),r=!1,m?t(l):Promise.resolve()}return{animateChanges:a,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=a(t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Ji(),r=!0}}}function Ki(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!oo(t,e)}function Zi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ji(){return{animate:Zi(!0),whileInView:Zi(),whileHover:Zi(),whileTap:Zi(),whileDrag:Zi(),whileFocus:Zi(),exit:Zi()}}class Qi{constructor(e){this.isMounted=!1,this.node=e}update(){}}let el=0;const tl={animation:{Feature:class extends Qi{constructor(e){super(e),e.animationState||(e.animationState=Xi(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();no(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Qi{constructor(){super(...arguments),this.id=el++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function nl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rl(e){return{point:{x:e.pageX,y:e.pageY}}}function ol(e,t,n,r){return nl(e,t,(e=>t=>Lo(t)&&e(t,rl(t)))(n),r)}const al=(e,t)=>Math.abs(e-t);class sl{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=cl(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=al(e.x,t.x),r=al(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Qo;this.history.push({...r,timestamp:o});const{onStart:a,onMove:s}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=il(t,this.transformPagePoint),Zo.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const a=cl("pointercancel"===e.type?this.lastMoveEventInfo:il(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Lo(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const a=il(rl(e),this.transformPagePoint),{point:s}=a,{timestamp:i}=Qo;this.history=[{...s,timestamp:i}];const{onSessionStart:l}=t;l&&l(e,cl(a,this.history)),this.removeListeners=ni(ol(this.contextWindow,"pointermove",this.handlePointerMove),ol(this.contextWindow,"pointerup",this.handlePointerUp),ol(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Jo(this.updatePoint)}}function il(e,t){return t?{point:t(e.point)}:e}function ll(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cl({point:e},t){return{point:e,delta:ll(e,dl(t)),offset:ll(e,ul(t)),velocity:ml(t,.1)}}function ul(e){return e[0]}function dl(e){return e[e.length-1]}function ml(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=dl(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Uo(t)));)n--;if(!r)return{x:0,y:0};const a=Wo(o.timestamp-r.timestamp);if(0===a)return{x:0,y:0};const s={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function pl(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function fl(e){return e.max-e.min}function hl(e,t,n,r=.5){e.origin=r,e.originPoint=Gs(t.min,t.max,e.origin),e.scale=fl(n)/fl(t),e.translate=Gs(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function gl(e,t,n,r){hl(e.x,t.x,n.x,r?r.originX:void 0),hl(e.y,t.y,n.y,r?r.originY:void 0)}function yl(e,t,n){e.min=n.min+t.min,e.max=e.min+fl(t)}function vl(e,t,n){e.min=t.min-n.min,e.max=e.min+fl(t)}function xl(e,t,n){vl(e.x,t.x,n.x),vl(e.y,t.y,n.y)}function bl(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function wl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const El=.35;function _l(e,t,n){return{min:kl(e,t),max:kl(e,n)}}function kl(e,t){return"number"==typeof e?e:e[t]||0}const Sl=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Nl(e){return[e("x"),e("y")]}function Cl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Pl(e){return void 0===e||1===e}function Tl({scale:e,scaleX:t,scaleY:n}){return!Pl(e)||!Pl(t)||!Pl(n)}function jl(e){return Tl(e)||Rl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Rl(e){return Fl(e.x)||Fl(e.y)}function Fl(e){return e&&"0%"!==e}function Al(e,t,n){return n+t*(e-n)}function Dl(e,t,n,r,o){return void 0!==o&&(e=Al(e,o,r)),Al(e,n,r)+t}function Ml(e,t=0,n=1,r,o){e.min=Dl(e.min,t,n,r,o),e.max=Dl(e.max,t,n,r,o)}function Ll(e,{x:t,y:n}){Ml(e.x,t.translate,t.scale,t.originPoint),Ml(e.y,n.translate,n.scale,n.originPoint)}const Ol=.999999999999,Il=1.0000000000001;function Bl(e,t){e.min=e.min+t,e.max=e.max+t}function zl(e,t,n,r,o=.5){Ml(e,t,n,Gs(e.min,e.max,o),r)}function Vl(e,t){zl(e.x,t.x,t.scaleX,t.scale,t.originX),zl(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ul(e,t){return Cl(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Wl=({current:e})=>e?e.ownerDocument.defaultView:null,Hl=new WeakMap;class $l{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new sl(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rl(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(a=n)||"y"===a?Ro[a]?null:(Ro[a]=!0,()=>{Ro[a]=!1}):Ro.x||Ro.y?null:(Ro.x=Ro.y=!0,()=>{Ro.x=Ro.y=!1}),!this.openDragLock))return;var a;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Nl((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Wa.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=fl(r)*(parseFloat(t)/100))}}this.originPoint[e]=t})),o&&Zo.postRender((()=>o(e,t))),pa(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),a&&a(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Nl((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:Wl(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Zo.postRender((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!ql(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Gs(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Gs(n,e,r.max):Math.min(e,n)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&pl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:bl(e.x,n,o),y:bl(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=El){return!1===e?e=0:!0===e&&(e=El),{x:_l(e,"left","right"),y:_l(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Nl((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!pl(e))return!1;const n=e.current;js(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Ul(e,n),{scroll:o}=t;return o&&(Bl(r.x,o.offset.x),Bl(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let a=function(e,t){return{x:wl(e.x,t.x),y:wl(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=Cl(e))}return a}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),i=this.constraints||{},l=Nl((s=>{if(!ql(s,t,this.currentDirection))return;let l=i&&i[s]||{};a&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return pa(this.visualElement,e),n.start(zi(e,n,0,t,this.visualElement,!1))}stopAnimation(){Nl((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Nl((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Nl((t=>{const{drag:n}=this.getProps();if(!ql(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:a}=r.layout.layoutBox[t];o.set(e[t]-Gs(n,a,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!pl(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Nl((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=fl(e),o=fl(t);return o>r?n=So(t.min,t.max-r,e.min):r>o&&(n=So(e.min,e.max-o,t.min)),Ta(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Nl((t=>{if(!ql(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:a}=this.constraints[t];n.set(Gs(o,a,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Hl.set(this.visualElement,this);const e=ol(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();pl(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Zo.read(t);const o=nl(window,"resize",(()=>this.scalePositionWithinConstraints())),a=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Nl((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:a=El,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function ql(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Yl=e=>(t,n)=>{e&&Zo.postRender((()=>e(t,n)))},Gl=(0,i.createContext)(null);function Xl(e=!0){const t=(0,i.useContext)(Gl);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,a=(0,i.useId)();(0,i.useEffect)((()=>{e&&o(a)}),[e]);const s=(0,i.useCallback)((()=>e&&r&&r(a)),[a,r,e]);return!n&&r?[!1,s]:[!0]}const Kl=(0,i.createContext)({}),Zl=(0,i.createContext)({}),Jl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ql(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ec={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Ha.test(e))return e;e=parseFloat(e)}return`${Ql(e,t.target.x)}% ${Ql(e,t.target.y)}%`}},tc={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=os.parse(e);if(o.length>5)return r;const a=os.createTransformer(e),s="number"!=typeof o[0]?1:0,i=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=i,o[1+s]/=l;const c=Gs(i,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),a(o)}},nc={},{schedule:rc,cancel:oc}=Ko(queueMicrotask,!1);class ac extends i.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var a;a=ic,Object.assign(nc,a),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Jl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,a=n.projection;return a?(a.isPresent=o,r||e.layoutDependency!==t||void 0===t?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Zo.postRender((()=>{const e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),rc.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function sc(e){const[t,n]=Xl(),r=(0,i.useContext)(Kl);return(0,O.jsx)(ac,{...e,layoutGroup:r,switchLayoutGroup:(0,i.useContext)(Zl),isPresent:t,safeToRemove:n})}const ic={borderRadius:{...ec,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ec,borderTopRightRadius:ec,borderBottomLeftRadius:ec,borderBottomRightRadius:ec,boxShadow:tc},lc=(e,t)=>e.depth-t.depth;class cc{constructor(){this.children=[],this.isDirty=!1}add(e){oa(this.children,e),this.isDirty=!0}remove(e){aa(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(lc),this.isDirty=!1,this.children.forEach(e)}}function uc(e){const t=ma(e)?e.get():e;return(e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue))(t)?t.toValue():t}const dc=["TopLeft","TopRight","BottomLeft","BottomRight"],mc=dc.length,pc=e=>"string"==typeof e?parseFloat(e):e,fc=e=>"number"==typeof e||Ha.test(e);function hc(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const gc=vc(0,.5,Na),yc=vc(.5,.95,Ho);function vc(e,t,n){return r=>r<e?0:r>t?1:n(So(e,t,r))}function xc(e,t){e.min=t.min,e.max=t.max}function bc(e,t){xc(e.x,t.x),xc(e.y,t.y)}function wc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ec(e,t,n,r,o){return e=Al(e-=t,1/n,r),void 0!==o&&(e=Al(e,1/o,r)),e}function _c(e,t,[n,r,o],a,s){!function(e,t=0,n=1,r=.5,o,a=e,s=e){if(Wa.test(t)&&(t=parseFloat(t),t=Gs(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let i=Gs(a.min,a.max,r);e===a&&(i-=t),e.min=Ec(e.min,t,n,i,o),e.max=Ec(e.max,t,n,i,o)}(e,t[n],t[r],t[o],t.scale,a,s)}const kc=["x","scaleX","originX"],Sc=["y","scaleY","originY"];function Nc(e,t,n,r){_c(e.x,t,kc,n?n.x:void 0,r?r.x:void 0),_c(e.y,t,Sc,n?n.y:void 0,r?r.y:void 0)}function Cc(e){return 0===e.translate&&1===e.scale}function Pc(e){return Cc(e.x)&&Cc(e.y)}function Tc(e,t){return e.min===t.min&&e.max===t.max}function jc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Rc(e,t){return jc(e.x,t.x)&&jc(e.y,t.y)}function Fc(e){return fl(e.x)/fl(e.y)}function Ac(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Dc{constructor(){this.members=[]}add(e){oa(this.members,e),e.scheduleRender()}remove(e){if(aa(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Mc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Lc="undefined"!=typeof window&&void 0!==window.MotionDebug,Oc=["","X","Y","Z"],Ic={visibility:"hidden"};let Bc=0;function zc(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Vc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=ga(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Zo,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Vc(r)}function Uc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Bc++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Lc&&(Mc.totalNodes=Mc.resolvedTargetDeltas=Mc.recalculatedProjection=0),this.nodes.forEach($c),this.nodes.forEach(Jc),this.nodes.forEach(Qc),this.nodes.forEach(qc),Lc&&window.MotionDebug.record(Mc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new cc)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new sa),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:a,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(a||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=ra.now(),r=({timestamp:o})=>{const a=o-n;a>=t&&(Jo(r),e(a-t))};return Zo.read(r,!0),()=>Jo(r)}(r,250),Jl.hasAnimatedSinceResize&&(Jl.hasAnimatedSinceResize=!1,this.nodes.forEach(Zc))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||a)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||au,{onLayoutAnimationStart:a,onLayoutAnimationComplete:i}=s.getProps(),l=!this.targetLayout||!Rc(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...go(o,"layout"),onPlay:a,onComplete:i};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Zc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Jo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(eu),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Vc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Gc);this.isUpdating||this.nodes.forEach(Xc),this.isUpdating=!1,this.nodes.forEach(Kc),this.nodes.forEach(Wc),this.nodes.forEach(Hc),this.clearAllSnapshots();const e=ra.now();Qo.delta=Ta(0,1e3/60,e-Qo.timestamp),Qo.timestamp=e,Qo.isProcessing=!0,ea.update.process(Qo),ea.preRender.process(Qo),ea.render.process(Qo),Qo.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Yc),this.sharedNodes.forEach(tu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Zo.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Zo.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Pc(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,a=r!==this.prevTransformTemplateValue;e&&(t||jl(this.latestValues)||a)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),lu((r=n).x),lu(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)&&!this.path.some(uu)){const{scroll:e}=this.root;e&&(Bl(n.x,e.offset.x),Bl(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(bc(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const r=this.path[t],{scroll:o,options:a}=r;r!==this.root&&o&&a.layoutScroll&&(o.wasRoot&&bc(n,e),Bl(n.x,o.offset.x),Bl(n.y,o.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};bc(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Vl(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),jl(r.latestValues)&&Vl(n,r.latestValues)}return jl(this.latestValues)&&Vl(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};bc(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!jl(n.latestValues))continue;Tl(n.latestValues)&&n.updateSnapshot();const r={x:{min:0,max:0},y:{min:0,max:0}};bc(r,n.measurePageBox()),Nc(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return jl(this.latestValues)&&Nc(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Qo.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:a}=this.options;if(this.layout&&(o||a)){if(this.resolvedRelativeTargetAt=Qo.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},xl(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),bc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,i,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,i=this.relativeTarget,l=this.relativeParent.target,yl(s.x,i.x,l.x),yl(s.y,i.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):bc(this.target,this.layout.layoutBox),Ll(this.target,this.targetDelta)):bc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},xl(this.relativeTargetOrigin,this.target,e.target),bc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Lc&&Mc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Tl(this.parent.latestValues)&&!Rl(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Qo.timestamp&&(r=!1),r)return;const{layout:o,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!a)return;bc(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,i=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let a,s;t.x=t.y=1;for(let i=0;i<o;i++){a=n[i],s=a.projectionDelta;const{visualElement:o}=a.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Vl(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Ll(e,s)),r&&jl(a.latestValues)&&Vl(e,a.latestValues))}t.x<Il&&t.x>Ol&&(t.x=1),t.y<Il&&t.y>Ol&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(wc(this.prevProjectionDelta.x,this.projectionDelta.x),wc(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),gl(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===i&&Ac(this.projectionDelta.x,this.prevProjectionDelta.x)&&Ac(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Lc&&Mc.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s={x:{min:0,max:0},y:{min:0,max:0}},i=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(i&&!c&&!0===this.options.crossfade&&!this.path.some(ou));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;nu(a.x,e.x,n),nu(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xl(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){ru(e.x,t.x,n.x,r),ru(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),d&&function(e,t){return Tc(e.x,t.x)&&Tc(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),bc(d,this.relativeTarget)),i&&(this.animationValues=o,function(e,t,n,r,o,a){o?(e.opacity=Gs(0,void 0!==n.opacity?n.opacity:1,gc(r)),e.opacityExit=Gs(void 0!==t.opacity?t.opacity:1,0,yc(r))):a&&(e.opacity=Gs(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<mc;o++){const a=`border${dc[o]}Radius`;let s=hc(t,a),i=hc(n,a);void 0===s&&void 0===i||(s||(s=0),i||(i=0),0===s||0===i||fc(s)===fc(i)?(e[a]=Math.max(Gs(pc(s),pc(i),r),0),(Wa.test(i)||Wa.test(s))&&(e[a]+="%")):e[a]=i)}(t.rotate||n.rotate)&&(e.rotate=Gs(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Jo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Zo.update((()=>{Jl.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=ma(0)?0:ua(0);return r.start(zi("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&cu(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=fl(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=fl(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}bc(t,n),Vl(t,o),gl(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Dc),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&zc("z",e,r,this.animationValues);for(let t=0;t<Oc.length;t++)zc(`rotate${Oc[t]}`,e,r,this.animationValues),zc(`skew${Oc[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ic;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=uc(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=uc(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!jl(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=a.animationValues||a.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,a=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((o||a||s)&&(r=`translate3d(${o}px, ${a}px, ${s}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:a,skewX:s,skewY:i}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),a&&(r+=`rotateY(${a}deg) `),s&&(r+=`skewX(${s}deg) `),i&&(r+=`skewY(${i}deg) `)}const i=e.x.scale*t.x,l=e.y.scale*t.y;return 1===i&&1===l||(r+=`scale(${i}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));const{x:i,y:l}=this.projectionDelta;r.transformOrigin=`${100*i.origin}% ${100*l.origin}% 0`,a.animationValues?r.opacity=a===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=a===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in nc){if(void 0===s[e])continue;const{correct:t,applyTo:n}=nc[e],o="none"===r.transform?s[e]:t(s[e],a);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=a===this?uc(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Gc),this.root.sharedNodes.clear()}}}function Wc(e){e.updateLayout()}function Hc(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;"size"===o?Nl((e=>{const r=a?n.measuredBox[e]:n.layoutBox[e],o=fl(r);r.min=t[e].min,r.max=r.min+o})):cu(o,n.layoutBox,t)&&Nl((r=>{const o=a?n.measuredBox[r]:n.layoutBox[r],s=fl(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)}));const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};gl(s,t,n.layoutBox);const i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a?gl(i,e.applyTransform(r,!0),n.measuredBox):gl(i,t,n.layoutBox);const l=!Pc(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:a}=r;if(o&&a){const s={x:{min:0,max:0},y:{min:0,max:0}};xl(s,n.layoutBox,o.layoutBox);const i={x:{min:0,max:0},y:{min:0,max:0}};xl(i,t,a.layoutBox),Rc(s,i)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=i,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:i,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function $c(e){Lc&&Mc.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function qc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Yc(e){e.clearSnapshot()}function Gc(e){e.clearMeasurements()}function Xc(e){e.isLayoutDirty=!1}function Kc(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Zc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Jc(e){e.resolveTargetDelta()}function Qc(e){e.calcProjection()}function eu(e){e.resetSkewAndRotation()}function tu(e){e.removeLeadSnapshot()}function nu(e,t,n){e.translate=Gs(t.translate,0,n),e.scale=Gs(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ru(e,t,n,r){e.min=Gs(t.min,n.min,r),e.max=Gs(t.max,n.max,r)}function ou(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const au={duration:.45,ease:[.4,0,.1,1]},su=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),iu=su("applewebkit/")&&!su("chrome/")?Math.round:Ho;function lu(e){e.min=iu(e.min),e.max=iu(e.max)}function cu(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Fc(t),o=Fc(n),!(Math.abs(r-o)<=.2));var r,o}function uu(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const du=Uc({attachResizeListener:(e,t)=>nl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),mu={current:void 0},pu=Uc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!mu.current){const e=new du({});e.mount(window),e.setOptions({layoutScroll:!0}),mu.current=e}return mu.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),fu={pan:{Feature:class extends Qi{constructor(){super(...arguments),this.removePointerDownListener=Ho}onPointerDown(e){this.session=new sl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Wl(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Yl(e),onStart:Yl(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Zo.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=ol(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Qi{constructor(e){super(e),this.removeGroupControls=Ho,this.removeListeners=Ho,this.controls=new $l(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ho}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:pu,MeasureLayout:sc}};function hu(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&Zo.postRender((()=>o(t,rl(t))))}function gu(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&Zo.postRender((()=>o(t,rl(t))))}const yu=new WeakMap,vu=new WeakMap,xu=e=>{const t=yu.get(e.target);t&&t(e)},bu=e=>{e.forEach(xu)};const wu={some:0,all:1},Eu={inView:{Feature:class extends Qi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:wu[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;vu.has(n)||vu.set(n,{});const r=vu.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(bu,{root:e,...t})),r[o]}(t);return yu.set(e,n),r.observe(e),()=>{yu.delete(e),r.unobserve(e)}}(this.node.current,a,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Qi{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,a]=Ao(e,n),s=e=>{const r=e.currentTarget;if(!Vo(e)||Io.has(r))return;Io.add(r);const a=t(e),s=(e,t)=>{window.removeEventListener("pointerup",i),window.removeEventListener("pointercancel",l),Vo(e)&&Io.has(r)&&(Io.delete(r),"function"==typeof a&&a(e,{success:t}))},i=e=>{s(e,n.useGlobalTarget||Mo(r,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",i,o),window.addEventListener("pointercancel",l,o)};return r.forEach((e=>{(function(e){return Oo.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,o),e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=Bo((()=>{if(Io.has(n))return;zo(n,"down");const e=Bo((()=>{zo(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>zo(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,o)),o)})),a}(e,(e=>(gu(this.node,e,"Start"),(e,{success:t})=>gu(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Qi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ni(nl(this.node.current,"focus",(()=>this.onFocus())),nl(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Qi{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,a]=Ao(e,n),s=Do((e=>{const{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;const a=Do((e=>{r(e),n.removeEventListener("pointerleave",a)}));n.addEventListener("pointerleave",a,o)}));return r.forEach((e=>{e.addEventListener("pointerenter",s,o)})),a}(e,(e=>(hu(this.node,e,"Start"),e=>hu(this.node,e,"End")))))}unmount(){}}}},_u={layout:{ProjectionNode:pu,MeasureLayout:sc}},ku=(0,i.createContext)({strict:!1}),Su=(0,i.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Nu=(0,i.createContext)({});function Cu(e){return no(e.animate)||uo.some((t=>ao(e[t])))}function Pu(e){return Boolean(Cu(e)||e.variants)}function Tu(e){return Array.isArray(e)?e.join(" "):e}const ju="undefined"!=typeof window,Ru={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Fu={};for(const e in Ru)Fu[e]={isEnabled:t=>Ru[e].some((e=>!!t[e]))};const Au=Symbol.for("motionComponentSymbol");function Du(e,t,n){return(0,i.useCallback)((r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):pl(n)&&(n.current=r))}),[t])}const Mu=ju?i.useLayoutEffect:i.useEffect;function Lu(e,t,n,r,o){var a,s;const{visualElement:l}=(0,i.useContext)(Nu),c=(0,i.useContext)(ku),u=(0,i.useContext)(Gl),d=(0,i.useContext)(Su).reducedMotion,m=(0,i.useRef)(null);r=r||c.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:d}));const p=m.current,f=(0,i.useContext)(Zl);!p||p.projection||!o||"html"!==p.type&&"svg"!==p.type||function(e,t,n,r){const{layoutId:o,layout:a,drag:s,dragConstraints:i,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ou(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:Boolean(s)||i&&pl(i),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(m.current,n,o,f);const h=(0,i.useRef)(!1);(0,i.useInsertionEffect)((()=>{p&&h.current&&p.update(n,u)}));const g=n[ha],y=(0,i.useRef)(Boolean(g)&&!(null===(a=window.MotionHandoffIsComplete)||void 0===a?void 0:a.call(window,g))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,g)));return Mu((()=>{p&&(h.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),rc.render(p.render),y.current&&p.animationState&&p.animationState.animateChanges())})),(0,i.useEffect)((()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,g)})),y.current=!1))})),p}function Ou(e){if(e)return!1!==e.options.allowProjection?e.projection:Ou(e.parent)}function Iu({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var a,s;function l(e,a){let s;const l={...(0,i.useContext)(Su),...e,layoutId:Bu(e)},{isStatic:c}=l,u=function(e){const{initial:t,animate:n}=function(e,t){if(Cu(e)){const{initial:t,animate:n}=e;return{initial:!1===t||ao(t)?t:void 0,animate:ao(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,i.useContext)(Nu));return(0,i.useMemo)((()=>({initial:t,animate:n})),[Tu(t),Tu(n)])}(e),d=r(e,c);if(!c&&ju){(0,i.useContext)(ku).strict;const e=function(e){const{drag:t,layout:n}=Fu;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);s=e.MeasureLayout,u.visualElement=Lu(o,d,l,t,e.ProjectionNode)}return(0,O.jsxs)(Nu.Provider,{value:u,children:[s&&u.visualElement?(0,O.jsx)(s,{visualElement:u.visualElement,...l}):null,n(o,e,Du(d,u.visualElement,a),d,c,u.visualElement)]})}e&&function(e){for(const t in e)Fu[t]={...Fu[t],...e[t]}}(e),l.displayName=`motion.${"string"==typeof o?o:`create(${null!==(s=null!==(a=o.displayName)&&void 0!==a?a:o.name)&&void 0!==s?s:""})`}`;const c=(0,i.forwardRef)(l);return c[Au]=o,c}function Bu({layoutId:e}){const t=(0,i.useContext)(Kl).id;return t&&void 0!==e?t+"-"+e:e}const zu=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Vu(e){return"string"==typeof e&&!e.includes("-")&&!!(zu.indexOf(e)>-1||/[A-Z]/u.test(e))}function Uu(e){const t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Wu=e=>(t,n)=>{const r=(0,i.useContext)(Nu),o=(0,i.useContext)(Gl),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,a){const s={latestValues:Hu(r,o,a,e),renderState:t()};return n&&(s.onMount=e=>n({props:r,current:e,...s}),s.onUpdate=e=>n(e)),s}(e,t,r,o);return n?a():Uu(a)};function Hu(e,t,n,r){const o={},a=r(e,{});for(const e in a)o[e]=uc(a[e]);let{initial:s,animate:i}=e;const l=Cu(e),c=Pu(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===i&&(i=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?i:s;if(d&&"boolean"!=typeof d&&!no(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=io(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const $u=(e,t)=>t&&"number"==typeof e?t.transform(e):e,qu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yu=$o.length;function Gu(e,t,n){const{style:r,vars:o,transformOrigin:a}=e;let s=!1,i=!1;for(const e in t){const n=t[e];if(qo.has(e))s=!0;else if(As(e))o[e]=n;else{const t=$u(n,ms[e]);e.startsWith("origin")?(i=!0,a[e]=t):r[e]=t}}if(t.transform||(s||n?r.transform=function(e,t,n){let r="",o=!0;for(let a=0;a<Yu;a++){const s=$o[a],i=e[s];if(void 0===i)continue;let l=!0;if(l="number"==typeof i?i===(s.startsWith("scale")?1:0):0===parseFloat(i),!l||n){const e=$u(i,ms[s]);l||(o=!1,r+=`${qu[s]||s}(${e}) `),n&&(t[s]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),i){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}const Xu={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ku={offset:"strokeDashoffset",array:"strokeDasharray"};function Zu(e,t,n){return"string"==typeof e?e:Ha.transform(t+n*e)}function Ju(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:a,pathLength:s,pathSpacing:i=1,pathOffset:l=0,...c},u,d){if(Gu(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:p,dimensions:f}=e;m.transform&&(f&&(p.transform=m.transform),delete m.transform),f&&(void 0!==o||void 0!==a||p.transform)&&(p.transformOrigin=function(e,t,n){return`${Zu(t,e.x,e.width)} ${Zu(n,e.y,e.height)}`}(f,void 0!==o?o:.5,void 0!==a?a:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const a=o?Xu:Ku;e[a.offset]=Ha.transform(-r);const s=Ha.transform(t),i=Ha.transform(n);e[a.array]=`${s} ${i}`}(m,s,i,l,!1)}const Qu=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ed(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const td=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function nd(e,t,n,r){ed(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(td.has(n)?n:fa(n),t.attrs[n])}function rd(e,{layout:t,layoutId:n}){return qo.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!nc[e]||"opacity"===e)}function od(e,t,n){var r;const{style:o}=e,a={};for(const s in o)(ma(o[s])||t.style&&ma(t.style[s])||rd(s,e)||void 0!==(null===(r=null==n?void 0:n.getValue(s))||void 0===r?void 0:r.liveStyle))&&(a[s]=o[s]);return a}function ad(e,t,n){const r=od(e,t,n);for(const n in e)(ma(e[n])||ma(t[n]))&&(r[-1!==$o.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}const sd=["x","y","width","height","cx","cy","r"],id={useVisualState:Wu({scrapeMotionValuesFromProps:ad,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let a=!!e.drag;if(!a)for(const e in o)if(qo.has(e)){a=!0;break}if(!a)return;let s=!t;if(t)for(let n=0;n<sd.length;n++){const r=sd[n];e[r]!==t[r]&&(s=!0)}s&&Zo.read((()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),Zo.render((()=>{Ju(r,o,Qu(n.tagName),e.transformTemplate),nd(n,r)}))}))}})},ld={useVisualState:Wu({scrapeMotionValuesFromProps:od,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function cd(e,t,n){for(const r in t)ma(t[r])||rd(r,n)||(e[r]=t[r])}function ud(e,t){const n={},r=function(e,t){const n={};return cd(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,i.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Gu(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const dd=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function md(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dd.has(e)}let pd=e=>!md(e);try{(fd=require("@emotion/is-prop-valid").default)&&(pd=e=>e.startsWith("on")?!md(e):fd(e))}catch(e){}var fd;function hd(e,t,n,r){const o=(0,i.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Ju(n,t,Qu(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};cd(t,e.style,e),o.style={...t,...o.style}}return o}function gd(e=!1){return(t,n,r,{latestValues:o},a)=>{const s=(Vu(t)?hd:ud)(n,o,a,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(pd(o)||!0===n&&md(o)||!t&&!md(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c=t!==i.Fragment?{...l,...s,ref:r}:{},{children:u}=n,d=(0,i.useMemo)((()=>ma(u)?u.get():u),[u]);return(0,i.createElement)(t,{...c,children:d})}}function yd(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return Iu({...Vu(n)?id:ld,preloadedFeatures:e,useRender:gd(r),createVisualElement:t,Component:n})}}const vd={current:null},xd={current:!1},bd=[...zs,Xa,os],wd=new WeakMap,Ed=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class _d{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ps,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=ra.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Zo.render(this.render,!1,!0))};const{latestValues:i,renderState:l,onUpdate:c}=a;this.onUpdate=c,this.latestValues=i,this.baseTarget={...i},this.initialValues=t.initial?{...i}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Cu(t),this.isVariantNode=Pu(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==i[e]&&ma(t)&&t.set(i[e],!1)}}mount(e){this.current=e,wd.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),xd.current||function(){if(xd.current=!0,ju)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vd.current=e.matches;e.addListener(t),t()}else vd.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||vd.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){wd.delete(this.current),this.projection&&this.projection.unmount(),Jo(this.notifyUpdate),Jo(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=qo.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Zo.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),o(),a&&a(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Fu){const t=Fu[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Ed.length;t++){const n=Ed[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],a=n[r];if(ma(o))e.addValue(r,o);else if(ma(a))e.addValue(r,ua(o,{owner:e}));else if(a!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,ua(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ua(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(Rs(r)||Pa(r))?r=parseFloat(r):!(e=>bd.find(Bs(e)))(r)&&os.test(t)&&(r=hs(e,t)),this.setBaseTarget(e,ma(r)?r.get():r)),ma(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=io(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||ma(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new sa),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class kd extends _d{constructor(){super(...arguments),this.KeyframeResolver=Us}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ma(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class Sd extends kd{constructor(){super(...arguments),this.type="html",this.renderInstance=ed}readValueFromInstance(e,t){if(qo.has(t)){const e=fs(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(As(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ul(e,t)}build(e,t,n){Gu(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return od(e,t,n)}}class Nd extends kd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Sl}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(qo.has(t)){const e=fs(t);return e&&e.default||0}return t=td.has(t)?t:fa(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return ad(e,t,n)}build(e,t,n){Ju(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){nd(e,t,0,r)}mount(e){this.isSVGTag=Qu(e.tagName),super.mount(e)}}const Cd=to(yd({...tl,...Eu,...fu,..._u},((e,t)=>Vu(e)?new Nd(t):new Sd(t,{allowProjection:e!==i.Fragment}))));class Pd extends i.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Td({children:e,isPresent:t}){const n=(0,i.useId)(),r=(0,i.useRef)(null),o=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,i.useContext)(Su);return(0,i.useInsertionEffect)((()=>{const{width:e,height:s,top:i,left:l}=o.current;if(t||!r.current||!e||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return a&&(c.nonce=a),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${s}px !important;\n top: ${i}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),(0,O.jsx)(Pd,{isPresent:t,childRef:r,sizeRef:o,children:i.cloneElement(e,{ref:r})})}const jd=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:a,mode:s})=>{const l=Uu(Rd),c=(0,i.useId)(),u=(0,i.useCallback)((e=>{l.set(e,!0);for(const e of l.values())if(!e)return;r&&r()}),[l,r]),d=(0,i.useMemo)((()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:u,register:e=>(l.set(e,!1),()=>l.delete(e))})),a?[Math.random(),u]:[n,u]);return(0,i.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[n]),i.useEffect((()=>{!n&&!l.size&&r&&r()}),[n]),"popLayout"===s&&(e=(0,O.jsx)(Td,{isPresent:n,children:e})),(0,O.jsx)(Gl.Provider,{value:d,children:e})};function Rd(){return new Map}const Fd=e=>e.key||"";function Ad(e){const t=[];return i.Children.forEach(e,(e=>{(0,i.isValidElement)(e)&&t.push(e)})),t}const Dd=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:a="sync",propagate:s=!1})=>{const[l,c]=Xl(s),u=(0,i.useMemo)((()=>Ad(e)),[e]),d=s&&!l?[]:u.map(Fd),m=(0,i.useRef)(!0),p=(0,i.useRef)(u),f=Uu((()=>new Map)),[h,g]=(0,i.useState)(u),[y,v]=(0,i.useState)(u);Mu((()=>{m.current=!1,p.current=u;for(let e=0;e<y.length;e++){const t=Fd(y[e]);d.includes(t)?f.delete(t):!0!==f.get(t)&&f.set(t,!1)}}),[y,d.length,d.join("-")]);const x=[];if(u!==h){let e=[...u];for(let t=0;t<y.length;t++){const n=y[t],r=Fd(n);d.includes(r)||(e.splice(t,0,n),x.push(n))}return"wait"===a&&x.length&&(e=x),v(Ad(e)),void g(u)}const{forceRender:b}=(0,i.useContext)(Kl);return(0,O.jsx)(O.Fragment,{children:y.map((e=>{const i=Fd(e),h=!(s&&!l)&&(u===y||d.includes(i));return(0,O.jsx)(jd,{isPresent:h,initial:!(m.current&&!n)&&void 0,custom:h?void 0:t,presenceAffectsLayout:o,mode:a,onExitComplete:h?void 0:()=>{if(!f.has(i))return;f.set(i,!0);let e=!0;f.forEach((t=>{t||(e=!1)})),e&&(null==b||b(),v(p.current),s&&(null==c||c()),r&&r())},children:e},i)}))})},Md=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ");var Ld={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Od=(0,i.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...l},c)=>(0,i.createElement)("svg",{ref:c,...Ld,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Md("lucide",o),...l},[...s.map((([e,t])=>(0,i.createElement)(e,t))),...Array.isArray(a)?a:[a]]))),Id=(e,t)=>{const n=(0,i.forwardRef)((({className:n,...r},o)=>{return(0,i.createElement)(Od,{ref:o,iconNode:t,className:Md(`lucide-${a=e,a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var a}));return n.displayName=`${e}`,n},Bd=Id("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),zd=(0,i.createContext)({}),Vd=()=>(0,i.useContext)(zd),Ud=({size:e="md",children:t,className:n})=>(0,O.jsx)(zd.Provider,{value:{size:e},children:(0,O.jsx)("div",{className:Ae("flex flex-col bg-background-primary p-2",n),children:t})});Ud.displayName="Menu";const Wd=({heading:e,arrow:t=!1,showArrowOnHover:n=!1,open:r=!0,onClick:o,children:a,className:s})=>{const[l,c]=(0,i.useState)(r),[u,d]=(0,i.useState)(!1),{size:m}=Vd(),p={sm:"text-xs",md:"text-sm"}[m??"md"],f={sm:"size-4",md:"size-5"}[m??"md"],h=()=>{c(!l),o&&o(!l)};return(0,O.jsxs)("div",{children:[!!e&&(0,O.jsxs)("div",{role:"button",tabIndex:0,onClick:h,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&h()},onMouseEnter:()=>n&&d(!0),onMouseLeave:()=>n&&d(!1),className:Ae("text-text-primary bg-transparent cursor-pointer flex justify-between items-center gap-1",p,e?"p-1":"p-0",s),"aria-expanded":l,children:[(0,O.jsx)("span",{className:"text-text-tertiary",children:e}),t&&(0,O.jsx)(Cd.span,{className:"flex items-center text-border-strong",initial:"hidden",animate:n?l||u?"visible":"hidden":"visible",exit:"hidden",variants:{visible:{opacity:1},hidden:{opacity:0}},transition:{duration:.15},children:(0,O.jsx)(Cd.span,{className:"inline-flex p-1",variants:{open:{rotate:180},closed:{rotate:0}},animate:l?"open":"closed",transition:{duration:.15},children:(0,O.jsx)(Bd,{className:Ae("shrink-0",f)})})})]}),(0,O.jsx)(Dd,{initial:!1,children:l&&(0,O.jsx)(Cd.ul,{role:"menu",variants:{open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},initial:"closed",animate:"open",exit:"closed",transition:{duration:.3,ease:"easeInOut"},className:"overflow flex gap-0.5 flex-col m-0 bg-white rounded p-0",children:a})})]})};Wd.displayName="Menu.List";const Hd=({disabled:e=!1,active:t,onClick:n,children:r,className:o})=>{const{size:a}=Vd(),s={sm:"[&>svg]:size-4 [&>svg]:m-1 [&>*:not(svg)]:mx-1 [&>*:not(svg)]:my-0.5 text-sm",md:"[&>svg]:size-5 [&>svg]:m-1.5 [&>*:not(svg)]:m-1 text-base"}[a??"md"];return(0,O.jsx)("li",{role:"menuitem",tabIndex:0,onClick:n,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&n?.()},className:Ae("flex p-1 gap-1 items-center bg-transparent border-none rounded text-text-secondary cursor-pointer m-0",s,"hover:bg-background-secondary hover:text-text-primary",e?"text-text-disabled hover:text-text-disabled cursor-not-allowed hover:bg-transparent":"",t?"text-icon-primary [&>svg]:text-icon-interactive bg-background-secondary":"","transition-colors duration-300 ease-in-out",o),children:r})};Hd.displayName="Menu.Item";const $d=({variant:e="solid",className:t})=>{const n={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted",double:"border-double",hidden:"border-hidden",none:"border-none"}[e];return(0,O.jsx)("li",{className:"m-0 p-0 list-none",role:"separator","aria-hidden":"true",children:(0,O.jsx)("hr",{className:Ae("w-full border-0 border-t border-border-subtle",n,t)})})};$d.displayName="Menu.Separator",Ud.List=Wd,Ud.Item=Hd,Ud.Separator=$d;const qd=(0,i.createContext)({}),Yd=()=>(0,i.useContext)(qd),Gd=({placement:e="bottom",offset:t=10,boundary:n="clippingAncestors",children:r,className:o})=>{const[a,s]=(0,i.useState)(!1),{refs:l,floatingStyles:c,context:u}=Ur({open:a,onOpenChange:s,placement:e,strategy:"fixed",middleware:[er(t),nr({boundary:n}),tr({boundary:n})],whileElementsMounted:Un}),d=Or(u),m=Vr(u),p=Xr(u,{role:"menu"}),{getReferenceProps:f,getFloatingProps:h}=Yr([d,m,p]),{isMounted:g,styles:y}=Jr(u,{duration:150,initial:{opacity:0,scale:.95},open:{opacity:1,scale:1},close:{opacity:0,scale:.95}}),v=()=>s((e=>!e));return(0,O.jsx)(qd.Provider,{value:{refs:l,handleClose:()=>s(!1),isMounted:g,styles:y,floatingStyles:c,getFloatingProps:h},children:(0,O.jsxs)("div",{className:Ae("relative inline-block",o),children:[i.Children.map(r,(e=>i.isValidElement(e)&&"DropdownMenu.Trigger"===e?.type?.displayName?(0,i.cloneElement)(e,{ref:l.setReference,onClick:v,...f()}):null)),i.Children.toArray(r).filter((e=>i.isValidElement(e)&&["DropdownMenu.Portal","DropdownMenu.ContentWrapper"].includes(e.type.displayName||""))).map((e=>e))]})})};Gd.displayName="DropdownMenu";const Xd=({children:e,className:t})=>{const{refs:n,floatingStyles:r,getFloatingProps:o,isMounted:a,styles:s}=Yd();return a&&(0,O.jsx)("div",{ref:n.setFloating,className:t,style:{...r,...s},...o(),children:i.Children.map(e,(e=>"DropdownMenu.Content"===e?.type?.displayName?e:null))})};Xd.displayName="DropdownMenu.ContentWrapper";const Kd=({children:e,root:t,id:n})=>(0,O.jsx)(Fr,{id:n,root:t,children:e});Kd.displayName="DropdownMenu.Portal";const Zd=i.forwardRef((({children:e,className:t,...n},r)=>(0,i.isValidElement)(e)?i.cloneElement(e,{className:Ae(t,e.props.className),ref:r,...n}):(0,O.jsx)("div",{ref:r,className:Ae("cursor-pointer",t),role:"button",tabIndex:0,...n,children:e})));Zd.displayName="DropdownMenu.Trigger";const Jd=({children:e,className:t,...n})=>(0,O.jsx)("div",{className:Ae("border border-solid border-border-subtle rounded-md shadow-lg overflow-hidden",t),children:(0,O.jsx)(Ud,{...n,children:e})});Jd.displayName="DropdownMenu.Content";const Qd=e=>(0,O.jsx)(Ud.List,{...e});Qd.displayName="DropdownMenu.List";const em=({children:e,as:t=Ud.Item,...n})=>{const{handleClose:r}=Yd();return e?t===i.Fragment&&(0,i.isValidElement)(e)?(0,i.cloneElement)(e,{onClick:De(e.props?.onClick,r)}):(0,O.jsx)(t,{...n,className:Ae("px-2",n.className),onClick:De(n.onClick,r),children:e}):null};em.displayName="DropdownMenu.Item";const tm=e=>(0,O.jsx)(Ud.Separator,{...e});tm.displayName="DropdownMenu.Separator",Gd.Trigger=Zd,Gd.Content=Jd,Gd.List=Qd,Gd.Item=em,Gd.Separator=tm,Gd.Portal=Kd,Gd.ContentWrapper=Xd;const nm=Id("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),rm=(0,i.forwardRef)((({label:e="",size:t="sm",className:n="",type:r="pill",variant:o="neutral",icon:a=null,disabled:s=!1,onClose:i=()=>{},closable:l=!1,onMouseDown:c=()=>{},disableHover:u=!1},d)=>{const m={neutral:"bg-badge-background-gray text-badge-color-gray border-badge-border-gray",red:"bg-badge-background-red text-badge-color-red border-badge-border-red",yellow:"bg-badge-background-yellow text-badge-color-yellow border-badge-border-yellow",green:"bg-badge-background-green text-badge-color-green border-badge-border-green",blue:"bg-badge-background-sky text-badge-color-sky border-badge-border-sky",inverse:"bg-background-inverse text-text-inverse border-background-inverse",disabled:"bg-badge-background-disabled text-badge-color-disabled border-badge-border-disabled disabled cursor-not-allowed"};let p="",f="group relative justify-center flex items-center cursor-pointer";const h={xxs:"[&>svg]:size-3",xs:"[&>svg]:size-3",sm:"[&>svg]:size-3",md:"[&>svg]:size-4",lg:"[&>svg]:size-5"};return s?(p=m.disabled,f+=" cursor-not-allowed disabled"):p=m[o],e?(0,O.jsxs)("span",{className:Ae("font-medium border-badge-border-gray flex items-center justify-center border border-solid box-border max-w-full transition-colors duration-150 ease-in-out",{xxs:"py-0.5 px-0.5 text-xs h-4",xs:"py-0.5 px-1 text-xs h-5",sm:"py-1 px-1.5 text-xs h-6",md:"py-1 px-1.5 text-sm h-7",lg:"py-1 px-1.5 text-base h-8"}[t],{pill:"rounded-full",rounded:"rounded"}[r],"gap-0.5",p,!u&&{neutral:"hover:bg-badge-hover-gray",red:"hover:bg-badge-hover-red",yellow:"hover:bg-badge-hover-yellow",green:"hover:bg-badge-hover-green",blue:"hover:bg-badge-hover-sky",inverse:"hover:bg-badge-hover-inverse",disabled:"hover:bg-badge-hover-disabled"}[o],n),ref:d,children:[a?(0,O.jsx)("span",{className:Ae("justify-center flex items-center",h[t]),children:a}):null,(0,O.jsx)("span",{className:"px-1 truncate inline-block",children:e}),l&&(0,O.jsxs)("span",{className:Ae(f,h[t]),onMouseDown:c,role:"button",tabIndex:0,...!s&&{onClick:i},children:[(0,O.jsx)("span",{className:"sr-only",children:`Remove ${e}`}),(0,O.jsx)(nm,{}),(0,O.jsx)("span",{className:"absolute -inset-1"})]})]}):null}));rm.displayName="Badge";const om=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,((e,t,n)=>n?n.toUpperCase():t.toLowerCase())))(e);return t.charAt(0).toUpperCase()+t.slice(1)},am=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t)).join(" ").trim(),sm=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var im={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const lm=(0,i.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...l},c)=>(0,i.createElement)("svg",{ref:c,...im,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:am("lucide",o),...!a&&!sm(l)&&{"aria-hidden":"true"},...l},[...s.map((([e,t])=>(0,i.createElement)(e,t))),...Array.isArray(a)?a:[a]]))),cm=(e,t)=>{const n=(0,i.forwardRef)((({className:n,...r},o)=>{return(0,i.createElement)(lm,{ref:o,iconNode:t,className:am(`lucide-${a=om(e),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...r});var a}));return n.displayName=om(e),n},um=cm("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),dm=cm("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),mm=cm("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),pm=cm("headset",[["path",{d:"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z",key:"12oyoe"}],["path",{d:"M21 16v2a4 4 0 0 1-4 4h-5",key:"1x7m43"}]]),fm=cm("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),hm=window.wp.i18n;var gm={dashboard:{path:"dashboard"},widgets:{path:"widgets"},templates:{path:"templates"},learn:{path:"learn"},settings:{path:"settings"},onboarding:{path:"onboarding"},upgrade:{path:"upgrade"},headerFooterBuilder:{path:"elementor-hf"},onboardingsuccess:{path:"onboardingsuccess"}},ym=function(){return ym=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ym.apply(this,arguments)},vm=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function i(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,i)}l((r=r.apply(e,t||[])).next())}))},xm=function(e,t){var n,r,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},bm={rssFeedURL:"",selector:"",loaderIcon:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">\n\t<circle cx="50" cy="50" fill="none" stroke="#9f9f9f" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138">\n\t\t<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"></animateTransform>\n\t</circle>\n\t</svg>',viewAll:{link:"",label:"View All"},triggerButton:{icon:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.61703 13.1998C8.04294 13.1503 7.46192 13.125 6.875 13.125H6.25C4.17893 13.125 2.5 11.4461 2.5 9.375C2.5 7.30393 4.17893 5.625 6.25 5.625H6.875C7.46192 5.625 8.04294 5.59972 8.61703 5.55018M8.61703 13.1998C8.82774 14.0012 9.1031 14.7764 9.43719 15.5195C9.64341 15.9782 9.48685 16.5273 9.05134 16.7787L8.50441 17.0945C8.04492 17.3598 7.45466 17.1921 7.23201 16.7106C6.70983 15.5811 6.30451 14.3866 6.03155 13.1425M8.61703 13.1998C8.29598 11.9787 8.125 10.6968 8.125 9.375C8.125 8.05316 8.29598 6.77125 8.61703 5.55018M8.61703 13.1998C11.25 13.427 13.737 14.1643 15.9789 15.3124M8.61703 5.55018C11.25 5.323 13.737 4.58569 15.9789 3.43757M15.9789 3.43757C15.8808 3.12162 15.7751 2.80903 15.662 2.5M15.9789 3.43757C16.4247 4.87356 16.7131 6.37885 16.8238 7.93326M15.9789 15.3124C15.8808 15.6284 15.7751 15.941 15.662 16.25M15.9789 15.3124C16.4247 13.8764 16.7131 12.3711 16.8238 10.8167M16.8238 7.93326C17.237 8.2772 17.5 8.79539 17.5 9.375C17.5 9.95461 17.237 10.4728 16.8238 10.8167M16.8238 7.93326C16.8578 8.40942 16.875 8.8902 16.875 9.375C16.875 9.8598 16.8578 10.3406 16.8238 10.8167" stroke="#94A3B8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',beforeBtn:"",afterBtn:"",className:"",onClick:function(){}},notification:{setLastPostUnixTime:null,getLastPostUnixTime:null},flyout:{title:"What's New?",innerContent:{titleLink:!0,additionalClasses:[]},excerpt:{wordLimit:500,moreSymbol:"…",readMore:{label:"Read More",className:""}},className:"",closeOnEsc:!0,closeOnOverlayClick:!0,closeBtnIcon:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 18L18 6M6 6L18 18" stroke="#94A3B8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',formatDate:null,onOpen:function(){},onClose:function(){},onReady:function(){}}},wm=function(){function e(e){this.rssFeedURLs=[],this.lastPostUnixTime=0,this.multiLastPostUnixTime={},this.notificationsCount=0,this.multiNotificationCount={},this.hasNewFeeds=!1,this.multiHasNewFeeds={},this.validateArgs(e),this.parseDefaults(e),this.setElement(),this.getElement()?(this.setID(),this.setRSSFeedURLs(),Em.setInstanceID(this.getID()),this.RSS_Fetch_Instance=new _m(this),this.RSS_View_Instance=new km(this),this.setNotificationsCount(),this.setTriggers()):console.warn("WNR: Cannot find element with",this.getArgs().selector)}return e.prototype.validateArgs=function(e){["rssFeedURL","selector"].map((function(t){if(!e[t])throw new Error("".concat(t," is a required argument. It cannot be empty or undefined."));if("rssFeedURL"===t){var n=e[t];Array.isArray(n)&&n.forEach((function(e){if(!(null==e?void 0:e.key))throw new Error('The parameter "key" is required for "'.concat(t,'" parameter in multi-feed mode.'));if(e.key.includes(" "))throw new Error('The parameter "key" cannot have spaces for "'.concat(t,'" parameter in multi-feed mode. Ref Key: "').concat(e.key,'"'))}))}}))},e.prototype.parseDefaults=function(e){var t,n;this.args=ym(ym(ym({},bm),e),{viewAll:ym(ym({},bm.viewAll),null==e?void 0:e.viewAll),triggerButton:ym(ym({},bm.triggerButton),null==e?void 0:e.triggerButton),flyout:ym(ym(ym({},bm.flyout),null==e?void 0:e.flyout),{innerContent:ym(ym({},bm.flyout.innerContent),null===(t=null==e?void 0:e.flyout)||void 0===t?void 0:t.innerContent),excerpt:ym(ym({},bm.flyout.excerpt),null===(n=null==e?void 0:e.flyout)||void 0===n?void 0:n.excerpt)})})},e.prototype.getArgs=function(){return this.args},e.prototype.setElement=function(){this.element=document.querySelector(this.args.selector)},e.prototype.getElement=function(){return this.element},e.prototype.setID=function(){var e=[this.getArgs().selector],t=this.getArgs().rssFeedURL;Array.isArray(t)?t.forEach((function(t){e.push(t.key)})):e.push(t),this.ID=btoa(e.join("-")).slice(-12).replace(/=/g,"")},e.prototype.isMultiFeedRSS=function(){return"string"!=typeof this.getArgs().rssFeedURL},e.prototype.setRSSFeedURLs=function(){var e=this,t=this.getArgs().rssFeedURL;this.isMultiFeedRSS()?Array.isArray(t)&&t.forEach((function(t){e.rssFeedURLs.push(t)})):this.rssFeedURLs.push({key:null,label:"",url:t.toString()})},e.prototype.getRSSFeedURLs=function(){return this.rssFeedURLs},e.prototype.getID=function(){return this.ID},e.prototype.setNotificationsCount=function(){return vm(this,void 0,void 0,(function(){var e=this;return xm(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.getRSSFeedURLs().map((function(t){var n=t.key;return vm(e,void 0,void 0,(function(){var e;return xm(this,(function(t){switch(t.label){case 0:return e=0,"function"!=typeof this.getArgs().notification.getLastPostUnixTime?[3,2]:[4,this.getArgs().notification.getLastPostUnixTime(n,this)];case 1:return e=t.sent(),[3,3];case 2:e=Em.getLastPostUnixTime(n),t.label=3;case 3:return this.isMultiFeedRSS()?this.multiLastPostUnixTime[n]=+e:this.lastPostUnixTime=+e,[2]}}))}))})))];case 1:return t.sent(),[4,this.RSS_Fetch_Instance.fetchData().then((function(t){Object.keys(t).forEach((function(n){var r=t[n];if(r.length){e.multiNotificationCount[n]=0;var o=+r[0].date,a=e.isMultiFeedRSS()?e.multiLastPostUnixTime[n]:e.lastPostUnixTime;o>a&&(r.forEach((function(t){t.date>a&&(e.isMultiFeedRSS()&&(e.multiNotificationCount[n]++,e.multiHasNewFeeds[n]=!0),e.notificationsCount++,e.hasNewFeeds=!0)})),e.RSS_View_Instance.setNotification(e.notificationsCount))}}))}))];case 2:return t.sent(),[2]}}))}))},e.prototype.getNotificationsCount=function(){return this.notificationsCount},e.prototype.setTriggers=function(){var e=this,t=document.getElementById(this.RSS_View_Instance.getTriggerButtonID()),n=document.getElementById(this.RSS_View_Instance.getFlyoutID()),r=n.querySelector(".whats-new-rss-flyout-inner-content"),o=document.getElementById(this.RSS_View_Instance.getFlyoutCloseBtnID()),a=document.getElementById(this.RSS_View_Instance.getFlyoutMultiFeedNavID()),s=function(t){e.RSS_Fetch_Instance.fetchData().then((function(o){r.innerHTML="";var a=o[t];if(a.length){var s=+a[0].date,i=e.isMultiFeedRSS()?e.multiLastPostUnixTime[t]:e.lastPostUnixTime;a.forEach((function(n){var o=!!i&&n.date>i,a=e.getArgs().flyout.innerContent.titleLink?'<a href="'.concat(n.postLink,'" target="_blank">\n\t\t\t\t\t\t\t\t<h2>').concat(n.title,"</h2>\n\t\t\t\t\t\t\t</a>"):"<h2>".concat(n.title,"</h2>"),s='\n\t\t\t\t\t\t\t\t<div class="rss-content-header">\n\t\t\t\t\t\t\t\t\t<p>'.concat(e.RSS_View_Instance.formatDate(new Date(n.date)),"</p>\n\t\t\t\t\t\t\t\t\t").concat(a,"\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t").concat(e.RSS_View_Instance.createExcerpt(n.description,n.postLink,e.getArgs().flyout.excerpt),"\n\t\t\t\t\t\t\t\t").concat(e.RSS_View_Instance.listChildrenPosts(n.children),"\n\t\t\t\t\t\t\t"),l=e.getArgs().flyout.innerContent.additionalClasses;t&&l.push("`inner-content-item-feed-key-${key}`"),r.innerHTML+=e.RSS_View_Instance.innerContentWrapper(s,o,l.join(" "))})),e.getArgs().viewAll.link&&(r.innerHTML+=e.RSS_View_Instance.innerContentWrapper('\n\t\t\t\t\t\t\t<a href="'.concat(e.getArgs().viewAll.link,'" class="button view-all">').concat(e.getArgs().viewAll.label,"</a>\n\t\t\t\t\t\t\t"))),e.RSS_View_Instance.setIsLoading(!1),n.classList.add("ready"),e.getArgs().flyout.onReady(e),n.focus(),e.isMultiFeedRSS()||(e.lastPostUnixTime=s,e.hasNewFeeds&&("function"==typeof e.getArgs().notification.setLastPostUnixTime?e.getArgs().notification.setLastPostUnixTime(s,t):Em.setLastPostUnixTime(s,t)))}}))};t.addEventListener("click",(function(t){if(t.preventDefault(),e.getArgs().triggerButton.onClick(e),e.RSS_View_Instance.setIsLoading(!0),n.classList.remove("closed"),n.classList.add("open"),document.body.classList.add("whats-new-rss-is-active"),e.getArgs().flyout.onOpen(e),!e.isMultiFeedRSS())return s(null);var r=a.querySelectorAll("button");r.forEach((function(t){e.RSS_View_Instance.setMultiFeedTabNotificationCount(t.dataset.feedKey,e.multiNotificationCount[t.dataset.feedKey]),t.addEventListener("click",(function(n){n.preventDefault();var o=t.dataset.feedKey;e.multiNotificationCount[o]=0,e.RSS_Fetch_Instance.fetchData().then((function(t){var n=t[o][0].date;e.multiLastPostUnixTime[o]=n,!0===e.multiHasNewFeeds[o]&&("function"==typeof e.getArgs().notification.setLastPostUnixTime?e.getArgs().notification.setLastPostUnixTime(n,o):Em.setLastPostUnixTime(n,o)),e.multiHasNewFeeds[o]=!1})),r.forEach((function(e){e.classList.remove("selected");var t=e.dataset.feedKey,n=".inner-content-item-feed-key-".concat(t);document.querySelectorAll(n).forEach((function(e){o!==t?e.classList.add("hidden"):e.classList.remove("hidden")}))})),t.classList.add("selected"),s(o)}))})),r[0].click()}));var i=function(){n.classList.add("closed"),n.classList.remove("open"),n.classList.remove("ready"),document.body.classList.remove("whats-new-rss-is-active"),e.isMultiFeedRSS()?e.RSS_View_Instance.setNotification(Object.values(e.multiNotificationCount).filter(Boolean).length):(e.hasNewFeeds=!1,e.RSS_View_Instance.setNotification(!1)),r.innerHTML="",e.getArgs().flyout.onClose(e),t.focus()};this.getArgs().flyout.closeOnEsc&&document.addEventListener("keydown",(function(e){"Escape"===e.key&&n.classList.contains("open")&&i()})),this.getArgs().flyout.closeOnOverlayClick&&n.querySelector(".whats-new-rss-flyout-overlay").addEventListener("click",i),o.addEventListener("click",i)},e}(),Em=function(){function e(){}return e.setInstanceID=function(e){this.instanceID||(this.instanceID=e)},e.prefixer=function(e,t){if(void 0===t&&(t=""),!this.instanceID)throw new Error("Instance ID not set.");return t?"".concat(this.keys[e],"-").concat(this.instanceID,"-").concat(t):"".concat(this.keys[e],"-").concat(this.instanceID)},e._setDataExpiry=function(e){void 0===e&&(e="");var t=(new Date).getTime()+864e5;sessionStorage.setItem(this.prefixer("SESSION_DATA_EXPIRY",e),JSON.stringify(t))},e._isDataExpired=function(e){void 0===e&&(e="");var t=this.prefixer("SESSION_DATA_EXPIRY",e),n=window.sessionStorage.getItem(t);if(!n)return!0;var r=JSON.parse(n);return(new Date).getTime()>r&&(window.sessionStorage.removeItem(t),!0)},e.setSessionData=function(e,t){return void 0===t&&(t=""),this._setDataExpiry(t),window.sessionStorage.setItem(this.prefixer("SESSION",t),e)},e.getSessionData=function(e){return void 0===e&&(e=""),this._isDataExpired(e)?"{}":window.sessionStorage.getItem(this.prefixer("SESSION",e))},e.setLastPostUnixTime=function(e,t){return void 0===t&&(t=""),window.localStorage.setItem(this.prefixer("LAST_LATEST_POST",t),e.toString())},e.getLastPostUnixTime=function(e){return void 0===e&&(e=""),+window.localStorage.getItem(this.prefixer("LAST_LATEST_POST",e))},e.keys={SESSION_DATA_EXPIRY:"whats-new-cache-expiry",LAST_LATEST_POST:"whats-new-last-unixtime",SESSION:"whats-new-cache"},e}(),_m=function(){function e(e){var t=this;this.data={},this.RSS=e,this.RSS.getRSSFeedURLs().forEach((function(e){var n=JSON.parse(Em.getSessionData(e.key));n&&n.length&&(t.data[e.key]=n)}))}return e.prototype.fetchData=function(){return vm(this,void 0,void 0,(function(){var e,t=this;return xm(this,(function(n){switch(n.label){case 0:return Object.keys(this.data).length?[2,this.data]:(e=this.RSS.getRSSFeedURLs().map((function(e){return vm(t,void 0,void 0,(function(){var t,n,r=this;return xm(this,(function(o){switch(o.label){case 0:return this.data[e.key]=[],[4,fetch(e.url)];case 1:return[4,o.sent().text()];case 2:return t=(t=o.sent()).replace(/»/g,"&raquo;"),n=new DOMParser,n.parseFromString(t,"text/xml").querySelectorAll("item").forEach((function(t){var n,o=t.querySelector("title").textContent,a=t.querySelector("link").textContent,s=t.querySelector("content\\:encoded, encoded"),i=s?s.textContent:"",l=t.querySelector("pubDate").innerHTML;r.data[e.key].push({title:o,date:l?+new Date(l):null,postLink:a,description:i.replace(/<a\b((?:(?!target=)[^>])*)>/g,'<a$1 target="_blank">').replace(/<p>\s*<\/p>/g,""),children:JSON.parse((null===(n=t.querySelector("children"))||void 0===n?void 0:n.innerHTML)||"{}")})})),Em.setSessionData(JSON.stringify(this.data[e.key]),e.key),[2]}}))}))})),[4,Promise.all(e)]);case 1:return n.sent(),[2,this.data]}}))}))},e}(),km=function(){function e(e){this.RSS=e,this.createTriggerButton(),this.createFlyOut()}return e.prototype.getTriggerButtonID=function(){return"whats-new-rss-btn-".concat(this.RSS.getID())},e.prototype.getFlyoutID=function(){return"whats-new-rss-flyout-".concat(this.RSS.getID())},e.prototype.getFlyoutCloseBtnID=function(){return"whats-new-rss-flyout-close-".concat(this.RSS.getID())},e.prototype.getFlyoutMultiFeedNavID=function(){return"whats-new-rss-flyout-multi-feed-nav-".concat(this.RSS.getID())},e.prototype.setIsLoading=function(e){void 0===e&&(e=!1);var t=document.getElementById(this.getFlyoutID());e?t.classList.add("is-loading"):t.classList.remove("is-loading")},e.prototype.setNotification=function(e){var t=document.querySelector("#".concat(this.getTriggerButtonID()," .whats-new-rss-notification-badge"));e?(this.RSS.isMultiFeedRSS()?(t.innerHTML="",t.classList.add("is-multi-feed")):t.innerHTML=e>9?"9+":e.toString(),t.classList.remove("hide")):t.classList.add("hide")},e.prototype.createTriggerButton=function(){var e="\n\t\t".concat(this.RSS.getArgs().triggerButton.beforeBtn,'\n\t\t<a class="whats-new-rss-trigger-button" id="').concat(this.getTriggerButtonID(),'">\n\t\t\t').concat(this.RSS.getArgs().triggerButton.icon,'\n\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t</a>\n\t\t').concat(this.RSS.getArgs().triggerButton.afterBtn,"\n\t\t");this.RSS.getElement().innerHTML+=e},e.prototype.createFlyOut=function(){var e=["whats-new-rss-flyout","closed"];this.RSS.getArgs().flyout.className&&e.push(this.RSS.getArgs().flyout.className);var t=[];this.RSS.isMultiFeedRSS()&&(t.push('<nav id="'.concat(this.getFlyoutMultiFeedNavID(),'" class="whats-new-rss-multi-feed-nav">')),this.RSS.getRSSFeedURLs().forEach((function(e){t.push('<button type="button" data-feed-key="'.concat(e.key,'">\n\t\t\t\t\t\t').concat(e.label,'\n\t\t\t\t\t\t<div class="new-notification-count"></div>\n\t\t\t\t\t</button>\n\t\t\t\t\t'))})),t.push("</nav>"));var n=document.createElement("div");n.setAttribute("id",this.getFlyoutID()),n.setAttribute("class",e.join(" ")),n.setAttribute("role","dialog"),n.innerHTML='\n\t\t<div class="whats-new-rss-flyout-contents">\n\n\t\t\t<div class="whats-new-rss-flyout-inner-header">\n\n\t\t\t\t<div class="whats-new-rss-flyout-inner-header__title-icon-wrapper">\n\t\t\t\t\t<h3>'.concat(this.RSS.getArgs().flyout.title,'</h3>\n\n\t\t\t\t\t<span class="whats-new-rss-flyout-inner-header__loading-icon">\n\t\t\t\t\t').concat(this.RSS.getArgs().loaderIcon,'\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\n\t\t\t\t<button type="button" id="').concat(this.getFlyoutCloseBtnID(),'">').concat(this.RSS.getArgs().flyout.closeBtnIcon,"</button>\n\t\t\t</div>\n\n\t\t\t").concat(t.join(""),'\n\n\t\t\t<div class="whats-new-rss-flyout-inner-content">\n\t\t\t\t<div class="skeleton-container">\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t</div>\n\n\t\t<div class="whats-new-rss-flyout-overlay"></div>\n\t\t'),document.body.appendChild(n)},e.prototype.setMultiFeedTabNotificationCount=function(e,t){void 0===t&&(t=0);var n=document.querySelector("#".concat(this.getFlyoutMultiFeedNavID(),' button[data-feed-key="').concat(e,'"]'));if(n){var r=n.querySelector(".new-notification-count");if(t){var o=t>9?"9+":t;r.innerHTML=o.toString()}else r.innerHTML=""}},e.prototype.innerContentWrapper=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n="");var r=["whats-new-rss-flyout-inner-content-item"];return t&&r.push("rss-new-post"),n&&r.push(n),'\n\t\t<div class="'.concat(r.join(" "),'">\n\t\t\t').concat(t?'<small class="new-post-badge">New ✨</small>':"","\n\t\t\t").concat(e,"\n\t\t</div>\n\t\t")},e.prototype.createExcerpt=function(e,t,n){var r=n.wordLimit,o=n.moreSymbol,a=n.readMore;if(!r)return e;var s=e.replace(/<[^>]*>/g,"").split(/\s+/),i=s.slice(0,r).join(" ");return o&&(i+=o),r>s.length?e:t&&(null==a?void 0:a.label)?"<p>".concat(i,' <a href="').concat(t,'" target="_blank" class="').concat(a.className,'">').concat(a.label,"</a></p>"):"<p>".concat(i,"</p>")},e.prototype.listChildrenPosts=function(e){var t=this,n=Object.values(e);if(!n.length)return"";var r=document.createElement("details"),o=document.createElement("summary"),a=document.createElement("div");return n.forEach((function(e){var n=(new DOMParser).parseFromString(e.post_content,"text/html"),r=document.createElement("div");r.classList.add("sub-version-item"),r.innerHTML='\n\t\t\t\t<div class="sub-version-header">\n\t\t\t\t\t<h4 class="sub-version-title">'.concat(e.post_title,'</h4>\n\t\t\t\t\t<span class="sub-version-date">').concat(t.formatDate(new Date(e.post_date)),'</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="sub-version-content">').concat(n.documentElement.textContent,"</div>\n\t\t\t"),a.appendChild(r)})),o.innerHTML='<p class="text-see-more">See More</p><p class="text-see-less">See Less</p>',r.appendChild(o),r.appendChild(a),a.classList.add("sub-version-items-wrapper"),r.classList.add("whats-new-rss-sub-version-details"),r.outerHTML},e.prototype.formatDate=function(e){if("function"==typeof this.RSS.getArgs().flyout.formatDate)return this.RSS.getArgs().flyout.formatDate(e);var t=new Date,n=e.getTime(),r=t.getTime()-n,o=36e5,a=24*o,s=7*a,i=30*a;if(r<6e4)return"Just now";if(r<o){var l=Math.floor(r/6e4);return"".concat(l," minute").concat(l>1?"s":""," ago")}if(r<a){var c=Math.floor(r/o);return"".concat(c," hour").concat(c>1?"s":""," ago")}if(r<s){var u=Math.floor(r/a);return"".concat(u," day").concat(u>1?"s":""," ago")}if(r<i){var d=Math.floor(r/s);return"".concat(d," week").concat(d>1?"s":""," ago")}var m=Math.floor(r/i);return"".concat(m," month").concat(m>1?"s":""," ago")},e}();function Sm(){var e=window.location.hash;document.querySelectorAll("#adminmenu #toplevel_page_hfe a").forEach((function(t){var n=t.getAttribute("href"),r=t.closest("li"),o=t.textContent.trim();n&&(e.includes(n.split("#")[1])||"#dashboard"===e&&"Dashboard"===o)?r.classList.add("current"):r.classList.remove("current")}))}const Nm=function(){var e=s((0,i.useState)(!1),2),t=(e[0],e[1]);(0,i.useEffect)((function(){return Sm(),window.addEventListener("hashchange",Sm),function(){window.removeEventListener("hashchange",Sm)}}),[]);var n=window.location.hash,r=function(e){return n.includes(e)},o=function(e){return{color:r(e)?"#111827":"#4B5563",borderBottom:r(e)?"2px solid #6005FF":"none",paddingBottom:"22px",marginBottom:"-16px"}},a=function(e){window.open(e,"_blank"),t(!1)};return function({selector:e,...t}){const n=(0,i.useRef)(null);(0,i.useEffect)((()=>{var r;return async function(){const e="whats-new-rss-styles";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.innerHTML=await async function(){return".whats-new-rss-is-active{overflow:hidden}.whats-new-rss-trigger-button{display:flex;align-items:center;position:relative;width:auto;padding:5px;cursor:pointer}.whats-new-rss-trigger-button .whats-new-rss-notification-badge{position:absolute;top:-8px;right:-5px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red;transition:transform .2s ease-in-out}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.is-multi-feed{top:-2px;right:-2px;font-size:0;width:10px;height:10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.hide{display:none}.whats-new-rss-trigger-button:hover .whats-new-rss-notification-badge{transform:scale(1.2)}.whats-new-rss-flyout{position:fixed;top:0;right:0;bottom:0;width:100%;z-index:99999;transition:visibility .3s ease-in-out;font-family:Arial,Helvetica,sans-serif}.whats-new-rss-flyout .lightbox-trigger,.whats-new-rss-flyout.hidden{display:none}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon{display:block;margin:auto}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon svg{display:block;background:0 0;width:25px;height:25px}.whats-new-rss-flyout .whats-new-rss-flyout-contents{position:fixed;display:flex;right:0;width:30%;height:100%;flex-direction:column;background-color:#fff;transition:transform .3s ease-in-out;z-index:9999}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 16px 24px;border-bottom:1px solid #ccc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header button{border:none;background:0 0;font-size:30px;cursor:pointer;color:#94a3b8;padding:0;margin:0;box-shadow:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper{display:flex;gap:10px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper h3{margin:0;padding:0;color:#0f172a;font-weight:600;font-size:16px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav{display:flex;padding:0 30px;border-bottom:1px solid #ccc;gap:2em;overflow:auto;white-space:nowrap}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button{position:relative;background:0 0;color:inherit;padding:15px 0;border-bottom:2px solid transparent}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:focus,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:hover{border-color:inherit}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button.selected{border-color:#5d5d5d}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button .new-notification-count{position:absolute;top:0;right:-10px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content{flex:1;overflow-y:auto}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .skeleton-container{margin:30px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item{border-bottom:1px solid #d8dfe9;padding:30px 24px;color:#475569;font-weight:400;font-size:14px;line-height:20px;display:flex;flex-direction:column;gap:13px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>*{margin:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.skeleton-row{height:25vh;margin:40px 0;background:linear-gradient(90deg,#eee 25%,#ddd 50%,#eee 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post{position:relative}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post .new-post-badge{background:#ff3d3d;border-radius:5px;position:absolute;right:45px;padding:0 5px;color:#fff}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header{display:flex;flex-direction:column;gap:15px;padding:0 0 8px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header p{color:#94a3b8;margin:0;padding:0;font-weight:600;font-size:14px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header h2{margin:0;color:#0f172a;font-weight:700;line-height:28px;font-size:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h2{font-weight:700;font-size:18px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h3{font-weight:700;font-size:16px;line-height:22px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h4{font-weight:700;font-size:15px;line-height:20px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h5{font-weight:700;font-size:14px;line-height:18px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h6{font-weight:700;font-size:13px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p{padding:0;font-size:14px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p:last-child{margin-bottom:0;padding-bottom:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item a{color:#1170ff;text-decoration:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure{margin:10px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure.wp-block-embed.is-type-video{position:relative;width:100%;height:0;padding-bottom:56.25%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item video{vertical-align:middle;width:100%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item strong{font-weight:600}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{padding-inline-start:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol li,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul li{margin-bottom:5px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{list-style-type:disc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol{list-style-type:decimal}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details{line-height:20px;font-size:.9em;margin:10px 0;background:#f9fafb}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary{display:flex;justify-content:space-between;cursor:pointer;padding:20px 15px;height:1em;line-height:20px;font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary::after{content:'⌃';font-size:20px;transform:rotateX(180deg);font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-more{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-less{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary{border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary::after{transform:rotateX(45deg)}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-more{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-less{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item{position:relative;padding:1em;border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-header{display:flex;justify-content:space-between}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-content{margin-top:1em}.whats-new-rss-flyout .whats-new-rss-flyout-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);transition:all .3s ease-in-out}.whats-new-rss-flyout.closed{visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-overlay{opacity:0;visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-contents{transform:translateX(100%)}.whats-new-rss-flyout .whats-new-rss-flyout-inner-header__loading-icon{display:none}@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}@media screen and (max-width:1024px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:40%}}@media screen and (max-width:768px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:85%}}"}(),document.head.appendChild(t)}}(),n.current||(n.current=(r={selector:e,...t},new wm(r))),()=>{n.current&&"function"==typeof n.current.destroy&&n.current.destroy()}}),[e,...Object.values(t)]),n.current}({rssFeedURL:"https://ultimateelementor.com/whats-new/feed/",selector:"#hfe-whats-new",triggerButton:{beforeBtn:'<div class="w-4 sm:w-8 h-8 sm:h-10 flex items-center whitespace-nowrap justify-center cursor-pointer rounded-full border border-slate-200">',icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#434141" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-megaphone"><path d="m3 11 18-5v12L3 14v-3z"></path><path d="M11.6 16.8a3 3 0 1 1-5.8-1.6"></path></svg>',afterBtn:"</div>"},flyout:{title:(0,hm.__)("What's New?","astra-sites"),formatDate:function(e){var t=e.toLocaleDateString("en-US",{weekday:"long"}),n=e.toLocaleDateString("en-US",{month:"long"}),r=e.getDate(),o=e.getFullYear();return"".concat(t," ").concat(n," ").concat(r,", ").concat(o)}}}),c().createElement(ot,{className:"hfe-nav-menu relative",style:{width:"unset",padding:"0.5rem",zIndex:"9",paddingTop:"1rem"}},c().createElement("div",{className:"flex flex-col lg:flex-row items-start md:items-center w-full"},c().createElement("div",{className:"flex flex-row md:items-center md:gap-8 w-full"},c().createElement(ot.Left,null,c().createElement(ot.Item,null,c().createElement(D,{to:gm.dashboard.path},c().createElement("img",{src:"".concat(hfeSettingsData.icon_url),alt:"Icon",className:"ml-4 cursor-pointer",style:{height:"35px",width:"35px"}})))),c().createElement(ot.Middle,{className:"flex-grow",align:"left"},c().createElement(ot.Item,null,c().createElement("nav",{className:"flex flex-wrap gap-6 mt-2 md:mt-0 cursor-pointer"},c().createElement(D,{to:gm.dashboard.path,className:"".concat(r("dashboard")?"active-link":""),style:o("dashboard")},(0,hm.__)("Dashboard","header-footer-elementor")),c().createElement(D,{to:gm.headerFooterBuilder.path,className:"".concat(r("edit.php?post_type=elementor-hf")?"active-link":""),style:o("edit.php?post_type=elementor-hf"),onClick:function(){console.log("Navigating to Header & Footer Builder")}},(0,hm.__)("Header & Footer","header-footer-elementor")),c().createElement(D,{to:gm.widgets.path,className:"".concat(r("widgets")?"active-link":""),style:o("widgets")},(0,hm.__)("Widgets","header-footer-elementor")),c().createElement(D,{to:gm.learn.path,className:"".concat(r("learn")?"active-link":""),style:o("learn")},(0,hm.__)("Learn","header-footer-elementor")),c().createElement(D,{to:gm.settings.path,className:"".concat(r("settings")?"active-link":""),style:o("settings")},(0,hm.__)("Settings","header-footer-elementor")),c().createElement(D,{to:gm.upgrade.path,className:"".concat(r("upgrade")?"active-link":""),style:o("upgrade")},(0,hm.__)("Free vs Pro","header-footer-elementor")))),c().createElement(ot.Item,null,c().createElement(ct,{icon:c().createElement(um,null),iconPosition:"right",variant:"ghost",className:"hfe-remove-ring mb-2",style:{color:"#6005FF",background:"none",border:"none",padding:0,cursor:"pointer"},onClick:function(){return a("https://ultimateelementor.com/pricing/?utm_source=uae-lite-dashboard&utm_medium=navigation-bar&utm_campaign=uae-lite-upgrade")}},(0,hm.__)("Get Full Control","header-footer-elementor")))),c().createElement(ot.Right,{className:"gap-4"},c().createElement(ot.Item,null,c().createElement(Gd,{placement:"bottom-end"},c().createElement(Gd.Trigger,null,c().createElement(rm,{label:(0,hm.__)("Free","header-footer-elementor"),size:"xs",variant:"neutral"}),c().createElement("span",{className:"sr-only"},"Open Menu")),c().createElement(Gd.Portal,null,c().createElement(Gd.ContentWrapper,null,c().createElement(Gd.Content,{className:"w-60"},c().createElement(Gd.List,null,c().createElement(Gd.Item,null,(0,hm.__)("Version","header-footer-elementor")),c().createElement(Gd.Item,null,c().createElement("div",{className:"flex justify-between w-full"},"".concat(hfeSettingsData.uaelite_current_version),c().createElement(rm,{label:(0,hm.__)("Free","header-footer-elementor"),size:"xs",variant:"neutral"}))))))))),c().createElement(ot.Item,{className:"gap-4 cursor-pointer"},c().createElement(Gd,{placement:"bottom-end"},c().createElement(Gd.Trigger,null,c().createElement(dm,null)),c().createElement(Gd.Portal,null,c().createElement(Gd.ContentWrapper,null,c().createElement(Gd.Content,{className:"w-60"},c().createElement(Gd.List,null,c().createElement(Gd.Item,null,(0,hm.__)("Useful Resources","header-footer-elementor")),c().createElement(Gd.Item,{className:"text-text-primary",style:{color:"black"},onClick:function(){return a("https://ultimateelementor.com/docs/getting-started-with-ultimate-addons-for-elementor-lite/")}},c().createElement(mm,{style:{color:"black"}}),(0,hm.__)("Getting Started","header-footer-elementor")),c().createElement(Gd.Item,{onClick:function(){return a("https://ultimateelementor.com/docs-category/widgets/")}},c().createElement(mm,null),(0,hm.__)("How to use widgets","header-footer-elementor")),c().createElement(Gd.Item,{onClick:function(){return a("https://ultimateelementor.com/docs-category/features/")}},c().createElement(mm,null),(0,hm.__)("How to use features","header-footer-elementor")),c().createElement(Gd.Item,{onClick:function(){return a("https://ultimateelementor.com/docs-category/templates/")}},c().createElement(mm,null),(0,hm.__)("How to use templates","header-footer-elementor")),c().createElement(Gd.Item,{onClick:function(){return a("https://ultimateelementor.com/contact/")}},c().createElement(pm,null),(0,hm.__)("Contact us","header-footer-elementor"))))))),c().createElement("div",{className:"pb-1",id:"hfe-whats-new"})),c().createElement(D,{to:gm.settings.path},c().createElement(fm,{className:"cursor-pointer hfe-user-icon",style:{color:"black"}}))))))};function Cm(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Pm=Id("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Tm=Id("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),jm=Id("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Rm=Id("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Fm="light",Am="neutral",Dm=({icon:e,theme:t=Fm,variant:n=Am})=>{const r="[&>svg]:h-5 [&>svg]:w-5",o=(({theme:e=Fm,variant:t=Am})=>{let n="light"===e?"text-icon-secondary":"text-icon-inverse";return n={info:"light"===e?"text-support-info":"text-support-info-inverse",success:"light"===e?"text-support-success":"text-support-success-inverse",warning:"light"===e?"text-support-warning":"text-support-warning-inverse",error:"light"===e?"text-support-error":"text-support-error-inverse"}[t]||n,n})({theme:t,variant:n});if(e&&(0,i.isValidElement)(e))return(0,i.cloneElement)(e,{className:Ae(r,o,e?.props?.className??"")});const a={neutral:(0,O.jsx)(Pm,{className:Ae(r,o)}),info:(0,O.jsx)(Pm,{className:Ae(r,o)}),success:(0,O.jsx)(Tm,{className:Ae(r,o)}),warning:(0,O.jsx)(jm,{className:Ae(r,o)}),error:(0,O.jsx)(Rm,{className:Ae(r,o)})};return a[n]||a.neutral},Mm=({actionType:e="button",onAction:t=()=>{},actionLabel:n="",theme:r=Fm})=>{const o="focus:ring-0 focus:ring-offset-0 ring-offset-0 focus:outline-none";let a="text-button-primary border-button-primary hover:border-button-primary hover:text-button-primary-hover";switch("dark"===r&&(a="text-text-inverse border-text-inverse hover:border-text-inverse hover:text-text-inverse"),e){case"button":return(0,O.jsx)(ct,{variant:"outline",size:"xs",onClick:t,className:Ae("rounded",o,a,"dark"===r?"bg-transparent hover:bg-transparent":"bg-white hover:bg-white"),children:n});case"link":return(0,O.jsx)(ct,{variant:"link",size:"xs",onClick:t,className:Ae(o,a),children:n});default:return null}},Lm=({theme:e=Fm,title:t="",inline:n=!1})=>t?(0,O.jsx)("span",{className:Ae("block",{light:"text-text-primary",dark:"text-text-inverse"}[e],"text-sm leading-5 font-semibold",n?"inline":"block"),children:t}):null,Om=({theme:e=Fm,content:t="",inline:n=!1})=>t?(0,O.jsx)("span",{className:Ae({light:"text-text-primary",dark:"text-text-inverse"}[e],"block text-sm [&_*]:text-sm leading-5 [&_*]:leading-5 font-normal [word-break:break-word]",n?"inline":"block"),children:t}):null,Im=(...e)=>t=>{e.forEach((e=>{"function"==typeof e?e(t):e&&(e.current=t)}))},Bm=({variant:e="dark",placement:t="bottom",title:n="",content:r,arrow:o=!1,open:a,setOpen:s,children:l,className:c,tooltipPortalRoot:u,tooltipPortalId:d,boundary:m="clippingAncestors",strategy:p="fixed",offset:f=8,triggers:h=["hover","focus"],interactive:g=!1})=>{const y=(0,i.useMemo)((()=>"boolean"==typeof a&&"function"==typeof s),[a,s]),[v,x]=(0,i.useState)(!1),b=(0,i.useRef)(null),{refs:w,floatingStyles:E,context:_}=Ur({open:y?a:v,onOpenChange:y?s:x,placement:t,strategy:p,middleware:[er(f),nr({boundary:m}),tr({boundary:m}),(M={element:b},{...Qn(M),options:[M,undefined]})],whileElementsMounted:Un}),k=Or(_,{enabled:!y&&h.includes("click")}),S=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:a,elements:s}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:m=0,move:p=!0}=t,f=gr(),h=hr(),g=vr(u),y=vr(c),v=vr(n),x=i.useRef(),b=i.useRef(-1),w=i.useRef(),E=i.useRef(-1),_=i.useRef(!0),k=i.useRef(!1),S=i.useRef((()=>{})),N=i.useRef(!1),C=i.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);i.useEffect((()=>{if(l)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(b.current),clearTimeout(E.current),_.current=!0,N.current=!1)}}),[l,a]),i.useEffect((()=>{if(!l)return;if(!g.current)return;if(!n)return;function e(e){C()&&r(!1,e,"hover")}const t=Ot(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[s.floating,n,r,l,g,C]);const P=i.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=br(y.current,"close",x.current);o&&!w.current?(clearTimeout(b.current),b.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(b.current),r(!1,e,n))}),[y,r]),T=ar((()=>{S.current(),w.current=void 0})),j=ar((()=>{if(k.current){const e=Ot(s.floating).body;e.style.pointerEvents="",e.removeAttribute(xr),k.current=!1}})),R=ar((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));i.useEffect((()=>{if(l&&ht(s.domReference)){var e;const r=s.domReference;return n&&r.addEventListener("mouseleave",i),null==(e=s.floating)||e.addEventListener("mouseleave",i),p&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",a),()=>{var e;n&&r.removeEventListener("mouseleave",i),null==(e=s.floating)||e.removeEventListener("mouseleave",i),p&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",a)}}function t(e){if(clearTimeout(b.current),_.current=!1,d&&!Lt(x.current)||m>0&&!br(y.current,"open"))return;const t=br(y.current,"open",x.current);t?b.current=window.setTimeout((()=>{v.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function a(e){if(R())return;S.current();const t=Ot(s.floating);if(clearTimeout(E.current),N.current=!1,g.current&&o.current.floatingContext){n||clearTimeout(b.current),w.current=g.current({...o.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){j(),T(),R()||P(e,!0,"safe-polygon")}});const r=w.current;return t.addEventListener("mousemove",r),void(S.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==x.current||!Rt(s.floating,e.relatedTarget))&&P(e)}function i(e){R()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){j(),T(),R()||P(e)}})(e))}}),[s,l,e,d,m,p,P,T,j,r,n,v,f,y,g,o,R]),sr((()=>{var e;if(l&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&C()){k.current=!0;const e=s.floating;if(ht(s.domReference)&&e){var t;const n=Ot(s.floating).body;n.setAttribute(xr,"");const r=s.domReference,o=null==f||null==(t=f.nodesRef.current.find((e=>e.id===h)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,n,h,s,f,g,C]),sr((()=>{n||(x.current=void 0,N.current=!1,T(),j())}),[n,T,j]),i.useEffect((()=>()=>{T(),clearTimeout(b.current),clearTimeout(E.current),j()}),[l,s.domReference,T,j]);const F=i.useMemo((()=>{function e(e){x.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){_.current||v.current||r(!0,t,"hover")}d&&!Lt(x.current)||n||0===m||N.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(E.current),"touch"===x.current?o():(N.current=!0,E.current=window.setTimeout(o,m)))}}}),[d,r,n,v,m]),A=i.useMemo((()=>({onMouseEnter(){clearTimeout(b.current)},onMouseLeave(e){R()||P(e.nativeEvent,!1)}})),[P,R]);return i.useMemo((()=>l?{reference:F,floating:A}:{}),[l,F,A])}(_,{move:!1,enabled:!y&&h.includes("hover"),...g&&{handleClose:eo()}}),N=Wr(_,{enabled:!y&&h.includes("focus")}),C=Vr(_),P=Xr(_,{role:"tooltip"}),{getReferenceProps:T,getFloatingProps:j}=Yr([k,S,N,C,P]),{isMounted:R,styles:F}=Jr(_,{duration:150,initial:{opacity:0},open:{opacity:1},close:{opacity:0}}),A={light:"bg-tooltip-background-light text-text-primary",dark:"bg-tooltip-background-dark text-text-on-color"}[e],D="dark"===e?"text-tooltip-background-dark":"text-tooltip-background-light";var M;return(0,O.jsxs)(i.Fragment,{children:[(0,i.isValidElement)(l)&&(0,O.jsx)(i.Fragment,{children:(0,i.cloneElement)(l,{ref:Im(l.ref,w.setReference),className:Ae(l.props.className),...T()})},"tooltip-reference"),(0,O.jsx)(Fr,{id:d,root:u,children:R&&(0,O.jsxs)("div",{className:Ae("absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg",A,"max-w-80 w-fit",c),ref:w.setFloating,style:{...E,...F},...j(),children:[(0,O.jsxs)("div",{children:[!!n&&(0,O.jsx)("span",{className:"font-semibold",children:n},"tooltip-title"),!!r&&(0,O.jsx)("div",{className:"font-normal",children:r},"tooltip-content")]}),o&&(0,O.jsx)(mr,{ref:b,context:_,className:Ae("fill-current",D)})]})})]})};Bm.displayName="Tooltip";const zm=(0,i.forwardRef)((({children:e=null,tag:t="label",size:n="sm",className:r="",variant:o="neutral",required:a=!1,...s},i)=>{if(!e)return null;let l="";return a&&(l="after:content-['*'] after:text-field-required after:ml-0.5"),(0,O.jsx)(t,{ref:i,className:Ae("font-medium text-field-label flex items-center gap-0.5",{xs:"text-xs [&>*]:text-xs [&>svg]:h-3 [&>svg]:w-3",sm:"text-sm [&>*]:text-sm [&>svg]:h-4 [&>svg]:w-4",md:"text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5"}[n],{neutral:"text-field-label [&>*]:text-field-label",help:"text-field-helper [&>*]:text-field-helper",error:"text-support-error [&>*]:text-support-error",disabled:"text-field-color-disabled disabled cursor-not-allowed [&>*]:text-field-color-disabled"}[o],l,{neutral:"",help:"font-normal",error:"font-normal",disabled:""}?.[o],r),...s,children:e})}));zm.displayName="Label";const Vm=({label:e,switchId:t,disabled:n=!1,children:r,size:o})=>{const a={xs:"text-xs leading-4 font-medium",sm:"text-sm leading-5 font-medium",md:"text-base leading-6 font-medium"},s={xs:"text-xs leading-4 font-normal",sm:"text-sm leading-5 font-normal",md:"text-sm leading-5 font-normal"},l={xs:"space-y-0.5",sm:"space-y-0.5",md:"space-y-1"};if((0,i.isValidElement)(e))return(0,O.jsxs)("div",{className:Ae("inline-flex items-center gap-3","items-start"),children:[r,e]});const c=!e?.heading&&!e?.description,u=e?.heading&&e?.description?"items-start":"items-center";return c?r:(0,O.jsxs)("div",{className:Ae("inline-flex",u,"gap-3"),children:[r,(()=>{const{heading:r="",description:i=""}=e||{};return(0,O.jsxs)("div",{className:Ae("space-y-0.5",l[o]),children:[r&&(0,O.jsx)(zm,{htmlFor:t,className:Ae("m-0",a[o]),...n&&{variant:"disabled"},children:r}),i&&(0,O.jsx)(zm,{tag:"p",variant:"help",className:Ae("text-sm font-normal leading-5 m-0",s[o]),...n&&{variant:"disabled"},children:i})]})})()]})},Um=(0,i.forwardRef)((({id:e,onChange:t,value:n,defaultValue:r=!1,size:o="sm",disabled:a=!1,label:s={heading:"",description:""},name:l,className:c,...u},d)=>{const m="lg"===o?"md":o,p=(0,i.useMemo)((()=>typeof n<"u"),[n]),f=(0,i.useMemo)((()=>e||`switch-${((e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t})()}`),[]),[h,g]=(0,i.useState)(r),y="primary",v=(0,i.useCallback)((()=>p?n:h),[p,n,h]),x={primary:{input:"bg-toggle-off checked:bg-toggle-on focus:ring focus:ring-toggle-on focus:ring-offset-2 border border-solid border-toggle-off-border checked:border-toggle-on-border shadow-toggleContainer focus:outline-none checked:focus:border-toggle-on-border focus:border-toggle-off-border",toggleDial:"bg-toggle-dial-background shadow-toggleDial"}},b={md:{container:"w-11 h-6",toggleDial:"size-4 peer-checked:translate-x-5"},sm:{container:"w-10 h-5",toggleDial:"size-3 peer-checked:translate-x-5"},xs:{container:"w-8 h-4",toggleDial:"size-2.5 peer-checked:translate-x-3.75"}};return(0,O.jsx)(Vm,{label:s,switchId:f,disabled:a,size:m,children:(0,O.jsxs)("div",{className:Ae("relative group/switch inline-block cursor-pointer rounded-full shrink-0",b[m].container,c),children:[(0,O.jsx)("input",{ref:d,id:f,type:"checkbox",className:Ae("peer appearance-none absolute rounded-full cursor-pointer transition-colors duration-300 h-full w-full before:content-[''] checked:before:content-[''] m-0 checked:[background-image:none]",x[y].input,a&&"bg-toggle-off-disabled disabled:border-transparent disabled:cursor-not-allowed checked:disabled:bg-toggle-on-disabled disabled:shadow-toggle-disabled",!a&&{primary:{input:"group-hover/switch:bg-toggle-off-hover checked:group-hover/switch:bg-toggle-on-hover checked:group-hover/switch:border-toggle-on-border"}}[y].input),checked:v(),onChange:e=>{if(a)return;const n=e.target.checked;p||g(n),"function"==typeof t&&t(n)},disabled:a,name:l,...u}),(0,O.jsx)("label",{htmlFor:f,className:Ae("peer/toggle-dial bg-white border rounded-full absolute cursor-pointer shadow-md before:content[''] before:transition-opacity before:opacity-0 hover:before:opacity-10 before:hidden border-none transition-all duration-300 top-2/4 not-rtl:left-1 rtl:right-1 -translate-y-2/4 before:w-10 before:h-10 before:rounded-full before:absolute before:top-2/4 not-rtl:before:left-2/4 rtl:before:right-2/4 before:-translate-y-2/4 before:-translate-x-2/4",b[m].toggleDial,x[y].toggleDial,a&&"peer-disabled:cursor-not-allowed",!a&&{md:"group-hover/switch:size-5 group-focus-within/switch:size-5 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5",sm:"group-hover/switch:size-4 group-focus-within/switch:size-4 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5",xs:"group-hover/switch:size-3.25 group-focus-within/switch:size-3.25 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5"}[m])})]})})}));Um.displayName="Switch";const Wm=cm("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),Hm=window.wp.apiFetch;var $m=o.n(Hm),qm=[],Ym=function(){0!==qm.length&&qm.shift()()};const Gm=function(e){var t=e.widget,n=e.updateCounter,r=(e.showTooltip,t.id),o=t.icon,a=t.title,l=(t.infoText,t.is_pro),u=(t.is_active,t.slug,t.demo_url),d=(t.doc_url,t.description),m=(t.is_new,s((0,i.useState)(t.is_active),2)),p=m[0],f=m[1],h=s((0,i.useState)(!1),2),g=h[0],y=h[1],v=s((0,i.useState)(!1),2),x=v[0],b=v[1],w=s((0,i.useState)(!1),2),E=w[0],_=w[1];(0,i.useEffect)((function(){f(t.is_active)}),[t.is_active,n]);var k=function(e){var t=e?"hfe_deactivate_widget":"hfe_activate_widget",n=new window.FormData;n.append("action",t),n.append("nonce",hfe_admin_data.nonce),n.append("module_id",r),n.append("is_pro",l);try{var o=$m()({url:hfe_admin_data.ajax_url,method:"POST",body:n});o.success?f(p):o.error}catch(e){}finally{y(!1),Ym()}};return c().createElement(c().Fragment,null,c().createElement("style",{dangerouslySetInnerHTML:{__html:"\n\t\t\t\t\t.hfe-uae-pro-link:focus,\n\t\t\t\t\t.hfe-uae-pro-link:active,\n\t\t\t\t\t.hfe-uae-pro-link:hover,\n\t\t\t\t\t.hfe-uae-pro-link:focus-visible {\n\t\t\t\t\t\toutline: none !important;\n\t\t\t\t\t\tbox-shadow: none !important;\n\t\t\t\t\t\tborder: none !important;\n\t\t\t\t\t}\n\t\t\t\t"}}),c().createElement(nt,{align:"center",containerType:"flex",direction:"column",justify:"between",gap:""},c().createElement("div",{className:"flex items-start justify-between w-full mb-4"},c().createElement("div",{className:"h-10 w-10 ".concat(null==o?void 0:o.props),style:{fontSize:"22px"}},o),c().createElement("div",{className:"flex items-center gap-x-2"},l?c().createElement(Bm,{arrow:!0,content:c().createElement("div",{style:{textAlign:"left",maxWidth:"280px"}},c().createElement("div",{style:{display:"flex",alignItems:"center",marginBottom:"8px",gap:"6px"}},c().createElement("span",{style:{fontSize:"14px",fontWeight:"600",color:"#ffffff",lineHeight:"1.2"}},a),c().createElement("span",{style:{backgroundColor:"#C026D3",color:"#ffffff",fontSize:"10px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",textTransform:"uppercase",letterSpacing:"0.5px"}},(0,hm.__)("PRO","header-footer-elementor"))),c().createElement("p",{style:{fontSize:"12px",color:"#E5E7EB",margin:"0 0 12px 0",lineHeight:"1.4"}},d),c().createElement("a",{href:"https://ultimateelementor.com/pricing/?utm_source=uae-lite-dashboard&utm_medium=pro-widgets&utm_campaign=uae-upgrade",target:"_blank",rel:"noopener noreferrer",style:{color:"#C026D3",textDecoration:"none",outline:"none",fontSize:"12px",fontWeight:"600"},className:"hfe-uae-pro-link focus:outline-none"},(0,hm.__)("Get Full Control","header-footer-elementor"))),placement:"bottom",variant:"dark",size:"md",triggers:["click"],open:x,onOpenChange:b},c().createElement("div",{onClick:function(){return b(!x)},style:{cursor:"pointer"}},c().createElement(Um,{onChange:function(){},size:"xs",value:!1,disabled:!0,style:{outline:"none",cursor:"default",pointerEvents:"none"},className:"hfe-remove-ring outline-none"}))):c().createElement(Um,{onChange:function(){g||(y(!0),p?(f(!1),qm.push((function(){return k(p)}))):(f(!0),qm.push((function(){return k(p)}))),1===qm.length&&Ym())},size:"xs",value:p,style:{outline:"none"},className:"hfe-remove-ring outline-none"}))),c().createElement("div",{className:"flex items-start justify-between w-full"},c().createElement("p",{className:"text-sm font-medium text-text-primary m-0 w-full leading-tight flex items-center overflow-hidden",style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",wordBreak:"break-word"}},a),c().createElement("div",{className:"ml-2"},c().createElement(Bm,{arrow:!0,content:c().createElement("div",null,u&&c().createElement("a",{href:u,target:"_blank",rel:"noopener noreferrer",className:"text-white focus:outline-none m-0 mb-1 hfe-remove-ring",style:{textDecoration:"none",lineHeight:"1.5rem",outline:"none",border:"none",boxShadow:"none",fontSize:"12px"}},(0,hm.__)("View Demo","header-footer-elementor"))),placement:"bottom",title:"",triggers:["click"],variant:"dark",size:"xs",open:E,onOpenChange:_},c().createElement("div",{onClick:function(e){e.stopPropagation(),_(!E)},onMouseEnter:function(){return _(!0)},onMouseLeave:function(){return _(!1)},style:{cursor:u?"pointer":"default"},className:"inline-flex items-center"},c().createElement(Wm,{className:"h-4 w-4",size:16,color:"#A0A5B2"})))))))},Xm=({variant:e="rectangular",className:t,...n})=>{const r={circular:"rounded-full bg-gray-200 ",rectangular:"rounded-md bg-gray-200"}[e],o={circular:"size-10",rectangular:"w-96 h-3"}[e];return(0,O.jsx)("div",{className:Ae(r,"animate-pulse",o,t),...n})},Km=function(){var e=s((0,i.useState)(null),2),t=e[0],n=e[1],r=s((0,i.useState)(!0),2),o=r[0],a=r[1],l=s((0,i.useState)(!0),2),u=l[0];return l[1],(0,i.useEffect)((function(){a(!0),$m()({path:"/hfe/v1/widgets",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}}).then((function(e){var t=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t.push({id:n,slug:r.slug,title:r.title,keywords:r.keywords,icon:c().createElement("i",{className:r.icon}),title_url:r.title_url,default:r.default,doc_url:r.doc_url,is_pro:r.is_pro,description:r.description,is_active:void 0===r.is_activate||r.is_activate,demo_url:void 0!==r.demo_url?r.demo_url:r.doc_url})}return t}(e);n(t),a(!1)})).catch((function(e){a(!1)}))}),[]),c().createElement("div",{className:"rounded-lg bg-white w-full mb-6"},c().createElement("div",{className:"flex items-center justify-between p-4",style:{paddingBottom:"0"}},c().createElement("p",{className:"m-0 text-sm font-semibold text-text-primary"},(0,hm.__)("Widgets / Features","header-footer-elementor")),c().createElement(ct,{icon:c().createElement(um,null),iconPosition:"right",variant:"ghost",className:"hfe-remove-ring mb-2",style:{color:"#6005FF",background:"none",border:"none",padding:0,cursor:"pointer"},onClick:function(){return window.open("https://ultimateelementor.com/pricing/?utm_source=uae-lite-dashboard&utm_medium=navigation-bar&utm_campaign=uae-lite-upgrade","_blank")}},(0,hm.__)("Unlock All Features","header-footer-elementor"))),c().createElement("div",{className:"flex bg-black flex-col rounded-lg p-4"},o?c().createElement(nt,{align:"stretch",className:"p-2 gap-1.5 grid grid-cols-2 md:grid-cols-4",style:{backgroundColor:"#F9FAFB"},containerType:"grid",gap:"",justify:"start"},Cm(Array(16)).map((function(e,t){return c().createElement(nt.Item,{key:t,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-6 space-y-2"},c().createElement(Xm,{className:"w-12 h-2 rounded-md"}),c().createElement(Xm,{className:"w-16 h-2 rounded-md"}),c().createElement(Xm,{className:"w-12 h-2 rounded-md"}))}))):c().createElement(nt,{align:"stretch",className:"p-2 gap-1.5 grid grid-cols-2 md:grid-cols-4",style:{backgroundColor:"#F9FAFB"},containerType:"grid",gap:"",justify:"start"},null==t?void 0:t.slice(10,18).map((function(e){return c().createElement(nt.Item,{key:e.id,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary px-4",style:{paddingTop:"8px",paddingBottom:"8px"}},c().createElement(Gm,{widget:e,showTooltip:u,key:e.id,updateCounter:0}))}))),c().createElement("div",{className:"flex items-center justify-center gap-x-2 "},c().createElement(D,{to:gm.widgets.path,className:"text-sm font-normal text-text-primary cursor-pointer",style:{lineHeight:"1rem",paddingTop:"20px"}},(0,hm.__)("View More Widgets","header-footer-elementor"),c().createElement(um,{className:"ml-1 font-semibold",size:14})))))},Zm=({title:e="",description:t="",icon:n=null,iconPosition:r="right",tag:o="h2",size:a="sm",className:s=""})=>{const i={xs:"gap-1 [&>svg]:size-3.5",sm:"gap-1 [&>svg]:size-4",md:"gap-1.5 [&>svg]:size-5",lg:"gap-1.5 [&>svg]:size-5"};if(!e)return null;const l=()=>(0,O.jsx)(o,{className:Ae("font-semibold p-0 m-0",{xs:"text-base [&>*]:text-base gap-1",sm:"text-lg [&>*]:text-lg gap-1",md:"text-xl [&>*]:text-xl gap-1.5",lg:"text-2xl [&>*]:text-2xl gap-1.5"}[a]),children:e});return t?(0,O.jsxs)("div",{className:s,children:[(0,O.jsxs)("div",{children:[n&&"left"===r&&(0,O.jsxs)("div",{className:Ae("flex items-center",i[a]),children:[n,l()]}),n&&"right"===r&&(0,O.jsxs)("div",{className:Ae("flex items-center",i[a]),children:[l(),n]}),!n&&l()]}),(0,O.jsx)("p",{className:Ae("text-text-secondary font-normal my-0",{xs:"text-sm",sm:"text-sm",md:"text-base",lg:"text-base"}[a]),children:t})]}):(0,O.jsxs)("div",{className:s,children:[n&&"left"===r&&(0,O.jsxs)("div",{className:Ae("flex items-center",i[a]),children:[n,l()]}),n&&"right"===r&&(0,O.jsxs)("div",{className:Ae("flex items-center",i[a]),children:[l(),n]}),!n&&l()]})},Jm=cm("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]),Qm=cm("book-open-text",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M16 12h2",key:"7q9ll5"}],["path",{d:"M16 8h2",key:"msurwy"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}],["path",{d:"M6 12h2",key:"32wvfc"}],["path",{d:"M6 8h2",key:"30oboj"}]]),ep=cm("notepad-text",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"16",height:"18",x:"4",y:"4",rx:"2",key:"1u9h20"}],["path",{d:"M8 10h6",key:"3oa6kw"}],["path",{d:"M8 14h8",key:"1fgep2"}],["path",{d:"M8 18h5",key:"17enja"}]]),tp=cm("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),np=function(){return c().createElement("div",{className:"box-border hfe-dashboard-quick-access p-4 bg-white rounded-lg shadow-md",style:{width:"-webkit-fill-available"}},c().createElement(Zm,{className:"mb-2",icon:null,iconPosition:"right",size:"xs",tag:"h3",title:(0,hm.__)("Quick Access","header-footer-elementor")}),c().createElement(nt,{align:"stretch",className:"p-1 rounded-lg bg-[#F9FAFB] gap-1",containerType:"flex",direction:"column",gap:"",justify:"start",style:{width:"100%",backgroundColor:"#F9FAFB"}},c().createElement(nt.Item,{alignSelf:"auto",className:"p-4 bg-white flex items-center justify-between rounded-lg shadow-container-item",order:"none",shrink:1},c().createElement(ct,{className:"text-black hfe-remove-ring",icon:c().createElement(Jm,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://ultimateelementor.com/contact/","_blank")}},(0,hm.__)("VIP Priority Support","header-footer-elementor")),c().createElement(rm,{label:(0,hm.__)("PRO","header-footer-elementor"),size:"xs",variant:"inverse"})),c().createElement(nt.Item,{alignSelf:"auto",className:"p-4 bg-white rounded-lg shadow-container-item",order:"none",shrink:1},c().createElement(ct,{className:"text-black hfe-remove-ring",icon:c().createElement(Qm,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://ultimateelementor.com/docs/getting-started-with-ultimate-addons-for-elementor-lite/","_blank")}},(0,hm.__)("Knowledge Base","header-footer-elementor"))),c().createElement(nt.Item,{className:"p-4 bg-white rounded-lg shadow-container-item"},c().createElement(ct,{className:"text-black hfe-remove-ring",icon:c().createElement(dm,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://ultimateelementor.com/docs/","_blank")}},(0,hm.__)("Help Centre","header-footer-elementor"))),c().createElement(nt.Item,{className:"p-4 bg-white rounded-lg shadow-container-item"},c().createElement(ct,{className:"text-black hfe-remove-ring",icon:c().createElement(ep,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://ideas.ultimateelementor.com/boards/feature-requests","_blank")}},(0,hm.__)("Request a Feature","header-footer-elementor"))),c().createElement(nt.Item,{className:"p-4 bg-white rounded-lg shadow-container-item"},c().createElement(ct,{className:"text-black hfe-remove-ring",icon:c().createElement(tp,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://wordpress.org/support/plugin/header-footer-elementor/reviews/#new-post","_blank")}},(0,hm.__)("Rate Us","header-footer-elementor")))))},rp=cm("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),op=function(){return c().createElement("div",null,c().createElement(nt,{align:"center",className:"bg-background-primary border-[0.5px] border-subtle rounded-xl shadow-sm mb-6 p-8 flex flex-col lg:flex-row",containerType:"flex",direction:"row",gap:"sm"},c().createElement(nt.Item,{shrink:1,className:"flex-1"},c().createElement(Zm,{description:"",icon:null,iconPosition:"right",className:"max-w-lg",size:"lg",tag:"h3",title:(0,hm.__)("Welcome to Ultimate Addons for Elementor!","header-footer-elementor")}),c().createElement("p",{className:"text-sm font-medium text-text-tertiary m-0 mt-2"},(0,hm.__)("Effortlessly design modern websites with UAE using our powerful range of widgets & features. Get started by selecting an option based on your needs.","header-footer-elementor")),c().createElement("div",{className:"flex items-center pt-6 gap-2 flex-wrap"},c().createElement(ct,{iconPosition:"right",variant:"primary",className:"text-[#6005FF] border-none hfe-remove-ring flex-shrink-0",style:{backgroundColor:"var(--Colors-Button-button-secondary, #DDD6FE)",transition:"background-color 0.3s ease",border:"none",outline:"none",boxShadow:"none"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#4B00CC",e.currentTarget.style.color="#fff"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="var(--Colors-Button-button-secondary, #DDD6FE)",e.currentTarget.style.color="#6005FF"},onClick:function(){window.open(hfeSettingsData.hfe_post_url,"_blank")}},(0,hm.__)("Create Header/Footer","header-footer-elementor")),c().createElement(ct,{icon:c().createElement(rp,null),iconPosition:"right",variant:"outline",className:"hfe-remove-ring flex-shrink-0",style:{color:"#000",borderColor:"#E9DFFC"},onMouseEnter:function(e){return e.currentTarget.style.color="#000000"},onMouseLeave:function(e){return(e.currentTarget.style.color="#000")&&(e.currentTarget.style.borderColor="#E9DFFC")},onClick:function(){window.open(hfeSettingsData.elementor_page_url,"_blank")}},(0,hm.__)("Create New Page","header-footer-elementor")),c().createElement("div",{style:{color:"black",background:"none",border:"none",padding:0,cursor:"pointer"},className:"flex-shrink-0",onMouseEnter:function(e){return e.currentTarget.style.color="#6005ff"},onMouseLeave:function(e){return e.currentTarget.style.color="black"},onClick:function(){window.open("https://ultimateelementor.com/docs/getting-started-with-ultimate-addons-for-elementor-lite/","_blank")}}))),c().createElement(nt.Item,{className:"md:mt-0 mt-4 flex-shrink-0"},c().createElement("iframe",{width:"280",height:"160",src:"https://www.youtube.com/embed/ZeogOxqdKJI",frameBorder:"0",style:{borderRadius:"8px"},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}))))},ap=cm("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]),sp=cm("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),ip=function(){return c().createElement("div",null,c().createElement(nt,{className:"bg-background-primary px-4 border-[0.5px] border-subtle rounded-xl shadow-sm",containerType:"flex",direction:"column",gap:"xs"},c().createElement(nt.Item,{className:"flex flex-col pt-6 justify-between",style:{width:"65%"}},c().createElement(nt.Item,{className:"flex justify-center items-center",style:{width:"34%"}},c().createElement("img",{src:"".concat(hfeSettingsData.augmented_reality),alt:(0,hm.__)("Column Showcase","header-footer-elementor"),className:"object-contain w-full rounded"})),c().createElement("div",{className:"pt-2 px-2 flex flex-col"},c().createElement(Zm,{description:"",icon:c().createElement(ap,null),iconPosition:"left",size:"xs",tag:"p",title:(0,hm.__)("Unlock Pro Widgets","header-footer-elementor"),className:"text-xs py-1 text-[#C026D3]"}),c().createElement(Zm,{description:"",icon:"",iconPosition:"left",tag:"h6",title:c().createElement(c().Fragment,null,(0,hm.__)("Design Smarter with Ultimate Addons!","header-footer-elementor")),className:"py-1 text-[16px] font-normal text-text-primary"}),c().createElement("p",{className:"m-0 text-base max-w-96 text-[#4F4E7C]"},(0,hm.__)("Craft stunning websites faster with powerful widgets, advanced features, and total flexibility.","header-footer-elementor"))),c().createElement("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2 m-0 pt-2"},c().createElement("ul",{className:"list-none font-normal space-y-2 text-sm text-[#111827]"},c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("50+ Widgets","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("Conversion Extensions","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("Display Conditions","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("White Label","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("WooCommerce Builder","header-footer-elementor")))),c().createElement("ul",{className:"list-none font-normal space-y-2 text-sm text-[#111827]"},c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("200+ Section Blocks","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("Form & Pop-up Builder","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("Animation Effects","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("Bloggers Toolkit","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("Social Media Bundle","header-footer-elementor")))))),c().createElement("div",{className:"flex items-center m-0 pb-4 w-full justify-center"},c().createElement(ct,{iconPosition:"right",variant:"primary",className:"bg-[#6005FF] w-full m-0 h-10 flex items-center justify-center hfe-remove-ring",style:{backgroundColor:"#6005FF",transition:"background-color 0.3s ease",outline:"none",height:"40px"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#4B00CC"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="#6005FF"},onClick:function(){window.open("https://ultimateelementor.com/pricing/?utm_source=uae-lite-dashboard&utm_medium=unlock-ultimate-feature&utm_campaign=uae-lite-upgrade","_blank")}},(0,hm.__)("View Plans","header-footer-elementor")))))};function lp(e,t,n,r,o,a,s){try{var i=e[a](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,o)}function cp(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){lp(a,r,o,s,i,"next",e)}function i(e){lp(a,r,o,s,i,"throw",e)}s(void 0)}))}}const up=window.regeneratorRuntime;var dp=o.n(up);const mp=(0,i.createContext)({}),pp=()=>(0,i.useContext)(mp),fp={open:{opacity:1},exit:{opacity:0}},hp={duration:.2},gp=({open:e,setOpen:t,children:n,trigger:r=null,className:o,exitOnClickOutside:a=!1,exitOnEsc:s=!0,design:l="simple",scrollLock:c=!0})=>{const u=void 0!==e&&void 0!==t,[d,m]=(0,i.useState)(!1),p=(0,i.useRef)(null),f=(0,i.useRef)(null),h=(0,i.useMemo)((()=>u?e:d),[e,d]),g=(0,i.useMemo)((()=>u?t:m),[m,m]),y=()=>{h||g(!0)},v=()=>{h&&g(!1)},x=(0,i.useCallback)((()=>(0,i.isValidElement)(r)?(0,i.cloneElement)(r,{onClick:De(y,r?.props?.onClick)}):"function"==typeof r?r({onClick:y}):null),[r,y,v]),b=e=>{"Escape"===e.key&&s&&v()},w=e=>{a&&p.current&&!p.current.contains(e.target)&&v()};return(0,i.useEffect)((()=>(window.addEventListener("keydown",b),document.addEventListener("mousedown",w),()=>{window.removeEventListener("keydown",b),document.removeEventListener("mousedown",w)})),[h]),(0,i.useEffect)((()=>{if(!c)return;const e=document.querySelector("html");return h&&e&&(e.style.overflow="hidden"),()=>{e&&(e.style.overflow="")}}),[h]),(0,O.jsxs)(O.Fragment,{children:[x(),(0,O.jsx)(mp.Provider,{value:{open:h,setOpen:g,handleClose:v,design:l,dialogContainerRef:f,dialogRef:p},children:(0,O.jsx)("div",{ref:f,className:Ae("fixed z-999999 w-0 h-0 overflow-visible",o),children:n})})]})};gp.displayName="Dialog";const yp=({children:e,className:t})=>{const{open:n,handleClose:r,dialogRef:o}=pp();return(0,O.jsx)(Dd,{children:n&&(0,O.jsx)(Cd.div,{className:"fixed inset-0 overflow-y-auto",initial:"exit",animate:"open",exit:"exit",variants:fp,role:"dialog",transition:hp,children:(0,O.jsx)("div",{className:"flex items-center justify-center min-h-full",children:(0,O.jsx)("div",{ref:o,className:Ae("flex flex-col gap-5 w-120 h-fit bg-background-primary border border-solid border-border-subtle rounded-xl shadow-soft-shadow-2xl my-5 overflow-hidden",t),children:"function"==typeof e?e({close:r}):e})})})})};yp.displayName="Dialog.Panel";const vp=({className:e,...t})=>{const{open:n,dialogContainerRef:r}=pp();return r?.current?(0,O.jsx)(O.Fragment,{children:(0,rn.createPortal)((0,O.jsx)(Dd,{children:n&&(0,O.jsx)(Cd.div,{className:Ae("fixed inset-0 -z-10 bg-background-inverse/90",e),...t,initial:"exit",animate:"open",exit:"exit",variants:fp,transition:hp})}),r.current)}):null};vp.displayName="Dialog.Backdrop";const xp=({children:e,className:t,...n})=>(0,O.jsx)("div",{className:Ae("space-y-2 px-5 pt-5 pb-1",t),...n,children:e});xp.displayName="Dialog.Header";const bp=({children:e,as:t="h3",className:n,...r})=>(0,O.jsx)(t,{className:Ae("text-base font-semibold text-text-primary m-0 p-0",n),...r,children:e});bp.displayName="Dialog.Title";const Ep=({children:e,as:t="p",className:n,...r})=>(0,O.jsx)(t,{className:Ae("text-sm font-normal text-text-secondary my-0 ml-0 mr-1 p-0",n),...r,children:e});Ep.displayName="Dialog.Description";const _p=({className:e,...t})=>(0,O.jsx)("button",{className:Ae("bg-transparent inline-flex justify-center items-center border-0 p-1 m-0 cursor-pointer focus:outline-none outline-none shadow-none",e),"aria-label":"Close dialog",...t,children:(0,O.jsx)(nm,{className:"size-4 text-text-primary shrink-0"})}),kp=({children:e,as:t=i.Fragment,...n})=>{const{handleClose:r}=pp();return e?t===i.Fragment?"function"==typeof e?e({close:r}):(0,i.cloneElement)(e,{onClick:r}):(0,O.jsx)(t,{...n,onClick:r,children:e}):(0,O.jsx)(_p,{onClick:r,...n})};kp.displayName="Dialog.CloseButton";const Sp=({children:e,className:t,...n})=>(0,O.jsx)("div",{className:Ae("px-5",t),...n,children:e});Sp.displayName="Dialog.Body";const Np=({children:e,className:t})=>{const{design:n,handleClose:r}=pp();return(0,O.jsx)("div",{className:Ae("p-4 flex justify-end gap-3",{"bg-background-secondary":"footer-divided"===n},t),children:e?"function"==typeof e?e({close:r}):e:null})};Np.displayName="Dialog.Footer",gp.Panel=yp,gp.Title=bp,gp.Description=Ep,gp.CloseButton=kp,gp.Header=xp,gp.Body=Sp,gp.Footer=Np,gp.Backdrop=vp;const Cp=function(e){var t=e.plugin,n=e.setUpdateCounter,r=t.path,o=t.slug,a=t.siteUrl,l=t.icon,u=t.type,d=t.name,m=t.zipUrl,p=t.desc,f=(t.wporg,t.isFree,t.action,t.status),h=t.settings_url,g=s((0,i.useState)(!1),2),y=g[0],v=g[1],x=s((0,i.useState)(null),2),b=x[0],w=x[1],E=function(e){v(!1);var t=new window.FormData;t.append("action","hfe_recommended_plugin_activate"),t.append("nonce",hfe_admin_data.nonce),t.append("plugin",e.init),t.append("type",e.type),t.append("slug",e.slug);var r=document.querySelector('[data-slug="'.concat(e.slug,'"]')),o=r.querySelector("span");o.innerText=(0,hm.__)("Activating..","header-footer-elementor"),$m()({url:hfe_admin_data.ajax_url,method:"POST",body:t}).then((function(t){if(t.success)o&&(r.style.color="#16A34A",r.dataset.action="site_redirect",r.classList.add("hfe-plugin-activated"),o.innerText=(0,hm.__)("Activated","header-footer-elementor"),window.open(h,"_blank"),setTimeout((function(){n((function(e){return e+1}))}),5e3));else{e.type;var a=document.querySelector('[data-slug="'.concat(e.slug,'"]'));if(a){var s=a.querySelector("span");s&&(s.innerText=(0,hm.__)("Activate","header-footer-elementor"))}}}))};return c().createElement(nt,{align:"center",containerType:"flex",direction:"column",justify:"between",gap:"lg"},c().createElement("div",{className:"flex items-center justify-between w-full"},c().createElement("div",{className:"h-5 w-5"},c().createElement("img",{src:l,alt:"Recommended Plugins/Themes",className:"w-full h-auto rounded cursor-pointer",style:{width:"140px",height:"140px",marginTop:"-55px"}})),c().createElement("div",{className:"flex items-center gap-x-2"},c().createElement(gp,{design:"simple",open:y,setOpen:v},c().createElement(gp.Backdrop,null),c().createElement(gp.Panel,null,c().createElement(gp.Header,null,c().createElement("div",{className:"flex items-center justify-between"},c().createElement(gp.Title,null,(0,hm.__)("Activate Theme","header-footer-elementor"))),c().createElement(gp.Description,null,(0,hm.__)("Are you sure you want to switch your current theme to Astra?","header-footer-elementor"))),c().createElement(gp.Footer,null,c().createElement(ct,{onClick:function(){return E(b)}},(0,hm.__)("Yes","header-footer-elementor")),c().createElement(ct,{variant:"outline",onClick:function(){return v(!1)}},(0,hm.__)("Close","header-footer-elementor"))))))),c().createElement("div",{className:"flex flex-col w-full pb-4"},c().createElement("p",{className:"text-base font-medium text-text-primary pb-1 m-0 cursor-pointer",onClick:function(){return window.open(t.siteurl,"_blank")},style:{marginTop:"-8px"}},(0,hm.__)(d,"header-footer-elementor")),c().createElement("p",{className:"text-sm font-medium text-text-tertiary m-0"},(0,hm.__)(p,"header-footer-elementor")),c().createElement("div",{className:"hfe-remove-ring"},c().createElement(ct,{size:"sm",className:"cursor-pointer hfe-remove-ring bg-white hover:bg-gray-100 hover:text-gray-900 hover:shadow-md text-gray-800 rounded mt-4 px-2 py-2 transition-all duration-200 ease-in-out transform hover:scale-105 hover:border-gray-400",onClick:function(e){var t=e.currentTarget.dataset.action,n=new window.FormData,r={init:e.currentTarget.dataset.init,type:e.currentTarget.dataset.type,slug:e.currentTarget.dataset.slug,name:e.currentTarget.dataset.pluginname};switch(t){case"hfe_recommended_plugin_activate":"theme"===r.type?(w(r),v(!0)):E(r);break;case"hfe_recommended_plugin_install":n.append("action","theme"===r.type?"hfe_recommended_theme_install":"hfe_recommended_plugin_install"),n.append("_ajax_nonce",hfe_admin_data.installer_nonce),n.append("slug",r.slug),e.target.innerText=(0,hm.__)("Installing..","header-footer-elementor"),$m()({url:hfe_admin_data.ajax_url,method:"POST",body:n}).then((function(t){t.success||"folder_exists"===t.errorCode?(e.target.innerText=(0,hm.__)("Installed","header-footer-elementor"),"theme"===r.type?(document.querySelector('[data-slug="'.concat(r.slug,'"]')).dataset.action="hfe_recommended_plugin_activate",e.target.innerText=(0,hm.__)("Activate","header-footer-elementor")):E(r)):(e.target.innerText=(0,hm.__)("Install","header-footer-elementor"),alert("theme"===r.type?(0,hm.__)("Theme Installation failed, Please try again later.","header-footer-elementor"):(0,hm.__)("Plugin Installation failed, Please try again later.","header-footer-elementor")))}));break;case"site_redirect":window.open(a,"_blank")}},"data-plugin":m,"data-type":u,"data-pluginname":d,"data-slug":o,"data-site":a,"data-init":r,"data-action":function(e){return"Activated"===e?"site_redirect":"Installed"===e?"hfe_recommended_plugin_activate":"hfe_recommended_plugin_install"}(f),style:{outline:"none",border:"1px solid #ccc"},onMouseEnter:function(e){return e.currentTarget.style.color="#5C2EDE"},onMouseLeave:function(e){return e.currentTarget.style.color="black"}},"Activated"===f?(0,hm.__)("Visit Site","header-footer-elementor"):"Installed"===f?(0,hm.__)("Activate","header-footer-elementor"):(0,hm.__)("Install & Activate","header-footer-elementor")))))};function Pp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Tp=function(){var e=s((0,i.useState)([]),2),t=e[0],n=e[1],r=s((0,i.useState)(!0),2),o=r[0],a=r[1],l=s((0,i.useState)(0),2),u=l[0],d=l[1],m=s((0,i.useState)(!1),2),p=m[0],f=m[1];function g(e){return Object.keys(e).map((function(t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pp(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({path:t},e[t])}))}return(0,i.useEffect)((function(){var e=function(){var e=cp(dp().mark((function e(){var t,r,o;return dp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a(!0),e.prev=1,e.next=4,$m()({path:"/hfe/v1/plugins",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}});case 4:t=e.sent,r=g(t),n(r),o=r.every((function(e){return e.is_installed})),f(o),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),console.error("Error fetching plugins:",e.t0);case 14:return e.prev=14,a(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])})));return function(){return e.apply(this,arguments)}}();e()}),[u]),p?null:c().createElement("div",{className:"rounded-lg bg-white w-full"},c().createElement("div",{className:"flex items-center justify-between p-4",style:{paddingBottom:"0"}},c().createElement("p",{className:"m-0 text-sm font-semibold text-text-primary"},(0,hm.__)("Super Charge Your Workflow","header-footer-elementor")),c().createElement("div",{className:"flex items-center gap-x-2 mr-7"})),c().createElement("div",{className:"flex flex-col rounded-lg p-4",style:{backgroundColor:"white"}},o?c().createElement(nt,{align:"stretch",className:"gap-1 p-1 grid grid-cols-1 md:grid-cols-1",containerType:"grid",justify:"start"},Cm(Array(1)).map((function(e,t){return c().createElement(nt.Item,{key:t,alignSelf:"auto",style:{height:"150px"},className:"text-wrap rounded-md shadow-container-item bg-[#F9FAFB] p-4"},c().createElement("div",{className:"flex flex-col gap-6",style:{marginTop:"40px"}},c().createElement(Xm,{className:"w-12 h-2 rounded-md"}),c().createElement(Xm,{className:"w-16 h-2 rounded-md"}),c().createElement(Xm,{className:"w-12 h-2 rounded-md"})))}))):c().createElement(nt,{align:"stretch",className:"gap-1 p-1 grid grid-cols-1 md:grid-cols-1",containerType:"grid",justify:"start",style:{backgroundColor:"#F9FAFB"}},t.slice(0,1).map((function(e){return c().createElement(nt.Item,{key:e.slug,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-4"},c().createElement(Cp,{plugin:e,setUpdateCounter:d}))})))))},jp=function(){var e=s((0,i.useState)((function(){return!(window.hfe_admin_data&&window.hfe_admin_data.upgrade_notice_dismissed)})),2),t=e[0],n=e[1],r=function(){var e=cp(dp().mark((function e(){return dp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n(!1),window.hfe_admin_data&&window.hfe_admin_data.ajax_url){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,fetch(window.hfe_admin_data.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"hfe_dismiss_upgrade_notice",nonce:window.hfe_admin_data.nonce})});case 6:e.sent,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(3);case 11:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(){return e.apply(this,arguments)}}();return t?c().createElement("div",{className:"uae-upgrade p-3 d font-medium",style:{backgroundColor:"#E9E4FF",textAlign:"center",fontSize:"0.82rem",zIndex:"9",position:"relative"}},c().createElement("button",{onClick:r,style:{position:"absolute",top:"5px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#000",width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center"},"aria-label":(0,hm.__)("Close Upgrade Notice","header-footer-elementor")},"×"),c().createElement("span",null,(0,hm.__)("Design Without Limits: Access the features that top WordPress sites run on.","header-footer-elementor")," ",c().createElement("a",{href:"https://ultimateelementor.com/pricing/?utm_source=uae-lite-navbar&utm_medium=upgrade-now&utm_campaign=uae-lite-upgrade",target:"_blank",style:{color:"#000000"}},c().createElement("strong",null," ",(0,hm.__)("Get Full Control","header-footer-elementor")," ")))):null},Rp=function(){return(0,i.useEffect)((function(){var e="admin.php?page=hfe#dashboard";window.location.href.includes(e)&&window.history.pushState(null,"",e);var t=function(t){window.location.href.includes(e)&&(t.preventDefault(),window.history.pushState(null,"",e))};return window.addEventListener("popstate",t),function(){window.removeEventListener("popstate",t)}}),[]),c().createElement(c().Fragment,null,c().createElement(jp,null),c().createElement(Nm,null),c().createElement("div",null,c().createElement(nt,{align:"stretch",className:"p-6 flex-col lg:flex-row box-border",containerType:"flex",direction:"row",gap:"sm",justify:"start",style:{width:"100%"}},c().createElement(nt.Item,{className:"p-2 hfe-65-width",alignSelf:"auto",order:"none",shrink:0},c().createElement(op,null),c().createElement(Km,null),c().createElement(Tp,null)),c().createElement(nt.Item,{className:"p-2 w-full hfe-35-width",shrink:1},c().createElement(ip,null),c().createElement("div",{className:"pt-5"},c().createElement(np,null))))))},Fp=cm("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Ap=cm("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);function Dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dp(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Lp=function(){var e=s((0,i.useState)(null),2),t=e[0],n=e[1],r=s((0,i.useState)(""),2),o=r[0],a=r[1],l=s((0,i.useState)(!1),2),u=l[0],d=l[1],m=s((0,i.useState)(!1),2),p=m[0],f=m[1],h=s((0,i.useState)(!1),2),g=h[0],y=h[1],v=s((0,i.useState)(!0),2),x=v[0],b=v[1],w=s((0,i.useState)(0),2),E=w[0],_=w[1],k=s((0,i.useState)(!0),2),S=k[0],N=(k[1],s((0,i.useState)(""),2));N[0],N[1],(0,i.useEffect)((function(){b(!0),$m()({path:"/hfe/v1/widgets",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}}).then((function(e){var t=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t.push({id:n,slug:r.slug,title:r.title,keywords:r.keywords,icon:c().createElement("i",{className:r.icon}),title_url:r.title_url,default:r.default,doc_url:r.doc_url,is_pro:r.is_pro,description:r.description,is_active:void 0===r.is_activate||r.is_activate,demo_url:void 0!==r.demo_url?r.demo_url:r.doc_url})}return t}(e);n(t),b(!1)})).catch((function(e){b(!1)}))}),[]);var C=null==t?void 0:t.filter((function(e){var t;return e.title.toLowerCase().includes(o)||(null===(t=e.keywords)||void 0===t?void 0:t.some((function(e){return e.toLowerCase().includes(o)})))})),P=function(){var e=cp(dp().mark((function e(){var t;return dp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d(!0),(t=new window.FormData).append("action","hfe_bulk_activate_widgets"),t.append("nonce",hfe_admin_data.nonce),$m()({url:hfe_admin_data.ajax_url,method:"POST",body:t}).then((function(e){d(!1),e.success?(n((function(e){return e.map((function(e){return Mp(Mp({},e),{},{is_active:!0})}))})),_((function(e){return e+1}))):e.error&&d(!1)})).catch((function(e){d(!1)}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),T=function(){var e=cp(dp().mark((function e(){var t;return dp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f(!0),(t=new window.FormData).append("action","hfe_bulk_deactivate_widgets"),t.append("nonce",hfe_admin_data.nonce),$m()({url:hfe_admin_data.ajax_url,method:"POST",body:t}).then((function(e){f(!1),e.success?(n((function(e){return e.map((function(e){return Mp(Mp({},e),{},{is_active:!1})}))})),_((function(e){return e+1}))):e.error})).catch((function(e){f(!1)}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=function(){var e=cp(dp().mark((function e(){var t;return dp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y(!0),(t=new window.FormData).append("action","hfe_bulk_deactivate_unused_widgets"),t.append("nonce",hfe_admin_data.nonce),$m()({url:hfe_admin_data.ajax_url,method:"POST",body:t}).then((function(e){var t;if(y(!1),e.success&&Array.isArray(null===(t=e.data)||void 0===t?void 0:t.deactivated)){var r=e.data.deactivated;n((function(e){return e.map((function(e){return r.includes(e.id)?Mp(Mp({},e),{},{is_active:!1}):e}))})),_((function(e){return e+1}))}else e.error})).catch((function(e){y(!1)}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return c().createElement("div",{className:"rounded-lg bg-white w-full mb-4"},c().createElement("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between p-4",style:{paddingBottom:"0"}},c().createElement("p",{className:"m-0 text-sm font-semibold text-text-primary mb-2 md:mb-0"},(0,hm.__)("Widgets / Features","header-footer-elementor")),c().createElement("div",{className:"flex flex-col md:flex-row items-center gap-y-2 md:gap-x-2 md:mr-7 relative"},c().createElement(Fp,{className:"absolute top-1/2 transform -translate-y-1/2 text-gray-400",style:{backgroundColor:"#F9FAFB",left:"2%",width:"18px",height:"18px"}}),c().createElement("input",{type:"search",placeholder:(0,hm.__)("Search...","header-footer-elementor"),className:"mr-2 pl-10 w-full md:w-auto",style:{height:"40px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none",backgroundColor:"#F9FAFB"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},onChange:function(e){a(e.target.value.toLowerCase())}}),c().createElement("div",{className:"flex flex-row gap-2 w-full md:w-auto"},c().createElement("div",{style:{width:"245px",minWidth:"245px"}},c().createElement("div",{className:"flex justify-center items-center rounded-sm overflow-hidden",style:{border:"1.5px solid #e5e7eb",borderRadius:"0.25rem"}},c().createElement("div",{className:"font-medium p-2 transition-all duration-300 ".concat(o||u?"cursor-not-allowed":"cursor-pointer hover:bg-button-tertiary-hover hover:outline-border-subtle"),style:{border:"none",borderRight:"1.5px solid #e5e7eb",opacity:o||u?.5:1,pointerEvents:o||u?"none":"auto",color:o||u?"#A9ACB0":"inherit"},onClick:function(){u||o||P()}},(0,hm.__)("Activate All","header-footer-elementor")),c().createElement("div",{className:"font-medium p-2 transition-all duration-300 ".concat(o||g?"cursor-not-allowed":"cursor-pointer hover:bg-button-tertiary-hover hover:outline-border-subtle"),style:{border:"none",opacity:o||g?.5:1,pointerEvents:o||g?"none":"auto",color:o||g?"#A9ACB0":"inherit"},onClick:function(){g||o||j()}},(0,hm.__)("Deactivate Unused","header-footer-elementor")))),c().createElement(Bm,{arrow:!0,content:c().createElement("div",null,c().createElement("p",null,p?(0,hm.__)("Deactivating...","header-footer-elementor"):(0,hm.__)("Deactivate All ","header-footer-elementor"))),placement:"top",title:"",triggers:["hover"],variant:"dark",size:"xs"},c().createElement(Ap,{className:"relative text-gray-400",onClick:T,style:{backgroundColor:"#F9FAFB",top:"5%",margin:"auto",width:"22px",height:"22px"}}))))),c().createElement("div",{className:"flex bg-black flex-col rounded-lg p-4",style:{minHeight:"800px"}},x?c().createElement(nt,{align:"stretch",className:"p-2 gap-1.5 grid grid-cols-2 md:grid-cols-4",style:{backgroundColor:"#F9FAFB"},containerType:"grid",gap:"",justify:"start"},Cm(Array(30)).map((function(e,t){return c().createElement(nt.Item,{key:t,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-6 space-y-2"},c().createElement(Xm,{className:"w-12 h-2 rounded-md"}),c().createElement(Xm,{className:"w-16 h-2 rounded-md"}),c().createElement(Xm,{className:"w-12 h-2 rounded-md"}))}))):c().createElement(nt,{align:"stretch",className:"p-1 gap-1.5 grid-cols-2 md:grid-cols-4",containerType:"grid",gap:"",justify:"start",style:{backgroundColor:"#F9FAFB"}},null==C?void 0:C.map((function(e){return c().createElement(nt.Item,{key:e.id,alignSelf:"auto",style:{paddingTop:"8px",paddingBottom:"8px"},className:"text-wrap rounded-md shadow-container-item bg-background-primary px-4"},c().createElement(Gm,{widget:Mp(Mp({},e),{},{updateCounter:E}),showTooltip:S,key:e.id,updateCounter:E}))})))))},Op=function(){return c().createElement("div",null,c().createElement(nt,{className:"bg-background-primary px-4 border-[0.5px] border-subtle rounded-xl shadow-sm",containerType:"flex",direction:"column",gap:"xs"},c().createElement(nt.Item,{className:"flex flex-col pt-6 justify-between",style:{width:"65%"}},c().createElement(nt.Item,{className:"flex justify-center items-center",style:{width:"34%"}},c().createElement("img",{src:"".concat(hfeSettingsData.augemented_url),alt:(0,hm.__)("Column Showcase","header-footer-elementor"),style:{height:"250"},loading:"lazy",className:"object-cover rounded w-full"})),c().createElement("div",{className:"pt-2 px-2 flex flex-col"},c().createElement(Zm,{description:"",icon:c().createElement(ap,null),iconPosition:"left",size:"xs",tag:"p",title:(0,hm.__)("Unlock Pro Widgets","header-footer-elementor"),className:"text-xs py-1 text-[#C026D3]"}),c().createElement(Zm,{description:"",icon:"",iconPosition:"left",tag:"h6",title:c().createElement(c().Fragment,null,(0,hm.__)("Bring Your Vision to Life with UAE Pro","header-footer-elementor")),className:"py-1 text-[16px] font-normal text-text-primary"}),c().createElement("p",{className:"m-0 text-base max-w-96 text-[#4F4E7C]"},(0,hm.__)("Streamline your workflow, skip the repetitive tasks, and build modern, high-performance websites.","header-footer-elementor"))),c().createElement("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2 m-0 pt-2"},c().createElement("ul",{className:"list-none font-normal space-y-2 text-sm text-[#111827]"},c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("50+ Widgets","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("Conversion Extensions","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("Display Conditions","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("White Label","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("Bloggers Toolkit","header-footer-elementor")))),c().createElement("ul",{className:"list-none font-normal space-y-2 text-sm text-[#111827]"},c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("200+ Section Blocks","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("Form & Pop-up Builder","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("Animation Effects","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("WooCommerce Builder","header-footer-elementor"))),c().createElement("li",{className:"flex items-center gap-1 text-text-tertiary whitespace-nowrap"},c().createElement(sp,{color:"#6005FF",size:16,className:"flex-shrink-0"}),c().createElement("span",{className:"truncate"},(0,hm.__)("Social Media Bundle","header-footer-elementor")))))),c().createElement("div",{className:"flex items-center m-0 pb-4 w-full justify-center"},c().createElement(ct,{iconPosition:"right",variant:"primary",className:"bg-[#6005FF] w-full m-0 h-10 flex items-center justify-center hfe-remove-ring",style:{backgroundColor:"#6005FF",transition:"background-color 0.3s ease",outline:"none",height:"40px"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#4B00CC"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="#6005FF"},onClick:function(){window.open("https://ultimateelementor.com/pricing/?utm_source=uae-lite-dashboard&utm_medium=unlock-ultimate-feature&utm_campaign=uae-lite-upgrade","_blank")}},(0,hm.__)("Start Building Smarter","header-footer-elementor")))))},Ip=function(){return c().createElement(c().Fragment,null,c().createElement(jp,null),c().createElement(Nm,null),c().createElement("div",null,c().createElement(nt,{align:"stretch",className:"p-6 flex flex-col lg:flex-row box-border",containerType:"flex",direction:"row",gap:"sm",justify:"start",style:{width:"100%"}},c().createElement(nt.Item,{className:"p-2 hfe-65-width",alignSelf:"auto",order:"none",shrink:1},c().createElement(Lp,null)),c().createElement(nt.Item,{className:"p-2 hfe-35-width hfe-sticky-right-sidebar",shrink:1},c().createElement(Op,null),c().createElement("div",{className:"mt-4"},c().createElement(np,null))))))},Bp=cm("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),zp=function(){var e=s((0,i.useState)(!0),2),t=e[0],n=e[1],r=s((0,i.useState)(null),2),o=r[0],a=r[1],l=s((0,i.useState)(null),2),u=l[0],d=l[1],m=[{id:1,icon:"",title:(0,hm.__)("250+ templates for every niche","header-footer-elementor")},{id:2,icon:"",title:(0,hm.__)("Modern, timeless designs","header-footer-elementor")},{id:3,icon:"",title:(0,hm.__)("Full design flexibility for easy customization","header-footer-elementor")},{id:4,icon:"",title:(0,hm.__)("100% responsive across all devices","header-footer-elementor")}];if((0,i.useEffect)((function(){n(!0),$m()({path:"/hfe/v1/templates",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}}).then((function(e){a(e.templates_status),e.redirect_url&&d(e.redirect_url),n(!1)})).catch((function(e){n(!1)}))}),[]),!t){var p="Install"===o?(0,hm.__)("Install Starter Templates","header-footer-elementor"):(0,hm.__)("Activate Starter Templates","header-footer-elementor"),f=function(){var e=new window.FormData,t="astra-sites/astra-sites.php",n="astra-sites";"Installed"!==hfeSettingsData.st_pro_status||"Install"!==hfeSettingsData.st_status&&"Installed"!==hfeSettingsData.st_status||(t="astra-pro-sites/astra-pro-sites.php",n="astra-pro-sites"),e.append("action","hfe_recommended_plugin_activate"),e.append("nonce",hfe_admin_data.nonce),e.append("plugin",t),e.append("type","plugin"),e.append("slug",n),$m()({url:hfe_admin_data.ajax_url,method:"POST",body:e}).then((function(e){if(e.success){var t=document.querySelector(".hfe-starter-template-button");if(t){var n=t.querySelector("span");n&&(n.innerText=(0,hm.__)("Activating Starter Templates...","header-footer-elementor"),t.classList.add("hfe-plugin-activated"),n.innerText=(0,hm.__)("Activated Starter Templates","header-footer-elementor"),location.reload())}}else{var r=document.querySelector(".hfe-starter-template-button");if(r){var o=r.querySelector("span");o&&(o.innerText=(0,hm.__)("Activate Starter Templates","header-footer-elementor"))}}}))};return c().createElement("div",null,c().createElement(nt,{className:"flex gap-2 flex-col md:flex-row bg-background-primary p-6 md:p-10 border-[0.5px] border-subtle rounded-xl shadow-sm flex-col-reverse",containerType:"flex",gap:"xs"},c().createElement(nt.Item,{className:"flex flex-col justify-between w-full mt-4 md:w-1/2 mb-4 md:mb-0"},c().createElement("div",null,c().createElement(Zm,{description:"",icon:c().createElement(Bp,null),iconPosition:"left",size:"xs",tag:"h6",title:(0,hm.__)("Design Your Website in Minutes","header-footer-elementor"),className:"text-xs font-semibold text-brand-primary-600 mb-2"}),c().createElement(Zm,{description:"",icon:"",iconPosition:"left",tag:"h6",title:(0,hm.__)("Build your website faster using our prebuilt templates","header-footer-elementor"),className:"py-1 text-sm mb-2"}),c().createElement("p",{className:"text-sm md:text-md m-0 text-text-secondary text-text-tertiary"},(0,hm.__)("Stop building your site from scratch. Use our professional templates for your stunning website.It is easy to customize and completely responsive. Explore hundreds of designs and bring your vision to life in no time.","header-footer-elementor"))),c().createElement("div",{className:"grid grid-cols-1 gap-1 my-4"},m.map((function(e){return c().createElement(Zm,{key:e.id,description:"",icon:c().createElement(sp,{className:"text-brand-primary-600 mr-1 h-3 w-3"}),iconPosition:"left",size:"xs",tag:"h6",title:(0,hm.__)(e.title,"header-footer-elementor"),className:""})}))),c().createElement("div",{className:"flex flex-col md:flex-row items-center pb-3 gap-4",style:{marginTop:"15px"}},c().createElement(ct,{icon:c().createElement(rp,null),iconPosition:"right",variant:"secondary",style:{backgroundColor:"#6005FF",outlineWidth:"0px"},className:"w-auto hfe-starter-template-button hfe-remove-ring cursor-pointer",onClick:function(e){if(u)window.open(u,"_blank");else{var t=document.querySelector(".hfe-starter-template-button span"),n=new window.FormData;n.append("action","hfe_recommended_plugin_install"),n.append("_ajax_nonce",hfe_admin_data.installer_nonce),n.append("slug","astra-sites"),t&&"Install"===o&&(t.innerText=(0,hm.__)("Installing Starter Templates...","header-footer-elementor"),$m()({url:hfe_admin_data.ajax_url,method:"POST",body:n}).then((function(e){e.success||"folder_exists"===e.errorCode?(t.innerText=(0,hm.__)("Installed Starter Templates","header-footer-elementor"),f()):t.innerText=(0,hm.__)("Install Starter Templates","header-footer-elementor")}))),t&&"Installed"===o&&(t.innerText=(0,hm.__)("Activating Starter Templates...","header-footer-elementor"),f())}}},"Activated"===o?(0,hm.__)("Explore Templates","header-footer-elementor"):p),c().createElement(ct,{icon:"",iconPosition:"right",variant:"ghost",className:"w-auto hfe-link-color hfe-remove-ring",onClick:function(){window.open("https://startertemplates.com/","_blank")}},(0,hm.__)("Learn More","header-footer-elementor")))),c().createElement(nt.Item,{className:"flex justify-center md:justify-end w-full md:w-1/2"},c().createElement("img",{src:"".concat(hfeSettingsData.template_url),alt:"Column Showcase",className:"object-contain w-full md:w-5/6"}))))}},Vp=function(){return c().createElement(c().Fragment,null,c().createElement(Nm,null),c().createElement("div",{className:""},c().createElement(nt,{align:"stretch",className:"p-2",containerType:"flex",direction:"row",gap:"sm",justify:"center",style:{width:"100%"}},c().createElement(nt.Item,{className:"p-2",alignSelf:"auto",order:"none",shrink:1,style:{width:"90%"}},c().createElement(zp,null)))))},Up=function(e){var t=e.items,n=e.onSelectItem,r=s((0,i.useState)(null),2),o=r[0],a=r[1];return c().createElement("div",{style:{padding:"1rem",width:"100%"}},t.map((function(e){return c().createElement("div",{key:e.id,className:"mb-2"},e.main&&c().createElement("p",{className:"text-sm text-text-tertiary font-normal mb-2"},e.main),c().createElement("div",{className:"h-10 flex items-center justify-start gap-2 px-2 rounded-md cursor-pointer ".concat(o===e.id?"bg-gray-100":"bg-background-primary"),style:{backgroundColor:o===e.id?"#F9FAFB":""},onClick:function(){return function(e){a(e.id),n(e)}(e)}},c().createElement("span",null,o===e.id?e.selected:e.icon),c().createElement("p",{className:"m-0 text-base font-normal"},e.title)))})))},Wp=function(e){var t=e.selectedItem;return c().createElement("div",{className:"p-6",style:{marginLeft:"4px"}},c().createElement("div",null,null==t?void 0:t.content))};let Hp={data:""},$p=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Hp,qp=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Yp=/\/\*[^]*?\*\/| +/g,Gp=/\n+/g,Xp=(e,t)=>{let n="",r="",o="";for(let a in e){let s=e[a];"@"==a[0]?"i"==a[1]?n=a+" "+s+";":r+="f"==a[1]?Xp(s,a):a+"{"+Xp(s,"k"==a[1]?"":t)+"}":"object"==typeof s?r+=Xp(s,t?t.replace(/([^,])+/g,(e=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):a):null!=s&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Xp.p?Xp.p(a,s):a+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Kp={},Zp=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Zp(e[n]);return t}return e};function Jp(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let a=Zp(e),s=Kp[a]||(Kp[a]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(a));if(!Kp[s]){let t=a!==e?e:(e=>{let t,n,r=[{}];for(;t=qp.exec(e.replace(Yp,""));)t[4]?r.shift():t[3]?(n=t[3].replace(Gp," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(Gp," ").trim();return r[0]})(e);Kp[s]=Xp(o?{["@keyframes "+s]:t}:t,n?"":"."+s)}let i=n&&Kp.g?Kp.g:null;return n&&(Kp.g=Kp[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(Kp[s],t,r,i),s})(n.unshift?n.raw?((e,t,n)=>e.reduce(((e,r,o)=>{let a=t[o];if(a&&a.call){let e=a(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":Xp(e,""):!1===e?"":e}return e+r+(null==a?"":a)}),""))(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,$p(t.target),t.g,t.o,t.k)}Jp.bind({g:1});let Qp,ef,tf,nf=Jp.bind({k:1});function rf(e,t){let n=this||{};return function(){let r=arguments;function o(a,s){let i=Object.assign({},a),l=i.className||o.className;n.p=Object.assign({theme:ef&&ef()},i),n.o=/ *go\d+/.test(l),i.className=Jp.apply(n,r)+(l?" "+l:""),t&&(i.ref=s);let c=e;return e[0]&&(c=i.as||e,delete i.as),tf&&c[0]&&tf(i),Qp(c,i)}return t?t(o):o}}var of=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,af=(()=>{let e=0;return()=>(++e).toString()})(),sf=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),lf=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return lf(e,{type:e.toasts.find((e=>e.id===n.id))?1:0,toast:n});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,dismissed:!0,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},cf=[],uf={toasts:[],pausedAt:void 0},df=e=>{uf=lf(uf,e),cf.forEach((e=>{e(uf)}))},mf={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},pf=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||af()}))(t,e,n);return df({type:2,toast:r}),r.id},ff=(e,t)=>pf("blank")(e,t);ff.error=pf("error"),ff.success=pf("success"),ff.loading=pf("loading"),ff.custom=pf("custom"),ff.dismiss=e=>{df({type:3,toastId:e})},ff.remove=e=>df({type:4,toastId:e}),ff.promise=(e,t,n)=>{let r=ff.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then((e=>{let o=t.success?of(t.success,e):void 0;return o?ff.success(o,{id:r,...n,...null==n?void 0:n.success}):ff.dismiss(r),e})).catch((e=>{let o=t.error?of(t.error,e):void 0;o?ff.error(o,{id:r,...n,...null==n?void 0:n.error}):ff.dismiss(r)})),e};var hf=(e,t)=>{df({type:1,toast:{id:e,height:t}})},gf=()=>{df({type:5,time:Date.now()})},yf=new Map,vf=nf`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,xf=nf`
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}`,bf=nf`
from {
transform: scale(0) rotate(90deg);
opacity: 0;
}
to {
transform: scale(1) rotate(90deg);
opacity: 1;
}`,wf=rf("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#ff4b4b"};
position: relative;
transform: rotate(45deg);
animation: ${vf} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after,
&:before {
content: '';
animation: ${xf} 0.15s ease-out forwards;
animation-delay: 150ms;
position: absolute;
border-radius: 3px;
opacity: 0;
background: ${e=>e.secondary||"#fff"};
bottom: 9px;
left: 4px;
height: 2px;
width: 12px;
}
&:before {
animation: ${bf} 0.15s ease-out forwards;
animation-delay: 180ms;
transform: rotate(90deg);
}
`,Ef=nf`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,_f=rf("div")`
width: 12px;
height: 12px;
box-sizing: border-box;
border: 2px solid;
border-radius: 100%;
border-color: ${e=>e.secondary||"#e0e0e0"};
border-right-color: ${e=>e.primary||"#616161"};
animation: ${Ef} 1s linear infinite;
`,kf=nf`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,Sf=nf`
0% {
height: 0;
width: 0;
opacity: 0;
}
40% {
height: 0;
width: 6px;
opacity: 1;
}
100% {
opacity: 1;
height: 10px;
}`,Nf=rf("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#61d345"};
position: relative;
transform: rotate(45deg);
animation: ${kf} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after {
content: '';
box-sizing: border-box;
animation: ${Sf} 0.2s ease-out forwards;
opacity: 0;
animation-delay: 200ms;
position: absolute;
border-right: 2px solid;
border-bottom: 2px solid;
border-color: ${e=>e.secondary||"#fff"};
bottom: 6px;
left: 6px;
height: 10px;
width: 6px;
}
`,Cf=rf("div")`
position: absolute;
`,Pf=rf("div")`
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-width: 20px;
min-height: 20px;
`,Tf=nf`
from {
transform: scale(0.6);
opacity: 0.4;
}
to {
transform: scale(1);
opacity: 1;
}`,jf=rf("div")`
position: relative;
transform: scale(0.6);
opacity: 0.4;
min-width: 20px;
animation: ${Tf} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
`,Rf=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return void 0!==t?"string"==typeof t?i.createElement(jf,null,t):t:"blank"===n?null:i.createElement(Pf,null,i.createElement(_f,{...r}),"loading"!==n&&i.createElement(Cf,null,"error"===n?i.createElement(wf,{...r}):i.createElement(Nf,{...r})))},Ff=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,Af=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,Df=rf("div")`
display: flex;
align-items: center;
background: #fff;
color: #363636;
line-height: 1.3;
will-change: transform;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
max-width: 350px;
pointer-events: auto;
padding: 8px 10px;
border-radius: 8px;
`,Mf=rf("div")`
display: flex;
justify-content: center;
margin: 4px 10px;
color: inherit;
flex: 1 1 auto;
white-space: pre-line;
`,Lf=i.memo((({toast:e,position:t,style:n,children:r})=>{let o=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,o]=sf()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Ff(n),Af(n)];return{animation:t?`${nf(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${nf(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},a=i.createElement(Rf,{toast:e}),s=i.createElement(Mf,{...e.ariaProps},of(e.message,e));return i.createElement(Df,{className:e.className,style:{...o,...n,...e.style}},"function"==typeof r?r({icon:a,message:s}):i.createElement(i.Fragment,null,a,s))}));!function(e){Xp.p=void 0,Qp=e,ef=void 0,tf=void 0}(i.createElement);var Of=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let a=i.useCallback((t=>{if(t){let n=()=>{let n=t.getBoundingClientRect().height;r(e,n)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}}),[e,r]);return i.createElement("div",{ref:a,className:t,style:n},o)},If=Jp`
z-index: 9999;
> * {
pointer-events: auto;
}
`,Bf=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:a,containerClassName:s})=>{let{toasts:l,handlers:c}=(e=>{let{toasts:t,pausedAt:n}=((e={})=>{let[t,n]=(0,i.useState)(uf),r=(0,i.useRef)(uf);(0,i.useEffect)((()=>(r.current!==uf&&n(uf),cf.push(n),()=>{let e=cf.indexOf(n);e>-1&&cf.splice(e,1)})),[]);let o=t.toasts.map((t=>{var n,r,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||mf[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}}));return{...t,toasts:o}})(e);(0,i.useEffect)((()=>{if(n)return;let e=Date.now(),r=t.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>ff.dismiss(t.id)),n);t.visible&&ff.dismiss(t.id)}));return()=>{r.forEach((e=>e&&clearTimeout(e)))}}),[t,n]);let r=(0,i.useCallback)((()=>{n&&df({type:6,time:Date.now()})}),[n]),o=(0,i.useCallback)(((e,n)=>{let{reverseOrder:r=!1,gutter:o=8,defaultPosition:a}=n||{},s=t.filter((t=>(t.position||a)===(e.position||a)&&t.height)),i=s.findIndex((t=>t.id===e.id)),l=s.filter(((e,t)=>t<i&&e.visible)).length;return s.filter((e=>e.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+o),0)}),[t]);return(0,i.useEffect)((()=>{t.forEach((e=>{if(e.dismissed)((e,t=1e3)=>{if(yf.has(e))return;let n=setTimeout((()=>{yf.delete(e),df({type:4,toastId:e})}),t);yf.set(e,n)})(e.id,e.removeDelay);else{let t=yf.get(e.id);t&&(clearTimeout(t),yf.delete(e.id))}}))}),[t]),{toasts:t,handlers:{updateHeight:hf,startPause:gf,endPause:r,calculateOffset:o}}})(n);return i.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...a},className:s,onMouseEnter:c.startPause,onMouseLeave:c.endPause},l.map((n=>{let a=n.position||t,s=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:sf()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}})(a,c.calculateOffset(n,{reverseOrder:e,gutter:r,defaultPosition:t}));return i.createElement(Of,{id:n.id,key:n.id,onHeightUpdate:c.updateHeight,className:n.visible?If:"",style:s},"custom"===n.type?of(n.message,n):o?o(n):i.createElement(Lf,{toast:n,position:a}))})))},zf=ff,Vf=[{id:"1",title:(0,hm.__)("Option 1 (Recommended)","header-footer-elementor"),description:(0,hm.__)("This option will automatically replace your theme's header and footer files with custom templates from the plugin. It works with most themes and is selected by default.","header-footer-elementor"),value:"1"},{id:"2",title:(0,hm.__)("Option 2","header-footer-elementor"),description:(0,hm.__)("This option will automatically replace your theme's header and footer files with custom templates from the plugin. It works with most themes and is selected by default.","header-footer-elementor"),value:"2"}];const Uf=function(){if("no"===hfeSettingsData.show_theme_support)return null;var e=s((0,i.useState)(hfeSettingsData.theme_option),2),t=e[0],n=e[1],r=s((0,i.useState)(!0),2),o=r[0],a=r[1];(0,i.useEffect)((function(){a(!1)}),[]);var l=function(e){var t=e.target.value;n(t),o||u(t)},u=function(){var e=cp(dp().mark((function e(t){var n;return dp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(hfe_admin_data.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"save_theme_compatibility_option",hfe_compatibility_option:t,nonce:hfe_admin_data.nonce})});case 3:return n=e.sent,e.next=6,n.json();case 6:e.sent.success?zf.success((0,hm.__)("Settings saved successfully!","header-footer-elementor")):zf.error((0,hm.__)("Failed to save settings!","header-footer-elementor")),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),zf.error((0,hm.__)("Failed to save settings!","header-footer-elementor"));case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}();return c().createElement(c().Fragment,null,c().createElement(Zm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,hm.__)("Theme Support","header-footer-elementor")}),c().createElement(nt,{align:"stretch",className:"bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column",gap:"sm",justify:"start",style:{marginTop:"24px",maxWidth:"696px"}},c().createElement(nt.Item,{className:"flex flex-col space-y-1"},c().createElement("p",{className:"text-base font-semibold m-0"},(0,hm.__)("Select Option to Add Theme Support","header-footer-elementor")),c().createElement("p",{className:"text-sm font-normal m-0"},(0,hm.__)("To ensure compatibility between the header/footer and your theme, please choose one of the following options to enable theme support:","header-footer-elementor"))),c().createElement(nt.Item,{className:"p-2 space-y-4",alignSelf:"auto",order:"none"},Vf.map((function(e){return c().createElement("div",{key:e.id,className:"flex items-start gap-1 justify-center cursor-pointer"},c().createElement("input",{id:e.id,value:e.value,type:"radio",className:"mt-1 cursor-pointer hfe-radio-field",name:"theme-support-option",onChange:l,checked:t===e.value}),c().createElement("div",{className:"flex flex-col cursor-pointer"},c().createElement(zm,{size:"sm",variant:"neutral",className:"text-sm font-semibold text-text-secondary cursor-pointer flex flex-col items-start justify-start",htmlFor:e.id},e.title,":",c().createElement("p",{className:"m-0 text-sm font-normal text-text-secondary cursor-pointer"},e.description))))}))),c().createElement("div",{className:"flex items-center p-4 border rounded-lg text-start",style:{paddingTop:"16px",paddingBottom:"16px",backgroundColor:"#F3F0FF"}},c().createElement("p",{className:"m-0 text-sm"},c().createElement("strong",null,(0,hm.__)("Note:","header-footer-elementor"))," ",(0,hm.__)("If neither option works, please contact your theme author to add support for this plugin.","header-footer-elementor")))),c().createElement(Bf,{position:"top-right",reverseOrder:!1,gutter:8,containerStyle:{top:20,right:20,marginTop:"80px"},toastOptions:{duration:5e3,style:{background:"white"},success:{duration:3e3,style:{color:""},iconTheme:{primary:"#6005ff",secondary:"#fff"}}}}))},Wf=function(){var e=hfeSettingsData.uaelite_versions,t=(0,i.useRef)(e?e[0].value:""),n=s((0,i.useState)(e?e[0].value:""),2),r=n[0],o=n[1],a=s((0,i.useState)("elementor-header-footer"),2),l=(a[0],a[1]),u=s((0,i.useState)(!1),2),d=u[0],m=u[1];return(0,i.useEffect)((function(){}),[d]),c().createElement(c().Fragment,null,c().createElement(Zm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,hm.__)("Version Control","header-footer-elementor")}),c().createElement("div",{className:"box-border bg-background-primary p-6 rounded-lg",style:{marginTop:"24px"}},c().createElement(nt,{align:"center",className:"flex flex-col lg:flex-row",containerType:"flex",direction:"column",gap:"sm",justify:"start"},c().createElement(nt.Item,{className:"shrink flex flex-col space-y-1"},c().createElement("p",{className:"text-base font-semibold m-0"},(0,hm.__)("Rollback to Previous Version","header-footer-elementor")),c().createElement("p",{className:"text-sm font-normal m-0"},(0,hm.__)("Experiencing an issue with current version? Roll back to a previous version to help troubleshoot the issue.","header-footer-elementor"))),c().createElement(nt.Item,{className:"p-2 flex space-y-4",alignSelf:"auto",order:"none"},c().createElement("div",{className:"bsf-rollback-version"},c().createElement("input",{type:"hidden",name:"product-name",id:"bsf-product-name",value:"header-footer-elementor"}),c().createElement("select",{id:"uaeliteVersionRollback",ref:t,onBlur:function(){l("elementor-header-footer")},onChange:function(e){o(e.target.value)},style:{padding:"8px",marginRight:"10px",marginTop:"16px",cursor:"pointer",borderRadius:"4px",height:"40px",width:"100px",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"}},e.map((function(e){return c().createElement("option",{key:e.value,value:e.value},e.label)})))),c().createElement("div",{className:"flex flex-col cursor-pointer"},c().createElement(gp,{design:"simple",exitOnEsc:!0,scrollLock:!0,open:d,setOpen:m,trigger:c().createElement(ct,{style:{backgroundColor:"#6005ff"}},(0,hm.__)("Rollback","header-footer-elementor"))},c().createElement(gp.Backdrop,null),c().createElement(gp.Panel,null,c().createElement(gp.Header,null,c().createElement("div",{className:"flex items-center justify-between"},c().createElement(gp.Title,null,(0,hm.__)("Rollback to Previous Version","header-footer-elementor")),c().createElement(gp.CloseButton,null))),c().createElement(gp.Body,null,(0,hm.__)("Are you sure you want to rollback to Ultimate Addons for Elementor v".concat(r,"?"),"header-footer-elementor")),c().createElement(gp.Footer,null,c().createElement(ct,{onClick:function(){var e=hfeSettingsData.uaelite_rollback_url.replace("VERSION",r);m(!1),window.location.href=e}},(0,hm.__)("Rollback","header-footer-elementor")),c().createElement(ct,{onClick:function(){m(!1)}},(0,hm.__)("Cancel","header-footer-elementor"))))))))))},Hf=function(){var e=s((0,i.useState)(!0),2),t=e[0],n=e[1];(0,i.useEffect)((function(){n("yes"===hfeSettingsData.analytics_status)}),[]);var r=function(){var e=cp(dp().mark((function e(){var r,o;return dp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(r=!t),e.prev=2,e.next=5,fetch(hfe_admin_data.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"save_analytics_option",uae_usage_optin:r?"yes":"no",nonce:hfe_admin_data.nonce})});case 5:return o=e.sent,e.next=8,o.json();case 8:e.sent.success?zf.success((0,hm.__)("Settings saved successfully!","header-footer-elementor")):zf.error((0,hm.__)("Failed to save settings!","header-footer-elementor")),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),zf.error((0,hm.__)("Failed to save settings!","header-footer-elementor"));case 15:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}();return c().createElement(c().Fragment,null,c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginTop:"20px",marginBottom:"20px",borderColor:"#E5E7EB"}}),c().createElement(nt,{align:"center",className:"flex flex-col lg:flex-row",containerType:"flex",direction:"column",gap:"sm",justify:"start"},c().createElement(nt.Item,{className:"p-2 flex space-y-4",alignSelf:"auto",order:"none"},c().createElement("div",{className:"flex flex-row items-start justify-start px-1 gap-3"},c().createElement(Um,{onChange:r,size:"sm",value:t,className:"hfe-remove-ring"}),c().createElement("div",{className:"flex flex-col justify-start px-1 gap-3"},c().createElement("span",{className:"font-normal text-text-primary m-0"},(0,hm.__)("Collect non-sensitive information from your website, such as the PHP version and features used, to help us fix bugs faster, make smarter decisions, and build features that actually matter to you. ","header-footer-elementor"),c().createElement("a",{href:"https://store.brainstormforce.com/usage-tracking/?utm_source=wp_dashboard&utm_medium=general_settings&utm_campaign=usage_tracking",target:"_blank",rel:"noopener noreferrer",className:"text-link-primary"},(0,hm.__)("Learn More","header-footer-elementor")))),c().createElement(Bf,{position:"top-right",reverseOrder:!1,gutter:8,containerStyle:{top:20,right:20,marginTop:"40px"},toastOptions:{duration:1e3,style:{background:"white"},success:{duration:2e3,style:{color:""},iconTheme:{primary:"#6005ff",secondary:"#fff"}}}})))))},$f=function(){return c().createElement(c().Fragment,null,c().createElement(Zm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,hm.__)("My Account","header-footer-elementor")}),c().createElement("div",{className:"",style:{marginTop:"24px"}},c().createElement(nt,{align:"stretch",className:"bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column",gap:"sm",justify:"start",style:{marginTop:"24px"}},c().createElement(nt.Item,{className:"flex flex-col space-y-2",style:{marginTop:"24px"}},c().createElement("p",{className:"text-base font-semibold m-0"},(0,hm.__)("License Key","header-footer-elementor")),c().createElement("p",{className:"text-sm font-normal m-0"},(0,hm.__)("You are using the free version of Ultimate Addons for Elementor, no license key is needed. "))),c().createElement("div",{className:"flex items-center justify-between px-4 rounded-xl",style:{paddingTop:"6px",paddingBottom:"6px",backgroundColor:"#F3F0FF"}},c().createElement("span",{className:"flex flex-col items-left mt-2 text-base font-semibold"},(0,hm.__)("Build Better Websites With Ultimate Addons Pro","header-footer-elementor"),c().createElement("p",{className:"text-sm font-normal m-0 py-2",style:{width:"500px"}},(0,hm.__)("Unlock advanced addons to power up Elementor - smarter widgets, smoother workflows, and more creative freedom with UAE Pro.","header-footer-elementor"))),c().createElement(ct,{icon:c().createElement(um,null),iconPosition:"right",variant:"link",style:{color:"#6005FF",borderColor:"#6005FF",transition:"color 0.3s ease, border-color 0.3s ease",fontSize:"16px"},className:"hfe-remove-ring text-[#6005FF]",onClick:function(){window.open("https://ultimateelementor.com/pricing/?utm_source=uae-lite-settings&utm_medium=My-accounts&utm_campaign=uae-lite-upgrade","_blank")}},(0,hm.__)("Upgrade Now","header-footer-elementor"))),c().createElement(Hf,null))))},qf=cm("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),Yf=cm("move-up-right",[["path",{d:"M13 5H19V11",key:"1n1gyv"}],["path",{d:"M19 5L5 19",key:"72u4yj"}]]);function Gf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gf(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Kf=function(){var e=s((0,i.useState)({author:"",author_url:"",plugin_name:"",short_name:"",description:"",hide_branding:!1,logo_url:"",internal_help_links:!1,replace_logo:!1}),2),t=e[0],n=e[1],r=function(e,t){n((function(n){return Xf(Xf({},n),{},h({},e,t))}))};return c().createElement("form",{onSubmit:function(e){e.preventDefault()}},c().createElement("div",{className:"rounded-lg"},c().createElement("div",{className:"flex flex-row items-center justify-between",style:{paddingBottom:"24px"}},c().createElement(Zm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,hm.__)("White Label","header-footer-elementor")})),c().createElement("div",{className:"relative"},c().createElement("div",{style:{pointerEvents:"none"}},c().createElement(nt,{align:"stretch",className:"bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column",gap:"sm",justify:"start",style:{marginTop:"24px"}},c().createElement("div",null,c().createElement(nt,{align:"stretch",className:"flex flex-column bg-background-primary",containerType:"flex",direction:"column",style:{padding:"24px",borderRadius:"8px"}},c().createElement(Zm,{size:"sm",tag:"h2",title:(0,hm.__)("Plugins Details","header-footer-elementor"),description:(0,hm.__)("You can change the author name and plugin details that are displayed in the WordPress backend.","header-footer-elementor")}),c().createElement("div",{className:"flex flex-row items-center mt-1 w-full gap-3"},c().createElement(nt.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement("div",{className:"text-base text-field-label font-semibold m-0 mb-2"},"Author"),c().createElement("input",{name:"author",type:"text",value:t.author,className:"w-full border border-subtle px-2",onChange:function(e){return r(e.target.name,e.target.value)},placeholder:(0,hm.__)("Brainstorm Force","header-footer-elementor"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})),c().createElement(nt.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement("div",{className:"text-base text-field-label font-semibold m-0 mb-2"},"Author URL"),c().createElement("input",{name:"author_url",className:"w-full border border-subtle px-2",type:"url",value:t.author_url,onChange:function(e){return r(e.target.name,e.target.value)},placeholder:(0,hm.__)("https://www.brainstormforce.com","header-footer-elementor"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}}))),c().createElement("div",{className:"flex flex-row items-center mt-1 w-full gap-3"},c().createElement(nt.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement("div",{className:"text-base text-field-label font-semibold m-0 mb-2"},(0,hm.__)("Plugin Name","header-footer-elementor")),c().createElement("input",{name:"plugin_name",type:"text",className:"w-full border border-subtle px-2",value:t.plugin_name,onChange:function(e){return r(e.target.name,e.target.value)},placeholder:(0,hm.__)("Ultimate Addons","header-footer-elementor"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})),c().createElement(nt.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement("div",{className:"text-base text-field-label font-semibold m-0 mb-2"},(0,hm.__)("Plugin Short Name","header-footer-elementor")),c().createElement("input",{name:"short_name",type:"text",className:"w-full border border-subtle px-2",value:t.short_name,onChange:function(e){return r(e.target.name,e.target.value)},placeholder:(0,hm.__)("UAE","header-footer-elementor"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}}))),c().createElement(nt.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement("div",{className:"text-base text-field-label font-semibold m-0"},(0,hm.__)("Plugin Description","header-footer-elementor")),c().createElement("input",{name:"description",type:"text",className:"w-full border border-subtle",value:t.description,onChange:function(e){return r(e.target.name,e.target.value)},placeholder:(0,hm.__)("Ultimate Addons is a premium extension for Elementor...","header-footer-elementor"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"16px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})),c().createElement("div",{className:"border border-subtle",style:{height:"2px",backgroundColor:"#E5E7EB",marginTop:"6px"}}),c().createElement(nt.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement("div",{className:"flex flex-row items-center justify-between px-1"},c().createElement(Zm,{size:"xs",tag:"h3",title:(0,hm.__)("Replace or Hide Logo","header-footer-elementor"),className:"mt-4",description:(0,hm.__)("Enable this option to hide the default logo or replace it with your own logo. (Note: To hide the logo, leave the logo URL field empty.)","header-footer-elementor")}),c().createElement(Um,{onChange:function(e){return r("replace_logo",e)},size:"md",value:t.replace_logo,className:"uael-remove-ring"}))),t.replace_logo&&c().createElement(nt.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement("div",{className:"text-base text-field-label font-semibold m-0"},(0,hm.__)("Enter logo URL to replace","header-footer-elementor")),c().createElement("input",{name:"logo_url",type:"url",className:"w-full border border-subtle",value:t.logo_url,onChange:function(e){return r(e.target.name,e.target.value)},placeholder:(0,hm.__)("https://www.example.com/logo.svg","header-footer-elementor"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"16px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})),c().createElement(nt.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement("div",{className:"flex flex-row items-center justify-between px-1"},c().createElement(Zm,{size:"xs",tag:"h3",title:(0,hm.__)("Hide White Label Settings","header-footer-elementor"),className:"mt-4",description:(0,hm.__)("Enabling this option will hide the White Label settings. To access it again, re-activate the plugin.","header-footer-elementor")}),c().createElement(Um,{onChange:function(e){return r("hide_branding",e)},size:"md",value:t.hide_branding}))),c().createElement("div",{className:"border border-subtle",style:{height:"2px",backgroundColor:"#E5E7EB",marginTop:"6px"}}),c().createElement(nt.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement(Zm,{size:"sm",tag:"h2",title:(0,hm.__)("Elementor Editor Area","header-footer-elementor"),className:"mt-1"}),c().createElement("div",{className:"flex flex-row items-center justify-between px-1"},c().createElement(Zm,{size:"xs",tag:"h3",title:(0,hm.__)("Show Help Links","header-footer-elementor"),className:"mt-4",description:(0,hm.__)("Display internal help links in widget editor area.","header-footer-elementor")}),c().createElement(Um,{onChange:function(e){return r("internal_help_links",e)},size:"md",value:t.internal_help_links}))))))),c().createElement("div",{className:"absolute inset-0 z-20 flex items-center justify-center",style:{backgroundColor:"rgba(255,255,255,0.6)"}},c().createElement("div",{className:"bg-white rounded-xl text-center",style:{width:320,padding:"32px 28px",boxShadow:"-6px -6px 16px rgba(0,0,0,0.12), 12px 12px 30px rgba(0,0,0,0.18)"}},c().createElement(qf,{size:32,className:"text-gray-600"}),c().createElement("h2",{className:"text-lg font-semibold mb-2"},(0,hm.__)("White Label Available in UAE Pro","header-footer-elementor")),c().createElement("p",{className:"text-sm text-[#475569] mb-6"},(0,hm.__)("Remove UAE branding and customize the dashboard with your agency details.","header-footer-elementor")),c().createElement(ct,{variant:"primary",className:"rounded-md",style:{backgroundColor:"#6005FF",padding:"10px 22px"},onClick:function(){return window.open("https://ultimateelementor.com/pricing/?utm_source=whitelabel&utm_medium=uaesettings","_blank")}},c().createElement("span",{className:"px-1"},(0,hm.__)("Upgrade Now","header-footer-elementor")),c().createElement(Yf,{style:{width:"15px",height:"15px",marginBottom:"-2px",marginLeft:"2px"}})))))))},Zf=function(){var e=[{id:1,icon:c().createElement("img",{src:"".concat(hfeSettingsData.user_url),alt:(0,hm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),selected:c().createElement("img",{src:"".concat(hfeSettingsData.user__selected_url),alt:(0,hm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),title:(0,hm.__)("My Account","header-footer-elementor"),content:c().createElement($f,null)},{id:2,icon:c().createElement("img",{src:"".concat(hfeSettingsData.theme_url),alt:(0,hm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),selected:c().createElement("img",{src:"".concat(hfeSettingsData.theme_url_selected),alt:(0,hm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),main:(0,hm.__)("Editor","header-footer-elementor"),title:(0,hm.__)("Theme Support","header-footer-elementor"),content:c().createElement(Uf,null)},{id:3,icon:c().createElement("img",{src:"".concat(hfeSettingsData.version_url),alt:(0,hm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),selected:c().createElement("img",{src:"".concat(hfeSettingsData.version__selected_url),alt:(0,hm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),main:(0,hm.__)("Utilities","header-footer-elementor"),title:(0,hm.__)("Version Control","header-footer-elementor"),content:c().createElement(Wf,null)},{id:4,icon:c().createElement("img",{src:"".concat(hfeSettingsData.branding_url),alt:"Custom SVG",className:"object-contain"}),selected:c().createElement("img",{src:"".concat(hfeSettingsData.branding__selected_url),alt:"Custom SVG",className:"object-contain"}),main:"",title:(0,hm.__)("Branding","uael"),content:c().createElement(Kf,null)}].filter((function(e){return"no"!==hfeSettingsData.show_theme_support||2!==e.id})),t=s((0,i.useState)((function(){var t=localStorage.getItem("hfeSelectedItemId");return e.find((function(e){return e.id===Number(t)}))||e[0]})),2),n=t[0],r=t[1];return(0,i.useEffect)((function(){localStorage.setItem("hfeSelectedItemId",n.id.toString())}),[n]),(0,i.useEffect)((function(){var t=new URLSearchParams(window.location.search).get("tab");if(t){var n=Number(t),o=e.find((function(e){return e.id===n}));o&&r(o)}}),[]),c().createElement(c().Fragment,null,c().createElement(Nm,{onSettingsTabClick:function(){r(e[0])}}),c().createElement("div",{className:""},c().createElement(nt,{align:"stretch",className:"p-1 flex-col lg:flex-row hfe-settings-page",containerType:"flex",direction:"row",gap:"sm",justify:"start",style:{height:"100%"}},c().createElement(nt.Item,{className:"p-2 hfe-sticky-outer-wrapper",alignSelf:"auto",order:"none",shrink:1,style:{backgroundColor:"#ffffff"}},c().createElement("div",{className:"hfe-sticky-sidebar"},c().createElement(Up,{items:e,onSelectItem:function(e){r(e)},selectedItemId:n.id}))),c().createElement(nt.Item,{className:"p-2 flex w-full justify-center items-start hfe-hide-scrollbar",alignSelf:"auto",order:"none",shrink:1,style:{height:"calc(100vh - 1px)",overflowY:"auto"}},c().createElement("div",{className:"hfe-78-width"},c().createElement(Wp,{selectedItem:n}))))))};let Jf=1;const Qf=new class{#e;#t;constructor(){this.#e=[],this.#t=[]}subscribe(e){return this.#t.push(e),()=>{this.#t=this.#t.filter((t=>t!==e))}}publish(e){this.#t.forEach((t=>t(e)))}add(e){this.#e.push(e),this.publish(e)}remove(e){return this.#e=this.#e.filter((t=>t.id!==e)),e}create(e){const{id:t,message:n="",jsx:r,...o}=e;if(!n&&"function"!=typeof r)return;const a="number"==typeof t?t:Jf++;return this.#e.find((e=>e.id===a))&&(this.#e=this.#e.map((e=>e.id===a?(this.publish({...e,title:n,jsx:r,...o}),{...e,title:n,jsx:r,...o}):e))),this.add({id:a,title:n,jsx:r,...o}),a}update(e,t){const{render:n}=t;let r=t;switch(typeof n){case"function":r={jsx:n,...t};break;case"string":r={title:n,...t}}this.#e=this.#e.map((t=>t.id===e?(this.publish({...t,...r}),{...t,...r}):t))}dismiss(e){return e||this.#e.forEach((e=>this.#t.forEach((t=>t({id:e.id,dismiss:!0}))))),this.#t.forEach((t=>t({id:e,dismiss:!0}))),e}history(){return this.#e}default(e="",t={}){return this.create({message:e,type:"neutral",...t})}success(e="",t={}){return this.create({message:e,type:"success",...t})}error(e="",t={}){return this.create({message:e,type:"error",...t})}warning(e="",t={}){return this.create({message:e,type:"warning",...t})}info(e="",t={}){return this.create({message:e,type:"info",...t})}custom(e,t={}){return this.create({jsx:e,type:"custom",...t})}},eh=Object.seal(Object.assign(((e,t)=>Qf.default(e,t)),{success:Qf.success.bind(Qf),error:Qf.error.bind(Qf),warning:Qf.warning.bind(Qf),info:Qf.info.bind(Qf),custom:Qf.custom.bind(Qf),dismiss:Qf.dismiss.bind(Qf),update:Qf.update.bind(Qf)},{getHistory:Qf.history.bind(Qf)})),th={"top-left":"top-0 bottom-0 left-0 justify-start items-start","top-right":"top-0 bottom-0 right-0 justify-start items-end","bottom-left":"top-0 bottom-0 left-0 justify-end items-start","bottom-right":"top-0 bottom-0 right-0 justify-end items-end"},nh={neutral:"border-alert-border-neutral bg-alert-background-neutral",custom:"border-alert-border-neutral bg-alert-background-neutral",info:"border-alert-border-info bg-alert-background-info",success:"border-alert-border-green bg-alert-background-green",warning:"border-alert-border-warning bg-alert-background-warning",error:"border-alert-border-danger bg-alert-background-danger"},rh="bg-background-inverse border-background-inverse",oh={light:"text-icon-secondary",dark:"text-icon-inverse"};let ah=!1;const sh=({toastItem:e,title:t="",content:n="",autoDismiss:r=!0,dismissAfter:o=5e3,theme:a="light",design:s="stack",icon:l,variant:c="neutral",removeToast:u})=>{const d=(0,i.useRef)(0),m=(0,i.useRef)(0),p=(0,i.useRef)(),f=(e,t=o)=>{if(r&&!(o<0))return d.current=(new Date).getTime(),setTimeout((()=>{"function"==typeof u&&u(e.id)}),t)};(0,i.useEffect)((()=>{const t=o;return p.current=f(e,t),()=>{clearTimeout(p.current)}}),[]),(0,i.useEffect)((()=>{!e?.dismiss||"function"!=typeof u||u(e.id)}),[e]);const h=()=>{"function"==typeof u&&e?.action?.onClick?.((()=>u(e.id)))};let g=null;return"stack"===s&&(g=(0,O.jsx)("div",{className:Ae("flex items-center justify-start p-4 gap-2 relative border border-solid rounded-md shadow-lg","dark"===a?rh:nh?.[c],"w-[22.5rem]"),onMouseEnter:()=>{clearTimeout(p.current),m.current=(new Date).getTime()},onMouseLeave:()=>{p.current=f(e,o-(m.current-d.current))},children:"custom"!==e.type?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Dm({variant:c,icon:l,theme:a})}),(0,O.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 mr-6",children:[Lm({title:t,theme:a}),Om({content:n,theme:a}),e?.action?.label&&"function"==typeof e?.action?.onClick&&(0,O.jsx)("div",{className:"mt-2.5",children:Mm({actionLabel:e?.action?.label,actionType:e?.action?.type??"button",onAction:h,theme:a})})]}),(0,O.jsx)("div",{className:"absolute right-4 top-4 [&_svg]:size-5",children:(0,O.jsx)("button",{className:Ae("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",oh[a]??oh.light),onClick:()=>{"function"==typeof u&&u(e.id)},children:(0,O.jsx)(nm,{})})})]}):e?.jsx?.({close:()=>u(e.id),action:e?.action?{...e?.action,onClick:h}:null})})),"inline"===s&&(g=(0,O.jsxs)("div",{className:Ae("flex items-center justify-start p-3 gap-2 relative border border-solid rounded-md shadow-lg","dark"===a?rh:nh?.[c],"lg:w-[47.5rem] w-full"),children:[(0,O.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Dm({variant:c,icon:l,theme:a})}),(0,O.jsxs)("div",{className:"flex items-start justify-start gap-1 mr-10 [&>span:first-child]:shrink-0",children:[Lm({title:t,theme:a}),Om({content:n,theme:a})]}),(0,O.jsx)("div",{className:"absolute right-3 top-3 [&_svg]:size-5",children:(0,O.jsx)("button",{className:Ae("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",oh[a]??oh.light),onClick:()=>u(e.id),children:(0,O.jsx)(nm,{})})})]})),g},ih=(e=>(0,i.memo)((t=>{const n=t.singleTon;return ah&&n?null:(ah=!0,(0,O.jsx)(e,{...t}))})))((({position:e="top-right",design:t="stack",theme:n="light",className:r="",autoDismiss:o=!0,dismissAfter:a=5e3})=>{const[s,l]=(0,i.useState)([]);(0,i.useEffect)((()=>{Qf.subscribe((e=>{e?.dismiss?l((t=>t.map((t=>t.id===e.id?{...t,dismiss:!0}:t)))):setTimeout((()=>{(0,rn.flushSync)((()=>l((t=>-1!==t.findIndex((t=>t.id===e.id))?t.map((t=>t.id===e.id?{...t,...e}:t)):[...t,e]))))}))}))}),[]);const c=e=>{l((t=>t.filter((t=>t.id!==e))))};return(0,O.jsx)("ul",{className:Ae("fixed flex flex-col list-none z-20 p-10 pointer-events-none [&>li]:pointer-events-auto gap-3",th[e]??th["top-right"],r),children:(0,O.jsx)(Dd,{initial:!1,children:s.map((e=>(0,O.jsx)(Cd.li,{initial:{opacity:0,y:50,scale:.7},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.6,transition:{duration:.15}},layoutId:`toast-${e.id}`,children:(0,O.jsx)(sh,{toastItem:e,title:e.title,content:e?.description,icon:e?.icon??void 0,design:e?.design??t,autoDismiss:e?.autoDismiss??o,dismissAfter:e?.dismissAfter??a,removeToast:c,variant:e.type,theme:e?.theme??n})},e.id)))})})}));function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ch(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lh(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const uh=Id("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),dh=Id("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),mh=({type:e="simple",defaultValue:t=[],autoClose:n=!1,disabled:r=!1,children:o,className:a})=>{const[s,l]=(0,i.useState)(Array.isArray(t)?t:[t]);return(0,O.jsx)("div",{className:Ae("boxed"===e?"space-y-3":"",a),children:i.Children.map(o,(t=>{if(i.isValidElement(t)&&"value"in t.props){const o=!1!==t.props.collapsible,a=!o||s.includes(t.props.value);return i.cloneElement(t,{isOpen:a,onToggle:o?()=>(e=>{l((t=>n?t.includes(e)?[]:[e]:t.includes(e)?t.filter((t=>t!==e)):[...t,e]))})(t.props.value):void 0,type:e,disabled:r||t.props.disabled})}return t}))})};mh.displayName="Accordion";const ph=({isOpen:e,onToggle:t,type:n="simple",disabled:r=!1,children:o,className:a})=>{const s={simple:"border-0",separator:"border-0 border-b border-solid border-border-subtle",boxed:"border border-solid border-border-subtle rounded-md"}[n];return(0,O.jsx)("div",{className:Ae(s,a),children:i.Children.map(o,(o=>i.isValidElement(o)?i.cloneElement(o,{isOpen:e,onToggle:t,type:n,disabled:r}):o))})};ph.displayName="Accordion.Item";const fh=({onToggle:e,isOpen:t,iconType:n="arrow",collapsible:r=!0,disabled:o=!1,tag:a="h3",type:s="simple",children:i,className:l,...c})=>{const u={simple:"px-2 py-3",separator:"px-2 py-4",boxed:"px-3 py-4"}[s];return(0,O.jsx)(a,{className:"flex m-0 hover:bg-background-secondary transition duration-150 ease-in-out",children:(0,O.jsxs)("button",{className:Ae("flex w-full items-center justify-between text-sm font-medium transition-all appearance-none bg-transparent border-0 cursor-pointer gap-3",u,o&&"cursor-not-allowed opacity-40",l),onClick:!o&&r?e:void 0,"aria-expanded":t,disabled:o,...c,children:[(0,O.jsx)("div",{className:"flex items-center gap-2 text-text-primary font-semibold text-left",children:i}),r?"arrow"===n?(0,O.jsx)(Bd,{className:Ae("flex-shrink-0 text-icon-secondary size-5 transition-transform duration-300 ease-in-out",t?"rotate-180":"rotate-0")}):"plus-minus"===n?(0,O.jsx)(Cd.span,{initial:{opacity:0,rotate:t?-180:0},animate:{opacity:1,rotate:t?0:180},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"flex items-center flex-shrink-0 text-icon-secondary",children:t?(0,O.jsx)(uh,{}):(0,O.jsx)(dh,{})},t?"minus":"plus"):null:null]})})};fh.displayName="Accordion.Trigger";const hh=({isOpen:e,disabled:t=!1,type:n="simple",children:r,className:o})=>{const a={simple:"px-2 pb-3",separator:"px-2 pb-4",boxed:"px-3 pb-4"}[n];return(0,O.jsx)(Dd,{initial:!1,children:e&&(0,O.jsx)(Cd.div,{variants:{open:{height:"auto",opacity:1,overflow:"unset",transition:{overflow:{delay:1}}},closed:{height:0,opacity:0,overflow:"hidden"}},initial:"closed",animate:"open",exit:"closed",transition:{duration:.3,ease:"easeInOut"},className:Ae("text-text-secondary w-full text-sm transition-[height, opacity, transform] ease-in box-border",t&&"opacity-40",o),"aria-hidden":!e,children:(0,O.jsx)("div",{className:Ae(a),children:r})},"content")})};hh.displayName="Accordion.Content";const gh=Object.assign(mh,{Item:ph,Trigger:fh,Content:hh}),yh={400:"font-normal",500:"font-medium",600:"font-semibold",700:"font-bold"},vh={36:"text-4xl",30:"text-3xl",24:"text-2xl",20:"text-xl",18:"text-lg",16:"text-base",14:"text-sm",12:"text-xs"},xh={44:"leading-11",38:"leading-9.5",32:"leading-8",30:"leading-7.5",28:"leading-7",24:"leading-6",20:"leading-5",16:"leading-4"},bh={2:"tracking-2"},wh={brand600:"text-brand-primary-600",link:"text-link-primary",primary:"text-text-primary",secondary:"text-text-secondary",tertiary:"text-text-tertiary",disabled:"text-text-disabled",help:"text-field-helper",label:"text-field-label",info:"text-support-info",success:"text-support-success",warning:"text-support-warning",error:"text-support-error",inverse:"text-text-on-color"},Eh=(0,i.forwardRef)((function({as:e,children:t,weight:n,size:r,lineHeight:o,letterSpacing:a,color:s="primary",className:i,...l},c){return(0,O.jsx)(e||"p",{ref:c,className:Ae("m-0 p-0",n?yh[n]:"",r?vh[r]:"",o?xh[o]:"",a?bh[a]:"",s?wh[s]:"",i),...l,children:t})})),_h=cm("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),kh=cm("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),Sh=cm("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),Nh=cm("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Ch=function(e){var t=e.step,n=e.chapterId,r=e.isLast,o=void 0!==r&&r,a=e.onCompletionChange,l=e.onLearnHowClick,c=t.id,u=t.title,d=t.description,m=t.learn,p=t.action,f=t.completed,h=void 0!==f&&f,g=t.isPro,y=void 0!==g&&g,v=s((0,i.useState)(h),2),x=v[0],b=v[1];if((0,i.useEffect)((function(){b(h)}),[h]),!c||!u)return null;var w=function(){var e=!x;b(e),a&&a(n,c,e)},E=function(){return"video"===(null==m?void 0:m.type)?React.createElement(Sh,{size:14}):React.createElement(Nh,{size:14})},_=x?(0,hm.__)("Mark as incomplete","astra"):(0,hm.__)("Mark as complete","astra");return React.createElement("div",{className:"py-4 sm:py-5 flex items-center gap-2 sm:gap-3 border-solid border-0 border-border-subtle ".concat(o?"":"border-b-0.5")},React.createElement(Bm,{arrow:!0,content:_,placement:"top",variant:"dark"},React.createElement("span",{className:"self-start mt-[1px] flex justify-center items-center w-2 h-2 p-[3px] sm:p-[4px] rounded-full cursor-pointer border-[1.25px] border-solid ".concat(x?"bg-support-success border-support-success-inverse":"border-border-strong [&:hover>svg]:text-border-strong"),tabIndex:0,"aria-label":_,onClick:w,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),w())}},React.createElement(sp,{className:"text-icon-on-color sm:w-3.5 sm:h-3.5 transition-all duration-200",size:12,strokeWidth:1.5}))),React.createElement("div",{className:"flex-1 flex items-center gap-2"},React.createElement("div",{className:"flex flex-col gap-1.5"},React.createElement(Eh,{className:"flex-1",size:14,weight:500,color:"primary"},u),React.createElement(Eh,{className:"flex-1 hidden sm:block",size:14,color:"secondary"},d)),y&&React.createElement(rm,{label:(0,hm.__)("Pro","astra"),size:"xs",type:"pill",variant:"inverse",className:"uppercase"})),m&&React.createElement(Bm,{arrow:!0,content:(null==m?void 0:m.label)||(0,hm.__)("Learn how","astra"),placement:"top",variant:"dark"},React.createElement(ct,{size:"xs",variant:"ghost",icon:React.createElement(E,null),onClick:function(){"link"!==(null==m?void 0:m.type)?l&&m&&l(t):window.open(null==m?void 0:m.url,"_blank","noopener,noreferrer")},className:"text-button-primary hover:bg-transparent outline-none"})),React.createElement(ct,{className:"px-3 gap-0.5 min-w-40 text-button-primary hover:bg-background-button-hover hover:outline-button-secondary",size:"sm",variant:"secondary",icon:React.createElement(um,{size:14}),iconPosition:"right",onClick:function(){null!=p&&p.url?null!=p&&p.isExternal?window.open(null==p?void 0:p.url,"_blank","noopener,noreferrer"):window.location.href=null==p?void 0:p.url:console.info("Empty or missing URL!!!")}},(null==p?void 0:p.label)||(0,hm.__)("Set Up","astra")))},Ph=function(e){var t=e.chapters,n=e.defaultValue,r=e.onStepCompletionChange,o=e.onLearnHowClick,a=function(e,t){e.stopPropagation(),t?window.open(t,"_blank","noopener,noreferrer"):console.info("Empty or missing URL!!!")};return React.createElement(gh,{type:"boxed",autoClose:!0,defaultValue:n},t.map((function(e){var t=e.id,n=e.title,s=e.description,i=e.url,l=e.steps,c=l.length,u=l.filter((function(e){return e.completed})).length,d=c===u;return React.createElement(gh.Item,{key:t,className:"bg-background-primary border-0.5 [&:hover>h3]:bg-transparent rounded-lg overflow-hidden [&:has([aria-expanded='true'])]:shadow-xs transition-all duration-200 ease-in-out",value:t},React.createElement(gh.Trigger,{className:"group p-3 sm:p-4 hover:bg-transparent [&>svg]:hidden [&>div]:flex-grow [&[aria-expanded='true']_.learn-chevron-right]:rotate-90 [&[aria-expanded='true']_.learn-more-btn]:flex"},React.createElement("div",{className:"flex items-center gap-2 sm:gap-3 flex-1"},React.createElement(_h,{className:"learn-chevron-right transition-transform duration-200 ease-in-out",size:20}),React.createElement("div",{className:"flex-1 text-left"},React.createElement(Eh,{size:14,className:"sm:text-base",weight:600},n)),i&&React.createElement("span",{className:"hover:underline underline-offset-2 learn-more-btn hidden transition-all cursor-pointer text-link-primary outline-link-primary items-center gap-1 text-xs px-2 py-1",onClick:function(e){return a(e,i)},role:"link",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||a(e,i)}},React.createElement("span",{className:"hidden sm:inline"},(0,hm.__)("Learn how","astra")),React.createElement(kh,{size:16,strokeWidth:1.25})),React.createElement(rm,{className:"relative overflow-hidden w-14 sm:w-[62px] text-xs",label:React.createElement(React.Fragment,null,React.createElement("span",{className:"sr-only"},(0,hm.sprintf)((0,hm.__)("%1$d of %2$d steps completed","astra"),u,c)),React.createElement("span",{className:"flex items-center"},d&&React.createElement(sp,{size:12}),React.createElement("span",{className:"px-1 relative z-10"},u,"/",c)),React.createElement("span",{className:"absolute h-full top-0 left-0 bg-[#BAE6FD]/40 transition-[width] duration-300 ease-in-out",style:{width:"".concat(u/c*100,"%")}})),variant:d?"green":u>0?"blue":"gray"}))),React.createElement(gh.Content,{className:"overflow-visible [&>div]:p-0"},s&&React.createElement(Eh,{className:"px-3 sm:px-4 ml-7 mr-0 sm:mx-8 -mt-2 pb-4 pt-3 max-w-full sm:max-w-[72%]",size:14,color:"secondary",weight:400},s),React.createElement("span",{className:"block w-full h-[0.5px] bg-border-subtle"}),React.createElement("div",{className:"px-3 sm:px-4 flex flex-col bg-[#FCFCFD]"},l.map((function(e,n){return React.createElement(Ch,{key:e.id,step:e,chapterId:t,isLast:n===l.length-1,onCompletionChange:r,onLearnHowClick:o})})))))})))},Th=function(){return React.createElement(React.Fragment,null,React.createElement("div",{className:"border-0.5 border-solid border-border-subtle rounded-lg"},React.createElement(Xm,{variant:"rectangular",className:"w-full h-14 rounded-b-none rounded-t-lg bg-background-secondary"}),React.createElement("div",{className:"px-4"},Array(4).fill(0).map((function(e,t){return React.createElement("div",{key:"step-skeleton-".concat(t),className:"py-5 flex items-center gap-3"},React.createElement(Xm,{variant:"circular",className:"w-6 h-6 bg-background-secondary"}),React.createElement("div",{className:"flex-1"},React.createElement(Xm,{variant:"rectangular",className:"w-2/3 h-5 bg-background-secondary"})),React.createElement(Xm,{variant:"rectangular",className:"w-[104px] h-8 bg-background-secondary"}))})))),Array(4).fill(0).map((function(e,t){return React.createElement(Xm,{key:"skeleton-".concat(t),variant:"rectangular",className:"w-full h-14 rounded-lg bg-background-secondary"})})))},jh=(0,g.forwardRef)((function(e){var t=e.text,n=e.variant,r=e.onClick;return React.createElement(ct,{variant:n||"primary",size:"sm",onClick:function(e){r&&"function"==typeof r&&r(e)}},t)})),Rh=function(e){var t=e.items;return React.createElement("div",{className:"space-y-2"},t.map((function(e,t){return React.createElement("div",{key:t,className:"flex items-start gap-2"},React.createElement(Eh,{size:14,weight:600,color:"primary",className:"flex-shrink-0"},(0,hm.sprintf)((0,hm.__)("Step %d:","astra"),t+1)),React.createElement(Eh,{size:14,color:"secondary"},e.text))})))},Fh=function(e){var t=e.src,n=e.alt,r=s((0,i.useState)(!1),2),o=r[0],a=r[1];return React.createElement("div",{className:"relative w-full shadow-sm rounded-lg overflow-hidden"},!o&&React.createElement(Xm,{className:"w-full h-64"}),React.createElement("img",{src:t,alt:n||"",className:"w-full h-auto border-0.5 border-solid border-border-subtle ".concat(o?"block":"hidden"),onLoad:function(){return a(!0)}}))},Ah=function(e){var t=e.prefix,n=e.text,r=e.url,o=e.target,a=void 0===o?"_blank":o;return React.createElement("div",{className:"text-sm flex gap-1"},t&&React.createElement("span",null,t),React.createElement(Eh,{as:"a",href:r,target:a,className:"text-gs-primary underline"},n||r))},Dh=function(e){var t=e.items;return React.createElement("ul",{className:"list-disc ml-8"},t.map((function(e,t){return React.createElement("li",{key:t,className:"my-0.5"},React.createElement(Eh,{size:14,color:"secondary"},e))})))};var Mh=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")};const Lh=function(e){var t=e.text,n=e.isHeading,r=void 0!==n&&n;return React.createElement(Eh,{as:r?"h3":"p",weight:r?600:400,size:r?18:14,color:r?"primary":"secondary",className:Mh("leading-relaxed",r?"mt-4":"")},t)},Oh=function(e){var t=e.url,n=e.title;return React.createElement("div",{className:"aspect-video rounded-lg bg-background-tertiary overflow-clip shadow-sm"},React.createElement("iframe",{src:t,title:n,className:"w-full h-full border-none",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}))},Ih=function(e){var t,n=e.items;return Array.isArray(n)||(n=[n]),null===(t=n)||void 0===t?void 0:t.map((function(e,t){switch(e.type){case"video":return React.createElement(Oh,{key:t,url:e.data.url,title:e.data.title});case"image":return React.createElement(Fh,{key:t,src:e.data.src,alt:e.data.alt});case"link":return React.createElement(Ah,{key:t,prefix:e.prefix,text:e.data.text,url:e.data.url,target:e.data.target});case"heading":return React.createElement(Lh,{key:t,text:e.text,isHeading:!0});case"paragraph":case"text":return React.createElement(Lh,{key:t,text:e.text});case"list":return React.createElement(Dh,{key:t,items:e.data.items});case"checklist":return React.createElement(Rh,{key:t,items:e.data.items});case"button":return React.createElement(jh,b({key:t,onClick:function(){return window.open(e.data.url,e.data.target)}},e.data));default:return null}}))},Bh=function(e){var t,n=e.open,r=void 0!==n&&n,o=e.setOpen,a=e.item;return React.createElement(gp,{design:"simple",exitOnEsc:!0,scrollLock:!0,exitOnClickOutside:!0,open:r,setOpen:function(){o&&"function"==typeof o&&o(!1)}},React.createElement(gp.Backdrop,null),React.createElement(gp.Panel,{className:"w-[90vw] max-w-5xl gap-2 max-h-[85vh] sm:max-h-[80vh] mx-auto"},React.createElement(gp.Header,{className:"px-4 sm:px-5 pb-0"},React.createElement("div",{className:"flex items-center justify-between"},React.createElement(gp.Title,{className:"text-base"},null==a?void 0:a.title),React.createElement(gp.CloseButton,null)),React.createElement(gp.Description,null,null==a?void 0:a.description)),React.createElement(gp.Body,{className:"pt-2 px-4 sm:px-5 pb-4 sm:pb-5 flex flex-col gap-2 sm:gap-2.5 overflow-auto"},React.createElement(Ih,{items:(null==a||null===(t=a.learn)||void 0===t?void 0:t.content)||{}}))))},zh=function(e){var t=e.chapters,n=void 0===t?[]:t,r=e.endpoints,o=void 0===r?null:r,a=e.className,l=void 0===a?"":a,c=e.onProgressChange,u=s((0,i.useState)([]),2),d=u[0],m=u[1],p=s((0,i.useState)(!1),2),f=p[0],h=p[1],g=s((0,i.useState)(null),2),y=g[0],v=g[1];(0,i.useEffect)((function(){if(null!=o&&o.get){var e=new AbortController;return h(!0),v(null),$m()({path:o.get,signal:e.signal}).then((function(e){m(e),h(!1)})).catch((function(e){v(e.message||"Failed to load chapters"),h(!1)})),function(){e.abort()}}}),[null==o?void 0:o.get]);var x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.initialChapters,n=void 0===t?[]:t,r=e.saveEndpoint,o=void 0===r?null:r,a=s((0,i.useState)(n),2),l=a[0],c=a[1],u=s((0,i.useState)(!1),2),d=u[0],m=u[1],p=s((0,i.useState)(null),2),f=p[0],h=p[1];(0,i.useEffect)((function(){n.length>0&&c(n)}),[n]);var g=(0,i.useCallback)((function(e,t,n){c((function(r){return r.map((function(r){return r.id===e?ch(ch({},r),{},{steps:r.steps.map((function(e){return e.id===t?ch(ch({},e),{},{completed:n}):e}))}):r}))})),o&&$m()({path:o,method:"POST",data:{chapterId:e,stepId:t,completed:n}}).catch((function(r){c((function(r){return r.map((function(r){return r.id===e?ch(ch({},r),{},{steps:r.steps.map((function(e){return e.id===t?ch(ch({},e),{},{completed:!n}):e}))}):r}))})),eh.error((0,hm.__)("Failed to save progress. Please try again.","astra")),console.error("Failed to save progress:",r)}))}),[o]),y=(0,i.useCallback)((function(e,t){g(e,t,!0)}),[g]),v=(0,i.useCallback)((function(e,t){g(e,t,!1)}),[g]),x=(0,i.useCallback)((function(){c((function(e){return e.map((function(e){return ch(ch({},e),{},{steps:e.steps.map((function(e){return ch(ch({},e),{},{completed:!1})}))})}))}))}),[]),b=(0,i.useMemo)((function(){var e=l.find((function(e){return e.steps.length!==e.steps.filter((function(e){return e.completed})).length}));return null==e?void 0:e.id}),[l]),w=(0,i.useMemo)((function(){var e=l.reduce((function(e,t){return e+t.steps.length}),0),t=l.reduce((function(e,t){return e+t.steps.filter((function(e){return e.completed})).length}),0),n=e>0?Math.round(t/e*100):0;return{totalChapters:l.length,totalSteps:e,completedSteps:t,completionPercentage:n,isFullyCompleted:e>0&&t===e}}),[l]),E=(0,i.useCallback)((function(e){var t=l.find((function(t){return t.id===e}));if(!t)return null;var n=t.steps.length,r=t.steps.filter((function(e){return e.completed})).length;return{totalSteps:n,completedSteps:r,isCompleted:n>0&&r===n,completionPercentage:n>0?Math.round(r/n*100):0}}),[l]),_=(0,i.useCallback)((function(e){h(e),m(!0)}),[]),k=(0,i.useCallback)((function(){m(!1),h(null)}),[]);return{chapters:l,updateStepCompletion:g,markStepCompleted:y,markStepIncomplete:v,resetProgress:x,firstIncompleteChapterId:b,progressStats:w,getChapterStats:E,learnHowDialogOpen:d,currentLearnHowItem:f,openLearnHowDialog:_,closeLearnHowDialog:k,setLearnHowDialogOpen:m}}({initialChapters:null!=o&&o.get?d:n,saveEndpoint:null==o?void 0:o.set}),b=x.chapters,w=x.updateStepCompletion,E=x.firstIncompleteChapterId,_=x.progressStats,k=x.learnHowDialogOpen,S=x.currentLearnHowItem,N=x.openLearnHowDialog,C=x.setLearnHowDialogOpen;return c&&"function"==typeof c&&c(_),f?React.createElement("div",{className:"flex flex-col gap-2 ".concat(l," !bg-transparent")},React.createElement(Th,null)):y?React.createElement("div",{className:l},React.createElement("div",{className:"text-error p-4"},y)):b&&0!==b.length?React.createElement("div",{className:l},React.createElement(Ph,{chapters:b,defaultValue:E,onStepCompletionChange:w,onLearnHowClick:N}),React.createElement(Bh,{open:k,setOpen:C,item:S}),React.createElement(ih,{position:"top-right",design:"stack",theme:"light",autoDismiss:!0,dismissAfter:5e3})):null},Vh=function(){var e=s((0,i.useState)(!1),2),t=e[0],n=e[1];return c().createElement(c().Fragment,null,c().createElement(jp,null),c().createElement(Nm,null),c().createElement("div",{className:"bg-gray-50 min-h-[calc(100vh_-_8rem)]"},c().createElement("h1",{className:"sr-only"},(0,hm.__)("Learn","header-footer-elementor")),c().createElement("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-5"},c().createElement("div",{className:"max-w-3xl mx-auto px-4"},c().createElement("div",{className:"p-4 bg-background-primary rounded-xl flex flex-col gap-3 flex flex-col gap-4 sm:gap-8"},c().createElement("div",{className:"px-1 flex justify-between relative flex-col items-start space-y-2"},c().createElement("h2",{className:"m-0 p-0 font-semibold text-base text-text-primary"},(0,hm.__)("Learn","header-footer-elementor")),c().createElement("p",{className:"m-0 p-0 text-sm text-text-primary"},(0,hm.__)("Master UAE with our step-by-step guide and tutorials. Create stunning headers and footers with confidence.","header-footer-elementor")),c().createElement(ct,{className:"absolute right-0 whitespace-nowrap",variant:"ghost",size:"xs",icon:c().createElement(Sh,{className:"w-4 h-4"}),onClick:function(){n((function(e){return!e}))}},c().createElement("span",{className:"sm:inline-block"},t?(0,hm.__)("Hide Video","header-footer-elementor"):(0,hm.__)("Watch Video","header-footer-elementor")))),c().createElement("div",{className:"transition-all duration-700 ease-in-out overflow-hidden px-6 ".concat(t?"max-h-[800px] opacity-100 pb-6":"max-h-0 opacity-0 pb-0")},t&&c().createElement("div",{className:"relative rounded-lg shadow-lg aspect-video overflow-hidden"},c().createElement("iframe",{className:"w-full h-full",src:"https://www.youtube-nocookie.com/embed/ZeogOxqdKJI?autoplay=1&enablejsapi=1&start=29&end=72",title:"UAE Tutorial Video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}))),c().createElement(zh,{className:"bg-background-secondary p-2 rounded-lg [&>div]:space-y-2",endpoints:{get:"/hfe/v1/get-learn-chapters",set:"/hfe/v1/update-learn-progress"}}))))))},Uh=cm("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Wh=function(){var e=[{title:(0,hm.__)("Essentials","header-footer-elementor"),items:[{id:1,content:(0,hm.__)("White Label Option","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,hm.__)("24x7 Premium Support","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,hm.__)("User Portal / User Login","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,hm.__)("Content Widgets","header-footer-elementor"),items:[{id:1,content:(0,hm.__)("Advanced Heading","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,hm.__)("Business Hours","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,hm.__)("Content Toggle","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,hm.__)("Google Map","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:5,content:(0,hm.__)("Image Gallery","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:6,content:(0,hm.__)("Info Box","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:7,content:(0,hm.__)("Modal Popup","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:8,content:(0,hm.__)("Posts","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:9,content:(0,hm.__)("Price List","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:10,content:(0,hm.__)("Table","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:11,content:(0,hm.__)("Info Card","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:12,content:(0,hm.__)("Video","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:13,content:(0,hm.__)("Video Gallery","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:14,content:(0,hm.__)("Basic Posts","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:15,content:(0,hm.__)("SVG Animator","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:16,content:(0,hm.__)("Table of Contents","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:17,content:(0,hm.__)("Counter","header-footer-elementor"),iconFree:!0,iconPro:!1}]},{title:(0,hm.__)("Creative Widgets","header-footer-elementor"),items:[{id:1,content:(0,hm.__)("Before After Slider","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,hm.__)("Countdown Timer","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,hm.__)("Welcome Music","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,hm.__)("Dual Color Heading","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:5,content:(0,hm.__)("Fancy Heading","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:6,content:(0,hm.__)("Hotspots","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:7,content:(0,hm.__)("Login Form","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:8,content:(0,hm.__)("Marketing Button","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:9,content:(0,hm.__)("Multi Buttons","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:10,content:(0,hm.__)("Off-Canvas","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:11,content:(0,hm.__)("Retina Image","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:12,content:(0,hm.__)("Team Member","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:13,content:(0,hm.__)("Price Box","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:14,content:(0,hm.__)("Timeline","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:15,content:(0,hm.__)("User Registration Form","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:16,content:(0,hm.__)("Retina Logo","header-footer-elementor"),iconFree:!0,iconPro:!1}]},{title:(0,hm.__)("Form Styler","header-footer-elementor"),items:[{id:1,content:(0,hm.__)("Contact Form 7 Styler","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,hm.__)("Gravity Form Styler","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,hm.__)("WP Fluent Forms Styler","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,hm.__)("WPForms Styler","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,hm.__)("SEO","header-footer-elementor"),items:[{id:1,content:(0,hm.__)("Business Reviews","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,hm.__)("How To Schema","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,hm.__)("FAQ Schema","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,hm.__)("Breadcrumbs","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,hm.__)("WooCommerce","header-footer-elementor"),items:[{id:1,content:(0,hm.__)("Woo – Add to Cart","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,hm.__)("Woo – Categories","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,hm.__)("Woo – Thank You Page","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,hm.__)("Woo – Checkout","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:5,content:(0,hm.__)("Woo – Mini Cart","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:6,content:(0,hm.__)("Woo – Products","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:7,content:(0,hm.__)("Woo – Product Grid","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:8,content:(0,hm.__)("Cart","header-footer-elementor"),iconFree:!0,iconPro:!1}]},{title:(0,hm.__)("Social","header-footer-elementor"),items:[{id:1,content:(0,hm.__)("Instagram Feed","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,hm.__)("X Feed","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,hm.__)("Social Share","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,hm.__)("Special Features","header-footer-elementor"),items:[{id:1,content:(0,hm.__)("Cross-Site Copy Paste","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,hm.__)("Presets","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,hm.__)("Particle Backgrounds","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,hm.__)("Party Propz","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:5,content:(0,hm.__)("Scroll to Top","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:6,content:(0,hm.__)("Display Conditions","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:7,content:(0,hm.__)("Sticky Header","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:8,content:(0,hm.__)("UAE Duplicator","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:9,content:(0,hm.__)("Conditional Display","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:10,content:(0,hm.__)("Reading Progress Bar","header-footer-elementor"),iconFree:!0,iconPro:!1}]},{title:(0,hm.__)("Dynamic Header & Footer Widgets","header-footer-elementor"),items:[{id:1,content:(0,hm.__)("Site Logo","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:2,content:(0,hm.__)("Site Title","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:3,content:(0,hm.__)("Navigation Menu","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:4,content:(0,hm.__)("Page Title","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:5,content:(0,hm.__)("Search","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:6,content:(0,hm.__)("Site Tagline","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:7,content:(0,hm.__)("Copyright","header-footer-elementor"),iconFree:!0,iconPro:!1}]}],t=function(e){return e?c().createElement(sp,{color:"#16A34A"}):c().createElement(Uh,{color:"#DC2626"})};return c().createElement("div",{className:"rounded-lg bg-white w-full mb-6"},c().createElement("div",{className:"flex items-center justify-between p-5",style:{paddingBottom:"0"}},c().createElement("div",{className:"flex flex-col"},c().createElement("p",{className:"m-0 text-xl font-semibold pt-4 pb-2 text-text-primary"},(0,hm.__)("Free Vs Pro","header-footer-elementor")),c().createElement("p",{className:"m-0 text-sm font-normal pt-1 text-text-secondary"},(0,hm.__)("Ultimate Addons for Elementor Pro offers 50+ widgets and features!","header-footer-elementor")),c().createElement("p",{className:"m-0 text-sm font-normal pt-1 text-text-secondary"},(0,hm.__)("Compare the popular features/widgets to find the best option for your website.","header-footer-elementor"))),c().createElement("div",{className:"flex items-center gap-x-2 mr-7 text-sm"},c().createElement(ct,{iconPosition:"right",variant:"primary",style:{color:"white",borderColor:"#6005FF",transition:"color 0.3s ease, border-color 0.3s ease",backgroundColor:"#6005ff"},className:"hfe-remove-ring text-[#6005FF] text-base p-3.5",onClick:function(){window.open("https://ultimateelementor.com/pricing/?utm_source=uae-lite-FreevsPro&utm_medium=get-uae-pro&utm_campaign=uae-lite-upgrade","_blank")}},(0,hm.__)("Upgrade Now","header-footer-elementor")))),c().createElement("div",{className:"px-4"},c().createElement("div",{className:"flex flex-col space-y-2 pt-5"},e.map((function(e){return c().createElement(c().Fragment,{key:e.title},c().createElement("div",{className:"flex fle-row py-4 px-5 items-center h-4 justify-between rounded-lg shadow-container-item",style:{backgroundColor:"#F9FAFB"}},c().createElement("p",{className:"text-sm text-text-primary font-medium"},e.title),c().createElement("div",{className:"flex flex-row items-center",style:{gap:"12rem"}},c().createElement("p",{className:"text-sm text-text-primary font-medium"},(0,hm.__)("Free","header-footer-elementor")),c().createElement("p",{className:"text-sm text-text-primary font-medium",style:{marginRight:"50px"}},(0,hm.__)("Pro","header-footer-elementor")))),e.items.map((function(e){return c().createElement("div",{key:e.id,className:"flex fle-row py-4 px-5 items-center h-4 justify-between rounded-lg shadow-container-item"},c().createElement("p",{className:"text-sm text-text-secondary font-medium"},e.content),c().createElement("div",{className:"flex flex-row items-center justify-between",style:{gap:10===e.id&&e.content===(0,hm.__)("Navigation Menu","header-footer-elementor")?"10.7rem":"12rem"}},c().createElement("p",{className:"text-sm text-text-primary font-medium"},10===e.id&&e.content===(0,hm.__)("Navigation Menu","header-footer-elementor")?e.iconPro?(0,hm.__)("Advanced","header-footer-elementor"):(0,hm.__)("Basic","header-footer-elementor"):t(e.iconFree)),c().createElement("p",{className:"text-sm text-text-primary font-medium",style:{marginRight:10===e.id&&e.content===(0,hm.__)("Navigation Menu","header-footer-elementor")?"25px":"50px"}},10===e.id&&e.content===(0,hm.__)("Navigation Menu","header-footer-elementor")?e.iconPro?(0,hm.__)("Basic","header-footer-elementor"):(0,hm.__)("Advanced","header-footer-elementor"):t(e.iconPro))))})))})),c().createElement("div",{className:"flex items-center justify-center gap-x-2 "},c().createElement("a",{href:"https://ultimateelementor.com/pricing/?utm_source=uae-lite-dashboard&utm_medium=unlock-ultimate-feature&utm_campaign=uae-lite-upgrade",target:"_blank",rel:"noopener noreferrer",className:"text-sm font-normal text-text-primary cursor-pointer no-underline",style:{lineHeight:"1rem",paddingTop:"10px",paddingBottom:"20px",color:"#6005FF",textDecoration:"none",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.outline="none"},onBlur:function(e){return e.target.style.outline="none"}},(0,hm.__)("See all UAE Pro Features","header-footer-elementor"),c().createElement(um,{className:"ml-1 font-semibold",size:14,color:"#6005FF"}))))))},Hh=function(){return c().createElement(c().Fragment,null,c().createElement(jp,null),c().createElement(Nm,null),c().createElement("div",null,c().createElement(nt,{align:"stretch",className:"p-6 flex-col lg:flex-row box-border",containerType:"flex",direction:"row",gap:"sm",justify:"start",style:{width:"100%"}},c().createElement(nt.Item,{className:"p-2 hfe-65-width",alignSelf:"auto",order:"none",shrink:0},c().createElement(Wh,null)),c().createElement(nt.Item,{className:"p-2 w-full hfe-35-width hfe-sticky-right-sidebar",shrink:1},c().createElement(ip,null),c().createElement("div",{className:"pt-4 mt-4"},c().createElement(np,null))))))},$h=(e,t)=>Ae("rounded-full text-brand-primary-600 transition-colors duration-300",e[t].dot,e[t].ring),qh={sm:{dot:"size-2.5",ring:"size-5",numberIcon:"size-5 text-tiny",icon:"size-5",label:"text-xs"},md:{dot:"size-3",ring:"size-6",numberIcon:"size-6 text-sm",icon:"size-6",label:"text-sm"},lg:{dot:"size-3.5",ring:"size-7",numberIcon:"size-7 text-md",icon:"size-7",label:"text-sm"}},Yh=({variant:e="dot",size:t="sm",type:n="inline",currentStep:r=1,children:o,className:a,lineClassName:s="min-w-10",completedVariant:l="icon",completedIcon:c=(0,O.jsx)(Tm,{}),...u})=>{const d=i.Children.count(o);-1===r&&(r=d+1);const m=i.Children.map(o,((o,a)=>{const u={isCompleted:a+1<r,isCurrent:a+1===r,sizeClasses:qh,size:t,variant:e,type:n,isLast:a+1===d,index:a,lineClassName:s,completedVariant:l,completedIcon:c};return(0,O.jsx)(i.Fragment,{children:i.isValidElement(o)?i.cloneElement(o,u):o},a)}));return(0,O.jsx)("div",{className:Ae("flex w-full",a,"inline"===n?"items-center justify-between":""),...u,children:m})},Gh=({labelText:e="",icon:t=(0,O.jsx)(dh,{}),isCurrent:n,isCompleted:r,className:o,type:a,variant:s,sizeClasses:i,size:l,isLast:c,index:u,lineClassName:d,completedVariant:m="icon",completedIcon:p=(0,O.jsx)(Tm,{}),...f})=>{const h=Xh(s,r,n,i,l,t,u,m,p),g={lg:"left-[calc(50%+14px)] right-[calc(-50%+14px)]",md:"left-[calc(50%+12px)] right-[calc(-50%+12px)]",sm:"left-[calc(50%+10px)] right-[calc(-50%+10px)]"},y={lg:"top-3.5",md:"top-3",sm:"top-2.5"},v=()=>{if(e){const t=Ae(i[l].label,"text-text-tertiary",n?"text-brand-primary-600":"","break-word","stack"===a?"mt-2 transform max-w-xs":"mx-2 max-w-32");return(0,O.jsx)("span",{className:t,children:e})}return null},x=()=>{if(!c){const t=Ae("block",r?"border-brand-primary-600":"border-border-subtle",d);return"stack"===a?(0,O.jsx)("div",{className:Ae("relative","flex","border-solid","border-y","absolute",r?"border-brand-primary-600":"border-border-subtle",y[l],g[l]),children:(0,O.jsx)("span",{className:"block"})}):(0,O.jsx)("div",{className:"flex-1",children:(0,O.jsx)("span",{className:Ae("mr-2 border-y border-solid",!e&&"ml-2",t)})})}return null};return"stack"===a?(0,O.jsxs)("div",{className:"relative flex-1 justify-center",children:[(0,O.jsxs)("div",{className:Ae("flex items-center flex-col",o),...f,children:[h,v()]}),x()]}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:Ae("flex items-center",o),...f,children:[h,v()]}),x()]})};Gh.displayName="ProgressSteps.Step";const Xh=(e,t,n,r,o,a,s,i="icon",l=(0,O.jsx)(Tm,{}))=>{if(t)return"number"===i?(0,O.jsx)("span",{className:Ae($h(r,o),"flex items-center justify-center bg-brand-primary-600 text-text-on-color rounded-full"),children:s+1}):(0,O.jsx)("span",{className:$h(r,o),children:l});const c=((e,t,n)=>Ae("relative flex items-center rounded-full justify-center transition-colors z-10 duration-500 ring-1",e?"ring-brand-primary-600":"ring-border-subtle",t[n].ring))(!!n,r,o),u=((e,t,n,r)=>{const o=`absolute rounded-full transition-colors duration-500 ${n[r].dot}`;return"dot"===e?Ae(o,n[r].dot,t?"bg-brand-primary-600":"bg-text-tertiary"):"number"===e?Ae(o,n[r].dot,t?"text-brand-primary-600":"text-text-tertiary","flex items-center justify-center"):"icon"===e?Ae(o,t?"text-brand-primary-600":"text-text-tertiary","flex items-center justify-center"):""})(e,n,r,o);let d=null;return"number"===e?d=s+1:"icon"===e&&a&&(d=a),(0,O.jsx)("span",{className:c,children:(0,O.jsx)("span",{className:u,children:d})})};Yh.Step=Gh;const Kh=function(e){var t=e.plugin,n=e.setUpdateCounter,r=e.onPluginSelect,o=t.path,a=t.slug,l=t.siteUrl,u=t.icon,d=t.type,m=t.name,p=t.zipUrl,f=t.desc,h=(t.wporg,t.isFree,t.action,t.status),g=t.settings_url,y=s((0,i.useState)(!1),2),v=y[0],x=y[1],b=s((0,i.useState)(null),2),w=b[0],E=(b[1],s((0,i.useState)(!1),2)),_=E[0],k=E[1];return c().createElement(c().Fragment,null,c().createElement("style",null,"\n .uae-role-checkbox {\n position: relative;\n width: 30px;\n height: 30px;\n -webkit-appearance: none;\n appearance: none;\n border: 2px solid #d1d5db; /* gray-300 */\n border-radius: 4px;\n cursor: pointer;\n }\n\n .uae-role-checkbox:checked {\n background-color: #240064;\n border-color: #0017E1;\n }\n\n .uae-role-checkbox:checked::after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: 4px;\n height: 8px;\n border-right: 2px solid #fff;\n border-bottom: 2px solid #fff;\n transform: translate(-50%, -60%) rotate(45deg);\n }\n "),c().createElement(nt,{align:"center",containerType:"flex",direction:"row",justify:"between",gap:"md"},c().createElement("div",{className:"flex items-center gap-x-3 flex-1 cursor-pointer",onClick:function(e){if(!e.target.closest("p.text-sm.font-medium")){var t=!_;k(t),r&&r({slug:a,path:o,type:d,name:m,zipUrl:p,status:h,isChecked:t})}}},c().createElement("div",{className:"h-6 w-6 flex-shrink-0"},c().createElement("img",{src:u,alt:"Recommended Plugins/Themes",className:"w-full h-auto rounded",style:{width:"24px",height:"24px"}})),c().createElement("div",{className:"flex flex-col pl-3 flex-1 min-w-0"},c().createElement("p",{className:"text-sm font-medium text-text-primary pb-1 m-0 cursor-pointer truncate",style:{width:"230px"},onClick:function(e){e.stopPropagation(),window.open(t.siteurl,"_blank")}},(0,hm.__)(m,"header-footer-elementor")),c().createElement("p",{className:"text-sm font-normal text-text-tertiary m-0 truncate"},(0,hm.__)(f,"header-footer-elementor"))),c().createElement("div",{className:"flex-shrink-0 ml-2"},c().createElement("input",{type:"checkbox",checked:_,onChange:function(e){var t=e.target.checked;k(t),r&&r({slug:a,path:o,type:d,name:m,zipUrl:p,status:h,isChecked:t})},onClick:function(e){return e.stopPropagation()},id:"plugin-".concat(a),className:"uae-role-checkbox h-4 w-4 text-purple-600 focus:ring-purple-500 border-gray-300 rounded","data-plugin":p,"data-type":d,"data-pluginname":m,"data-slug":a,"data-site":l,"data-init":o,"data-status":h}))),c().createElement(gp,{design:"simple",open:v,setOpen:x},c().createElement(gp.Backdrop,null),c().createElement(gp.Panel,null,c().createElement(gp.Header,null,c().createElement("div",{className:"flex items-center justify-between"},c().createElement(gp.Title,null,(0,hm.__)("Activate Theme","header-footer-elementor"))),c().createElement(gp.Description,null,(0,hm.__)("Are you sure you want to switch your current theme to Astra?","header-footer-elementor"))),c().createElement(gp.Footer,null,c().createElement(ct,{onClick:function(){return function(e){x(!1);var t=new window.FormData;t.append("action","hfe_recommended_plugin_activate"),t.append("nonce",hfe_admin_data.nonce),t.append("plugin",e.init),t.append("type",e.type),t.append("slug",e.slug);var r=document.querySelector('[data-slug="'.concat(e.slug,'"]')),o=r.querySelector("span");o.innerText=(0,hm.__)("Activating..","header-footer-elementor"),$m()({url:hfe_admin_data.ajax_url,method:"POST",body:t}).then((function(t){if(t.success)o&&(r.style.color="#16A34A",r.dataset.action="site_redirect",r.classList.add("hfe-plugin-activated"),o.innerText=(0,hm.__)("Activated","header-footer-elementor"),window.open(g,"_blank"),setTimeout((function(){n((function(e){return e+1}))}),5e3));else{e.type;var a=document.querySelector('[data-slug="'.concat(e.slug,'"]'));if(a){var s=a.querySelector("span");s&&(s.innerText=(0,hm.__)("Activate","header-footer-elementor"))}}}))}(w)}},(0,hm.__)("Yes","header-footer-elementor")),c().createElement(ct,{variant:"outline",onClick:function(){return x(!1)}},(0,hm.__)("Close","header-footer-elementor")))))))},Zh=cm("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);function Jh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Qh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qh(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){i=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(i)throw a}}}}function Qh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eg(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ng(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}function rg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function og(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rg(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ag=[{label:"",component:function(e){var t=e.setCurrentStep;return c().createElement("div",{className:"bg-background-primary border-[0.5px] items-start justify-center border-subtle rounded-xl shadow-sm p-8 flex flex-col"},c().createElement("div",{className:"px-1"},c().createElement("div",{className:"flex flex-col"},c().createElement("h1",{className:"text-text-primary m-0 mb-2 hfe-65-width",style:{fontSize:"30px",lineHeight:"1.3em"}},c().createElement("span",{className:"block"},(0,hm.__)("Welcome to UAE","header-footer-elementor"))),c().createElement("span",{className:"text-md font-medium m-0 mb-4",style:{lineHeight:"1.5em",color:"#111827"}},(0,hm.__)("Your Ultimate Elementor Addons to build modern Elementor Websites.","header-footer-elementor"))),c().createElement("iframe",{width:"500",height:"280",src:"https://www.youtube.com/embed/YqWd3VYlxcY?modestbranding=1&showinfo=0&rel=0&controls=1",frameBorder:"0",style:{borderRadius:"8px"},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),c().createElement("ul",{className:"list-none font-normal ",style:{fontSize:"0.9rem",lineHeight:"1.6em",paddingBottom:"0.5rem",color:"#111827"}},c().createElement("li",{className:"none ",style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",color:"#111827"}},c().createElement(sp,{color:"#111827",size:18}),(0,hm.__)("No bloat - disable unused widgets with one click","header-footer-elementor")),c().createElement("li",{className:"none ",style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",color:"#111827"}},c().createElement(sp,{color:"#111827",size:18}),(0,hm.__)("Design headers & footers exactly where you want them","header-footer-elementor")),c().createElement("li",{className:"none ",style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",color:"#111827"}},c().createElement(sp,{color:"#111827",size:18}),(0,hm.__)("Reliable support from experts when you need it","header-footer-elementor"))),c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginTop:"20px",marginBottom:"20px",borderColor:"#E5E7EB"}}),c().createElement(ct,{iconPosition:"right",variant:"primary",className:"bg-[#5C2EDE] hfe-remove-ring p-3 px-5 font-bold mt-2",style:{backgroundColor:"#5C2EDE",transition:"background-color 0.3s ease"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#5C2EDE"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="#5C2EDE"},onClick:function(){return t(2)}},(0,hm.__)("Let's Get Started","header-footer-elementor"))))}},{label:"",component:function(e){var t=e.setCurrentStep,n=s((0,i.useState)([]),2),r=n[0],o=n[1],a=s((0,i.useState)(!0),2),l=a[0],u=a[1],d=s((0,i.useState)(0),2),m=d[0],p=d[1],f=s((0,i.useState)(!1),2),g=f[0],y=f[1],v=s((0,i.useState)(!0),2),x=v[0],b=v[1],w=s((0,i.useState)({}),2),E=w[0],_=w[1],k=s((0,i.useState)({firstName:hfeSettingsData.user_fname?hfeSettingsData.user_fname:"",lastName:hfeSettingsData.user_lname?hfeSettingsData.user_lname:"",email:hfeSettingsData.user_email?hfeSettingsData.user_email:"",domain:hfeSettingsData.siteurl?hfeSettingsData.siteurl:""}),2),S=k[0],N=k[1],C=s((0,i.useState)((function(){return"true"===localStorage.getItem("uaeFormSubmitted")})),2),P=C[0],T=C[1],j=s((0,i.useState)({}),2),R=j[0],F=j[1],A=function(e,t){F((function(t){if(t[e]){t[e];var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,[e].map(ng));return n}return t})),N((function(n){return tg(tg({},n),{},h({},e,t))}))};(0,i.useEffect)((function(){b("yes"===hfeSettingsData.analytics_status);var e=function(){var e=cp(dp().mark((function e(){var t,n,r;return dp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.prev=1,e.next=4,$m()({path:"/hfe/v1/recommended-plugins",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}});case 4:t=e.sent,n=M(t),r=n.filter((function(e){return!e.is_installed&&"Activated"!==e.status&&"Installed"!==e.status})),o(r),y(0===r.length),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),console.error("Error fetching plugins:",e.t0);case 14:return e.prev=14,u(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])})));return function(){return e.apply(this,arguments)}}();e()}),[m]);var D=function(){var e=cp(dp().mark((function e(){var t,n;return dp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(t=!x),e.prev=2,e.next=5,fetch(hfe_admin_data.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"save_analytics_option",uae_usage_optin:t?"yes":"no",nonce:hfe_admin_data.nonce})});case 5:return n=e.sent,e.next=8,n.json();case 8:e.sent.success?(zf.success((0,hm.__)("Settings saved successfully!","header-footer-elementor")),hfeSettingsData.analytics_status=t?"yes":"no"):zf.error((0,hm.__)("Failed to save settings!","header-footer-elementor")),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),zf.error((0,hm.__)("Failed to save settings!","header-footer-elementor"));case 15:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}();function M(e){return Object.keys(e).map((function(t){return tg({path:t},e[t])}))}var L=function(e){_((function(t){return tg(tg({},t),{},h({},e.slug,tg(tg({},e),{},{selected:e.isChecked})))}))},O=function(){var e=cp(dp().mark((function e(){var t;return dp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==(t=Object.values(E).filter((function(e){return e.selected}))).length){e.next=3;break}return e.abrupt("return");case 3:setTimeout(cp(dp().mark((function e(){var n,r,o,a,s;return dp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Jh(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=21;break}return o=r.value,(a=new window.FormData).append("action","theme"===o.type?"hfe_recommended_theme_install":"hfe_recommended_plugin_install"),a.append("_ajax_nonce",hfe_admin_data.installer_nonce),a.append("slug",o.slug),e.prev=9,e.next=12,$m()({url:hfe_admin_data.ajax_url,method:"POST",body:a});case 12:(s=e.sent).success||"folder_exists"===s.errorCode||console.error("Failed to install ".concat(o.name,":"),s),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(9),console.error("Error installing ".concat(o.name,":"),e.t0);case 19:e.next=3;break;case 21:e.next=26;break;case 23:e.prev=23,e.t1=e.catch(1),n.e(e.t1);case 26:return e.prev=26,n.f(),e.finish(26);case 29:case"end":return e.stop()}}),e,null,[[1,23,26,29],[9,16]])}))),0);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=!g&&(l||r.length>0);return c().createElement(c().Fragment,null,c().createElement("style",null,"\n .uae-role-checkbox {\n position: relative;\n width: 30px;\n height: 30px;\n -webkit-appearance: none;\n appearance: none;\n border: 2px solid #d1d5db; /* gray-300 */\n border-radius: 4px;\n cursor: pointer;\n }\n\n .uae-role-checkbox:focus {\n outline: none;\n }\n\n .uae-role-checkbox:checked {\n background-color: #5C2EDE !important; /* brand-primary-600 */\n border-color: #0017E1;\n }\n\n .uae-role-checkbox:checked::after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: 4px;\n height: 8px;\n border-right: 2px solid #fff;\n border-bottom: 2px solid #fff;\n transform: translate(-50%, -60%) rotate(45deg);\n }\n\n\t\t\t\t\t.uae-error-field {\n\t\t\t\t\t\tborder-color: #dc3545 !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.uae-error-message {\n\t\t\t\t\t\tcolor: #dc3545;\n\t\t\t\t\t\tfont-size: 0.875rem;\n\t\t\t\t\t\tmargin-top: 0.25rem;\n\t\t\t\t\t}\n "),c().createElement("div",{className:"bg-background-primary border-[0.5px] items-start justify-center border-subtle p-4 rounded-xl shadow-sm mb-6 flex flex-col",style:{width:"42.625rem"}},I&&c().createElement("div",{className:"rounded-lg bg-white w-full"},c().createElement("div",{className:"flex flex-col items-start justify-between",style:{paddingTop:"1rem",paddingLeft:"1rem",paddingRight:"1rem"}},c().createElement("p",{className:"text-text-primary m-0 mb-2 hfe-65-width",style:{fontSize:"24px",lineHeight:"1.3em"}},(0,hm.__)("Recommended Essentials","header-footer-elementor")),c().createElement("span",{className:"text-md font-normal text-text-secondary m-0 mb-2",style:{lineHeight:"1.5em"}},(0,hm.__)("These free plugins add essential features to your website and help speed up your workflow. Select the plugins you want to install.","header-footer-elementor")),c().createElement("div",{className:"flex items-center gap-x-2 mr-7"})),c().createElement("div",{className:"flex flex-col rounded-lg",style:{backgroundColor:"white",paddingTop:"1rem",paddingLeft:"1rem",paddingRight:"1rem"}},l?c().createElement(nt,{align:"stretch",className:"gap-1 p-1 grid grid-cols-1 md:grid-cols-2",containerType:"grid",justify:"start"},Cm(Array(2)).map((function(e,t){return c().createElement(nt.Item,{key:t,alignSelf:"auto",style:{height:"150px"},className:"text-wrap rounded-md shadow-container-item bg-[#F9FAFB] p-4"},c().createElement("div",{className:"flex flex-col gap-6",style:{marginTop:"40px"}},c().createElement(Xm,{className:"w-12 h-2 rounded-md"}),c().createElement(Xm,{className:"w-16 h-2 rounded-md"}),c().createElement(Xm,{className:"w-12 h-2 rounded-md"})))}))):c().createElement(nt,{align:"stretch",className:"gap-1 p-1 grid grid-cols-1 md:grid-cols-1",containerType:"grid",justify:"start",style:{backgroundColor:"#F9FAFB"}},r.slice(0,3).map((function(e){return c().createElement(nt.Item,{key:e.slug,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-4"},c().createElement(Kh,{plugin:e,setUpdateCounter:p,onPluginSelect:L}))}))))),(!P||!I)&&c().createElement("div",{className:"px-5 pt-3 bg-white rounded-lg"},c().createElement("h3",{className:"text-base font-medium text-gray-900 ".concat(I?"":"text-xl mb-3")},(0,hm.__)("Get Important Notifications and Updates","header-footer-elementor")),c().createElement("div",{className:"flex flex-row items-start gap-4 mb-4"},c().createElement("div",{className:"flex flex-col flex-1"},c().createElement("label",{className:"text-sm font-medium text-gray-700 mb-2"},(0,hm.__)("First Name","header-footer-elementor")),c().createElement("input",{type:"text",name:"firstName",value:S.firstName,onChange:function(e){return A("firstName",e.target.value)},className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none hfe-remove-ring transition-colors ".concat(R.firstName?"uae-error-field":""),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",fontSize:"14px",boxShadow:"none"}}),R.firstName&&c().createElement("span",{className:"uae-error-message"},R.firstName)),c().createElement("div",{className:"flex flex-col flex-1"},c().createElement("label",{className:"text-sm font-medium text-gray-700 mb-2"},(0,hm.__)("Last Name","header-footer-elementor")),c().createElement("input",{type:"text",name:"lastName",value:S.lastName,onChange:function(e){return A("lastName",e.target.value)},className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none hfe-remove-ring transition-colors",style:{height:"48px",borderColor:"#e0e0e0",outline:"none",fontSize:"14px",boxShadow:"none"}}))),c().createElement("div",{className:"flex flex-row items-start gap-4 mb-4"},c().createElement("div",{className:"flex flex-col flex-1"},c().createElement("label",{className:"text-sm font-medium text-gray-700 mb-2"},(0,hm.__)("Email Address","header-footer-elementor")),c().createElement("input",{type:"email",name:"email",value:S.email,onChange:function(e){return A("email",e.target.value)},className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-purple-500 transition-colors ".concat(R.email?"uae-error-field":""),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",fontSize:"14px",boxShadow:"none"}}),R.email&&c().createElement("span",{className:"uae-error-message"},R.email))),c().createElement("div",{className:"flex items-start gap-1"},c().createElement("input",{type:"checkbox",id:"notifications-checkbox",checked:x,onChange:D,className:"uae-role-checkbox mt-1 h-4 w-4 text-[#5C2EDE] focus:ring-[#5C2EDE] border-gray-300 rounded"}),c().createElement("label",{htmlFor:"notifications-checkbox",className:"text-sm text-gray-600 leading-relaxed"},(0,hm.__)("Notify me about critical updates and new features and help us improve by sharing how you use the plugin. ","header-footer-elementor"),c().createElement("a",{href:"https://store.brainstormforce.com/privacy-policy/?utm_source=uae_onboarding&utm_medium=notification_updates&utm_campaign=privacy_policy",className:"text-sm text-text-primary",target:"_blank"},(0,hm.__)(" Privacy Policy","header-footer-elementor"))))),c().createElement("div",{className:"flex w-full justify-between items-center hfe-onboarding-bottom",style:{paddingLeft:"8px",paddingRight:"8px",paddingTop:"30px"}},c().createElement(ct,{className:"flex items-center gap-1 hfe-remove-ring",icon:c().createElement(Zh,null),variant:"outline",onClick:function(){return t(1)}},(0,hm.__)("Back","header-footer-elementor")),c().createElement("div",{className:"flex justify-between gap-3 items-center",style:{paddingRight:"1.875rem"}},c().createElement(ct,{className:"hfe-remove-ring text-text-tertiary",variant:"ghost",onClick:function(){return t(3)}}," ",(0,hm.__)("Skip","header-footer-elementor")),c().createElement(ct,{className:"flex items-center gap-1 hfe-remove-ring",icon:c().createElement(_h,null),iconPosition:"right",style:{backgroundColor:"#5C2EDE",transition:"background-color 0.3s ease",padding:"12px"},onClick:function(){if("true"===localStorage.getItem("uaeFormSubmitted")&&I)r.length>0&&O(),t(3);else{var e,n,o={};if(null!==(e=S.email)&&void 0!==e&&e.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S.email.trim())||(o.email=(0,hm.__)("Please enter a valid email address","header-footer-elementor")):o.email=(0,hm.__)("This field is required","header-footer-elementor"),null!==(n=S.firstName)&&void 0!==n&&n.trim()||(o.firstName=(0,hm.__)("This field is required","header-footer-elementor")),Object.keys(o).length>0)return void F(o);F({}),r.length>0&&O(),function(e,n,r,o,a){if(e){var s=(new Date).toISOString().split("T")[0],i=a||window.location.hostname,l=new URLSearchParams({email:e,date:s,fname:n||"",lname:r||"",isActive:o?"yes":"no"});o&&l.append("domain",i),fetch("/wp-json/hfe/v1/email-webhook/?".concat(l.toString()),{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}}).then((function(e){if(!e.ok)throw new Error("HTTP error! Status: ".concat(e.status));return e.json()})).then((function(e){"success"===e.message||console.warn("Unexpected webhook response:",e),t(3)})).catch((function(e){console.error("Error calling webhook:",e),t(3)}))}else t(3)}(S.email,S.firstName,S.lastName,x,S.domain),localStorage.setItem("uaeFormSubmitted","true"),T(!0),t(3)}}},(0,hm.__)("Next","header-footer-elementor"))))))}},{label:"",component:function(e){var t=e.setCurrentStep,n=s((0,i.useState)({headerFooterBuilder:!1,megaMenu:!1,modalPopup:!1,wooCommerceWidgets:!1,premiumWidgets:!1}),2),r=n[0],o=n[1],a=function(e){o((function(t){return og(og({},t),{},h({},e,!t[e]))}))},l=(r.headerFooterBuilder||r.megaMenu,r.modalPopup||r.wooCommerceWidgets||r.premiumWidgets);return c().createElement(c().Fragment,null,c().createElement("style",null,"\n .uae-role-checkbox {\n position: relative;\n width: 30px;\n height: 30px;\n -webkit-appearance: none;\n appearance: none;\n border: 2px solid #d1d5db; /* gray-300 */\n border-radius: 4px;\n cursor: pointer;\n outline: none;\n }\n\n .uae-role-checkbox:focus {\n outline: none;\n box-shadow: none;\n }\n\n .uae-role-checkbox:checked {\n background-color: #5C2EDE;\n border-color: #0017E1;\n outline: none;\n }\n\n .uae-role-checkbox:checked::after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: 4px;\n height: 8px;\n border-right: 2px solid #fff;\n border-bottom: 2px solid #fff;\n transform: translate(-50%, -60%) rotate(45deg);\n }\n "),c().createElement("div",{className:"box-border bg-background-primary p-6 rounded-lg",style:{width:"42.625rem"}},c().createElement("p",{className:"text-text-primary m-0 mb-2 hfe-65-width",style:{fontSize:"24px",lineHeight:"1.3em"}},(0,hm.__)("Select Your Features","header-footer-elementor")),c().createElement("span",{className:"text-sm font-normal text-text-secondary",style:{lineHeight:"1.5em"}},(0,hm.__)("Unlock more design control, faster setup, and powerful customization so you can build a better website, effortlessly.","header-footer-elementor")),c().createElement("div",{className:"relative",style:{marginTop:"20px"}},c().createElement("div",{className:"flex items-center justify-between gap-3 mt-5 cursor-pointer",onClick:function(e){a("headerFooterBuilder")}},c().createElement("div",{className:"flex flex-col space-y-1 flex-1"},c().createElement("div",{className:"flex items-center justify-start gap-1"},c().createElement("div",{className:"text-sm font-normal m-0"},(0,hm.__)("Header & Footer Builder","header-footer-elementor")),c().createElement(rm,{label:(0,hm.__)("Free","header-footer-elementor"),size:"xs",type:"pill",variant:"green"})),c().createElement("div",{className:"text-sm font-normal m-0",style:{maxWidth:"90%",color:"#9CA3AF"}},(0,hm.sprintf)((0,hm.__)("Assign headers and footers to specific pages or post types. This gives users complete layout control, something typically locked behind Pro plugins.","header-footer-elementor")))),c().createElement("div",{className:"flex-shrink-0"},c().createElement("input",{type:"checkbox",checked:r.headerFooterBuilder,onClick:function(e){return e.stopPropagation()},onChange:function(){return a("headerFooterBuilder")},className:"uae-role-checkbox w-5 h-5 outline-none",style:{accentColor:"#240064",width:"18px",height:"18px"}})))),c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginTop:"10px",marginBottom:"10px",borderColor:"#E5E7EB"}}),c().createElement("div",{className:"flex items-center justify-between gap-3 cursor-pointer",onClick:function(){return a("megaMenu")}},c().createElement("div",{className:"flex flex-col space-y-1 flex-1"},c().createElement("div",{className:"flex items-center justify-start gap-1"},c().createElement("div",{className:"text-sm font-normal m-0"},(0,hm.__)("Mega Menu & Navigation Widget","header-footer-elementor")),c().createElement(rm,{label:(0,hm.__)("Free","header-footer-elementor"),size:"xs",type:"pill",variant:"green"})),c().createElement("div",{style:{color:"#9CA3AF"},className:"text-sm font-normal m-0"},(0,hm.sprintf)((0,hm.__)("Save hours by copying Elementor sections, widgets, or pages from one website to another no need to rebuild layouts from scratch.","header-footer-elementor")))),c().createElement("div",{className:"flex-shrink-0"},c().createElement("input",{type:"checkbox",checked:r.megaMenu,onClick:function(e){return e.stopPropagation()},onChange:function(){return a("megaMenu")},className:"uae-role-checkbox w-5 h-5",style:{accentColor:"#240064",width:"18px",height:"18px"}}))),c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginTop:"10px",marginBottom:"10px",borderColor:"#E5E7EB"}}),c().createElement("div",{className:"flex items-center justify-between gap-3 cursor-pointer",onClick:function(){return a("modalPopup")}},c().createElement("div",{className:"flex flex-col space-y-1 flex-1"},c().createElement("div",{className:"flex items-center justify-start gap-1"},c().createElement("div",{className:"text-sm font-normal m-0"},(0,hm.__)("Modal Popup","header-footer-elementor")),c().createElement(rm,{label:(0,hm.__)("Pro","header-footer-elementor"),size:"xs",type:"pill",variant:"inverse"})),c().createElement("div",{style:{color:"#9CA3AF"},className:"text-sm font-normal m-0"},(0,hm.sprintf)((0,hm.__)("Design eye-catching popups directly in Elementor collect leads, display promotions, or show messages without needing a separate popup plugin.","header-footer-elementor")))),c().createElement("div",{className:"flex-shrink-0"},c().createElement("input",{type:"checkbox",checked:r.modalPopup,onClick:function(e){return e.stopPropagation()},onChange:function(){return a("modalPopup")},className:"uae-role-checkbox w-5 h-5",style:{accentColor:"#240064",width:"18px",height:"18px"}}))),c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginTop:"10px",marginBottom:"10px",borderColor:"#E5E7EB"}}),c().createElement("div",{className:"flex items-center justify-between gap-3 cursor-pointer",onClick:function(){return a("wooCommerceWidgets")}},c().createElement("div",{className:"flex flex-col space-y-1 flex-1"},c().createElement("div",{className:"flex items-center justify-start gap-1"},c().createElement("div",{className:"text-sm font-normal m-0"},(0,hm.__)("WooCommerce Widgets","header-footer-elementor")),c().createElement(rm,{label:(0,hm.__)("Pro","header-footer-elementor"),size:"xs",type:"pill",variant:"inverse"})),c().createElement("div",{style:{color:"#9CA3AF"},className:"text-sm font-normal m-0"},(0,hm.__)("Design eye-catching popups directly in Elementor collect leads, display promotions, or show messages without needing a separate popup plugin.","header-footer-elementor"))),c().createElement("div",{className:"flex-shrink-0"},c().createElement("input",{type:"checkbox",checked:r.wooCommerceWidgets,onClick:function(e){return e.stopPropagation()},onChange:function(){return a("wooCommerceWidgets")},className:"uae-role-checkbox w-5 h-5",style:{accentColor:"#240064",width:"18px",height:"18px"}}))),c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginTop:"10px",marginBottom:"10px",borderColor:"#E5E7EB"}}),c().createElement("div",{className:"flex items-center justify-between gap-3 cursor-pointer",onClick:function(){return a("premiumWidgets")}},c().createElement("div",{className:"flex flex-col space-y-1 flex-1"},c().createElement("div",{className:"flex items-center justify-start gap-1"},c().createElement("div",{className:"text-sm font-normal m-0"},(0,hm.__)("50+ Premium Widgets & 200+ Templates","header-footer-elementor")),c().createElement(rm,{label:(0,hm.__)("Pro","header-footer-elementor"),size:"xs",type:"pill",variant:"inverse"})),c().createElement("div",{style:{color:"#9CA3AF"},className:"text-sm font-normal m-0"},(0,hm.__)("Design eye-catching popups directly in Elementor collect leads, display promotions, or show messages without needing a separate popup plugin.","header-footer-elementor"))),c().createElement("div",{className:"flex-shrink-0"},c().createElement("input",{type:"checkbox",checked:r.premiumWidgets,onClick:function(e){return e.stopPropagation()},onChange:function(){return a("premiumWidgets")},className:"uae-role-checkbox w-5 h-5",style:{accentColor:"#240064",width:"18px",height:"18px"}}))),c().createElement("div",{className:"flex justify-between items-center px-2 hfe-onboarding-bottom",style:{paddingTop:"30px"}},c().createElement(ct,{className:"flex items-center gap-1 outline-none hfe-remove-ring",icon:c().createElement(Zh,null),variant:"outline",onClick:function(){return t(2)}},(0,hm.__)("Back","header-footer-elementor")),c().createElement("div",{className:"flex justify-start text-text-tertiary items-center gap-3"},c().createElement(ct,{className:"hfe-remove-ring text-text-tertiary",variant:"ghost",onClick:function(){return t(4)}}," ",(0,hm.__)("Skip","header-footer-elementor")),l?c().createElement(ct,{className:"flex items-center gap-1 hfe-remove-ring",icon:c().createElement(_h,null),iconPosition:"right",style:{backgroundColor:"#5C2EDE",transition:"background-color 0.3s ease",padding:"12px"},onClick:function(){window.open("https://ultimateelementor.com/pricing/?utm_source=wp-admin&utm_medium=onboarding&utm_campaign=uae-upgrade","_blank")}},(0,hm.__)("Upgrade","header-footer-elementor")):c().createElement(ct,{className:"flex items-center gap-1 hfe-remove-ring",icon:c().createElement(_h,null),iconPosition:"right",style:{backgroundColor:"#5C2EDE",transition:"background-color 0.3s ease",padding:"12px"},onClick:function(){return t(4)}},(0,hm.__)("Next","header-footer-elementor")))),l&&c().createElement("div",{className:"mt-4 p-3 rounded-lg border border-gray-400 bg-gray-50",style:{backgroundColor:"#F9FAFB",borderColor:"#E5E7EB",marginTop:"16px"}},c().createElement("div",{className:"text-sm border border-gray-400 text-gray-700 font-medium"},(0,hm.__)("You've picked Pro features upgrade to start using them.","header-footer-elementor")))))}},{label:"",component:function(e){e.setCurrentStep;var t=s((0,i.useState)(!1),2),n=t[0],r=t[1],o=s((0,i.useState)(""),2),a=o[0],l=o[1],u=s((0,i.useState)(""),2),d=u[0],m=u[1],p=s((0,i.useState)(""),2),f=p[0],h=p[1],g=s((0,i.useState)(!0),2),y=(g[0],g[1]),v=s((0,i.useState)(""),2),x=v[0],b=v[1],w=s((0,i.useState)(""),2),E=w[0],_=w[1],k=s((0,i.useState)(!1),2),S=k[0],N=k[1];(0,i.useEffect)((function(){l(hfeSettingsData.user_email),y("yes"===hfeSettingsData.analytics_status),history.pushState(null,"",window.location.href);var e=function(e){e.preventDefault(),localStorage.setItem("currentStep","2"),window.location.reload()};return window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}),[hfeSettingsData.user_email]);return c().createElement("div",{className:"bg-background-primary border-[0.5px] border-subtle rounded-xl shadow-sm mb-6 p-8",style:{width:"672px"}},c().createElement("div",{className:"flex items-start hfe-display-flex"},c().createElement("div",{className:"flex flex-col items-start",style:{paddingRight:"35px"}},c().createElement("h1",{className:"text-text-primary m-0 mb-2",style:{fontSize:"1.4rem",lineHeight:"1.3em"}},(0,hm.__)("You’re All Set to Start Creating! 🚀","header-footer-elementor")),c().createElement("span",{className:"text-sm font-normal text-text-tertiary m-0 mb-4 ",style:{lineHeight:"1.6em"}},(0,hm.__)("Ultimate Addons is ready to supercharge your Elementor workflow! Build faster, cleaner, and more creatively — with complete control over your site.","header-footer-elementor")),c().createElement("span",{className:"font-semibold m-0 pt-2"},(0,hm.__)("What You Can Do Next:","header-footer-elementor")),c().createElement("ul",{className:"font-normal",style:{fontSize:"0.9rem",lineHeight:"1.6em",color:"#111827"}},c().createElement("li",{className:"font-normal",style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",color:"#111827"}},c().createElement(sp,{color:"#111827",size:18}),(0,hm.__)("Build a custom header","header-footer-elementor")),c().createElement("li",{className:"font-normal ",style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",color:"#111827"}},c().createElement(sp,{color:"#111827",size:18}),(0,hm.__)("Design your site footer","header-footer-elementor")),c().createElement("li",{className:"font-normal",style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",color:"#111827"}},c().createElement(sp,{color:"#111827",size:18}),(0,hm.__)("Create a new page","header-footer-elementor"))),c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginBottom:"20px",borderColor:"#E5E7EB"}})),c().createElement("div",{className:"",style:{textAlign:"end"}},c().createElement("img",{alt:"Build",className:"w-full object-contain",style:{height:"130px",width:"160px"},src:"".concat(hfeSettingsData.create_new),loading:"lazy"}))),c().createElement("div",{className:"flex flex-row pt-2 items-center justify-between gap-1 pb-4 hfe-display-flex"},c().createElement("div",{className:"flex items-center justify-start gap-3"},c().createElement(ct,{iconPosition:"right",variant:"outline",className:"hfe-remove-ring text-sm font-semibold",style:{transition:"background-color 0.3s ease"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor=""},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor=""},onClick:function(){window.open(hfeSettingsData.hfe_post_url,"_self")}},(0,hm.__)("Create New Header","header-footer-elementor")),c().createElement(ct,{iconPosition:"right",variant:"outline",className:"hfe-remove-ring text-sm font-semibold",style:{transition:"background-color 0.3s ease"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor=""},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor=""},onClick:function(){window.open(hfeSettingsData.hfe_post_url,"_self")}},(0,hm.__)("Create New Footer","header-footer-elementor"))),c().createElement(ct,{iconPosition:"right",variant:"outline",className:"hfe-remove-ring text-sm font-semibold",style:{color:"",borderColor:""},onMouseEnter:function(e){return e.currentTarget.style.color="#000000"},onMouseLeave:function(e){return(e.currentTarget.style.color="")&&(e.currentTarget.style.borderColor="")},onClick:function(){window.open(hfeSettingsData.elementor_page_url,"_blank")}},(0,hm.__)("Create New Page","header-footer-elementor"))),c().createElement(gp,{design:"simple",open:n,setOpen:r},c().createElement(gp.Backdrop,null),c().createElement(gp.Panel,null,c().createElement(gp.Header,{style:{padding:"30px",marginBottom:"0.5rem"}},c().createElement("div",{className:"flex items-center justify-between"},c().createElement("div",{className:"flex items-center justify-center"},c().createElement(gp.Title,{style:{fontSize:"1.6rem",width:"80%",lineHeight:"1.3em"}},(0,hm.__)("We have a special Reward just for you! 🎁","header-footer-elementor")),c().createElement(ct,{icon:c().createElement(Uh,{className:"size-10"}),iconPosition:"right",size:"md",variant:"ghost",className:"hfe-remove-ring self-start",onClick:function(){return r(!1)},style:{marginLeft:"60px",marginBottom:"20px"}}))),c().createElement(gp.Description,{style:{width:"90%",color:"#64748B",marginTop:"10px"}},(0,hm.__)("Enter your details to get special offer that we have for you and stay updated on UAE’s latest news and updates.","header-footer-elementor")),c().createElement("div",{className:"flex w-full",style:{marginTop:"15px"}},c().createElement("div",{className:"block",style:{width:"50%",paddingRight:"13px"}},c().createElement("input",{type:"text",placeholder:(0,hm.__)("First Name","header-footer-elementor"),value:d,className:"h-12 border border-subtle px-2 w-full",style:{borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"5px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},onChange:function(e){e&&e.target&&(_(""),m(e.target.value))}}),E&&c().createElement("span",{className:"absolute color-text-danger text-xs text-sm font-normal",style:{color:"#FF0000",marginTop:"0px"}},E)),c().createElement("div",{className:"block",style:{width:"50%"}},c().createElement("input",{type:"text",placeholder:(0,hm.__)("Last Name","header-footer-elementor"),value:f,className:"h-12 border border-subtle px-2 w-full",style:{borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"5px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},onChange:function(e){e&&e.target&&h(e.target.value)}}))),c().createElement("input",{type:"email",placeholder:(0,hm.__)("Your Email Address","header-footer-elementor"),value:a,className:"h-12 border border-subtle px-2 w-full",style:{borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"20px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},onChange:function(e){e&&e.target&&(b(""),l(e.target.value))}}),x&&c().createElement("span",{className:"absolute color-text-danger text-xs text-sm font-normal",style:{color:"#FF0000",marginTop:"0px"}},x),c().createElement(ct,{icon:S?c().createElement(LoaderCircle,{className:"animate-spin"}):null,iconPosition:"right",variant:"primary",className:"bg-[#6005FF] hfe-remove-ring w-full mt-2",disabled:S,style:{backgroundColor:"#6005FF",transition:"background-color 0.3s ease",marginTop:"20px"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#4B00CC"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="#6005FF"},onClick:function(){var e=!1;d.trim()?_(""):(_((0,hm.__)("This field is required","header-footer-elementor")),e=!0),/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a)?b(""):(b((0,hm.__)("Entered email address is invalid!","header-footer-elementor")),e=!0),e||(b(""),_(""),N(!0),function(e,t,n){var r=(new Date).toISOString().split("T")[0],o=new URLSearchParams({email:e,date:r,fname:t,lname:n});fetch("/wp-json/hfe/v1/email-webhook/?".concat(o.toString()),{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}}).then((function(e){if(!e.ok)throw new Error("HTTP error! Status: ".concat(e.status));return e.json()})).then((function(e){"success"===e.message?(N(!1),window.location.href=hfeSettingsData.onboarding_success_url):(N(!1),console.warn("Unexpected webhook response:",e))})).catch((function(e){console.error("Error calling webhook:",e)}))}(a,d,f))}},(0,hm.__)("Submit","header-footer-elementor"))))))}}],sg=ag.slice(0,4);const ig=function(){var e,t=s(c().useState((function(){var e=localStorage.getItem("currentStep");return e?parseInt(e,10):1})),2),n=t[0],r=t[1];(0,i.useEffect)((function(){localStorage.setItem("currentStep",n)}),[n]),(0,i.useEffect)((function(){var e=setTimeout((function(){localStorage.removeItem("currentStep")}),18e4);return function(){return clearTimeout(e)}}),[]);var o=null===(e=ag[n-1])||void 0===e?void 0:e.component;return c().createElement("div",null,c().createElement("div",{className:"w-full"},c().createElement("div",{className:"flex flex-col items-center justify-center",style:{marginTop:"-38px",marginBottom:"24px"}},c().createElement(ot,{className:"bg-none",style:{background:"none"}},c().createElement(ot.Left,null,c().createElement(ot.Item,null,hfeSettingsData.icon_svg&&c().createElement(D,{to:gm.dashboard.path},c().createElement("img",{src:"".concat(hfeSettingsData.icon_new),alt:"Logo",className:"cursor-pointer",style:{height:"35px"}})))),c().createElement(ot.Middle,null,c().createElement(ot.Item,null,c().createElement(Yh,{currentStep:Math.min(n,sg.length),className:"uae-steps",variant:"number",completedVariant:"number"},sg.map((function(e,t){return c().createElement(Yh.Step,{key:t,className:"font-bold",labelText:e.label,size:"md"})}))))),c().createElement(ot.Right,null,c().createElement(ot.Item,null,c().createElement(D,{className:"hfe-remove-ring",to:gm.dashboard.path},c().createElement("div",{className:"flex items-center cursor-pointer justify-center gap-1"},c().createElement("p",{style:{fontSize:"0.9rem",color:"#111827"}},(0,hm.__)("Exit Guided Setup","header-footer-elementor")),c().createElement(ct,{icon:c().createElement(Uh,{className:"size-4"}),iconPosition:"right",size:"xs",variant:"ghost",className:"hfe-remove-ring"})))))))),c().createElement("div",{className:"flex items-center justify-center"},o&&c().createElement(o,{currentStep:n,setCurrentStep:r})))},lg=function(){return(0,i.useEffect)((function(){var e=document.body;return e.classList.add("hfe-onboarding-fullscreen"),function(){e.classList.remove("hfe-onboarding-fullscreen")}}),[]),c().createElement(c().Fragment,null,c().createElement(ig,null))},cg=function(){var e;return React.createElement(L,{routes:gm,defaultRoute:null==gm||null===(e=gm.dashboard)||void 0===e?void 0:e.path},React.createElement(T,{path:gm.dashboard.path},React.createElement(Rp,null)),React.createElement(T,{path:gm.onboarding.path},React.createElement(lg,null)),React.createElement(T,{path:gm.widgets.path},React.createElement(Ip,null)),React.createElement(T,{path:gm.templates.path},React.createElement(Vp,null)),React.createElement(T,{path:gm.learn.path},React.createElement(Vh,null)),React.createElement(T,{path:gm.settings.path},React.createElement(Zf,null)),React.createElement(T,{path:gm.upgrade.path},React.createElement(Hh,null)))},ug=Id("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),dg=({variant:e="primary",size:t="md",icon:n=null,className:r=""})=>{const o={primary:"text-brand-primary-600",secondary:"text-background-primary"}[e],a={sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6",xl:"[&>svg]:size-8"}[t];return(0,O.jsx)("span",{className:Ae("flex",a,o,r),children:n||(0,O.jsx)(ug,{className:"animate-spin shrink-0"})})},mg=function(){var e=s((0,i.useState)(!1),2),t=e[0],n=e[1],r=s((0,i.useState)(!0),2);return r[0],r[1],window.onhashchange=function(){window.scrollTo(0,0)},(0,i.useEffect)((function(){setTimeout((function(){n(!0)}),1e3)}),[]),t?React.createElement("div",{className:"app-container font-figtree"},React.createElement(cg,null)):React.createElement("div",{className:"loading-spinner flex items-center justify-center h-screen",style:{background:"#F9FAFB"}},React.createElement(dg,{icon:null,size:"lg",variant:"primary"}))};n()((function(){var t=document.getElementById("hfe-settings-app");if(t&&(0,e.H)(t).render(React.createElement(mg,null)),"yes"===hfe_admin_data.show_view_all||window.location.href===hfeSettingsData.header_footer_builder||"yes"===hfeSettingsData.is_hfe_post){var n=document.getElementById("hfe-admin-top-bar-root");if(n){var r=document.createElement("div");r.id="hfe-settings-app",n.appendChild(r),(0,e.H)(r).render(React.createElement(Nm,null))}}}))})()})();
//# sourceMappingURL=main.js.map