| Server IP : 146.59.209.152 / Your IP : 216.73.217.99 Web Server : Apache System : Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : monpetu ( 144298) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/monpetu/www/ipprint/wp-content/plugins/modern-cart/admin-core/assets/build/ |
Upload File : |
(()=>{var e,t,n={2:(e,t,n)=>{var r=n(2199),o=n(4664),i=n(5950);e.exports=function(e){return r(e,i,o)}},79:(e,t,n)=>{var r=n(3702),o=n(80),i=n(4739),s=n(8655),a=n(1175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=s,l.prototype.set=a,e.exports=l},80:(e,t,n)=>{var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},104:(e,t,n)=>{var r=n(3661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},181:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},270:(e,t,n)=>{var r=n(7068),o=n(346);e.exports=function e(t,n,i,s,a){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,s,e,a))}},289:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){void 0===n&&(n={});for(var r=[],o="function"==typeof n.replace,c=n.transform||s.returnFirstArg,u=n.library||a,d=u.cloneElement,p=u.createElement,f=u.isValidElement,m=t.length,h=0;h<m;h++){var g=t[h];if(o){var v=n.replace(g,h);if(f(v)){m>1&&(v=d(v,{key:v.key||h})),r.push(c(v,g,h));continue}}if("text"!==g.type){var y=g,b={};l(y)?((0,s.setStyleProp)(y.attribs.style,y.attribs),b=y.attribs):y.attribs&&(b=(0,i.default)(y.attribs,y.name));var x=void 0;switch(g.type){case"script":case"style":g.children[0]&&(b.dangerouslySetInnerHTML={__html:g.children[0].data});break;case"tag":"textarea"===g.name&&g.children[0]?b.defaultValue=g.children[0].data:g.children&&g.children.length&&(x=e(g.children,n));break;default:continue}m>1&&(b.key=h),r.push(c(p(g.name,b,x),g,h))}else{var w=!g.data.trim().length;if(w&&g.parent&&!(0,s.canTextBeChildOfNode)(g.parent))continue;if(n.trim&&w)continue;r.push(c(g.data,g,h))}}return 1===r.length?r[0]:r};var o=n(1609),i=r(n(840)),s=n(4958),a={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function l(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,s.isCustomComponent)(e.name,e.attribs)}},317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},442:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,s.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||l),t):[]};var o=r(n(2471));t.htmlToDOM=o.default;var i=r(n(840));t.attributesToProps=i.default;var s=r(n(308));t.domToReact=s.default;var a=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var l={lowerCaseAttributeNames:!1}},583:(e,t,n)=>{var r=n(7237),o=n(7255),i=n(8586),s=n(7797);e.exports=function(e){return i(e)?r(s(e)):o(e)}},631:(e,t,n)=>{var r=n(8077),o=n(9326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},641:(e,t,n)=>{var r=n(6649),o=n(5950);e.exports=function(e,t){return e&&r(e,t,o)}},659:(e,t,n)=>{var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[a]=n:delete e[a]),o}},689:(e,t,n)=>{var r=n(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,s,a){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:o.call(t,p)))return!1}var f=a.get(e),m=a.get(t);if(f&&m)return f==t&&m==e;var h=!0;a.set(e,t),a.set(t,e);for(var g=l;++d<u;){var v=e[p=c[d]],y=t[p];if(i)var b=l?i(y,v,p,t,e,a):i(v,y,p,e,t,a);if(!(void 0===b?v===y||s(v,y,n,i,a):b)){h=!1;break}g||(g="constructor"==p)}if(h&&!g){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(h=!1)}return a.delete(e),a.delete(t),h}},695:(e,t,n)=>{var r=n(8096),o=n(2428),i=n(6449),s=n(3656),a=n(361),l=n(7167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&s(e),p=!n&&!u&&!d&&l(e),f=n||u||d||p,m=f?r(e.length,String):[],h=m.length;for(var g in e)!t&&!c.call(e,g)||f&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,h))||m.push(g);return m}},756:(e,t,n)=>{var r=n(3805);e.exports=function(e){return e==e&&!r(e)}},776:(e,t,n)=>{var r=n(756),o=n(5950);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],s=e[i];t[n]=[i,s,r(s)]}return t}},840:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,r.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=l(p);if(f){var m=(0,r.getPropertyInfo)(f);switch(i.includes(f)&&s.includes(t)&&!c&&(f=l("default"+p)),n[f]=d,m&&m.type){case r.BOOLEAN:n[f]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,o.setStyleProp)(e.style,n),n};var r=n(4210),o=n(4958),i=["checked","value"],s=["input","select","textarea"],a={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}},909:(e,t,n)=>{var r=n(641),o=n(8329)(r);e.exports=o},938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},945:(e,t,n)=>{var r=n(79),o=n(8223),i=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},1020:(e,t,n)=>{"use strict";var r=n(1609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},1042:(e,t,n)=>{var r=n(6110)(Object,"create");e.exports=r},1133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var o=r(n(9788))},1141:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),s=n(6957);o(n(6957),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new s.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},1175:(e,t,n)=>{var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},1331:(e,t,n)=>{var r=n(2552),o=n(8879),i=n(346),s=Function.prototype,a=Object.prototype,l=s.toString,c=a.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},1380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1420:(e,t,n)=>{var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},1549:(e,t,n)=>{var r=n(2032),o=n(3862),i=n(6721),s=n(2749),a=n(5749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=s,l.prototype.set=a,e.exports=l},1609:e=>{"use strict";e.exports=window.React},1769:(e,t,n)=>{var r=n(6449),o=n(8586),i=n(1802),s=n(3222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(s(e))}},1791:(e,t,n)=>{var r=n(6547),o=n(3360);e.exports=function(e,t,n,i){var s=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var c=t[a],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),s?o(n,c,u):r(n,c,u)}return n}},1799:(e,t,n)=>{var r=n(7217),o=n(270);e.exports=function(e,t,n,i){var s=n.length,a=s,l=!i;if(null==e)return!a;for(e=Object(e);s--;){var c=n[s];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<a;){var u=(c=n[s])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var f=new r;if(i)var m=i(d,p,u,e,t,f);if(!(void 0===m?o(p,d,3,i,f):m))return!1}}return!0}},1802:(e,t,n)=>{var r=n(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=s},1873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},1882:(e,t,n)=>{var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1961:(e,t,n)=>{var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},1986:(e,t,n)=>{var r=n(1873),o=n(7828),i=n(5288),s=n(5911),a=n(317),l=n(4247),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=a;case"[object Set]":var m=1&r;if(f||(f=l),e.size!=t.size&&!m)return!1;var h=p.get(e);if(h)return h==t;r|=2,p.set(e,t);var g=s(f(e),f(t),r,c,d,p);return p.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},2032:(e,t,n)=>{var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},2199:(e,t,n)=>{var r=n(4528),o=n(6449);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},2224:(e,t,n)=>{var r=n(104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},2271:(e,t,n)=>{var r=n(1791),o=n(4664);e.exports=function(e,t){return r(e,o(e),t)}},2428:(e,t,n)=>{var r=n(7534),o=n(346),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},2471:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(s),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)};var o=r(n(5496)),i=n(7731),s=/<(![a-zA-Z\s]+)>/},2552:(e,t,n)=>{var r=n(1873),o=n(659),i=n(9350),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?o(e):i(e)}},2651:(e,t,n)=>{var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},2693:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2749:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},2804:(e,t,n)=>{var r=n(6110)(n(9325),"Promise");e.exports=r},2903:(e,t,n)=>{var r=n(3805),o=n(5527),i=n(181),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}},2949:(e,t,n)=>{var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},3007:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},3040:(e,t,n)=>{var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case h:case l:return e;default:return t}}case o:return t}}}function E(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||w(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},3201:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},3215:(e,t,n)=>{var r=n(641),o=n(4066);e.exports=function(e,t){return e&&r(e,o(t))}},3221:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),s=r(t),a=s.length;a--;){var l=s[e?a:++o];if(!1===n(i[l],l,i))break}return t}}},3222:(e,t,n)=>{var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},3243:(e,t,n)=>{var r=n(6110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},3290:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,s=i&&i.exports===o?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}},3345:e=>{e.exports=function(){return[]}},3349:(e,t,n)=>{var r=n(2199),o=n(6375),i=n(7241);e.exports=function(e){return r(e,i,o)}},3360:(e,t,n)=>{var r=n(3243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},3488:e=>{e.exports=function(e){return e}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},3650:(e,t,n)=>{var r=n(4335)(Object.keys,Object);e.exports=r},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=n(9935),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,a=s&&s.exports===i?r.Buffer:void 0,l=(a?a.isBuffer:void 0)||o;e.exports=l},3661:(e,t,n)=>{var r=n(3040),o=n(7670),i=n(289),s=n(4509),a=n(2949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=s,l.prototype.set=a,e.exports=l},3663:(e,t,n)=>{var r=n(1799),o=n(776),i=n(7197);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},3729:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},3736:(e,t,n)=>{var r=n(1873),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3838:(e,t,n)=>{var r=n(1791),o=n(7241);e.exports=function(e,t){return e&&r(t,o(t),e)}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},4066:(e,t,n)=>{var r=n(3488);e.exports=function(e){return"function"==typeof e?e:r}},4146:(e,t,n)=>{"use strict";var r=n(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=f(n);o&&o!==m&&e(t,o,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=l(t),h=l(n),g=0;g<s.length;++g){var v=s[g];if(!(i[v]||r&&r[v]||h&&h[v]||a&&a[v])){var y=p(n,v);try{c(t,v,y)}catch(e){}}}}return t}},4210:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new r(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new r(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new r(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new r(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new r(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,s=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,s);o[t]=new r(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,s);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,s);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:a,SAME:l,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===l?e[t]=t:n===a?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},4248:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},4335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4394:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},4509:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},4528:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},4664:(e,t,n)=>{var r=n(9770),o=n(3345),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return i.call(e,t)})))}:o;e.exports=a},4733:(e,t,n)=>{var r=n(1791),o=n(5950);e.exports=function(e,t){return e&&r(t,o(t),e)}},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},4840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},4894:(e,t,n)=>{var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},4901:(e,t,n)=>{var r=n(2552),o=n(294),i=n(346),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!s[r(e)]}},4912:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for;n&&Symbol.for("react.element"),n&&Symbol.for("react.portal"),n&&Symbol.for("react.fragment"),n&&Symbol.for("react.strict_mode"),n&&Symbol.for("react.profiler"),n&&Symbol.for("react.provider"),n&&Symbol.for("react.context"),n&&Symbol.for("react.async_mode"),n&&Symbol.for("react.concurrent_mode"),n&&Symbol.for("react.forward_ref"),n&&Symbol.for("react.suspense"),n&&Symbol.for("react.suspense_list"),n&&Symbol.for("react.memo"),n&&Symbol.for("react.lazy"),n&&Symbol.for("react.block"),n&&Symbol.for("react.fundamental"),n&&Symbol.for("react.responder"),n&&Symbol.for("react.scope")},4932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},4958:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!s.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,a)}catch(e){t.style={}}else t.style={}};var o=n(1609),i=r(n(5229)),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),a={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},5015:(e,t,n)=>{var r=n(2552),o=n(6449),i=n(346);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},5083:(e,t,n)=>{var r=n(1882),o=n(7296),i=n(3805),s=n(7473),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:a).test(s(e))}},5128:(e,t,n)=>{var r=n(909),o=n(4894);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},5229:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),o=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)})),n):n}i.default=i,e.exports=i},5268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,o=Object.assign||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},i=(r=n(1609))&&r.__esModule?r:{default:r};function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,a,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];return a=l=s(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(u))),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return i.default.createElement(t,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},i.default.createElement(e,o({},l.props,l.state)))},s(l,a)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(i.default.Component)};t.default=a},5270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5338:(e,t,n)=>{"use strict";var r=n(5795);t.H=r.createRoot,r.hydrateRoot},5378:(e,t,n)=>{var r=n(4932),o=n(5389),i=n(5128),s=n(6449);e.exports=function(e,t){return(s(e)?r:i)(e,o(t,3))}},5389:(e,t,n)=>{var r=n(3663),o=n(7978),i=n(3488),s=n(6449),a=n(583);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?s(e)?o(e[0],e[1]):r(e):a(e)}},5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},5481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},5496:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,p=(e=(0,r.escapeSpecialCharacters)(e)).match(a),f=p&&p[1]?p[1].toLowerCase():"";switch(f){case o:var m=d(e);return l.test(e)||null===(t=null==(v=m.querySelector(i))?void 0:v.parentNode)||void 0===t||t.removeChild(v),c.test(e)||null===(n=null==(v=m.querySelector(s))?void 0:v.parentNode)||void 0===n||n.removeChild(v),m.querySelectorAll(o);case i:case s:var g=u(e).querySelectorAll(f);return c.test(e)&&l.test(e)?g[0].parentNode.childNodes:g;default:return h?h(e):(v=u(e,s).querySelector(s)).childNodes;var v}};var r=n(7731),o="html",i="head",s="body",a=/<([a-zA-Z]+[0-9]?)/,l=/<head[^]*>/i,c=/<body[^]*>/i,u=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},p="object"==typeof window&&window.DOMParser;if("function"==typeof p){var f=new p;u=d=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),f.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var m=document.implementation.createHTMLDocument();u=function(e,t){if(t){var n=m.documentElement.querySelector(t);return n&&(n.innerHTML=e),m}return m.documentElement.innerHTML=e,m}}var h,g="object"==typeof document&&document.createElement("template");g&&g.content&&(h=function(e){return g.innerHTML=e,g.content.childNodes})},5527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},5529:(e,t,n)=>{var r=n(9344),o=n(8879),i=n(5527);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},5556:(e,t,n)=>{e.exports=n(2694)()},5580:(e,t,n)=>{var r=n(6110)(n(9325),"DataView");e.exports=r},5749:(e,t,n)=>{var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5795:e=>{"use strict";e.exports=window.ReactDOM},5861:(e,t,n)=>{var r=n(5580),o=n(8223),i=n(2804),s=n(6545),a=n(8303),l=n(2552),c=n(7473),u="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",m="[object DataView]",h=c(r),g=c(o),v=c(i),y=c(s),b=c(a),x=l;(r&&x(new r(new ArrayBuffer(1)))!=m||o&&x(new o)!=u||i&&x(i.resolve())!=d||s&&x(new s)!=p||a&&x(new a)!=f)&&(x=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case h:return m;case g:return u;case v:return d;case y:return p;case b:return f}return t}),e.exports=x},5911:(e,t,n)=>{var r=n(8859),o=n(4248),i=n(9219);e.exports=function(e,t,n,s,a,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),f=l.get(t);if(p&&f)return p==t&&f==e;var m=-1,h=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++m<u;){var v=e[m],y=t[m];if(s)var b=c?s(y,v,m,t,e,l):s(v,y,m,e,t,l);if(void 0!==b){if(b)continue;h=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(v===e||a(v,e,n,s,l)))return g.push(t)}))){h=!1;break}}else if(v!==y&&!a(v,y,n,s,l)){h=!1;break}}return l.delete(e),l.delete(t),h}},5950:(e,t,n)=>{var r=n(695),o=n(8984),i=n(4894);e.exports=function(e){return i(e)?r(e):o(e)}},6009:(e,t,n)=>{e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,s=i&&i.exports===o&&r.process,a=function(){try{return i&&i.require&&i.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},6025:(e,t,n)=>{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},6038:(e,t,n)=>{var r=n(5861),o=n(346);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},6110:(e,t,n)=>{var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},6169:(e,t,n)=>{var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},6189:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},6203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=s(n(3215)),o=s(n(8055)),i=Object.assign||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};function s(e){return e&&e.__esModule?e:{default:e}}var a=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map((function(t){var o=e[t];return o&&(0,r.default)(o,(function(e,t){n[t]||(n[t]={}),n[t]=i({},n[t],o[t])})),t})),n};t.default=a},6375:(e,t,n)=>{var r=n(4528),o=n(8879),i=n(4664),s=n(3345),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:s;e.exports=a},6449:e=>{var t=Array.isArray;e.exports=t},6545:(e,t,n)=>{var r=n(6110)(n(9325),"Set");e.exports=r},6547:(e,t,n)=>{var r=n(3360),o=n(5288),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];i.call(e,t)&&o(s,n)&&(void 0!==n||t in e)||r(e,t,n)}},6649:(e,t,n)=>{var r=n(3221)();e.exports=r},6686:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,o=Object.assign||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},i=(r=n(1609))&&r.__esModule?r:{default:r};function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,a,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];return a=l=s(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(u))),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return i.default.createElement(t,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},i.default.createElement(e,o({},l.props,l.state)))},s(l,a)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(i.default.Component)};t.default=a},6721:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},6892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o=(r=n(3215))&&r.__esModule?r:{default:r},i=Object.assign||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},s={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){return t[e]||{extend:e}}},a=t.autoprefix=function(e){var t={};return(0,o.default)(e,(function(e,n){var r={};(0,o.default)(e,(function(e,t){var n=s[t];n?r=i({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=a},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6957:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=n(5413),a=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),E(this,e)},e}();t.Node=a;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(a);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=s.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=m;var h=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,s.isTag)(e)}function v(e){return e.type===s.ElementType.CDATA}function y(e){return e.type===s.ElementType.Text}function b(e){return e.type===s.ElementType.Comment}function x(e){return e.type===s.ElementType.Directive}function w(e){return e.type===s.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(g(e)){var r=t?k(e.children):[],o=new h(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(v(e)){r=t?k(e.children):[];var s=new f(r);r.forEach((function(e){return e.parent=s})),n=s}else if(w(e)){r=t?k(e.children):[];var a=new m(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!x(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function k(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=h,t.isTag=g,t.isCDATA=v,t.isText=y,t.isComment=b,t.isDirective=x,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=E},7068:(e,t,n)=>{var r=n(7217),o=n(5911),i=n(1986),s=n(689),a=n(5861),l=n(6449),c=n(3656),u=n(7167),d="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,g,v){var y=l(e),b=l(t),x=y?p:a(e),w=b?p:a(t),E=(x=x==d?f:x)==f,k=(w=w==d?f:w)==f,S=x==w;if(S&&c(e)){if(!c(t))return!1;y=!0,E=!1}if(S&&!E)return v||(v=new r),y||u(e)?o(e,t,n,h,g,v):i(e,t,x,n,h,g,v);if(!(1&n)){var _=E&&m.call(e,"__wrapped__"),C=k&&m.call(t,"__wrapped__");if(_||C){var j=_?e.value():e,T=C?t.value():t;return v||(v=new r),g(j,T,n,h,v)}}return!!S&&(v||(v=new r),s(e,t,n,h,g,v))}},7167:(e,t,n)=>{var r=n(4901),o=n(7301),i=n(6009),s=i&&i.isTypedArray,a=s?o(s):r;e.exports=a},7197:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},7199:(e,t,n)=>{var r=n(9653),o=n(6169),i=n(3201),s=n(3736),a=n(1961);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return s(e)}}},7217:(e,t,n)=>{var r=n(79),o=n(1420),i=n(938),s=n(3605),a=n(9817),l=n(945);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=s,c.prototype.has=a,c.prototype.set=l,e.exports=c},7237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7241:(e,t,n)=>{var r=n(695),o=n(2903),i=n(4894);e.exports=function(e){return i(e)?r(e,!0):o(e)}},7255:(e,t,n)=>{var r=n(7422);e.exports=function(e){return function(t){return r(t,e)}}},7296:(e,t,n)=>{var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},7422:(e,t,n)=>{var r=n(1769),o=n(7797);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7534:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},7556:(e,t,n)=>{var r=n(1873),o=n(4932),i=n(6449),s=n(4394),a=r?r.prototype:void 0,l=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(s(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7564:(e,t,n)=>{"use strict";n(4912)},7670:(e,t,n)=>{var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},7730:(e,t,n)=>{var r=n(9172),o=n(7301),i=n(6009),s=i&&i.isMap,a=s?o(s):r;e.exports=a},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=a,t.formatDOM=function e(t,n,o){void 0===n&&(n=null);for(var l,c=[],u=0,d=t.length;u<d;u++){var p=t[u];switch(p.nodeType){case 1:var f=s(p.nodeName);(l=new r.Element(f,i(p.attributes))).children=e("template"===f?p.content.childNodes:p.childNodes,l);break;case 3:l=new r.Text(a(p.nodeValue));break;case 8:l=new r.Comment(p.nodeValue);break;default:continue}var m=c[u-1]||null;m&&(m.next=l),l.parent=n,l.prev=m,l.next=null,c.push(l)}return o&&((l=new r.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=c[0]||null,l.parent=n,c.unshift(l),c[1]&&(c[1].prev=c[0])),c};var r=n(1141),o=n(5270);function i(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function s(e){return function(e){return o.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}function a(e){return e.replace(o.CARRIAGE_RETURN_PLACEHOLDER_REGEX,o.CARRIAGE_RETURN)}},7797:(e,t,n)=>{var r=n(4394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},7978:(e,t,n)=>{var r=n(270),o=n(8156),i=n(631),s=n(8586),a=n(756),l=n(7197),c=n(7797);e.exports=function(e,t){return s(e)&&a(t)?l(c(e),t):function(n){var s=o(n,e);return void 0===s&&s===t?i(n,e):r(t,s,3)}}},8055:(e,t,n)=>{var r=n(9999);e.exports=function(e){return r(e,5)}},8077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},8096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},8156:(e,t,n)=>{var r=n(7422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},8223:(e,t,n)=>{var r=n(6110)(n(9325),"Map");e.exports=r},8303:(e,t,n)=>{var r=n(6110)(n(9325),"WeakMap");e.exports=r},8329:(e,t,n)=>{var r=n(4894);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,s=t?i:-1,a=Object(n);(t?s--:++s<i)&&!1!==o(a[s],s,a););return n}}},8440:(e,t,n)=>{var r=n(6038),o=n(7301),i=n(6009),s=i&&i.isSet,a=s?o(s):r;e.exports=a},8505:(e,t,n)=>{var r=n(9375);e.exports=function e(t,n,o){return r(n)||(o=n||o,n=[]),o=o||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(t,n):r(t)?function(t,n,r){for(var o=[],i=0;i<t.length;i++)o.push(e(t[i],n,r).source);return d(new RegExp("(?:"+o.join("|")+")",p(r)),n)}(t,n,o):function(e,t,n){return f(i(e,n),t,n)}(t,n,o)},e.exports.parse=i,e.exports.compile=function(e,t){return l(i(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,l="",c=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],p=n[1],f=n.index;if(l+=e.slice(a,f),a=f+d.length,p)l+=p[1];else{var m=e[a],h=n[2],g=n[3],v=n[4],y=n[5],b=n[6],x=n[7];l&&(r.push(l),l="");var w=null!=h&&null!=m&&m!==h,E="+"===b||"*"===b,k="?"===b||"*"===b,S=h||c,_=v||y,C=h||("string"==typeof r[r.length-1]?r[r.length-1]:"");r.push({name:g||i++,prefix:h||"",delimiter:S,optional:k,repeat:E,partial:w,asterisk:!!x,pattern:_?u(_):x?".*":s(S,C)})}}return a<e.length&&(l+=e.substr(a)),l&&r.push(l),r}function s(e,t){return!t||t.indexOf(e)>-1?"[^"+c(e)+"]+?":c(t)+"|(?:(?!"+c(t)+")[^"+c(e)+"])+?"}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",p(t)));return function(t,o){for(var i="",s=t||{},l=(o||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,p=s[u.name];if(null==p){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(d=l(p[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');i+=u.prefix+d}}else i+=u}return i}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,s="",a=0;a<e.length;a++){var l=e[a];if("string"==typeof l)s+=c(l);else{var u=c(l.prefix),f="(?:"+l.pattern+")";t.push(l),l.repeat&&(f+="(?:"+u+f+")*"),s+=f=l.optional?l.partial?u+"("+f+")?":"(?:"+u+"("+f+"))?":u+"("+f+")"}}var m=c(n.delimiter||"/"),h=s.slice(-m.length)===m;return o||(s=(h?s.slice(0,-m.length):s)+"(?:"+m+"(?=$))?"),s+=i?"$":o&&h?"":"(?="+m+"|$)",d(new RegExp("^"+s,p(n)),t)}},8527:(e,t,n)=>{"use strict";var r=c(n(9265)),o=c(n(6203)),i=c(n(6892)),s=c(n(6686)),a=c(n(5268)),l=c(n(2693));function c(e){return e&&e.__esModule?e:{default:e}}s.default,s.default,a.default,l.default;t.Ay=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];var a=(0,r.default)(n),l=(0,o.default)(e,a);return(0,i.default)(l)}},8586:(e,t,n)=>{var r=n(6449),o=n(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||s.test(e)||!i.test(e)||null!=t&&e in Object(t)}},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},8859:(e,t,n)=>{var r=n(3661),o=n(1380),i=n(1459);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=o,s.prototype.has=i,e.exports=s},8879:(e,t,n)=>{var r=n(4335)(Object.getPrototypeOf,Object);e.exports=r},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(i,l)).replace(r,a))}},8948:(e,t,n)=>{var r=n(1791),o=n(6375);e.exports=function(e,t){return r(e,o(e),t)}},8984:(e,t,n)=>{var r=n(5527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},9172:(e,t,n)=>{var r=n(5861),o=n(346);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},9219:e=>{e.exports=function(e,t){return e.has(t)}},9265:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=a(n(5015)),o=a(n(3215)),i=a(n(1331)),s=a(n(5378));function a(e){return e&&e.__esModule?e:{default:e}}var l=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,s.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,i.default)(t)?(0,o.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=l},9325:(e,t,n)=>{var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},9326:(e,t,n)=>{var r=n(1769),o=n(2428),i=n(6449),s=n(361),a=n(294),l=n(7797);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&a(u)&&s(p,u)&&(i(e)||o(e))}},9344:(e,t,n)=>{var r=n(3805),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9375:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},9653:(e,t,n)=>{var r=n(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},9770:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function m(){var e={line:d,column:p};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:p},this.source=l.source}h.prototype.content=e;var g=[];function v(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;g.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function b(){y(r)}function x(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function E(){var e=m(),n=y(o);if(n){if(w(),!y(i))return v("property missing ':'");var r=y(s),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return y(a),l}}return b(),function(){var e,t=[];for(x(t);e=E();)!1!==e&&(t.push(e),x(t));return t}()}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},9935:e=>{e.exports=function(){return!1}},9999:(e,t,n)=>{var r=n(7217),o=n(3729),i=n(6547),s=n(4733),a=n(3838),l=n(3290),c=n(3007),u=n(2271),d=n(8948),p=n(2),f=n(3349),m=n(5861),h=n(6189),g=n(7199),v=n(5529),y=n(6449),b=n(3656),x=n(7730),w=n(3805),E=n(8440),k=n(5950),S=n(7241),_="[object Arguments]",C="[object Function]",j="[object Object]",T={};T[_]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[j]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[C]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,N,M,A,R){var P,I=1&n,O=2&n,L=4&n;if(N&&(P=A?N(t,M,A,R):N(t)),void 0!==P)return P;if(!w(t))return t;var D=y(t);if(D){if(P=h(t),!I)return c(t,P)}else{var F=m(t),z=F==C||"[object GeneratorFunction]"==F;if(b(t))return l(t,I);if(F==j||F==_||z&&!A){if(P=O||z?{}:v(t),!I)return O?d(t,a(P,t)):u(t,s(P,t))}else{if(!T[F])return A?t:{};P=g(t,F,I)}}R||(R=new r);var B=R.get(t);if(B)return B;R.set(t,P),E(t)?t.forEach((function(r){P.add(e(r,n,N,r,t,R))})):x(t)&&t.forEach((function(r,o){P.set(o,e(r,n,N,o,t,R))}));var V=D?void 0:(L?O?f:p:O?S:k)(t);return o(V||t,(function(r,o){V&&(r=t[o=r]),i(P,o,e(r,n,N,o,t,R))})),P}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.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 i=Object.create(null);o.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(i,s),i},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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),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})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{"use strict";const e=window.wp.element;var t=o(5338);function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}var i=o(1609),s=o.t(i,2),a=o.n(i),l=o(5556),c=o.n(l);function u(){return u=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},u.apply(null,arguments)}function d(e){return"/"===e.charAt(0)}function p(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}function f(e,t){if(!e)throw new Error("Invariant failed")}function m(e){return"/"===e.charAt(0)?e:"/"+e}function h(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function g(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function v(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=u({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&d(e),s=t&&d(t),a=i||s;if(e&&d(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var l=o[o.length-1];n="."===l||".."===l||""===l}else n=!1;for(var c=0,u=o.length;u>=0;u--){var f=o[u];"."===f?p(o,u):".."===f?(p(o,u),c++):c&&(p(o,u),c--)}if(!a)for(;c--;c)o.unshift("..");!a||""===o[0]||o[0]&&d(o[0])||o.unshift("");var m=o.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function b(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var x=!("undefined"==typeof window||!window.document||!window.document.createElement);function w(e,t){t(window.confirm(e))}var E="popstate",k="hashchange";function S(){try{return window.history.state||{}}catch(e){return{}}}var _=o(8505),C=o.n(_);function j(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}o(7564),o(4146);var T=1073741823,N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==o.g?o.g:{},M=a().createContext||function(e,t){var n,o,i,s="__create-react-context-"+((N[i="__global_unique_id__"]=(N[i]||0)+1)+"__"),l=function(e){function n(){for(var t,n,r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return(t=e.call.apply(e,[this].concat(i))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}r(n,e);var o=n.prototype;return o.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;!function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,o)?(n="function"==typeof t?t(r,o):T,0!=(n|=0)&&this.emitter.set(e.value,n)):n=0}},o.render=function(){return this.props.children},n}(a().Component);l.childContextTypes=((n={})[s]=c().object.isRequired,n);var u=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){e.observedBits&n&&e.setState({value:e.getValue()})},e}r(n,t);var o=n.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?T:t},o.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?T:e},o.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},o.getValue=function(){return this.context[s]?this.context[s].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(a().Component);return u.contextTypes=((o={})[s]=c().object,o),{Provider:l,Consumer:u}},A=function(e){var t=M();return t.displayName=e,t},R=A("Router-History"),P=A("Router"),I=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}r(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a().createElement(P.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a().createElement(R.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a().Component);a().Component,a().Component;var O={},L=0;a().Component,a().Component,a().Component;var D=a().useContext;var F=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=function(e){void 0===e&&(e={}),x||f(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,s=i.forceRefresh,a=void 0!==s&&s,l=i.getUserConfirmation,c=void 0===l?w:l,d=i.keyLength,p=void 0===d?6:d,_=e.basename?g(m(e.basename)):"";function C(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return _&&(i=h(i,_)),y(i,r,n)}function j(){return Math.random().toString(36).substr(2,p)}var T=b();function N(e){u(V,e),V.length=n.length,T.notifyListeners(V.location,V.action)}function M(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||P(C(e.state))}function A(){P(C(S()))}var R=!1;function P(e){R?(R=!1,N()):T.confirmTransitionTo(e,"POP",c,(function(t){t?N({action:"POP",location:e}):function(e){var t=V.location,n=O.indexOf(t.key);-1===n&&(n=0);var r=O.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(R=!0,D(o))}(e)}))}var I=C(S()),O=[I.key];function L(e){return _+v(e)}function D(e){n.go(e)}var F=0;function z(e){1===(F+=e)&&1===e?(window.addEventListener(E,M),o&&window.addEventListener(k,A)):0===F&&(window.removeEventListener(E,M),o&&window.removeEventListener(k,A))}var B=!1,V={length:n.length,action:"POP",location:I,createHref:L,push:function(e,t){var o="PUSH",i=y(e,t,j(),V.location);T.confirmTransitionTo(i,o,c,(function(e){if(e){var t=L(i),s=i.key,l=i.state;if(r)if(n.pushState({key:s,state:l},null,t),a)window.location.href=t;else{var c=O.indexOf(V.location.key),u=O.slice(0,c+1);u.push(i.key),O=u,N({action:o,location:i})}else window.location.href=t}}))},replace:function(e,t){var o="REPLACE",i=y(e,t,j(),V.location);T.confirmTransitionTo(i,o,c,(function(e){if(e){var t=L(i),s=i.key,l=i.state;if(r)if(n.replaceState({key:s,state:l},null,t),a)window.location.replace(t);else{var c=O.indexOf(V.location.key);-1!==c&&(O[c]=i.key),N({action:o,location:i})}else window.location.replace(t)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return B||(z(1),B=!0),function(){return B&&(B=!1,z(-1)),t()}},listen:function(e){var t=T.appendListener(e);return z(1),function(){z(-1),t()}}};return V}(t.props),t}return r(t,e),t.prototype.render=function(){return a().createElement(I,{history:this.history,children:this.props.children})},t}(a().Component);a().Component;var z=function(e,t){return"function"==typeof e?e(t):e},B=function(e,t){return"string"==typeof e?y(e,null,null,t):e},V=function(e){return e},U=a().forwardRef;void 0===U&&(U=V);var H=U((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=j(e,["innerRef","navigate","onClick"]),s=i.target,l=u({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return l.ref=V!==U&&t||n,a().createElement("a",l)})),W=U((function(e,t){var n=e.component,r=void 0===n?H:n,o=e.replace,i=e.to,s=e.innerRef,l=j(e,["component","replace","to","innerRef"]);return a().createElement(P.Consumer,null,(function(e){e||f(!1);var n=e.history,c=B(z(i,e.location),e.location),d=c?n.createHref(c):"",p=u({},l,{href:d,navigate:function(){var t=z(i,e.location),r=v(e.location)===v(B(t));(o||r?n.replace:n.push)(t)}});return V!==U?p.ref=t||s:p.innerRef=s,a().createElement(r,p)}))})),$=function(e){return e},G=a().forwardRef;void 0===G&&(G=$),G((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,o=e.activeClassName,i=void 0===o?"active":o,s=e.activeStyle,l=e.className,c=e.exact,d=e.isActive,p=e.location,m=e.sensitive,h=e.strict,g=e.style,v=e.to,y=e.innerRef,b=j(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a().createElement(P.Consumer,null,(function(e){e||f(!1);var n=p||e.location,o=B(z(v,n),n),x=o.pathname,w=x&&x.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),E=w?function(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,s=n.strict,a=void 0!==s&&s,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=O[n]||(O[n]={});if(r[e])return r[e];var o=[],i={regexp:C()(e,o,t),keys:o};return L<1e4&&(r[e]=i,L++),i}(n,{end:i,strict:a,sensitive:c}),o=r.regexp,s=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],d=l.slice(1),p=e===u;return i&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:s.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}(n.pathname,{path:w,exact:c,sensitive:m,strict:h}):null,k=!!(d?d(E,n):E),S="function"==typeof l?l(k):l,_="function"==typeof g?g(k):g;k&&(S=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(S,i),_=u({},_,s));var j=u({"aria-current":k&&r||null,className:S,style:_,to:o},b);return $!==G?j.ref=t||y:j.innerRef=y,a().createElement(W,j)}))}));const q=moderncart_settings,Y=(e,t)=>"CHANGE"===t.type?{...t.data}:e;let K=1;const X=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 i="number"==typeof t?t:K++;return this.#e.find((e=>e.id===i))&&(this.#e=this.#e.map((e=>e.id===i?(this.publish({...e,title:n,jsx:r,...o}),{...e,title:n,jsx:r,...o}):e))),this.add({id:i,title:n,jsx:r,...o}),i}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})}},Z=Object.seal(Object.assign(((e,t)=>X.default(e,t)),{success:X.success.bind(X),error:X.error.bind(X),warning:X.warning.bind(X),info:X.info.bind(X),custom:X.custom.bind(X),dismiss:X.dismiss.bind(X),update:X.update.bind(X)},{getHistory:X.history.bind(X)}));var Q=o(4848);const J=e=>{const t=re(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),ee(n,t)||ne(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},ee=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?ee(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},te=/^\[(.+)\]$/,ne=e=>{if(te.test(e)){const t=te.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},re=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ae(Object.entries(e.classGroups),n).forEach((([e,n])=>{oe(n,r,e,t)})),r},oe=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return se(e)?void oe(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{oe(o,ie(t,e),n,r)}))}else(""===e?t:ie(t,e)).classGroupId=n}))},ie=(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},se=e=>e.isThemeGetter,ae=(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,le=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),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)}}},ce=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,s=e=>{const n=[];let s,a=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===a){if(u===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===u){s=c;continue}}"["===u?a++:"]"===u&&a--}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},ue=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},de=/\s+/;function pe(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=fe(e))&&(r&&(r+=" "),r+=t);return r}const fe=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=fe(e[r]))&&(n&&(n+=" "),n+=t);return n};function me(e,...t){let n,r,o,i=function(a){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:le(e.cacheSize),parseClassName:ce(e),...J(e)}))(l),r=n.cache.get,o=n.cache.set,i=s,s(a)};function s(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(de);let a="";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 p=Boolean(d),f=r(p?u.substring(0,d):u);if(!f){if(!p){a=t+(a.length>0?" "+a:a);continue}if(f=r(u),!f){a=t+(a.length>0?" "+a:a);continue}p=!1}const m=ue(l).join(":"),h=c?m+"!":m,g=h+f;if(i.includes(g))continue;i.push(g);const v=o(f,p);for(let e=0;e<v.length;++e){const t=v[e];i.push(h+t)}a=t+(a.length>0?" "+a:a)}return a})(e,n);return o(e,i),i}return function(){return i(pe.apply(null,arguments))}}const he=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},ge=/^\[(?:([a-z-]+):)?(.+)\]$/i,ve=/^\d+\/\d+$/,ye=new Set(["px","full","screen"]),be=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xe=/\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$/,we=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ee=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ke=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Se=e=>Ce(e)||ye.has(e)||ve.test(e),_e=e=>ze(e,"length",Be),Ce=e=>Boolean(e)&&!Number.isNaN(Number(e)),je=e=>ze(e,"number",Ce),Te=e=>Boolean(e)&&Number.isInteger(Number(e)),Ne=e=>e.endsWith("%")&&Ce(e.slice(0,-1)),Me=e=>ge.test(e),Ae=e=>be.test(e),Re=new Set(["length","size","percentage"]),Pe=e=>ze(e,Re,Ve),Ie=e=>ze(e,"position",Ve),Oe=new Set(["image","url"]),Le=e=>ze(e,Oe,He),De=e=>ze(e,"",Ue),Fe=()=>!0,ze=(e,t,n)=>{const r=ge.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},Be=e=>xe.test(e)&&!we.test(e),Ve=()=>!1,Ue=e=>Ee.test(e),He=e=>ke.test(e),We=(Symbol.toStringTag,()=>{const e=he("colors"),t=he("spacing"),n=he("blur"),r=he("brightness"),o=he("borderColor"),i=he("borderRadius"),s=he("borderSpacing"),a=he("borderWidth"),l=he("contrast"),c=he("grayscale"),u=he("hueRotate"),d=he("invert"),p=he("gap"),f=he("gradientColorStops"),m=he("gradientColorStopPositions"),h=he("inset"),g=he("margin"),v=he("opacity"),y=he("padding"),b=he("saturate"),x=he("scale"),w=he("sepia"),E=he("skew"),k=he("space"),S=he("translate"),_=()=>["auto",Me,t],C=()=>[Me,t],j=()=>["",Se,_e],T=()=>["auto",Ce,Me],N=()=>["","0",Me],M=()=>[Ce,Me];return{cacheSize:500,separator:":",theme:{colors:[Fe],spacing:[Se,_e],blur:["none","",Ae,Me],brightness:M(),borderColor:[e],borderRadius:["none","","full",Ae,Me],borderSpacing:C(),borderWidth:j(),contrast:M(),grayscale:N(),hueRotate:M(),invert:N(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[Ne,_e],inset:_(),margin:_(),opacity:M(),padding:C(),saturate:M(),scale:M(),sepia:N(),skew:M(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",Me]}],container:["container"],columns:[{columns:[Ae]}],"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",Me]}],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",Te,Me]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Me]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",Te,Me]}],"grid-cols":[{"grid-cols":[Fe]}],"col-start-end":[{col:["auto",{span:["full",Te,Me]},Me]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[Fe]}],"row-start-end":[{row:["auto",{span:[Te,Me]},Me]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Me]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"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:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],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":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Me,t]}],"min-w":[{"min-w":[Me,t,"min","max","fit"]}],"max-w":[{"max-w":[Me,t,"none","full","min","max","fit","prose",{screen:[Ae]},Ae]}],h:[{h:[Me,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Me,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Me,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Me,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ae,_e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",je]}],"font-family":[{font:[Fe]}],"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",Me]}],"line-clamp":[{"line-clamp":["none",Ce,je]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Se,Me]}],"list-image":[{"list-image":["none",Me]}],"list-style-type":[{list:["none","disc","decimal",Me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"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",Se,_e]}],"underline-offset":[{"underline-offset":["auto",Se,Me]}],"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:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Me]}],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",Me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Ie]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Pe]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Le]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"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":[Se,Me]}],"outline-w":[{outline:[Se,_e]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Se,_e]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ae,De]}],"shadow-color":[{shadow:[Fe]}],opacity:[{opacity:[v]}],"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",Ae,Me]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],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":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"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",Me]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",Me]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",Me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Te,Me]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"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",Me]}],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",Me]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",Me]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Se,_e,je]}],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"]}}}),$e=me(We);function Ge(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=Ge(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qe(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ge(e))&&(r&&(r+=" "),r+=t);return r}const Ye=(...e)=>$e(qe(...e)),Ke=(...e)=>(...t)=>e.forEach((e=>e?.(...t))),Xe=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},Ze={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"},Qe=()=>{const e=window.navigator?.userAgentData?.platform||window.navigator.platform;let t="null";return["macOS","Macintosh","MacIntel","MacPPC","Mac68K"].includes(e)?t="Mac OS":["Win32","Win64","Windows","WinCE"].includes(e)&&(t="Windows"),t},Je=(e,t)=>{if(!(typeof window>"u"))try{localStorage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}},et=e=>{if(typeof window>"u")return null;try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return console.error(e),null}},tt={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"}},nt={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"}},rt={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"}},ot={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"}},it={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"}},st={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"}},at={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"}},lt={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"}},ct={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"}},ut={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"}},dt={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"}},pt={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"}},ft={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"}},mt={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"}},ht={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"}},gt={sm:{0:"grow-0",1:"grow"},md:{0:"md:grow-0",1:"md:grow"},lg:{0:"lg:grow-0",1:"lg:grow"}},vt={sm:{0:"shrink-0",1:"shrink"},md:{0:"md:shrink-0",1:"md:shrink"},lg:{0:"lg:shrink-0",1:"lg:shrink"}},yt=(e,t,n,r="sm")=>{const o=[];switch(typeof e){case"object":for(const[r,i]of Object.entries(e))t[r]&&o.push(t?.[r]?.[i]??t?.[r]?.[n?.[r]]??"");break;case"string":case"number":const i=r;o.push(t?.[i]?.[e]??t?.[i]?.[n?.[i]]??"");break;default:if(void 0===e)break;o.push(t?.[r]?.[n]??"")}return o.join(" ")},bt=({className:e,cols:t,gap:n,gapX:r,gapY:o,align:i,justify:s,gridFlow:a,colsSubGrid:l=!1,rowsSubGrid:c=!1,autoRows:u=!1,autoCols:d=!1,children:p,...f})=>{const m=yt(t,tt,1),h=yt(n,nt,"sm"),g=yt(r,rt,""),v=yt(o,ot,""),y=yt(i,ct,""),b=yt(s,lt,""),x=yt(a,at,"");return(0,Q.jsx)("div",{className:Ye("grid",{"grid-cols-subgrid":l,"grid-rows-subgrid":c,"auto-cols-auto":d,"auto-rows-auto":u},m,h,g,v,y,b,x,e),...f,children:p})};bt.Item=({className:e,children:t,colSpan:n,colStart:r,alignSelf:o,justifySelf:i,...s})=>{const a=yt(n,it,0),l=yt(r,st,0),c=yt(o,ut,""),u=yt(i,dt,"");return(0,Q.jsx)("div",{className:Ye(a,l,c,u,e),...s,children:t})};const xt=(0,i.createContext)({}),wt=({containerType:e="flex",gap:t="sm",gapX:n,gapY:r,direction:o,justify:i,align:s,wrap:a,cols:l,className:c,children:u,...d})=>{if("grid"===e)return(0,Q.jsx)(xt.Provider,{value:{containerType:e},children:(0,Q.jsx)(bt,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:u,align:s,justify:i,...d})});const p=yt(a,ft,""),f=yt(t,nt,"sm"),m=yt(n,rt,""),h=yt(r,ot,""),g=yt(o,pt,""),v=yt(i,lt,""),y=yt(s,ct,""),b=Ye("flex",p,f,m,h,g,v,y,c);return(0,Q.jsx)(xt.Provider,{value:{containerType:e,cols:l},children:"flex"===e?(0,Q.jsx)("div",{className:b,children:u}):(0,Q.jsx)(bt,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:u,align:s,justify:i,...d})})},Et=({grow:e,shrink:t,order:n,alignSelf:r,justifySelf:o,className:s,children:a,...l})=>{const{containerType:c,cols:u}=(0,i.useContext)(xt);if("grid"===c)return(0,Q.jsx)(bt.Item,{className:s,alignSelf:r,justifySelf:o,children:a,...l});const d=yt(r,ut,""),p=yt(o,dt,""),f=yt(e,gt,0),m=yt(t,vt,0),h=yt(n,ht,0),g=yt(u,mt,1);return(0,Q.jsx)("div",{className:Ye("box-border",f,m,h,d,p,g,s),children:a})};wt.Item=Et,wt.displayName="Container",Et.displayName="Container.Item";const kt=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ");var St={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 _t=(0,i.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...l},c)=>(0,i.createElement)("svg",{ref:c,...St,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:kt("lucide",o),...l},[...a.map((([e,t])=>(0,i.createElement)(e,t))),...Array.isArray(s)?s:[s]]))),Ct=(e,t)=>{const n=(0,i.forwardRef)((({className:n,...r},o)=>{return(0,i.createElement)(_t,{ref:o,iconNode:t,className:kt(`lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var s}));return n.displayName=`${e}`,n},jt=Ct("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Tt=Ct("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Nt=Ct("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Mt=Ct("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"}]]),At=Ct("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"}]]),Rt=(0,i.forwardRef)(((e,t)=>{const{variant:n="primary",size:r="md",type:o="button",tag:s="button",className:a,children:l,disabled:c=!1,destructive:u=!1,icon:d=null,iconPosition:p="left",loading:f=!1,...m}=e,h=u&&"focus:ring-focus-error",g=f?"opacity-50 disabled:cursor-not-allowed":"",v={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],y=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]:"",b={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 x,w=null,E="";return d&&(E="flex items-center justify-center","left"===p?x=d:w=d),(0,Q.jsxs)(s,{ref:t,type:o,className:Ye(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",b,v,y,h,g,{"cursor-default":c},a),disabled:c,...m,children:[(0,Q.jsx)(i.Fragment,{children:x},"left-icon"),l?(0,Q.jsx)("span",{className:"px-1",children:l}):null,(0,Q.jsx)(i.Fragment,{children:w},"right-icon")]})}));Rt.displayName="Button";const Pt="light",It="neutral",Ot=({icon:e,theme:t=Pt,variant:n=It})=>{const r="[&>svg]:h-5 [&>svg]:w-5",o=(({theme:e=Pt,variant:t=It})=>{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:Ye(r,o,e?.props?.className??"")});const s={neutral:(0,Q.jsx)(Tt,{className:Ye(r,o)}),info:(0,Q.jsx)(Tt,{className:Ye(r,o)}),success:(0,Q.jsx)(Nt,{className:Ye(r,o)}),warning:(0,Q.jsx)(Mt,{className:Ye(r,o)}),error:(0,Q.jsx)(At,{className:Ye(r,o)})};return s[n]||s.neutral},Lt=({actionType:e="button",onAction:t=()=>{},actionLabel:n="",theme:r=Pt})=>{const o="focus:ring-0 focus:ring-offset-0 ring-offset-0 focus:outline-none";let i="text-button-primary border-button-primary hover:border-button-primary hover:text-button-primary-hover";switch("dark"===r&&(i="text-text-inverse border-text-inverse hover:border-text-inverse hover:text-text-inverse"),e){case"button":return(0,Q.jsx)(Rt,{variant:"outline",size:"xs",onClick:t,className:Ye("rounded",o,i,"dark"===r?"bg-transparent hover:bg-transparent":"bg-white hover:bg-white"),children:n});case"link":return(0,Q.jsx)(Rt,{variant:"link",size:"xs",onClick:t,className:Ye(o,i),children:n});default:return null}},Dt=({theme:e=Pt,title:t="",inline:n=!1})=>t?(0,Q.jsx)("span",{className:Ye("block",{light:"text-text-primary",dark:"text-text-inverse"}[e],"text-sm leading-5 font-semibold",n?"inline":"block"),children:t}):null,Ft=({theme:e=Pt,content:t="",inline:n=!1})=>t?(0,Q.jsx)("span",{className:Ye({light:"text-text-primary",dark:"text-text-inverse"}[e],"block text-sm [&_*]:text-sm leading-5 [&_*]:leading-5 font-normal",n?"inline":"block"),children:t}):null,zt=(...e)=>t=>{e.forEach((e=>{"function"==typeof e?e(t):e&&(e.current=t)}))},Bt={"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"},Vt={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"},Ut="bg-background-inverse border-background-inverse",Ht={light:"text-icon-secondary",dark:"text-icon-inverse"};var Wt=o(5795);const $t=(0,i.createContext)({});function Gt(e){const t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}const qt=(0,i.createContext)(null),Yt=(0,i.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Kt 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 Xt({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:s}=(0,i.useContext)(Yt);return(0,i.useInsertionEffect)((()=>{const{width:e,height:i,top:a,left:l}=o.current;if(t||!r.current||!e||!i)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return s&&(c.nonce=s),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: ${i}px !important;\n top: ${a}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),(0,Q.jsx)(Kt,{isPresent:t,childRef:r,sizeRef:o,children:i.cloneElement(e,{ref:r})})}const Zt=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:a})=>{const l=Gt(Qt),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))})),s?[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"===a&&(e=(0,Q.jsx)(Xt,{isPresent:n,children:e})),(0,Q.jsx)(qt.Provider,{value:d,children:e})};function Qt(){return new Map}function Jt(e=!0){const t=(0,i.useContext)(qt);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=(0,i.useId)();(0,i.useEffect)((()=>{e&&o(s)}),[e]);const a=(0,i.useCallback)((()=>e&&r&&r(s)),[s,r,e]);return!n&&r?[!1,a]:[!0]}const en=e=>e.key||"";function tn(e){const t=[];return i.Children.forEach(e,(e=>{(0,i.isValidElement)(e)&&t.push(e)})),t}const nn="undefined"!=typeof window,rn=nn?i.useLayoutEffect:i.useEffect,on=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:a=!1})=>{const[l,c]=Jt(a),u=(0,i.useMemo)((()=>tn(e)),[e]),d=a&&!l?[]:u.map(en),p=(0,i.useRef)(!0),f=(0,i.useRef)(u),m=Gt((()=>new Map)),[h,g]=(0,i.useState)(u),[v,y]=(0,i.useState)(u);rn((()=>{p.current=!1,f.current=u;for(let e=0;e<v.length;e++){const t=en(v[e]);d.includes(t)?m.delete(t):!0!==m.get(t)&&m.set(t,!1)}}),[v,d.length,d.join("-")]);const b=[];if(u!==h){let e=[...u];for(let t=0;t<v.length;t++){const n=v[t],r=en(n);d.includes(r)||(e.splice(t,0,n),b.push(n))}return"wait"===s&&b.length&&(e=b),y(tn(e)),void g(u)}const{forceRender:x}=(0,i.useContext)($t);return(0,Q.jsx)(Q.Fragment,{children:v.map((e=>{const i=en(e),h=!(a&&!l)&&(u===v||d.includes(i));return(0,Q.jsx)(Zt,{isPresent:h,initial:!(p.current&&!n)&&void 0,custom:h?void 0:t,presenceAffectsLayout:o,mode:s,onExitComplete:h?void 0:()=>{if(!m.has(i))return;m.set(i,!0);let e=!0;m.forEach((t=>{t||(e=!1)})),e&&(null==x||x(),y(f.current),a&&(null==c||c()),r&&r())},children:e},i)}))})};function sn(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 an(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const ln=e=>Array.isArray(e);function cn(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 un(e){return"string"==typeof e||Array.isArray(e)}function dn(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function pn(e,t,n,r){if("function"==typeof t){const[o,i]=dn(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=dn(r);t=t(void 0!==n?n:e.custom,o,i)}return t}function fn(e,t,n){const r=e.getProps();return pn(r,t,void 0!==n?n:r.custom,e)}const mn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hn=["initial",...mn];function gn(e){let t;return()=>(void 0===t&&(t=e()),t)}const vn=gn((()=>void 0!==window.ScrollTimeline));class yn{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=>vn()&&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 bn extends yn{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function xn(e,t){return e?e[t]||e.default||e:void 0}const wn=2e4;function En(e){let t=0,n=e.next(t);for(;!n.done&&t<wn;)t+=50,n=e.next(t);return t>=wn?1/0:t}function kn(e){return"function"==typeof e}function Sn(e,t){e.timeline=t,e.onfinish=null}const Cn=e=>Array.isArray(e)&&"number"==typeof e[0],jn={linearEasing:void 0};function Tn(e,t){const n=gn(e);return()=>{var e;return null!==(e=jn[t])&&void 0!==e?e:n()}}const Nn=Tn((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),Mn=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},An=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=e(Mn(0,o-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function Rn(e){return Boolean("function"==typeof e&&Nn()||!e||"string"==typeof e&&(e in In||Nn())||Cn(e)||Array.isArray(e)&&e.every(Rn))}const Pn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,In={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pn([0,.65,.55,1]),circOut:Pn([.55,0,1,.45]),backIn:Pn([.31,.01,.66,-.59]),backOut:Pn([.33,1.53,.69,.99])};function On(e,t){return e?"function"==typeof e&&Nn()?An(e,t):Cn(e)?Pn(e):Array.isArray(e)?e.map((e=>On(e,t)||In.easeOut)):In[e]:void 0}const Ln={x:!1,y:!1};function Dn(){return Ln.x||Ln.y}function Fn(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 zn(e){return t=>{"touch"===t.pointerType||Dn()||e(t)}}const Bn=(e,t)=>!!t&&(e===t||Bn(e,t.parentElement)),Vn=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,Un=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),Hn=new WeakSet;function Wn(e){return t=>{"Enter"===t.key&&e(t)}}function $n(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Gn(e){return Vn(e)&&!Dn()}const qn=e=>1e3*e,Yn=e=>e/1e3,Kn=e=>e,Xn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zn=new Set(Xn),Qn=new Set(["width","height","top","left","right","bottom",...Xn]),Jn=["read","resolveKeyframes","update","preRender","render","postRender"];function er(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Jn.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(t){i.has(t)&&(l.schedule(t),e()),t(s)}const l={schedule:(e,o=!1,s=!1)=>{const a=s&&r?t:n;return o&&i.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{s=e,r?o=!0:(r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(e)))}};return l}(i),e)),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:p}=s,f=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(f))};return{schedule:Jn.reduce(((t,i)=>{const a=s[i];return t[i]=(t,i=!1,s=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(f)),a.schedule(t,i,s)),t}),{}),cancel:e=>{for(let t=0;t<Jn.length;t++)s[Jn[t]].cancel(e)},state:o,steps:s}}const{schedule:tr,cancel:nr,state:rr,steps:or}=er("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Kn,!0);let ir;function sr(){ir=void 0}const ar={now:()=>(void 0===ir&&ar.set(rr.isProcessing?rr.timestamp:performance.now()),ir),set:e=>{ir=e,queueMicrotask(sr)}};function lr(e,t){-1===e.indexOf(t)&&e.push(t)}function cr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ur{constructor(){this.subscriptions=[]}add(e){return lr(this.subscriptions,e),()=>cr(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 dr(e,t){return t?e*(1e3/t):0}const pr={current:void 0};class fr{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=ar.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=ar.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 ur);const n=this.events[e].add(t);return"change"===e?()=>{n(),tr.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 pr.current&&pr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=ar.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return dr(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 mr(e,t){return new fr(e,t)}function hr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,mr(n))}const gr=e=>Boolean(e&&e.getVelocity);function vr(e,t){const n=e.getValue("willChange");if(r=n,Boolean(gr(r)&&r.add))return n.add(t);var r}const yr=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),br="data-"+yr("framerAppearId");function xr(e){return e.props[br]}const wr=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Er(e,t,n,r){if(e===t&&n===r)return Kn;return o=>0===o||1===o?o:wr(function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=wr(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>1e-7&&++a<12);return s}(o,0,1,e,n),t,r)}const kr=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Sr=e=>t=>1-e(1-t),_r=Er(.33,1.53,.69,.99),Cr=Sr(_r),jr=kr(Cr),Tr=e=>(e*=2)<1?.5*Cr(e):.5*(2-Math.pow(2,-10*(e-1))),Nr=e=>1-Math.sin(Math.acos(e)),Mr=Sr(Nr),Ar=kr(Nr),Rr=e=>/^0[^.\s]+$/u.test(e),Pr=(e,t,n)=>n>t?t:n<e?e:n,Ir={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Or={...Ir,transform:e=>Pr(0,1,e)},Lr={...Ir,default:1},Dr=e=>Math.round(1e5*e)/1e5,Fr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,zr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Br=(e,t)=>n=>Boolean("string"==typeof n&&zr.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),Vr=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,i,s,a]=r.match(Fr);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},Ur={...Ir,transform:e=>Math.round((e=>Pr(0,255,e))(e))},Hr={test:Br("rgb","red"),parse:Vr("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ur.transform(e)+", "+Ur.transform(t)+", "+Ur.transform(n)+", "+Dr(Or.transform(r))+")"},Wr={test:Br("#"),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:Hr.transform},$r=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Gr=$r("deg"),qr=$r("%"),Yr=$r("px"),Kr=$r("vh"),Xr=$r("vw"),Zr={...qr,parse:e=>qr.parse(e)/100,transform:e=>qr.transform(100*e)},Qr={test:Br("hsl","hue"),parse:Vr("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qr.transform(Dr(t))+", "+qr.transform(Dr(n))+", "+Dr(Or.transform(r))+")"},Jr={test:e=>Hr.test(e)||Wr.test(e)||Qr.test(e),parse:e=>Hr.test(e)?Hr.parse(e):Qr.test(e)?Qr.parse(e):Wr.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?Hr.transform(e):Qr.transform(e)},eo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,to="number",no="color",ro=/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 oo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(ro,(e=>(Jr.test(e)?(r.color.push(i),o.push(no),n.push(Jr.parse(e))):e.startsWith("var(")?(r.var.push(i),o.push("var"),n.push(e)):(r.number.push(i),o.push(to),n.push(parseFloat(e))),++i,"${}"))).split("${}");return{values:n,split:s,indexes:r,types:o}}function io(e){return oo(e).values}function so(e){const{split:t,types:n}=oo(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===to?Dr(e[i]):t===no?Jr.transform(e[i]):e[i]}return o}}const ao=e=>"number"==typeof e?0:e,lo={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(Fr))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(eo))||void 0===n?void 0:n.length)||0)>0},parse:io,createTransformer:so,getAnimatableNone:function(e){const t=io(e);return so(e)(t.map(ao))}},co=new Set(["brightness","contrast","saturate","opacity"]);function uo(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Fr)||[];if(!r)return e;const o=n.replace(r,"");let i=co.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const po=/\b([a-z-]*)\(.*?\)/gu,fo={...lo,getAnimatableNone:e=>{const t=e.match(po);return t?t.map(uo).join(" "):e}},mo={borderWidth:Yr,borderTopWidth:Yr,borderRightWidth:Yr,borderBottomWidth:Yr,borderLeftWidth:Yr,borderRadius:Yr,radius:Yr,borderTopLeftRadius:Yr,borderTopRightRadius:Yr,borderBottomRightRadius:Yr,borderBottomLeftRadius:Yr,width:Yr,maxWidth:Yr,height:Yr,maxHeight:Yr,top:Yr,right:Yr,bottom:Yr,left:Yr,padding:Yr,paddingTop:Yr,paddingRight:Yr,paddingBottom:Yr,paddingLeft:Yr,margin:Yr,marginTop:Yr,marginRight:Yr,marginBottom:Yr,marginLeft:Yr,backgroundPositionX:Yr,backgroundPositionY:Yr},ho={rotate:Gr,rotateX:Gr,rotateY:Gr,rotateZ:Gr,scale:Lr,scaleX:Lr,scaleY:Lr,scaleZ:Lr,skew:Gr,skewX:Gr,skewY:Gr,distance:Yr,translateX:Yr,translateY:Yr,translateZ:Yr,x:Yr,y:Yr,z:Yr,perspective:Yr,transformPerspective:Yr,opacity:Or,originX:Zr,originY:Zr,originZ:Yr},go={...Ir,transform:Math.round},vo={...mo,...ho,zIndex:go,size:Yr,fillOpacity:Or,strokeOpacity:Or,numOctaves:go},yo={...vo,color:Jr,backgroundColor:Jr,outlineColor:Jr,fill:Jr,stroke:Jr,borderColor:Jr,borderTopColor:Jr,borderRightColor:Jr,borderBottomColor:Jr,borderLeftColor:Jr,filter:fo,WebkitFilter:fo},bo=e=>yo[e];function xo(e,t){let n=bo(e);return n!==fo&&(n=lo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const wo=new Set(["auto","none","0"]),Eo=e=>e===Ir||e===Yr,ko=(e,t)=>parseFloat(e.split(", ")[t]),So=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return ko(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?ko(t[1],e):0}},_o=new Set(["x","y","z"]),Co=Xn.filter((e=>!_o.has(e))),jo={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:So(4,13),y:So(5,14)};jo.translateX=jo.x,jo.translateY=jo.y;const To=new Set;let No=!1,Mo=!1;function Ao(){if(Mo){const e=Array.from(To).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 Co.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)}))}Mo=!1,No=!1,To.forEach((e=>e.complete())),To.clear()}function Ro(){To.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(Mo=!0)}))}class Po{constructor(e,t,n,r,o,i=!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=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(To.add(this),No||(No=!0,tr.read(Ro),tr.resolveKeyframes(Ao))):(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(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),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),To.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,To.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let Io=Kn,Oo=Kn;const Lo=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Do=e=>t=>"string"==typeof t&&t.startsWith(e),Fo=Do("--"),zo=Do("var(--"),Bo=e=>!!zo(e)&&Vo.test(e.split("/*")[0].trim()),Vo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Uo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ho(e,t,n=1){Oo(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=Uo.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return Lo(e)?parseFloat(e):e}return Bo(o)?Ho(o,t,n+1):o}const Wo=e=>t=>t.test(e),$o=[Ir,Yr,qr,Gr,Xr,Kr,{test:e=>"auto"===e,parse:e=>e}],Go=e=>$o.find(Wo(e));class qo extends Po{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(),Bo(r))){const o=Ho(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Qn.has(n)||2!==e.length)return;const[r,o]=e,i=Go(r),s=Go(o);if(i!==s)if(Eo(i)&&Eo(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||Rr(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&&!wo.has(t)&&oo(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=xo(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=jo[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 i=r.length-1,s=r[i];r[i]=jo[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 Yo=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!lo.test(e)&&"0"!==e||e.startsWith("url(")));function Ko(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],s=Yo(o,t),a=Yo(i,t);return Io(s===a,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!s||!a)&&(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||kn(n))&&r)}const Xo=e=>null!==e;function Zo(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Xo),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}class Qo{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ar.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Ro(),Ao()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=ar.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!Ko(e,n,r,o)){if(!i)return a&&a(Zo(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 Jo=(e,t,n)=>e+(t-e)*n;function ei(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 ti(e,t){return n=>n>0?t:e}const ni=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},ri=[Wr,Hr,Qr];function oi(e){const t=(n=e,ri.find((e=>e.test(n))));var n;if(Io(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===Qr&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=ei(a,r,e+1/3),i=ei(a,r,e),s=ei(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(r)),r}const ii=(e,t)=>{const n=oi(e),r=oi(t);if(!n||!r)return ti(e,t);const o={...n};return e=>(o.red=ni(n.red,r.red,e),o.green=ni(n.green,r.green,e),o.blue=ni(n.blue,r.blue,e),o.alpha=Jo(n.alpha,r.alpha,e),Hr.transform(o))},si=(e,t)=>n=>t(e(n)),ai=(...e)=>e.reduce(si),li=new Set(["none","hidden"]);function ci(e,t){return n=>Jo(e,t,n)}function ui(e){return"number"==typeof e?ci:"string"==typeof e?Bo(e)?ti:Jr.test(e)?ii:fi:Array.isArray(e)?di:"object"==typeof e?Jr.test(e)?ii:pi:ti}function di(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>ui(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function pi(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=ui(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const fi=(e,t)=>{const n=lo.createTransformer(t),r=oo(e),o=oo(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?li.has(e)&&!o.values.length||li.has(t)&&!r.values.length?function(e,t){return li.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):ai(di(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][o[s]],l=null!==(n=e.values[a])&&void 0!==n?n:0;r[i]=l,o[s]++}return r}(r,o),o.values),n):(Io(!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.`),ti(e,t))};function mi(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?Jo(e,t,n):ui(e)(e,t)}function hi(e,t,n){const r=Math.max(t-5,0);return dr(n-e(r),t-r)}const gi=.01,vi=2,yi=.005,bi=.5;const xi=12;function wi(e,t){return e*Math.sqrt(1-t*t)}const Ei=["duration","bounce"],ki=["stiffness","damping","mass"];function Si(e,t){return t.some((t=>void 0!==e[t]))}function _i(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:p,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Si(e,ki)&&Si(e,Ei))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*Pr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:1,stiffness:o,damping:i}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let o,i;Io(e<=qn(10),"Spring duration must be 10 seconds or less");let s=1-t;s=Pr(.05,1,s),e=Pr(.01,10,Yn(e)),s<1?(o=t=>{const r=t*s,o=r*e;return.001-(r-n)/wi(t,s)*Math.exp(-o)},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=wi(Math.pow(t,2),s);return(.001-o(t)>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<xi;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=qn(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,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:-Yn(n.velocity||0)}),m=p||0,h=c/(2*Math.sqrt(l*u)),g=s-i,v=Yn(Math.sqrt(l/u)),y=Math.abs(g)<5;let b;if(r||(r=y?gi:vi),o||(o=y?yi:bi),h<1){const e=wi(v,h);b=t=>{const n=Math.exp(-h*v*t);return s-n*((m+h*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===h)b=e=>s-Math.exp(-v*e)*(g+(m+v*g)*e);else{const e=v*Math.sqrt(h*h-1);b=t=>{const n=Math.exp(-h*v*t),r=Math.min(e*t,300);return s-n*((m+h*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const x={calculatedDuration:f&&d||null,next:e=>{const t=b(e);if(f)a.done=e>=d;else{let n=0;h<1&&(n=0===e?qn(m):hi(b,e,t));const i=Math.abs(n)<=r,l=Math.abs(s-t)<=o;a.done=i&&l}return a.value=a.done?s:t,a},toString:()=>{const e=Math.min(En(x),wn),t=An((t=>x.next(e*t).value),e,30);return e+"ms "+t}};return x}function Ci({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},f=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let m=n*t;const h=d+m,g=void 0===s?h:s(h);g!==h&&(m=g-d);const v=e=>-m*Math.exp(-e/r),y=e=>g+v(e),b=e=>{const t=v(e),n=y(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let x,w;const E=e=>{var t;t=p.value,(void 0!==a&&t<a||void 0!==l&&t>l)&&(x=e,w=_i({keyframes:[p.value,f(p.value)],velocity:hi(y,e,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,b(e),E(e)),void 0!==x&&e>=x?w.next(e-x):(!t&&b(e),p)}}}const ji=Er(.42,0,1,1),Ti=Er(0,0,.58,1),Ni=Er(.42,0,.58,1),Mi={linear:Kn,easeIn:ji,easeInOut:Ni,easeOut:Ti,circIn:Nr,circInOut:Ar,circOut:Mr,backIn:Cr,backInOut:jr,backOut:_r,anticipate:Tr},Ai=e=>{if(Cn(e)){Oo(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Er(t,n,r,o)}return"string"==typeof e?(Oo(void 0!==Mi[e],`Invalid easing type '${e}'`),Mi[e]):e};function Ri({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Ai):Ai(r),i={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=Mn(0,t,r);e.push(Jo(n,1,o))}}(t,e.length-1),t}(t),e),a=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Oo(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],o=n||mi,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Kn:t;i=ai(e,i)}r.push(i)}return r}(t,r,o),l=a.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=Mn(e[r],e[r+1],n);return a[r](o)};return n?t=>c(Pr(e[0],e[i-1],t)):c}(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||Ni)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}const Pi=e=>{const t=({timestamp:t})=>e(t);return{start:()=>tr.update(t,!0),stop:()=>nr(t),now:()=>rr.isProcessing?rr.timestamp:ar.now()}},Ii={decay:Ci,inertia:Ci,tween:Ri,keyframes:Ri,spring:_i},Oi=e=>e/100;class Li extends Qo{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,i=(null==r?void 0:r.KeyframeResolver)||Po;this.resolver=new i(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:i=0}=this.options,s=kn(t)?t:Ii[t]||Ri;let a,l;s!==Ri&&"number"!=typeof e[0]&&(a=ai(Oi,mi(e[0],e[1])),e=[0,100]);const c=s({...this.options,keyframes:e});"mirror"===o&&(l=s({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=En(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,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:i,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:p,repeatType:f,repeatDelay:m,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),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let y=this.currentTime,b=o;if(p){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,p+1),Boolean(t%2)&&("reverse"===f?(n=1-n,m&&(n-=m/u)):"mirror"===f&&(b=i)),y=Pr(0,1,n)*u}const x=v?{done:!1,value:a[0]}:b.next(y);s&&(x.value=s(x.value));let{done:w}=x;v||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&&(x.value=Zo(a,this.options,r)),h&&h(x.value),E&&this.finish(),x}get duration(){const{resolved:e}=this;return e?Yn(e.calculatedDuration):0}get time(){return Yn(this.currentTime)}set time(e){e=qn(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=Yn(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 Di=new Set(["opacity","clipPath","filter","transform"]),Fi=gn((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),zi={anticipate:Tr,backInOut:jr,circInOut:Ar};class Bi extends Qo{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new qo(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:i,motionValue:s,name:a,startTime:l}=this.options;if(!s.owner||!s.owner.current)return!1;if("string"==typeof o&&Nn()&&o in zi&&(o=zi[o]),kn((c=this.options).type)||"spring"===c.type||!Rn(c.ease)){const{onComplete:t,onUpdate:s,motionValue:a,element:l,...c}=this.options,u=function(e,t){const n=new Li({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),n=u.duration,r=u.times,o=u.ease,i="keyframes"}var c;const u=function(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=On(a,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(s.owner.current,a,e,{...this.options,duration:n,times:r,ease:o});return u.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(Sn(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;s.set(Zo(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:r,type:i,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Yn(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Yn(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=qn(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 Kn;const{animation:n}=t;Sn(n,e)}else this.pendingTimeline=e;return Kn}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:i,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:a,element:l,...c}=this.options,u=new Li({...c,keyframes:n,duration:r,type:o,ease:i,times:s,isGenerator:!0}),d=qn(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:a}=this.options;a&&a(),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:i,type:s}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=t.owner.getProps();return Fi()&&n&&Di.has(n)&&!a&&!l&&!r&&"mirror"!==o&&0!==i&&"inertia"!==s}}const Vi={type:"spring",stiffness:500,damping:25,restSpeed:10},Ui={type:"keyframes",duration:.8},Hi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Wi=(e,{keyframes:t})=>t.length>2?Ui:Zn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Vi:Hi,$i=(e,t,n,r={},o,i)=>s=>{const a=xn(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c-=qn(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(a)||(u={...u,...Wi(e,u)}),u.duration&&(u.duration=qn(u.duration)),u.repeatDelay&&(u.repeatDelay=qn(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&&!i&&void 0!==t.get()){const e=Zo(u.keyframes,a);if(void 0!==e)return tr.update((()=>{u.onUpdate(e),u.onComplete()})),new bn([])}return!i&&Bi.supports(u)?new Bi(u):new Li(u)};function Gi({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function qi(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...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!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||u&&Gi(u,t))continue;const a={delay:n,...xn(s||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=xr(e);if(n){const e=window.MotionHandoffAnimation(n,t,tr);null!==e&&(a.startTime=e,d=!0)}}vr(e,t),r.start($i(t,r,o,e.shouldReduceMotion&&Qn.has(t)?{type:!1}:a,e,d));const p=r.animation;p&&c.push(p)}return a&&Promise.all(c).then((()=>{tr.update((()=>{a&&function(e,t){const n=fn(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)hr(e,t,(s=i[t],ln(s)?s[s.length-1]||0:s));var s}(e,a)}))})),c}function Yi(e,t,n={}){var r;const o=fn(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(qi(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(Ki).forEach(((e,r)=>{e.notify("AnimationStart",t),s.push(Yi(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(s)}(e,t,o+r,s,a,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then((()=>t()))}return Promise.all([s(),a(n.delay)])}function Ki(e,t){return e.sortNodePosition(t)}const Xi=hn.length;function Zi(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&Zi(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<Xi;n++){const r=hn[n],o=e.props[r];(un(o)||!1===o)&&(t[r]=o)}return t}const Qi=[...mn].reverse(),Ji=mn.length;function es(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=>Yi(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=Yi(e,t,n);else{const o="function"==typeof t?fn(e,t,n.custom):t;r=Promise.all(qi(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}(e),n=ns(),r=!0;const o=t=>(n,r)=>{var o;const i=fn(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const{props:s}=e,a=Zi(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<Ji;t++){const m=Qi[t],h=n[m],g=void 0!==s[m]?s[m]:a[m],v=un(g),y=m===i?h.isActive:null;!1===y&&(d=t);let b=g===a[m]&&g!==s[m]&&v;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),h.protectedKeys={...u},!h.isActive&&null===y||!g&&!h.prevProp||an(g)||"boolean"==typeof g)continue;const x=(p=h.prevProp,"string"==typeof(f=g)?f!==p:!!Array.isArray(f)&&!cn(f,p));let w=x||m===i&&h.isActive&&!b&&v||t>d&&v,E=!1;const k=Array.isArray(g)?g:[g];let S=k.reduce(o(m),{});!1===y&&(S={});const{prevResolvedValues:_={}}=h,C={..._,...S},j=t=>{w=!0,c.has(t)&&(E=!0,c.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in C){const t=S[e],n=_[e];if(u.hasOwnProperty(e))continue;let r=!1;r=ln(t)&&ln(n)?!cn(t,n):t!==n,r?null!=t?j(e):c.add(e):void 0!==t&&c.has(e)?j(e):h.protectedKeys[e]=!0}h.prevProp=g,h.prevResolvedValues=S,h.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(w=!1),w&&(!b||!x||E)&&l.push(...k.map((e=>({animation:e,options:{type:m}}))))}var p,f;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:i,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=i(t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=ns(),r=!0}}}function ts(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ns(){return{animate:ts(!0),whileInView:ts(),whileHover:ts(),whileTap:ts(),whileDrag:ts(),whileFocus:ts(),exit:ts()}}class rs{constructor(e){this.isMounted=!1,this.node=e}update(){}}let os=0;const is={animation:{Feature:class extends rs{constructor(e){super(e),e.animationState||(e.animationState=es(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();an(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 rs{constructor(){super(...arguments),this.id=os++}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 ss(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function as(e){return{point:{x:e.pageX,y:e.pageY}}}function ls(e,t,n,r){return ss(e,t,(e=>t=>Vn(t)&&e(t,as(t)))(n),r)}const cs=(e,t)=>Math.abs(e-t);class us{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=fs(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=cs(e.x,t.x),r=cs(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}=rr;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=ds(t,this.transformPagePoint),tr.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 i=fs("pointercancel"===e.type?this.lastMoveEventInfo:ds(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!Vn(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=ds(as(e),this.transformPagePoint),{point:s}=i,{timestamp:a}=rr;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=t;l&&l(e,fs(i,this.history)),this.removeListeners=ai(ls(this.contextWindow,"pointermove",this.handlePointerMove),ls(this.contextWindow,"pointerup",this.handlePointerUp),ls(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),nr(this.updatePoint)}}function ds(e,t){return t?{point:t(e.point)}:e}function ps(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fs({point:e},t){return{point:e,delta:ps(e,hs(t)),offset:ps(e,ms(t)),velocity:gs(t,.1)}}function ms(e){return e[0]}function hs(e){return e[e.length-1]}function gs(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=hs(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>qn(t)));)n--;if(!r)return{x:0,y:0};const i=Yn(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function vs(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ys(e){return e.max-e.min}function bs(e,t,n,r=.5){e.origin=r,e.originPoint=Jo(t.min,t.max,e.origin),e.scale=ys(n)/ys(t),e.translate=Jo(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 xs(e,t,n,r){bs(e.x,t.x,n.x,r?r.originX:void 0),bs(e.y,t.y,n.y,r?r.originY:void 0)}function ws(e,t,n){e.min=n.min+t.min,e.max=e.min+ys(t)}function Es(e,t,n){e.min=t.min-n.min,e.max=e.min+ys(t)}function ks(e,t,n){Es(e.x,t.x,n.x),Es(e.y,t.y,n.y)}function Ss(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 _s(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 Cs=.35;function js(e,t,n){return{min:Ts(e,t),max:Ts(e,n)}}function Ts(e,t){return"number"==typeof e?e:e[t]||0}const Ns=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Ms(e){return[e("x"),e("y")]}function As({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Rs(e){return void 0===e||1===e}function Ps({scale:e,scaleX:t,scaleY:n}){return!Rs(e)||!Rs(t)||!Rs(n)}function Is(e){return Ps(e)||Os(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Os(e){return Ls(e.x)||Ls(e.y)}function Ls(e){return e&&"0%"!==e}function Ds(e,t,n){return n+t*(e-n)}function Fs(e,t,n,r,o){return void 0!==o&&(e=Ds(e,o,r)),Ds(e,n,r)+t}function zs(e,t=0,n=1,r,o){e.min=Fs(e.min,t,n,r,o),e.max=Fs(e.max,t,n,r,o)}function Bs(e,{x:t,y:n}){zs(e.x,t.translate,t.scale,t.originPoint),zs(e.y,n.translate,n.scale,n.originPoint)}const Vs=.999999999999,Us=1.0000000000001;function Hs(e,t){e.min=e.min+t,e.max=e.max+t}function Ws(e,t,n,r,o=.5){zs(e,t,n,Jo(e.min,e.max,o),r)}function $s(e,t){Ws(e.x,t.x,t.scaleX,t.scale,t.originX),Ws(e.y,t.y,t.scaleY,t.scale,t.originY)}function Gs(e,t){return As(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 qs=({current:e})=>e?e.ownerDocument.defaultView:null,Ys=new WeakMap;class Ks{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 us(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(as(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?Ln[i]?null:(Ln[i]=!0,()=>{Ln[i]=!1}):Ln.x||Ln.y?null:(Ln.x=Ln.y=!0,()=>{Ln.x=Ln.y=!1}),!this.openDragLock))return;var i;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ms((e=>{let t=this.getAxisMotionValue(e).get()||0;if(qr.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=ys(r)*(parseFloat(t)/100))}}this.originPoint[e]=t})),o&&tr.postRender((()=>o(e,t))),vr(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=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(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Ms((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:qs(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&&tr.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||!Xs(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Jo(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Jo(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}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&&vs(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Ss(e.x,n,o),y:Ss(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=Cs){return!1===e?e=0:!0===e&&(e=Cs),{x:js(e,"left","right"),y:js(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ms((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||!vs(e))return!1;const n=e.current;Oo(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=Gs(e,n),{scroll:o}=t;return o&&(Hs(r.x,o.offset.x),Hs(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:_s(e.x,t.x),y:_s(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}}(i));this.hasMutatedConstraints=!!e,e&&(i=As(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Ms((s=>{if(!Xs(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(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 vr(this.visualElement,e),n.start($i(e,n,0,t,this.visualElement,!1))}stopAnimation(){Ms((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Ms((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){Ms((t=>{const{drag:n}=this.getProps();if(!Xs(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-Jo(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!vs(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ms((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=ys(e),o=ys(t);return o>r?n=Mn(t.min,t.max-r,e.min):r>o&&(n=Mn(e.min,e.max-o,t.min)),Pr(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(),Ms((t=>{if(!Xs(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Jo(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Ys.set(this.visualElement,this);const e=ls(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();vs(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()),tr.read(t);const o=ss(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ms((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(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Cs,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function Xs(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Zs=e=>(t,n)=>{e&&tr.postRender((()=>e(t,n)))},Qs=(0,i.createContext)({}),Js={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ea(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ta={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Yr.test(e))return e;e=parseFloat(e)}return`${ea(e,t.target.x)}% ${ea(e,t.target.y)}%`}},na={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=lo.parse(e);if(o.length>5)return r;const i=lo.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=Jo(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),i(o)}},ra={},{schedule:oa,cancel:ia}=er(queueMicrotask,!1);class sa extends i.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=la,Object.assign(ra,i),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()})),Js.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||tr.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),oa.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 aa(e){const[t,n]=Jt(),r=(0,i.useContext)($t);return(0,Q.jsx)(sa,{...e,layoutGroup:r,switchLayoutGroup:(0,i.useContext)(Qs),isPresent:t,safeToRemove:n})}const la={borderRadius:{...ta,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ta,borderTopRightRadius:ta,borderBottomLeftRadius:ta,borderBottomRightRadius:ta,boxShadow:na},ca=(e,t)=>e.depth-t.depth;class ua{constructor(){this.children=[],this.isDirty=!1}add(e){lr(this.children,e),this.isDirty=!0}remove(e){cr(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ca),this.isDirty=!1,this.children.forEach(e)}}function da(e){const t=gr(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const pa=["TopLeft","TopRight","BottomLeft","BottomRight"],fa=pa.length,ma=e=>"string"==typeof e?parseFloat(e):e,ha=e=>"number"==typeof e||Yr.test(e);function ga(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const va=ba(0,.5,Mr),ya=ba(.5,.95,Kn);function ba(e,t,n){return r=>r<e?0:r>t?1:n(Mn(e,t,r))}function xa(e,t){e.min=t.min,e.max=t.max}function wa(e,t){xa(e.x,t.x),xa(e.y,t.y)}function Ea(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ka(e,t,n,r,o){return e=Ds(e-=t,1/n,r),void 0!==o&&(e=Ds(e,1/o,r)),e}function Sa(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){if(qr.test(t)&&(t=parseFloat(t),t=Jo(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=Jo(i.min,i.max,r);e===i&&(a-=t),e.min=ka(e.min,t,n,a,o),e.max=ka(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const _a=["x","scaleX","originX"],Ca=["y","scaleY","originY"];function ja(e,t,n,r){Sa(e.x,t,_a,n?n.x:void 0,r?r.x:void 0),Sa(e.y,t,Ca,n?n.y:void 0,r?r.y:void 0)}function Ta(e){return 0===e.translate&&1===e.scale}function Na(e){return Ta(e.x)&&Ta(e.y)}function Ma(e,t){return e.min===t.min&&e.max===t.max}function Aa(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ra(e,t){return Aa(e.x,t.x)&&Aa(e.y,t.y)}function Pa(e){return ys(e.x)/ys(e.y)}function Ia(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Oa{constructor(){this.members=[]}add(e){lr(this.members,e),e.scheduleRender()}remove(e){if(cr(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 La={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Da="undefined"!=typeof window&&void 0!==window.MotionDebug,Fa=["","X","Y","Z"],za={visibility:"hidden"};let Ba=0;function Va(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ua(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=xr(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tr,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ua(r)}function Ha({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Ba++,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,Da&&(La.totalNodes=La.resolvedTargetDeltas=La.recalculatedProjection=0),this.nodes.forEach(Ga),this.nodes.forEach(Ja),this.nodes.forEach(el),this.nodes.forEach(qa),Da&&window.MotionDebug.record(La)},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 ua)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ur),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:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||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=ar.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(nr(r),e(i-t))};return tr.read(r,!0),()=>nr(r)}(r,250),Js.hasAnimatedSinceResize&&(Js.hasAnimatedSinceResize=!1,this.nodes.forEach(Qa))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&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()||sl,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Ra(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={...xn(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Qa(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,nr(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(tl),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&&Ua(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(Ka);this.isUpdating||this.nodes.forEach(Xa),this.isUpdating=!1,this.nodes.forEach(Za),this.nodes.forEach(Wa),this.nodes.forEach($a),this.clearAllSnapshots();const e=ar.now();rr.delta=Pr(0,1e3/60,e-rr.timestamp),rr.timestamp=e,rr.isProcessing=!0,or.update.process(rr),or.preRender.process(rr),or.render.process(rr),rr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,oa.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ya),this.sharedNodes.forEach(nl)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tr.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&&!Na(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Is(this.latestValues)||i)&&(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)),cl((r=n).x),cl(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(dl)){const{scroll:e}=this.root;e&&(Hs(n.x,e.offset.x),Hs(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(wa(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:i}=r;r!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&wa(n,e),Hs(n.x,o.offset.x),Hs(n.y,o.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};wa(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&&$s(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Is(r.latestValues)&&$s(n,r.latestValues)}return Is(this.latestValues)&&$s(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};wa(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Is(n.latestValues))continue;Ps(n.latestValues)&&n.updateSnapshot();const r={x:{min:0,max:0},y:{min:0,max:0}};wa(r,n.measurePageBox()),ja(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Is(this.latestValues)&&ja(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!==rr.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:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=rr.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}},ks(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),wa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,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,a=this.relativeTarget,l=this.relativeParent.target,ws(s.x,a.x,l.x),ws(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):wa(this.target,this.layout.layoutBox),Bs(this.target,this.targetDelta)):wa(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}},ks(this.relativeTargetOrigin,this.target,e.target),wa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Da&&La.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Ps(this.parent.latestValues)&&!Os(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===rr.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=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&&!i)return;wa(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&$s(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Bs(e,s)),r&&Is(i.latestValues)&&$s(e,i.latestValues))}t.x<Us&&t.x>Vs&&(t.x=1),t.y<Us&&t.y>Vs&&(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?(Ea(this.prevProjectionDelta.x,this.projectionDelta.x),Ea(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),xs(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&Ia(this.projectionDelta.x,this.prevProjectionDelta.x)&&Ia(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Da&&La.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},i={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}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(il));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,p;rl(i.x,e.x,n),rl(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ks(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){ol(e.x,t.x,n.x,r),ol(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),d&&(l=this.relativeTarget,p=d,Ma(l.x,p.x)&&Ma(l.y,p.y))&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),wa(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Jo(0,void 0!==n.opacity?n.opacity:1,va(r)),e.opacityExit=Jo(void 0!==t.opacity?t.opacity:1,0,ya(r))):i&&(e.opacity=Jo(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<fa;o++){const i=`border${pa[o]}Radius`;let s=ga(t,i),a=ga(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||ha(s)===ha(a)?(e[i]=Math.max(Jo(ma(s),ma(a),r),0),(qr.test(a)||qr.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=Jo(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&&(nr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tr.update((()=>{Js.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=gr(0)?0:mr(0);return r.start($i("",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&&ul(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=ys(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=ys(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}wa(t,n),$s(t,o),xs(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Oa),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&&Va("z",e,r,this.animationValues);for(let t=0;t<Fa.length;t++)Va(`rotate${Fa[t]}`,e,r,this.animationValues),Va(`skew${Fa[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 za;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=da(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=da(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!Is(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}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:i,skewX:s,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),s&&(r+=`skewX(${s}deg) `),a&&(r+=`skewY(${a}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===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=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in ra){if(void 0===s[e])continue;const{correct:t,applyTo:n}=ra[e],o="none"===r.transform?s[e]:t(s[e],i);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=i===this?da(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(Ka),this.root.sharedNodes.clear()}}}function Wa(e){e.updateLayout()}function $a(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,i=n.source!==e.layout.source;"size"===o?Ms((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=ys(r);r.min=t[e].min,r.max=r.min+o})):ul(o,n.layoutBox,t)&&Ms((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=ys(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}};xs(s,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?xs(a,e.applyTransform(r,!0),n.measuredBox):xs(a,t,n.layoutBox);const l=!Na(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s={x:{min:0,max:0},y:{min:0,max:0}};ks(s,n.layoutBox,o.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};ks(a,t,i.layoutBox),Ra(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ga(e){Da&&La.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 qa(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ya(e){e.clearSnapshot()}function Ka(e){e.clearMeasurements()}function Xa(e){e.isLayoutDirty=!1}function Za(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Qa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ja(e){e.resolveTargetDelta()}function el(e){e.calcProjection()}function tl(e){e.resetSkewAndRotation()}function nl(e){e.removeLeadSnapshot()}function rl(e,t,n){e.translate=Jo(t.translate,0,n),e.scale=Jo(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ol(e,t,n,r){e.min=Jo(t.min,n.min,r),e.max=Jo(t.max,n.max,r)}function il(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const sl={duration:.45,ease:[.4,0,.1,1]},al=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ll=al("applewebkit/")&&!al("chrome/")?Math.round:Kn;function cl(e){e.min=ll(e.min),e.max=ll(e.max)}function ul(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Pa(t),o=Pa(n),!(Math.abs(r-o)<=.2));var r,o}function dl(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const pl=Ha({attachResizeListener:(e,t)=>ss(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fl={current:void 0},ml=Ha({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fl.current){const e=new pl({});e.mount(window),e.setOptions({layoutScroll:!0}),fl.current=e}return fl.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),hl={pan:{Feature:class extends rs{constructor(){super(...arguments),this.removePointerDownListener=Kn}onPointerDown(e){this.session=new us(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qs(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Zs(e),onStart:Zs(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&tr.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=ls(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 rs{constructor(e){super(e),this.removeGroupControls=Kn,this.removeListeners=Kn,this.controls=new Ks(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Kn}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ml,MeasureLayout:aa}};function gl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&tr.postRender((()=>o(t,as(t))))}function vl(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&&tr.postRender((()=>o(t,as(t))))}const yl=new WeakMap,bl=new WeakMap,xl=e=>{const t=yl.get(e.target);t&&t(e)},wl=e=>{e.forEach(xl)};const El={some:0,all:1},kl={inView:{Feature:class extends rs{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,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:El[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;bl.has(n)||bl.set(n,{});const r=bl.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(wl,{root:e,...t})),r[o]}(t);return yl.set(e,n),r.observe(e),()=>{yl.delete(e),r.unobserve(e)}}(this.node.current,i,(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(),i=t?n:r;i&&i(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 rs{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=Fn(e,n),s=e=>{const r=e.currentTarget;if(!Gn(e)||Hn.has(r))return;Hn.add(r);const i=t(e),s=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),Gn(e)&&Hn.has(r)&&(Hn.delete(r),"function"==typeof i&&i(e,{success:t}))},a=e=>{s(e,n.useGlobalTarget||Bn(r,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",a,o),window.addEventListener("pointercancel",l,o)};return r.forEach((e=>{(function(e){return Un.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=Wn((()=>{if(Hn.has(n))return;$n(n,"down");const e=Wn((()=>{$n(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>$n(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,o)),o)})),i}(e,(e=>(vl(this.node,e,"Start"),(e,{success:t})=>vl(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends rs{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=ai(ss(this.node.current,"focus",(()=>this.onFocus())),ss(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends rs{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=Fn(e,n),s=zn((e=>{const{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;const i=zn((e=>{r(e),n.removeEventListener("pointerleave",i)}));n.addEventListener("pointerleave",i,o)}));return r.forEach((e=>{e.addEventListener("pointerenter",s,o)})),i}(e,(e=>(gl(this.node,e,"Start"),e=>gl(this.node,e,"End")))))}unmount(){}}}},Sl={layout:{ProjectionNode:ml,MeasureLayout:aa}},_l=(0,i.createContext)({strict:!1}),Cl=(0,i.createContext)({});function jl(e){return an(e.animate)||hn.some((t=>un(e[t])))}function Tl(e){return Boolean(jl(e)||e.variants)}function Nl(e){return Array.isArray(e)?e.join(" "):e}const Ml={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"]},Al={};for(const e in Ml)Al[e]={isEnabled:t=>Ml[e].some((e=>!!t[e]))};const Rl=Symbol.for("motionComponentSymbol");function Pl(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):vs(n)&&(n.current=r))}),[t])}function Il(e,t,n,r,o){var s,a;const{visualElement:l}=(0,i.useContext)(Cl),c=(0,i.useContext)(_l),u=(0,i.useContext)(qt),d=(0,i.useContext)(Yt).reducedMotion,p=(0,i.useRef)(null);r=r||c.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:d}));const f=p.current,m=(0,i.useContext)(Qs);!f||f.projection||!o||"html"!==f.type&&"svg"!==f.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ol(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||a&&vs(a),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(p.current,n,o,m);const h=(0,i.useRef)(!1);(0,i.useInsertionEffect)((()=>{f&&h.current&&f.update(n,u)}));const g=n[br],v=(0,i.useRef)(Boolean(g)&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,g))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,g)));return rn((()=>{f&&(h.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),oa.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())})),(0,i.useEffect)((()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,g)})),v.current=!1))})),f}function Ol(e){if(e)return!1!==e.options.allowProjection?e.projection:Ol(e.parent)}function Ll({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var s,a;function l(e,s){let a;const l={...(0,i.useContext)(Yt),...e,layoutId:Dl(e)},{isStatic:c}=l,u=function(e){const{initial:t,animate:n}=function(e,t){if(jl(e)){const{initial:t,animate:n}=e;return{initial:!1===t||un(t)?t:void 0,animate:un(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,i.useContext)(Cl));return(0,i.useMemo)((()=>({initial:t,animate:n})),[Nl(t),Nl(n)])}(e),d=r(e,c);if(!c&&nn){(0,i.useContext)(_l).strict;const e=function(e){const{drag:t,layout:n}=Al;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);a=e.MeasureLayout,u.visualElement=Il(o,d,l,t,e.ProjectionNode)}return(0,Q.jsxs)(Cl.Provider,{value:u,children:[a&&u.visualElement?(0,Q.jsx)(a,{visualElement:u.visualElement,...l}):null,n(o,e,Pl(d,u.visualElement,s),d,c,u.visualElement)]})}e&&function(e){for(const t in e)Al[t]={...Al[t],...e[t]}}(e),l.displayName=`motion.${"string"==typeof o?o:`create(${null!==(a=null!==(s=o.displayName)&&void 0!==s?s:o.name)&&void 0!==a?a:""})`}`;const c=(0,i.forwardRef)(l);return c[Rl]=o,c}function Dl({layoutId:e}){const t=(0,i.useContext)($t).id;return t&&void 0!==e?t+"-"+e:e}const Fl=["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 zl(e){return"string"==typeof e&&!e.includes("-")&&!!(Fl.indexOf(e)>-1||/[A-Z]/u.test(e))}const Bl=e=>(t,n)=>{const r=(0,i.useContext)(Cl),o=(0,i.useContext)(qt),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){const s={latestValues:Vl(r,o,i,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?s():Gt(s)};function Vl(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=da(i[e]);let{initial:s,animate:a}=e;const l=jl(e),c=Tl(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!an(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=pn(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 Ul=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Hl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Wl=Xn.length;function $l(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const e in t){const n=t[e];if(Zn.has(e))s=!0;else if(Fo(e))o[e]=n;else{const t=Ul(n,vo[e]);e.startsWith("origin")?(a=!0,i[e]=t):r[e]=t}}if(t.transform||(s||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i<Wl;i++){const s=Xn[i],a=e[s];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(s.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const e=Ul(a,vo[s]);l||(o=!1,r+=`${Hl[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")),a){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}const Gl={offset:"stroke-dashoffset",array:"stroke-dasharray"},ql={offset:"strokeDashoffset",array:"strokeDasharray"};function Yl(e,t,n){return"string"==typeof e?e:Yr.transform(t+n*e)}function Kl(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d){if($l(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:f,dimensions:m}=e;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==o||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){return`${Yl(t,e.x,e.width)} ${Yl(n,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==r&&(p.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Gl:ql;e[i.offset]=Yr.transform(-r);const s=Yr.transform(t),a=Yr.transform(n);e[i.array]=`${s} ${a}`}(p,s,a,l,!1)}const Xl=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Zl(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 Ql=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 Jl(e,t,n,r){Zl(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Ql.has(n)?n:yr(n),t.attrs[n])}function ec(e,{layout:t,layoutId:n}){return Zn.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!ra[e]||"opacity"===e)}function tc(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(gr(o[s])||t.style&&gr(t.style[s])||ec(s,e)||void 0!==(null===(r=null==n?void 0:n.getValue(s))||void 0===r?void 0:r.liveStyle))&&(i[s]=o[s]);return i}function nc(e,t,n){const r=tc(e,t,n);for(const n in e)(gr(e[n])||gr(t[n]))&&(r[-1!==Xn.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}const rc=["x","y","width","height","cx","cy","r"],oc={useVisualState:Bl({scrapeMotionValuesFromProps:nc,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i)for(const e in o)if(Zn.has(e)){i=!0;break}if(!i)return;let s=!t;if(t)for(let n=0;n<rc.length;n++){const r=rc[n];e[r]!==t[r]&&(s=!0)}s&&tr.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),tr.render((()=>{Kl(r,o,Xl(n.tagName),e.transformTemplate),Jl(n,r)}))}))}})},ic={useVisualState:Bl({scrapeMotionValuesFromProps:tc,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function sc(e,t,n){for(const r in t)gr(t[r])||ec(r,n)||(e[r]=t[r])}function ac(e,t){const n={},r=function(e,t){const n={};return sc(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,i.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return $l(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 lc=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 cc(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||lc.has(e)}let uc=e=>!cc(e);try{(dc=require("@emotion/is-prop-valid").default)&&(uc=e=>e.startsWith("on")?!cc(e):dc(e))}catch(e){}var dc;function pc(e,t,n,r){const o=(0,i.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Kl(n,t,Xl(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};sc(t,e.style,e),o.style={...t,...o.style}}return o}function fc(e=!1){return(t,n,r,{latestValues:o},s)=>{const a=(zl(t)?pc:ac)(n,o,s,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(uc(o)||!0===n&&cc(o)||!t&&!cc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c=t!==i.Fragment?{...l,...a,ref:r}:{},{children:u}=n,d=(0,i.useMemo)((()=>gr(u)?u.get():u),[u]);return(0,i.createElement)(t,{...c,children:d})}}function mc(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return Ll({...zl(n)?oc:ic,preloadedFeatures:e,useRender:fc(r),createVisualElement:t,Component:n})}}const hc={current:null},gc={current:!1},vc=[...$o,Jr,lo],yc=new WeakMap,bc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class xc{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Po,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=ar.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,tr.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:c}=i;this.onUpdate=c,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},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=jl(t),this.isVariantNode=Tl(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!==a[e]&&gr(t)&&t.set(a[e],!1)}}mount(e){this.current=e,yc.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))),gc.current||function(){if(gc.current=!0,nn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hc.current=e.matches;e.addListener(t),t()}else hc.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||hc.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){yc.delete(this.current),this.projection&&this.projection.unmount(),nr(this.notifyUpdate),nr(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=Zn.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&tr.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),o(),i&&i(),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 Al){const t=Al[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<bc.length;t++){const n=bc[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],i=n[r];if(gr(o))e.addValue(r,o);else if(gr(i))e.addValue(r,mr(o,{owner:e}));else if(i!==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,mr(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=mr(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&&(Lo(r)||Rr(r))?r=parseFloat(r):(o=r,!vc.find(Wo(o))&&lo.test(t)&&(r=xo(e,t))),this.setBaseTarget(e,gr(r)?r.get():r)),gr(r)?r.get():r;var o}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=pn(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||gr(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 ur),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class wc extends xc{constructor(){super(...arguments),this.KeyframeResolver=qo}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;gr(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class Ec extends wc{constructor(){super(...arguments),this.type="html",this.renderInstance=Zl}readValueFromInstance(e,t){if(Zn.has(t)){const e=bo(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Fo(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Gs(e,t)}build(e,t,n){$l(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return tc(e,t,n)}}class kc extends wc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ns}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Zn.has(t)){const e=bo(t);return e&&e.default||0}return t=Ql.has(t)?t:yr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return nc(e,t,n)}build(e,t,n){Kl(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){Jl(e,t,0,r)}mount(e){this.isSVGTag=Xl(e.tagName),super.mount(e)}}const Sc=sn(mc({...is,...kl,...hl,...Sl},((e,t)=>zl(e)?new kc(t):new Ec(t,{allowProjection:e!==i.Fragment}))));let _c=!1;const Cc=({toastItem:e,title:t="",content:n="",autoDismiss:r=!0,dismissAfter:o=5e3,theme:s="light",design:a="stack",icon:l,variant:c="neutral",removeToast:u})=>{const d=(0,i.useRef)(0),p=(0,i.useRef)(0),f=(0,i.useRef)(),m=(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 f.current=m(e,t),()=>{clearTimeout(f.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"===a&&(g=(0,Q.jsx)("div",{className:Ye("flex items-center justify-start p-4 gap-2 relative border border-solid rounded-md shadow-lg","dark"===s?Ut:Vt?.[c],"w-[22.5rem]"),onMouseEnter:()=>{clearTimeout(f.current),p.current=(new Date).getTime()},onMouseLeave:()=>{f.current=m(e,o-(p.current-d.current))},children:"custom"!==e.type?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Ot({variant:c,icon:l,theme:s})}),(0,Q.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 mr-6",children:[Dt({title:t,theme:s}),Ft({content:n,theme:s}),e?.action?.label&&"function"==typeof e?.action?.onClick&&(0,Q.jsx)("div",{className:"mt-2.5",children:Lt({actionLabel:e?.action?.label,actionType:e?.action?.type??"button",onAction:h,theme:s})})]}),(0,Q.jsx)("div",{className:"absolute right-4 top-4 [&_svg]:size-5",children:(0,Q.jsx)("button",{className:Ye("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",Ht[s]??Ht.light),onClick:()=>{"function"==typeof u&&u(e.id)},children:(0,Q.jsx)(jt,{})})})]}):e?.jsx?.({close:()=>u(e.id),action:e?.action?{...e?.action,onClick:h}:null})})),"inline"===a&&(g=(0,Q.jsxs)("div",{className:Ye("flex items-center justify-start p-3 gap-2 relative border border-solid rounded-md shadow-lg","dark"===s?Ut:Vt?.[c],"lg:w-[47.5rem] w-full"),children:[(0,Q.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Ot({variant:c,icon:l,theme:s})}),(0,Q.jsxs)("div",{className:"flex items-start justify-start gap-1 mr-10 [&>span:first-child]:shrink-0",children:[Dt({title:t,theme:s}),Ft({content:n,theme:s})]}),(0,Q.jsx)("div",{className:"absolute right-3 top-3 [&_svg]:size-5",children:(0,Q.jsx)("button",{className:Ye("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",Ht[s]??Ht.light),onClick:()=>u(e.id),children:(0,Q.jsx)(jt,{})})})]})),g},jc=(Pc=({position:e="top-right",design:t="stack",theme:n="light",className:r="",autoDismiss:o=!0,dismissAfter:s=5e3})=>{const[a,l]=(0,i.useState)([]);(0,i.useEffect)((()=>{X.subscribe((e=>{e?.dismiss?l((t=>t.map((t=>t.id===e.id?{...t,dismiss:!0}:t)))):setTimeout((()=>{(0,Wt.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,Q.jsx)("ul",{className:Ye("fixed flex flex-col list-none z-20 p-10 pointer-events-none [&>li]:pointer-events-auto gap-3",Bt[e]??Bt["top-right"],r),children:(0,Q.jsx)(on,{initial:!1,children:a.map((e=>(0,Q.jsx)(Sc.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,Q.jsx)(Cc,{toastItem:e,title:e.title,content:e?.description,icon:e?.icon??void 0,design:e?.design??t,autoDismiss:e?.autoDismiss??o,dismissAfter:e?.dismissAfter??s,removeToast:c,variant:e.type,theme:e?.theme??n})},e.id)))})})},(0,i.memo)((e=>{const t=e.singleTon;return _c&&t?null:(_c=!0,(0,Q.jsx)(Pc,{...e}))}))),Tc=a().createContext(),Nc=({reducer:t,initialState:n,children:r})=>(0,e.createElement)(Tc.Provider,{value:(0,i.useReducer)(t,n)},r),Mc=()=>(0,i.useContext)(Tc),Ac=window.wp.i18n,Rc=({children:e,gap:t="lg",className:n,...r})=>(0,Q.jsx)("div",{className:Ye("w-full box-border flex items-center justify-between bg-background-primary p-5 min-h-16",Xe(t),n),...r,children:e});var Pc;Rc.displayName="Topbar";const Ic=({gap:e="sm",children:t,className:n})=>(0,Q.jsx)("div",{className:Ye("flex items-center",Xe(e),n),children:t});Ic.displayName="Topbar.Left";const Oc=({gap:e="md",children:t,align:n="center",className:r})=>{const o={left:"justify-start",center:"justify-center",right:"justify-end"}[n];return(0,Q.jsx)("div",{className:Ye("flex items-center grow",Xe(e),o,r),children:t})};Oc.displayName="Topbar.Middle";const Lc=({gap:e="sm",children:t,className:n})=>(0,Q.jsx)("div",{className:Ye("flex items-center",Xe(e),n),children:t});Lc.displayName="Topbar.Right";const Dc=({children:e,className:t})=>(0,Q.jsx)("div",{className:Ye("flex items-center [&>svg]:block h-full",t),children:e});Dc.displayName="Topbar.Item",Rc.Left=Ic,Rc.Middle=Oc,Rc.Right=Lc,Rc.Item=Dc;const Fc=(0,i.forwardRef)((({label:e="",size:t="sm",className:n="",type:r="pill",variant:o="neutral",icon:i=null,disabled:s=!1,onClose:a=()=>{},closable:l=!1,onMouseDown:c=()=>{},disableHover:u=!1},d)=>{const p={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 f="",m="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?(f=p.disabled,m+=" cursor-not-allowed disabled"):f=p[o],e?(0,Q.jsxs)("span",{className:Ye("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",f,!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:[i?(0,Q.jsx)("span",{className:Ye("justify-center flex items-center",h[t]),children:i}):null,(0,Q.jsx)("span",{className:"px-1 truncate inline-block",children:e}),l&&(0,Q.jsxs)("span",{className:Ye(m,h[t]),onMouseDown:c,role:"button",tabIndex:0,...!s&&{onClick:a},children:[(0,Q.jsx)("span",{className:"sr-only",children:`Remove ${e}`}),(0,Q.jsx)(jt,{}),(0,Q.jsx)("span",{className:"absolute -inset-1"})]})]}):null}));Fc.displayName="Badge";const zc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUwIiBoZWlnaHQ9IjI1MyIgdmlld0JveD0iMCAwIDI1MCAyNTMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik00My4zODAyIDk0LjAzMjFINi4xMDM1MmUtMDVWMTA1LjgxN0gyOC4zMzUxQzMwLjk0MjkgMTU5Ljk4IDY4LjM3MTggMTkzLjkxNSA4Ni43NjAzIDIwNC4xMTJDMTA1LjQxNiAxOTcuNjkzIDExNi4yNjYgMjExLjEzMyAxMTkuMzU4IDIxOC42NTZDMTI5Ljk5IDIyMy44NzIgMTUyLjA0IDIyMy41MDQgMTYxLjczNSAyMjIuNjY4QzE3My4wMTkgMjAyLjM1NyAxOTIuMzI3IDIwNy42MjMgMTk4LjM0NSAyMTIuMTM2QzIyMy44MjIgMTk5LjkgMjM4LjU0OSAxODIuNjMxIDI0Mi43MjggMTc1LjUyN0wyMzQuMjAzIDE2NS40OTZDMTg3LjQ2MiAyMjIuNjY4IDEyNi42MyAyMTAuNTQ4IDEwMi4wNTYgMTk3LjM0MkM1MC4xMDA0IDE3My4yNyA0MS4yOTA2IDExOC40MzkgNDMuMzgwMiA5NC4wMzIxWiIgZmlsbD0iI0VFNUEyRiIvPgo8Y2lyY2xlIGN4PSIxNDguMTk1IiBjeT0iMTAxLjgwNSIgcj0iMTAxLjgwNSIgZmlsbD0iI0VFNUEyRiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTk1Ljc4NzEgMjQ3LjI0MkMxMDcuMDA1IDI0Ny4yNDIgMTE2LjA5OCAyMzguMTQ4IDExNi4wOTggMjI2LjkzMUMxMTYuMDk4IDIxNS43MTMgMTA3LjAwNSAyMDYuNjIgOTUuNzg3MSAyMDYuNjJDODQuNTY5NyAyMDYuNjIgNzUuNDc2MiAyMTUuNzEzIDc1LjQ3NjIgMjI2LjkzMUM3NS40NzYyIDIzOC4xNDggODQuNTY5NyAyNDcuMjQyIDk1Ljc4NzEgMjQ3LjI0MlpNOTUuNzg3MiAyMzIuNjk4Qzk4Ljk3MjMgMjMyLjY5OCAxMDEuNTU0IDIzMC4xMTYgMTAxLjU1NCAyMjYuOTMxQzEwMS41NTQgMjIzLjc0NiA5OC45NzIzIDIyMS4xNjQgOTUuNzg3MiAyMjEuMTY0QzkyLjYwMiAyMjEuMTY0IDkwLjAxOTkgMjIzLjc0NiA5MC4wMTk5IDIyNi45MzFDOTAuMDE5OSAyMzAuMTE2IDkyLjYwMiAyMzIuNjk4IDk1Ljc4NzIgMjMyLjY5OFoiIGZpbGw9IiNFRTVBMkYiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xODQuODA1IDI1Mi43NThDMTk2LjAyMiAyNTIuNzU4IDIwNS4xMTYgMjQzLjY2NSAyMDUuMTE2IDIzMi40NDdDMjA1LjExNiAyMjEuMjMgMTk2LjAyMiAyMTIuMTM2IDE4NC44MDUgMjEyLjEzNkMxNzMuNTg3IDIxMi4xMzYgMTY0LjQ5NCAyMjEuMjMgMTY0LjQ5NCAyMzIuNDQ3QzE2NC40OTQgMjQzLjY2NSAxNzMuNTg3IDI1Mi43NTggMTg0LjgwNSAyNTIuNzU4Wk0xODQuODA1IDIzOC4yMTVDMTg3Ljk5IDIzOC4yMTUgMTkwLjU3MiAyMzUuNjMzIDE5MC41NzIgMjMyLjQ0N0MxOTAuNTcyIDIyOS4yNjIgMTg3Ljk5IDIyNi42OCAxODQuODA1IDIyNi42OEMxODEuNjE5IDIyNi42OCAxNzkuMDM3IDIyOS4yNjIgMTc5LjAzNyAyMzIuNDQ3QzE3OS4wMzcgMjM1LjYzMyAxODEuNjE5IDIzOC4yMTUgMTg0LjgwNSAyMzguMjE1WiIgZmlsbD0iI0VFNUEyRiIvPgo8cGF0aCBkPSJNMTA5LjkwNiA2Ni45MDA5TDc5LjIzNzUgMTQyLjQxSDk4Ljk3OEwxMjMuMTk1IDg1LjUyMjRMMTM2LjA3NiAxMDUuMTY3TDE0Ni4yOTggODguNTkxOUwxMzAuMTQ3IDY0Ljg1NDVDMTIxLjE1MSA1Mi4zNzIgMTEyLjM1OSA1OS45NDM0IDEwOS45MDYgNjYuOTAwOVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xMzIuMTkxIDEyMi45N0wxMjAuOTQ2IDEwOC4yMzdMMTEyLjc2OCAxMjguNDk1TDEyMS43NjQgMTM4LjMxOEMxMjcuODk4IDE0Ni41MDMgMTM3LjA5OCAxNDYuMDk0IDE0MC45ODMgMTM5LjM0MUwxODcuMTg5IDY2LjkwMDlDMTgwLjgxIDUzLjgwNDQgMTcxLjAzNyA1OC43MTU2IDE2Ny41NjIgNjQuODU0NUwxMzIuMTkxIDEyMi45N1oiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yMTcuNjUzIDE0Mi40MUwxOTAuMjU2IDczLjI0NDVMMTc3LjM3NSA5My4yOTg0TDE5Ny4yMDcgMTQyLjQxSDIxNy42NTNaIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSIzLjI1OTk1IiB5PSIxMTAuMzMxIiB3aWR0aD0iMjMuNTcwNyIgaGVpZ2h0PSI0LjUxMzU0IiBmaWxsPSIjRUU1QTJGIi8+CjxyZWN0IHg9IjguMjc0NzIiIHk9IjExOS4zNTgiIHdpZHRoPSIxOC41NTU3IiBoZWlnaHQ9IjQuNTEzNTQiIGZpbGw9IiNFRTVBMkYiLz4KPC9zdmc+Cg==";var Bc=function(){return Bc=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},Bc.apply(this,arguments)},Vc=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(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,a)}l((r=r.apply(e,t||[])).next())}))},Uc=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},Hc={rssFeedURL:"",selector:"",uniqueKey:"",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:{label:"",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(){}}},Wc=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(),$c.setInstanceID(this.getID()),this.RSS_Fetch_Instance=new Gc(this),this.RSS_View_Instance=new qc(this),this.setNotificationsCount(),this.setTriggers()):console.warn("WNR: Cannot find element with",this.getArgs().selector)}return e.prototype.validateArgs=function(e){["rssFeedURL","selector","uniqueKey"].forEach((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=Bc(Bc(Bc({},Hc),e),{viewAll:Bc(Bc({},Hc.viewAll),null==e?void 0:e.viewAll),triggerButton:Bc(Bc({},Hc.triggerButton),null==e?void 0:e.triggerButton),flyout:Bc(Bc(Bc({},Hc.flyout),null==e?void 0:e.flyout),{innerContent:Bc(Bc({},Hc.flyout.innerContent),null===(t=null==e?void 0:e.flyout)||void 0===t?void 0:t.innerContent),excerpt:Bc(Bc({},Hc.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,this.getArgs().uniqueKey],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,"")+"-"+this.getArgs().uniqueKey},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 Vc(this,void 0,void 0,(function(){var e=this;return Uc(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.getRSSFeedURLs().map((function(t){return Vc(e,[t],void 0,(function(e){var t,n=e.key;return Uc(this,(function(e){switch(e.label){case 0:return t=0,"function"!=typeof this.getArgs().notification.getLastPostUnixTime?[3,2]:[4,this.getArgs().notification.getLastPostUnixTime(n,this)];case 1:return t=e.sent(),[3,3];case 2:t=$c.getLastPostUnixTime(n),e.label=3;case 3:return this.isMultiFeedRSS()?this.multiLastPostUnixTime[n]=+t:this.lastPostUnixTime=+t,[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,i=e.isMultiFeedRSS()?e.multiLastPostUnixTime[n]:e.lastPostUnixTime;o>i&&(r.forEach((function(t){t.date>i&&(e.isMultiFeedRSS()&&(e.multiNotificationCount[n]++,e.multiHasNewFeeds[n]=!0),e.notificationsCount++,e.hasNewFeeds=!0)})),e.RSS_View_Instance.setNotification(e.notificationsCount))}}))})).catch(console.error)];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()),i=document.getElementById(this.RSS_View_Instance.getFlyoutMultiFeedNavID()),s=function(t){e.RSS_Fetch_Instance.fetchData().then((function(o){r.innerHTML="";var i=o[t];if(i.length){var s=+i[0].date,a=e.isMultiFeedRSS()?e.multiLastPostUnixTime[t]:e.lastPostUnixTime;i.forEach((function(n){var o=!!a&&n.date>a,i=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(i,"\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):$c.setLastPostUnixTime(s,t)))}})).catch(console.error)};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()){var r=i.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):$c.setLastPostUnixTime(n,o)),e.multiHasNewFeeds[o]=!1})).catch(console.error),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()}else s(null)}));var a=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")&&a()})),this.getArgs().flyout.closeOnOverlayClick&&n.querySelector(".whats-new-rss-flyout-overlay").addEventListener("click",a),o.addEventListener("click",a)},e}(),$c=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}(),Gc=function(){function e(e){var t=this;this.data={},this.RSS=e,this.RSS.getRSSFeedURLs().forEach((function(e){var n=JSON.parse($c.getSessionData(e.key));n&&n.length&&(t.data[e.key]=n)}))}return e.prototype.fetchData=function(){return Vc(this,void 0,void 0,(function(){var e,t=this;return Uc(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 Vc(t,void 0,void 0,(function(){var t,n,r=this;return Uc(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,i=t.querySelector("link").textContent,s=t.querySelector("content\\:encoded, encoded"),a=s?s.textContent:"",l=t.querySelector("pubDate").innerHTML;r.data[e.key].push({title:o,date:l?+new Date(l):null,postLink:i,description:a.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)||"{}")})})),$c.setSessionData(JSON.stringify(this.data[e.key]),e.key),[2]}}))}))})),[4,Promise.all(e)]);case 1:return n.sent(),[2,this.data]}}))}))},e}(),qc=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,t=this.RSS.getArgs().triggerButton.label;e=t?"\n\t\t\t".concat(this.RSS.getArgs().triggerButton.beforeBtn,'\n\t\t\t<a class="whats-new-rss-trigger-button has-label" id="').concat(this.getTriggerButtonID(),'">\n\t\t\t\t<div class="icon-badge">\n\t\t\t\t\t').concat(this.RSS.getArgs().triggerButton.icon,'\n\t\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t\t</div>\n\t\t\t\t').concat(t,"\n\t\t\t</a>\n\t\t\t").concat(this.RSS.getArgs().triggerButton.afterBtn,"\n\t\t\t"):"\n\t\t\t".concat(this.RSS.getArgs().triggerButton.beforeBtn,'\n\t\t\t<a class="whats-new-rss-trigger-button" id="').concat(this.getTriggerButtonID(),'">\n\t\t\t\t').concat(this.RSS.getArgs().triggerButton.icon,'\n\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t</a>\n\t\t\t').concat(this.RSS.getArgs().triggerButton.afterBtn,"\n\t\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,i=n.readMore;if(!r)return e;var s=e.replace(/<[^>]*>/g,"").split(/\s+/),a=s.slice(0,r).join(" ");return o&&(a+=o),r>s.length?e:t&&(null==i?void 0:i.label)?"<p>".concat(a,' <a href="').concat(t,'" target="_blank" class="').concat(i.className,'">').concat(i.label,"</a></p>"):"<p>".concat(a,"</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"),i=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"),i.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(i),i.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,i=24*o,s=7*i,a=30*i;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<i){var c=Math.floor(r/o);return"".concat(c," hour").concat(c>1?"s":""," ago")}if(r<s){var u=Math.floor(r/i);return"".concat(u," day").concat(u>1?"s":""," ago")}if(r<a){var d=Math.floor(r/s);return"".concat(d," week").concat(d>1?"s":""," ago")}var p=Math.floor(r/a);return"".concat(p," month").concat(p>1?"s":""," ago")},e}();const Yc=function(){const t=moderncart_settings?.whats_new_rss_feed;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.has-label{align-items:end;gap:10px}.whats-new-rss-trigger-button.has-label .icon-badge{position:relative;line-height:1}.whats-new-rss-trigger-button.has-label .icon-badge .whats-new-rss-notification-badge{top:-12px;right:-10px}.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 Wc(r))),()=>{n.current&&"function"==typeof n.current.destroy&&n.current.destroy()}}),[e,...Object.values(t)]),n.current}({rssFeedURL:t?.url,uniqueKey:t?.key,selector:"#wcf-whats-new-content",triggerButton:{icon:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 stroke-[1.5] text-gray-500 hover:text-gray-600 focus:outline-none focus:ring-offset-2 cursor-pointer"><path stroke-linecap="round" stroke-linejoin="round" d="M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 0 8.835-2.535m0 0A23.74 23.74 0 0 0 18.795 3m.38 1.125a23.91 23.91 0 0 1 1.014 5.395m-1.014 8.855c-.118.38-.245.754-.38 1.125m.38-1.125a23.91 23.91 0 0 0 1.014-5.395m0-3.46c.495.413.811 1.035.811 1.73 0 .695-.316 1.317-.811 1.73m0-3.46a24.347 24.347 0 0 1 0 3.46" /></svg>'},flyout:{title:(0,Ac.__)("What's New?","modern-cart"),formatDate:e=>`${e.toLocaleDateString("en-US",{weekday:"long"})} ${e.toLocaleDateString("en-US",{month:"long"})} ${e.getDate()}, ${e.getFullYear()}`}}),(0,e.createElement)("div",{id:"wcf-whats-new-content","aria-label":(0,Ac.__)("What's New in Modern Cart","modern-cart"),title:(0,Ac.__)("What's New in Modern Cart","modern-cart")})},Kc=(0,i.createContext)({}),Xc=()=>(0,i.useContext)(Kc),Zc={open:{opacity:1},exit:{opacity:0}},Qc={duration:.2},Jc=({open:e,setOpen:t,children:n,trigger:r=null,className:o,exitOnClickOutside:s=!1,exitOnEsc:a=!0,design:l="simple",scrollLock:c=!0})=>{const u=void 0!==e&&void 0!==t,[d,p]=(0,i.useState)(!1),f=(0,i.useRef)(null),m=(0,i.useRef)(null),h=(0,i.useMemo)((()=>u?e:d),[e,d]),g=(0,i.useMemo)((()=>u?t:p),[p,p]),v=()=>{h||g(!0)},y=()=>{h&&g(!1)},b=(0,i.useCallback)((()=>(0,i.isValidElement)(r)?(0,i.cloneElement)(r,{onClick:Ke(v,r?.props?.onClick)}):"function"==typeof r?r({onClick:v}):null),[r,v,y]),x=e=>{"Escape"===e.key&&a&&y()},w=e=>{s&&f.current&&!f.current.contains(e.target)&&y()};return(0,i.useEffect)((()=>(window.addEventListener("keydown",x),document.addEventListener("mousedown",w),()=>{window.removeEventListener("keydown",x),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,Q.jsxs)(Q.Fragment,{children:[b(),(0,Q.jsx)(Kc.Provider,{value:{open:h,setOpen:g,handleClose:y,design:l,dialogContainerRef:m,dialogRef:f},children:(0,Q.jsx)("div",{ref:m,className:Ye("fixed z-999999 w-0 h-0 overflow-visible",o),children:n})})]})};Jc.displayName="Dialog";const eu=({children:e,className:t})=>{const{open:n,handleClose:r,dialogRef:o}=Xc();return(0,Q.jsx)(on,{children:n&&(0,Q.jsx)(Sc.div,{className:"fixed inset-0 overflow-y-auto",initial:"exit",animate:"open",exit:"exit",variants:Zc,role:"dialog",transition:Qc,children:(0,Q.jsx)("div",{className:"flex items-center justify-center min-h-full",children:(0,Q.jsx)("div",{ref:o,className:Ye("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})})})})};eu.displayName="Dialog.Panel";const tu=({className:e,...t})=>{const{open:n,dialogContainerRef:r}=Xc();return r?.current?(0,Q.jsx)(Q.Fragment,{children:(0,Wt.createPortal)((0,Q.jsx)(on,{children:n&&(0,Q.jsx)(Sc.div,{className:Ye("fixed inset-0 -z-10 bg-background-inverse/90",e),...t,initial:"exit",animate:"open",exit:"exit",variants:Zc,transition:Qc})}),r.current)}):null};tu.displayName="Dialog.Backdrop";const nu=({children:e,className:t,...n})=>(0,Q.jsx)("div",{className:Ye("space-y-2 px-5 pt-5 pb-1",t),...n,children:e});nu.displayName="Dialog.Header";const ru=({children:e,as:t="h3",className:n,...r})=>(0,Q.jsx)(t,{className:Ye("text-base font-semibold text-text-primary m-0 p-0",n),...r,children:e});ru.displayName="Dialog.Title";const ou=({children:e,as:t="p",className:n,...r})=>(0,Q.jsx)(t,{className:Ye("text-sm font-normal text-text-secondary my-0 ml-0 mr-1 p-0",n),...r,children:e});ou.displayName="Dialog.Description";const iu=({className:e,...t})=>(0,Q.jsx)("button",{className:Ye("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,Q.jsx)(jt,{className:"size-4 text-text-primary shrink-0"})}),su=({children:e,as:t=i.Fragment,...n})=>{const{handleClose:r}=Xc();return e?t===i.Fragment?"function"==typeof e?e({close:r}):(0,i.cloneElement)(e,{onClick:r}):(0,Q.jsx)(t,{...n,onClick:r,children:e}):(0,Q.jsx)(iu,{onClick:r,...n})};su.displayName="Dialog.CloseButton";const au=({children:e,className:t,...n})=>(0,Q.jsx)("div",{className:Ye("px-5",t),...n,children:e});au.displayName="Dialog.Body";const lu=({children:e,className:t})=>{const{design:n,handleClose:r}=Xc();return(0,Q.jsx)("div",{className:Ye("p-4 flex justify-end gap-3",{"bg-background-secondary":"footer-divided"===n},t),children:e?"function"==typeof e?e({close:r}):e:null})};lu.displayName="Dialog.Footer",Jc.Panel=eu,Jc.Title=ru,Jc.Description=ou,Jc.CloseButton=su,Jc.Header=nu,Jc.Body=au,Jc.Footer=lu,Jc.Backdrop=tu;const cu=({title:e="",description:t="",icon:n=null,iconPosition:r="right",tag:o="h2",size:i="sm",className:s=""})=>{const a={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,Q.jsx)(o,{className:Ye("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"}[i]),children:e});return t?(0,Q.jsxs)("div",{className:s,children:[(0,Q.jsxs)("div",{children:[n&&"left"===r&&(0,Q.jsxs)("div",{className:Ye("flex items-center",a[i]),children:[n,l()]}),n&&"right"===r&&(0,Q.jsxs)("div",{className:Ye("flex items-center",a[i]),children:[l(),n]}),!n&&l()]}),(0,Q.jsx)("p",{className:Ye("text-text-secondary font-normal my-0",{xs:"text-sm",sm:"text-sm",md:"text-base",lg:"text-base"}[i]),children:t})]}):(0,Q.jsxs)("div",{className:s,children:[n&&"left"===r&&(0,Q.jsxs)("div",{className:Ye("flex items-center",a[i]),children:[n,l()]}),n&&"right"===r&&(0,Q.jsxs)("div",{className:Ye("flex items-center",a[i]),children:[l(),n]}),!n&&l()]})};function uu({title:e,titleId:t,...n},r){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const du=i.forwardRef(uu);function pu({title:e,titleId:t,...n},r){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const fu=i.forwardRef(pu);function mu({title:e,titleId:t,...n},r){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))}const hu=i.forwardRef(mu);function gu({title:e,titleId:t,...n},r){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"}))}const vu=i.forwardRef(gu),yu=()=>{const[t]=Mc();return(0,e.createElement)(Jc,{design:"simple",exitOnEsc:!0,scrollLock:!0,trigger:(0,e.createElement)("div",{role:"button","aria-label":(0,Ac.__)("Knowledge Base","modern-cart"),tabIndex:"0",className:"flex justify-center items-center cursor-pointer focus-visible:outline-auto",title:(0,Ac.__)("Knowledge Base","modern-cart")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-5 w-5 cursor","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"})))},(0,e.createElement)(Jc.Backdrop,null),(0,e.createElement)(Jc.Panel,{className:"gap-0 m-5 sm:m-0 sm:w-3/5"},(0,e.createElement)(Jc.Header,{className:"p-5 border-0 border-b border-solid border-gray-200"},(0,e.createElement)("div",{className:"flex items-center justify-between"},(0,e.createElement)(Jc.Title,{className:"text-2xl font-semibold"},(0,Ac.__)("Knowledge Base","modern-cart")),(0,e.createElement)(Jc.CloseButton,{className:"[&>svg]:size-5",type:"button"}))),(0,e.createElement)(Jc.Body,{className:"px-0 flex flex-col lg:flex-row"},(0,e.createElement)("div",{className:"p-5 flex flex-col flex-1 border-0 border-r border-solid border-gray-200 max-h-[550px] overflow-y-auto"},t?.knowledge_base?.map(((t,n)=>(0,e.createElement)("a",{key:n,href:t.url,className:"flex items-center justify-between no-underline text-gray-800 rounded-md p-2 pl-0 hover:bg-gray-50 cursor-pointer group",target:"_blank",rel:"noreferrer"},(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)(du,{className:"size-3"}),(0,e.createElement)("span",{className:"text-base ml-2"},t.title)),(0,e.createElement)("div",{className:"invisible group-hover:visible"},(0,e.createElement)(fu,{className:"size-5"})))))),(0,e.createElement)(wt,{align:"center",containerType:"flex",direction:"column",gap:"md",justify:"start",className:"p-5 lg:w-1/3"},(0,e.createElement)(wt.Item,{className:"w-full p-4 border border-solid border-gray-200 rounded-md"},(0,e.createElement)(cu,{title:(0,Ac.__)("Need Help?","modern-cart"),description:(0,Ac.__)("We aim to answer all priority support requests within 2-3 hours.","modern-cart"),icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.7,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},(0,e.createElement)("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"}),(0,e.createElement)("path",{d:"M21 16v2a4 4 0 0 1-4 4h-5"})),iconPosition:"left",size:"xs",tag:"h2",className:"[&_svg]:size-5 [&_svg]:text-text-secondary text-gray-900 font-medium"}),(0,e.createElement)("a",{href:"https://cartflows.com/support",className:"no-underline mt-2 inline-flex gap-1.5 items-center text-sm font-medium text-wpcolor hover:text-wphovercolor",target:"_blank",rel:"noreferrer"},(0,Ac.__)("Request Support","modern-cart"),(0,e.createElement)(fu,{class:"h-4 w-4"}))),(0,e.createElement)(wt.Item,{className:"w-full p-4 border border-solid border-gray-200 rounded-md"},(0,e.createElement)(cu,{title:(0,Ac.__)("All Documentation","modern-cart"),description:(0,Ac.__)("Browse documentation, reference material, and tutorials for Modern Cart.","modern-cart"),icon:(0,e.createElement)(hu,null),iconPosition:"left",size:"xs",tag:"h2",className:"[&_svg]:size-5 [&_svg]:text-text-secondary text-gray-900 font-medium"}),(0,e.createElement)("a",{href:"https://cartflows.com/docs-category/modern-cart-for-woocommerce/",className:"no-underline mt-2 inline-flex gap-1.5 items-center text-sm font-medium text-wpcolor hover:text-wphovercolor",target:"_blank",rel:"noreferrer"},(0,Ac.__)("View documentation","modern-cart"),(0,e.createElement)(fu,{class:"h-4 w-4"}))),(0,e.createElement)(wt.Item,{className:"w-full p-4 border border-solid border-gray-200 rounded-md"},(0,e.createElement)(cu,{title:(0,Ac.__)("Videos","modern-cart"),description:(0,Ac.__)("Browse tutorial videos on our YouTube channel.","modern-cart"),icon:(0,e.createElement)(vu,null),iconPosition:"left",size:"xs",tag:"h2",className:"[&_svg]:size-5 [&_svg]:text-text-secondary text-gray-900 font-medium"}),(0,e.createElement)("a",{href:"https://www.youtube.com/c/CartFlows",className:"no-underline mt-2 inline-flex gap-1.5 items-center text-sm font-medium text-wpcolor hover:text-wphovercolor",target:"_blank",rel:"noreferrer"},(0,Ac.__)("Youtube Channel","modern-cart"),(0,e.createElement)(fu,{class:"h-4 w-4"})))))))},bu=[{name:(0,Ac.__)("Settings","modern-cart"),path:"settings"}],xu=function(t){const{activePath:n}=t,[r]=Mc();return(0,e.createElement)("div",{className:"-ml-2.5 md:-ml-5 moderncart-header--wrapper"},(0,e.createElement)(Rc,{className:"moderncart-header--content h-16 min-h-[unset] p-0 border-0 border-b border-solid border-border-subtle bg-white relative z-10",gap:0,role:"navigation","aria-label":(0,Ac.__)("Main Navigation","modern-cart")},(0,e.createElement)(Rc.Left,{className:"moderncart-header--content-left lg:px-5 px-3"},(0,e.createElement)(Rc.Item,null,(0,e.createElement)("img",{className:"lg:block h-[2.6rem] w-auto",src:zc,alt:(0,Ac.__)("Modern Cart for WooCommerce","modern-cart")}))),(0,e.createElement)(Rc.Middle,{align:"left",className:"moderncart-header--content-middle h-full gap-2 md:gap-4",role:"menubar"},bu.map((t=>(0,e.createElement)(Rc.Item,{className:"h-full",key:`?page=moderncart_settings&path=${t.path}`,role:"menuitem"},(0,e.createElement)(W,{to:{pathname:"admin.php",search:"?page=moderncart_settings"+(""!==t.path?"&path="+t.path:"")},className:(n===t.path?" border-wpcolor hover:text-wphovercolor text-gray-900 inline-flex items-center px-1 border-b-2 text-[0.940rem] font-medium focus:shadow-none":"border-transparent text-gray-600 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 border-b-2 text-[0.940rem] font-medium focus:shadow-none")+" no-underline h-full border-solid border-0","aria-current":n===t.path?"page":void 0},t.name))))),(0,e.createElement)(Rc.Right,{className:"moderncart-header--content-right p-2 md:p-4 gap-2 md:gap-4",gap:"md"},!!r?.pro_version&&(0,e.createElement)(Rc.Item,null,"Activated"===r.license_status?(0,e.createElement)("span",{className:"inline-flex items-center no-underline gap-1.5 px-3 py-1 border whitespace-nowrap bg-green-50 border-green-200 text-green-600 hover:text-green-600 focus:text-green-600 pointer-events-none disabled rounded text-xs cursor-pointer font-normal","aria-label":(0,Ac.__)("License Status: Valid","modern-cart")},(0,Ac.__)("Valid License","modern-cart")):(0,e.createElement)("span",{className:"inline-flex items-center no-underline gap-1.5 px-3 py-1 border whitespace-nowrap bg-red-50 border-red-200 text-red-600 hover:text-red-600 focus:text-red-600 pointer-events-none disabled rounded text-xs cursor-pointer font-normal","aria-label":(0,Ac.__)("License Status: Not Activated","modern-cart")},(0,Ac.__)("Activate License","modern-cart"))),(0,e.createElement)(Rc.Item,null,(0,e.createElement)("span",{title:moderncart_settings.versionBadgeInfo.title},(0,e.createElement)(Fc,{icon:null,label:moderncart_settings.versionBadgeInfo.label,size:"sm",type:"pill",variant:"neutral",disableHover:!0}))),(0,e.createElement)(Rc.Item,null,(0,e.createElement)(yu,null)),moderncart_settings?.whats_new_rss_feed&&(0,e.createElement)(Rc.Item,null,(0,e.createElement)(Yc,null)))))},wu=Ct("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]),Eu=Ct("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);function ku(){return"undefined"!=typeof window}function Su(e){return ju(e)?(e.nodeName||"").toLowerCase():"#document"}function _u(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Cu(e){var t;return null==(t=(ju(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ju(e){return!!ku()&&(e instanceof Node||e instanceof _u(e).Node)}function Tu(e){return!!ku()&&(e instanceof Element||e instanceof _u(e).Element)}function Nu(e){return!!ku()&&(e instanceof HTMLElement||e instanceof _u(e).HTMLElement)}function Mu(e){return!(!ku()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof _u(e).ShadowRoot)}function Au(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Du(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ru(e){return["table","td","th"].includes(Su(e))}function Pu(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Iu(e){const t=Ou(),n=Tu(e)?Du(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 Ou(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Lu(e){return["html","body","#document"].includes(Su(e))}function Du(e){return _u(e).getComputedStyle(e)}function Fu(e){return Tu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zu(e){if("html"===Su(e))return e;const t=e.assignedSlot||e.parentNode||Mu(e)&&e.host||Cu(e);return Mu(t)?t.host:t}function Bu(e){const t=zu(e);return Lu(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nu(t)&&Au(t)?t:Bu(t)}function Vu(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Bu(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=_u(o);if(i){const e=Uu(s);return t.concat(s,s.visualViewport||[],Au(o)?o:[],e&&n?Vu(e):[])}return t.concat(o,Vu(o,[],n))}function Uu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hu(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 Wu(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Mu(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function $u(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Gu(){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 qu(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Xu()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Yu(e){return!Gu().includes("jsdom/")&&(!Xu()&&0===e.width&&0===e.height||Xu()&&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)}function Ku(){return/apple/i.test(navigator.vendor)}function Xu(){const e=/android/i;return e.test($u())||e.test(Gu())}function Zu(){return $u().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Qu(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Ju(e){return(null==e?void 0:e.ownerDocument)||document}function ed(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 td(e){return"composedPath"in e?e.composedPath()[0]:e.target}function nd(e){return Nu(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function rd(e){e.preventDefault(),e.stopPropagation()}function od(e){return!!e&&"combobox"===e.getAttribute("role")&&nd(e)}const id=Math.min,sd=Math.max,ad=Math.round,ld=Math.floor,cd=e=>({x:e,y:e}),ud={left:"right",right:"left",bottom:"top",top:"bottom"},dd={start:"end",end:"start"};function pd(e,t,n){return sd(e,id(t,n))}function fd(e,t){return"function"==typeof e?e(t):e}function md(e){return e.split("-")[0]}function hd(e){return e.split("-")[1]}function gd(e){return"x"===e?"y":"x"}function vd(e){return"y"===e?"height":"width"}function yd(e){return["top","bottom"].includes(md(e))?"y":"x"}function bd(e){return gd(yd(e))}function xd(e){return e.replace(/start|end/g,(e=>dd[e]))}function wd(e){return e.replace(/left|right|bottom|top/g,(e=>ud[e]))}function Ed(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 kd(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}}var Sd=["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(","),_d="undefined"==typeof Element,Cd=_d?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,jd=!_d&&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},Td=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)},Nd=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!Td(s,!1))if("SLOT"===s.tagName){var a=s.assignedElements(),l=e(a.length?a:s.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:s,candidates:l})}else{Cd.call(s,Sd)&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var c=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),u=!Td(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 i.unshift.apply(i,s.children)}}return o},Md=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ad=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))&&!Md(e)?0:e.tabIndex},Rd=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Pd=function(e){return"INPUT"===e.tagName},Id=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Od=function(e,t){return!(t.disabled||Td(t)||function(e){return Pd(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Cd.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Cd.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Id(e)}else{if("function"==typeof r){for(var i=e;e;){var s=e.parentElement,a=jd(e);if(s&&!s.shadowRoot&&!0===r(s))return Id(e);e=e.assignedSlot?e.assignedSlot:s||a===e.ownerDocument?s:a.host}e=i}if(function(e){var t,n,r,o,i=e&&jd(e),s=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(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));!a&&s;){var l,c,u;a=!(null===(c=s=null===(l=i=jd(s))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(s))}return a}(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!!Cd.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Ld=function(e,t){return!(function(e){return function(e){return Pd(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||jd(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)||Ad(t)<0||!Od(e,t))},Dd=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Fd=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,s=i?t.scopeParent:t,a=function(e,t){var n=Ad(e);return n<0&&t&&!Md(e)?0:n}(s,i),l=i?e(t.candidates):s;0===a?i?n.push.apply(n,l):n.push(s):r.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:l})})),r.sort(Rd).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},zd=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Nd([e],t.includeContainer,{filter:Ld.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Dd}):function(e,t,n){if(Td(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Sd));return t&&Cd.call(e,Sd)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Ld.bind(null,t)),Fd(n)};function Bd(e,t,n){let{reference:r,floating:o}=e;const i=yd(t),s=bd(t),a=vd(s),l=md(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(hd(t)){case"start":f[s]-=p*(n&&c?-1:1);break;case"end":f[s]+=p*(n&&c?-1:1)}return f}async function Vd(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=fd(t,e),m=Ed(f),h=a[p?"floating"===d?"reference":"floating":d],g=kd(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=kd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-x.top+m.top)/b.y,bottom:(x.bottom-g.bottom+m.bottom)/b.y,left:(g.left-x.left+m.left)/b.x,right:(x.right-g.right+m.right)/b.x}}function Ud(e){const t=Du(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Nu(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=ad(n)!==i||ad(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Hd(e){return Tu(e)?e:e.contextElement}function Wd(e){const t=Hd(e);if(!Nu(t))return cd(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ud(t);let s=(i?ad(n.width):n.width)/r,a=(i?ad(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const $d=cd(0);function Gd(e){const t=_u(e);return Ou()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:$d}function qd(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Hd(e);let s=cd(1);t&&(r?Tu(r)&&(s=Wd(r)):s=Wd(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==_u(e))&&t}(i,n,r)?Gd(i):cd(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=_u(i),t=r&&Tu(r)?_u(r):r;let n=e,o=Uu(n);for(;o&&r&&t!==n;){const e=Wd(o),t=o.getBoundingClientRect(),r=Du(o),i=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+=i,c+=s,n=_u(o),o=Uu(n)}}return kd({width:u,height:d,x:l,y:c})}function Yd(e,t){const n=Fu(e).scrollLeft;return t?t.left+n:qd(Cu(e)).left+n}function Kd(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Yd(e,r)),y:r.top+t.scrollTop}}function Xd(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=_u(e),r=Cu(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=Ou();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=Cu(e),n=Fu(e),r=e.ownerDocument.body,o=sd(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=sd(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Yd(e);const a=-n.scrollTop;return"rtl"===Du(r).direction&&(s+=sd(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(Cu(e));else if(Tu(t))r=function(e,t){const n=qd(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Nu(e)?Wd(e):cd(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Gd(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return kd(r)}function Zd(e,t){const n=zu(e);return!(n===t||!Tu(n)||Lu(n))&&("fixed"===Du(n).position||Zd(n,t))}function Qd(e,t,n){const r=Nu(t),o=Cu(t),i="fixed"===n,s=qd(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=cd(0);if(r||!r&&!i)if(("body"!==Su(t)||Au(o))&&(a=Fu(t)),r){const e=qd(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Yd(o));const c=!o||r||i?cd(0):Kd(o,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.y,width:s.width,height:s.height}}function Jd(e){return"static"===Du(e).position}function ep(e,t){if(!Nu(e)||"fixed"===Du(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Cu(e)===n&&(n=n.ownerDocument.body),n}function tp(e,t){const n=_u(e);if(Pu(e))return n;if(!Nu(e)){let t=zu(e);for(;t&&!Lu(t);){if(Tu(t)&&!Jd(t))return t;t=zu(t)}return n}let r=ep(e,t);for(;r&&Ru(r)&&Jd(r);)r=ep(r,t);return r&&Lu(r)&&Jd(r)&&!Iu(r)?n:r||function(e){let t=zu(e);for(;Nu(t)&&!Lu(t);){if(Iu(t))return t;if(Pu(t))return null;t=zu(t)}return null}(e)||n}const np={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=Cu(r),a=!!t&&Pu(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=cd(1);const u=cd(0),d=Nu(r);if((d||!d&&!i)&&(("body"!==Su(r)||Au(s))&&(l=Fu(r)),Nu(r))){const e=qd(r);c=Wd(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!s||d||i?cd(0):Kd(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+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:Cu,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Pu(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Vu(e,[],!1).filter((e=>Tu(e)&&"body"!==Su(e))),o=null;const i="fixed"===Du(e).position;let s=i?zu(e):e;for(;Tu(s)&&!Lu(s);){const t=Du(s),n=Iu(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Au(s)&&!n&&Zd(e,s))?r=r.filter((e=>e!==s)):o=t,s=zu(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=s[0],l=s.reduce(((e,n)=>{const r=Xd(t,n,o);return e.top=sd(r.top,e.top),e.right=id(r.right,e.right),e.bottom=id(r.bottom,e.bottom),e.left=sd(r.left,e.left),e}),Xd(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:tp,getElementRects:async function(e){const t=this.getOffsetParent||tp,n=this.getDimensions,r=await n(e.floating);return{reference:Qd(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}=Ud(e);return{width:t,height:n}},getScale:Wd,isElement:Tu,isRTL:function(e){return"rtl"===Du(e).direction}};function rp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function op(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Hd(e),u=o||i?[...c?Vu(c):[],...Vu(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,r=null;const o=Cu(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(a||t(),!p||!f)return;const m={rootMargin:-ld(d)+"px "+-ld(o.clientWidth-(u+p))+"px "+-ld(o.clientHeight-(d+f))+"px "+-ld(u)+"px",threshold:sd(0,id(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||rp(c,e.getBoundingClientRect())||s(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),i}(c,n):null;let p,f=-1,m=null;s&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let h=l?qd(e):null;return l&&function t(){const r=qd(e);h&&!rp(h,r)&&n(),h=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(p)}}const ip=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=md(n),a=hd(n),l="y"===yd(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=fd(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof m&&(f="end"===a?-1*m:m),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},sp=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=fd(e,t),c={x:n,y:r},u=await Vd(t,l),d=yd(md(o)),p=gd(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=pd(f+u["y"===p?"top":"left"],f,f-u[e])}if(s){const e="y"===d?"bottom":"right";m=pd(m+u["y"===d?"top":"left"],m,m-u[e])}const h=a.fn({...t,[p]:f,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[p]:i,[d]:s}}}}}},ap=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=fd(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=md(o),y=yd(a),b=md(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(b||!h?[wd(a)]:function(e){const t=wd(e);return[xd(e),t,xd(t)]}(a)),E="none"!==m;!p&&E&&w.push(...function(e,t,n,r){const o=hd(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["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?i:s;default:return[]}}(md(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(xd)))),i}(a,h,m,x));const k=[a,...w],S=await Vd(t,g),_=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&_.push(S[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=hd(e),o=bd(e),i=vd(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=wd(s)),[s,wd(s)]}(o,s,x);_.push(S[e[0]],S[e[1]])}if(C=[...C,{placement:o,overflows:_}],!_.every((e=>e<=0))){var j,T;const e=((null==(j=i.flip)?void 0:j.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(T=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(f){case"bestFit":{var N;const e=null==(N=C.filter((e=>{if(E){const t=yd(e.placement);return t===y||"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:N[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},lp=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=fd(e,t),u=await Vd(t,c),d=md(o),p=hd(o),f="y"===yd(o),{width:m,height:h}=i.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=p===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,g="end"===p?"top":"bottom");const y=h-u.top-u.bottom,b=m-u.left-u.right,x=id(h-u[g],y),w=id(m-u[v],b),E=!t.middlewareData.shift;let k=x,S=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=y),E&&!p){const e=sd(u.left,0),t=sd(u.right,0),n=sd(u.top,0),r=sd(u.bottom,0);f?S=m-2*(0!==e||0!==t?e+t:sd(u.left,u.right)):k=h-2*(0!==n||0!==r?n+r:sd(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:k});const _=await s.getDimensions(a.floating);return m!==_.width||h!==_.height?{reset:{rects:!0}}:{}}}},cp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=fd(e,t)||{};if(null==c)return{};const d=Ed(u),p={x:n,y:r},f=bd(o),m=vd(f),h=await s.getDimensions(c),g="y"===f,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=i.reference[m]+i.reference[f]-p[f]-i.floating[m],w=p[f]-i.reference[f],E=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let k=E?E[b]:0;k&&await(null==s.isElement?void 0:s.isElement(E))||(k=a.floating[b]||i.floating[m]);const S=x/2-w/2,_=k/2-h[m]/2-1,C=id(d[v],_),j=id(d[y],_),T=C,N=k-h[m]-j,M=k/2-h[m]/2+S,A=pd(T,M,N),R=!l.arrow&&null!=hd(o)&&M!==A&&i.reference[m]/2-(M<T?C:j)-h[m]/2<0,P=R?M<T?M-T:M-N:0;return{[f]:p[f]+P,data:{[f]:A,centerOffset:M-A-P,...R&&{alignmentOffset:P}},reset:R}}}),up=(e,t,n)=>{const r=new Map,o={platform:np,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.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}=Bd(c,r,l),p=r,f={},m=0;for(let n=0;n<a.length;n++){const{name:i,fn:h}=a[n],{x:g,y:v,data:y,reset:b}=await h({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,f={...f,[i]:{...f[i],...y}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=Bd(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var dp="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function pp(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(!pp(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||pp(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function fp(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mp(e,t){const n=fp(e);return Math.round(t*n)/n}function hp(e){const t=i.useRef(e);return dp((()=>{t.current=e})),t}const gp=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?cp({element:n.current,padding:r}).fn(t):{}:n?cp({element:n,padding:r}).fn(t):{};var o}}),vp=(e,t)=>({...ip(e),options:[e,t]}),yp=(e,t)=>({...ap(e),options:[e,t]}),bp=(e,t)=>({...gp(e),options:[e,t]}),xp={...s},Ep=xp.useInsertionEffect||(e=>e());function kp(e){const t=i.useRef((()=>{}));return Ep((()=>{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)}),[])}const Sp="ArrowUp",_p="ArrowDown",Cp="ArrowLeft",jp="ArrowRight";function Tp(e,t,n){return Math.floor(e/t)!==n}function Np(e,t){return t<0||t>=e.current.length}function Mp(e,t){return Rp(e,{disabledIndices:t})}function Ap(e,t){return Rp(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Rp(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t;const s=e.current;let a=n;do{a+=r?-i:i}while(a>=0&&a<=s.length-1&&Op(s,a,o));return a}function Pp(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),s=t[e];switch(o){case"tl":return i;case"tr":return s?i+s.width-1:i;case"bl":return s?i+(s.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function Ip(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function Op(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}var Lp="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function Dp(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const Fp=i.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function zp(e){const{children:t,elementsRef:n,labelsRef:r}=e,[o,s]=i.useState((()=>new Map)),a=i.useCallback((e=>{s((t=>new Map(t).set(e,null)))}),[]),l=i.useCallback((e=>{s((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);return Lp((()=>{const e=new Map(o);Array.from(e.keys()).sort(Dp).forEach(((t,n)=>{e.set(t,n)})),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}(o,e)||s(e)}),[o]),i.createElement(Fp.Provider,{value:i.useMemo((()=>({register:a,unregister:l,map:o,elementsRef:n,labelsRef:r})),[a,l,o,n,r])},t)}function Bp(){return Bp=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},Bp.apply(this,arguments)}let Vp=!1,Up=0;const Hp=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Up++,Wp=xp.useId||function(){const[e,t]=i.useState((()=>Vp?Hp():void 0));return Lp((()=>{null==e&&t(Hp())}),[]),i.useEffect((()=>{Vp=!0}),[]),e},$p=i.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:s}},width:a=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:p,d:f,style:{transform:m,...h}={},...g}=e,v=Wp(),[y,b]=i.useState(!1);if(Lp((()=>{r&&"rtl"===Du(r).direction&&b(!0)}),[r]),!r)return null;const[x,w]=n.split("-"),E="top"===x||"bottom"===x;let k=d;(E&&null!=s&&s.x||!E&&null!=s&&s.y)&&(k=null);const S=2*u,_=S/2,C=a/2*(c/-8+1),j=l/2*c/4,T=!!f,N=k&&"end"===w?"bottom":"top";let M=k&&"end"===w?"right":"left";k&&y&&(M="end"===w?"left":"right");const A=null!=(null==o?void 0:o.x)?k||o.x:"",R=null!=(null==o?void 0:o.y)?k||o.y:"",P=f||"M0,0 H"+a+" L"+(a-C)+","+(l-j)+" Q"+a/2+","+l+" "+C+","+(l-j)+" Z",I={top:T?"rotate(180deg)":"",left:T?"rotate(90deg)":"rotate(-90deg)",bottom:T?"":"rotate(180deg)",right:T?"rotate(-90deg)":"rotate(90deg)"}[x];return i.createElement("svg",Bp({},g,{"aria-hidden":!0,ref:t,width:T?a:a+S,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[M]:A,[N]:R,[x]:E||T?"100%":"calc(100% - "+S/2+"px)",transform:[I,m].filter((e=>!!e)).join(" "),...h}}),S>0&&i.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:p,strokeWidth:S+(f?0:1),d:P}),i.createElement("path",{stroke:S&&!f?g.fill:"none",d:P}),i.createElement("clipPath",{id:v},i.createElement("rect",{x:-_,y:_*(T?-1:1),width:a+S,height:a})))}));const Gp=i.createContext(null),qp=i.createContext(null),Yp=()=>{var e;return(null==(e=i.useContext(Gp))?void 0:e.id)||null},Kp=()=>i.useContext(qp);function Xp(e){return"data-floating-ui-"+e}function Zp(e){const t=(0,i.useRef)(e);return Lp((()=>{t.current=e})),t}const Qp=Xp("safe-polygon");function Jp(e,t,n){return n&&!Qu(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let ef=0;function tf(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(ef);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():ef=requestAnimationFrame(i)}function nf(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}let rf=new WeakMap,of=new WeakSet,sf={},af=0;const lf=e=>e&&(e.host||lf(e.parentNode));function cf(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Ju(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,s=(a=t,e.map((e=>{if(a.contains(e))return e;const t=lf(e);return a.contains(t)?t:null})).filter((e=>null!=e)));var a;const l=new Set,c=new Set(s),u=[];sf[o]||(sf[o]=new WeakMap);const d=sf[o];return s.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!c.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==Su(t))if(l.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(rf.get(t)||0)+1,s=(d.get(t)||0)+1;rf.set(t,r),d.set(t,s),u.push(t),1===r&&n&&of.add(t),1===s&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),l.clear(),af++,()=>{u.forEach((e=>{const t=(rf.get(e)||0)-1,n=(d.get(e)||0)-1;rf.set(e,t),d.set(e,n),t||(!of.has(e)&&i&&e.removeAttribute(i),of.delete(e)),n||e.removeAttribute(o)})),af--,af||(rf=new WeakMap,rf=new WeakMap,of=new WeakSet,sf={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const uf=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function df(e,t){const n=zd(e,uf());"prev"===t&&n.reverse();const r=n.indexOf(Hu(Ju(e)));return n.slice(r+1)[0]}function pf(){return df(document.body,"next")}function ff(){return df(document.body,"prev")}function mf(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Wu(n,r)}function hf(e){zd(e,uf()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function gf(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 vf={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 yf(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const bf=i.forwardRef((function(e,t){const[n,r]=i.useState();Lp((()=>(Ku()&&r("button"),document.addEventListener("keydown",yf),()=>{document.removeEventListener("keydown",yf)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Xp("focus-guard")]:"",style:vf};return i.createElement("span",Bp({},e,o))})),xf=i.createContext(null),wf=Xp("portal");function Ef(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,s=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Wp(),o=kf(),[s,a]=i.useState(null),l=i.useRef(null);return Lp((()=>()=>{null==s||s.remove(),queueMicrotask((()=>{l.current=null}))}),[s]),Lp((()=>{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(wf,""),e.appendChild(n),l.current=n,a(n)}),[t,r]),Lp((()=>{if(null===n)return;if(!r)return;if(l.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!Tu(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const s=document.createElement("div");s.id=r,s.setAttribute(wf,""),e=i||e,e.appendChild(s),l.current=s,a(s)}),[t,n,r,o]),s}({id:n,root:r}),[a,l]=i.useState(null),c=i.useRef(null),u=i.useRef(null),d=i.useRef(null),p=i.useRef(null),f=null==a?void 0:a.modal,m=null==a?void 0:a.open,h=!!a&&!a.modal&&a.open&&o&&!(!r&&!s);return i.useEffect((()=>{if(s&&o&&!f)return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){s&&mf(e)&&("focusin"===e.type?gf:hf)(s)}}),[s,o,f]),i.useEffect((()=>{s&&(m||gf(s))}),[m,s]),i.createElement(xf.Provider,{value:i.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:p,portalNode:s,setFocusManagerState:l})),[o,s])},h&&s&&i.createElement(bf,{"data-type":"outside",ref:c,onFocus:e=>{if(mf(e,s)){var t;null==(t=d.current)||t.focus()}else{const e=ff()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),h&&s&&i.createElement("span",{"aria-owns":s.id,style:vf}),s&&Wt.createPortal(t,s),h&&s&&i.createElement(bf,{"data-type":"outside",ref:u,onFocus:e=>{if(mf(e,s)){var t;null==(t=p.current)||t.focus()}else{const t=pf()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const kf=()=>i.useContext(xf),Sf="data-floating-ui-focusable";function _f(e){return e?e.hasAttribute(Sf)?e:e.querySelector("["+Sf+"]")||e:null}let Cf=[];function jf(e){Cf=Cf.filter((e=>e.isConnected));let t=e;if(t&&"body"!==Su(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Cd.call(e,Sd)&&Ld(t,e)}(t,uf())){const e=zd(t,uf())[0];e&&(t=e)}Cf.push(t),Cf.length>20&&(Cf=Cf.slice(-20))}}function Tf(){return Cf.slice().reverse().find((e=>e.isConnected))}const Nf=i.forwardRef((function(e,t){return i.createElement("button",Bp({},e,{type:"button",ref:t,tabIndex:-1,style:vf}))}));function Mf(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:s=!0,initialFocus:a=0,returnFocus:l=!0,restoreFocus:c=!1,modal:u=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:p=!0}=e,{open:f,refs:m,nodeId:h,onOpenChange:g,events:v,dataRef:y,floatingId:b,elements:{domReference:x,floating:w}}=t,E="number"==typeof a&&a<0,k=od(x)&&E,S="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||s,_=Zp(o),C=Zp(a),j=Zp(l),T=Kp(),N=kf(),M=i.useRef(null),A=i.useRef(null),R=i.useRef(!1),P=i.useRef(!1),I=i.useRef(-1),O=null!=N,L=_f(w),D=kp((function(e){return void 0===e&&(e=L),e?zd(e,uf()):[]})),F=kp((e=>{const t=D(e);return _.current.map((e=>x&&"reference"===e?x:L&&"floating"===e?L:t)).filter(Boolean).flat()}));function z(e){return!r&&d&&u?i.createElement(Nf,{ref:"start"===e?M:A,onClick:e=>g(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}i.useEffect((()=>{if(r)return;if(!u)return;function e(e){if("Tab"===e.key){Wu(L,Hu(Ju(L)))&&0===D().length&&!k&&rd(e);const t=F(),n=td(e);"reference"===_.current[0]&&n===x&&(rd(e),e.shiftKey?tf(t[t.length-1]):tf(t[1])),"floating"===_.current[1]&&n===L&&e.shiftKey&&(rd(e),tf(t[0]))}}const t=Ju(L);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,x,L,u,_,k,D,F]),i.useEffect((()=>{if(!r&&w)return w.addEventListener("focusin",e),()=>{w.removeEventListener("focusin",e)};function e(e){const t=td(e),n=D().indexOf(t);-1!==n&&(I.current=n)}}),[r,w,D]),i.useEffect((()=>{if(!r&&p)return w&&Nu(x)?(x.addEventListener("focusout",t),x.addEventListener("pointerdown",e),w.addEventListener("focusout",t),()=>{x.removeEventListener("focusout",t),x.removeEventListener("pointerdown",e),w.removeEventListener("focusout",t)}):void 0;function e(){P.current=!0,setTimeout((()=>{P.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(Wu(x,t)||Wu(w,t)||Wu(t,w)||Wu(null==N?void 0:N.portalNode,t)||null!=t&&t.hasAttribute(Xp("focus-guard"))||T&&(nf(T.nodesRef.current,h).find((e=>{var n,r;return Wu(null==(n=e.context)?void 0:n.elements.floating,t)||Wu(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(T.nodesRef.current,h).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));if(c&&n&&Hu(Ju(L))===Ju(L).body){Nu(L)&&L.focus();const e=I.current,t=D(),n=t[e]||t[t.length-1]||L;Nu(n)&&n.focus()}!k&&u||!t||!n||P.current||t===Tf()||(R.current=!0,g(!1,e,"focus-out"))}))}}),[r,x,w,L,u,h,T,N,g,p,c,D,k]),i.useEffect((()=>{var e;if(r)return;const t=Array.from((null==N||null==(e=N.portalNode)?void 0:e.querySelectorAll("["+Xp("portal")+"]"))||[]);if(w){const e=[w,...t,M.current,A.current,_.current.includes("reference")||k?x:null].filter((e=>null!=e)),n=u||k?cf(e,S,!S):cf(e);return()=>{n()}}}),[r,x,w,u,_,N,k,S]),Lp((()=>{if(r||!Nu(L))return;const e=Hu(Ju(L));queueMicrotask((()=>{const t=F(L),n=C.current,r=("number"==typeof n?t[n]:n.current)||L,o=Wu(L,e);E||o||!f||tf(r,{preventScroll:r===L})}))}),[r,f,L,E,F,C]),Lp((()=>{if(r||!L)return;let e=!1;const t=Ju(L),n=Hu(t);let o=y.current.openEvent;function i(t){let{open:n,reason:r,event:i,nested:s}=t;n&&(o=i),"escape-key"===r&&m.domReference.current&&jf(m.domReference.current),"hover"===r&&"mouseleave"===i.type&&(R.current=!0),"outside-press"===r&&(s?(R.current=!1,e=!0):R.current=!(qu(i)||Yu(i)))}jf(n),v.on("openchange",i);const s=t.createElement("span");return s.setAttribute("tabindex","-1"),s.setAttribute("aria-hidden","true"),Object.assign(s.style,vf),O&&x&&x.insertAdjacentElement("afterend",s),()=>{v.off("openchange",i);const n=Hu(t),r=Wu(w,n)||T&&nf(T.nodesRef.current,h).some((e=>{var t;return Wu(null==(t=e.context)?void 0:t.elements.floating,n)}));(r||o&&["click","mousedown"].includes(o.type))&&m.domReference.current&&jf(m.domReference.current);const a="boolean"==typeof j.current?Tf()||s:j.current.current||s;queueMicrotask((()=>{j.current&&!R.current&&Nu(a)&&(a===n||n===t.body||r)&&a.focus({preventScroll:e}),s.remove()}))}}),[r,w,L,j,y,m,v,T,h,O,x]),i.useEffect((()=>{queueMicrotask((()=>{R.current=!1}))}),[r]),Lp((()=>{if(!r&&N)return N.setFocusManagerState({modal:u,closeOnFocusOut:p,open:f,onOpenChange:g,refs:m}),()=>{N.setFocusManagerState(null)}}),[r,N,u,f,g,m,p]),Lp((()=>{if(r)return;if(!L)return;if("function"!=typeof MutationObserver)return;if(E)return;const e=()=>{const e=L.getAttribute("tabindex"),t=D(),n=Hu(Ju(w)),r=t.indexOf(n);-1!==r&&(I.current=r),_.current.includes("floating")||n!==m.domReference.current&&0===t.length?"0"!==e&&L.setAttribute("tabindex","0"):"-1"!==e&&L.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(L,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[r,w,L,m,_,D,E]);const B=!r&&S&&(!u||!k)&&(O||u);return i.createElement(i.Fragment,null,B&&i.createElement(bf,{"data-type":"inside",ref:null==N?void 0:N.beforeInsideRef,onFocus:e=>{if(u){const e=F();tf("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=N&&N.preserveTabOrder&&N.portalNode)if(R.current=!1,mf(e,N.portalNode)){const e=pf()||x;null==e||e.focus()}else{var t;null==(t=N.beforeOutsideRef.current)||t.focus()}}}),!k&&z("start"),n,z("end"),B&&i.createElement(bf,{"data-type":"inside",ref:null==N?void 0:N.afterInsideRef,onFocus:e=>{if(u)tf(F()[0]);else if(null!=N&&N.preserveTabOrder&&N.portalNode)if(p&&(R.current=!0),mf(e,N.portalNode)){const e=ff()||x;null==e||e.focus()}else{var t;null==(t=N.afterOutsideRef.current)||t.focus()}}}))}function Af(e){return Nu(e.target)&&"BUTTON"===e.target.tagName}function Rf(e){return nd(e)}const Pf={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},If={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Of=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 Lf(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:s}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:p="pointerdown",ancestorScroll:f=!1,bubbles:m,capture:h}=t,g=Kp(),v=kp("function"==typeof c?c:()=>!1),y="function"==typeof c?v:c,b=i.useRef(!1),x=i.useRef(!1),{escapeKey:w,outsidePress:E}=Of(m),{escapeKey:k,outsidePress:S}=Of(h),_=i.useRef(!1),C=kp((e=>{var t;if(!n||!a||!l||"Escape"!==e.key)return;if(_.current)return;const o=null==(t=s.current.floatingContext)?void 0:t.nodeId,i=g?nf(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")})),j=kp((e=>{var t;const n=()=>{var t;C(e),null==(t=td(e))||t.removeEventListener("keydown",n)};null==(t=td(e))||t.addEventListener("keydown",n)})),T=kp((e=>{var t;const n=b.current;b.current=!1;const i=x.current;if(x.current=!1,"click"===u&&i)return;if(n)return;if("function"==typeof y&&!y(e))return;const a=td(e),l="["+Xp("inert")+"]",c=Ju(o.floating).querySelectorAll(l);let d=Tu(a)?a:null;for(;d&&!Lu(d);){const e=zu(d);if(Lu(e)||!Tu(e))break;d=e}if(c.length&&Tu(a)&&!a.matches("html,body")&&!Wu(a,o.floating)&&Array.from(c).every((e=>!Wu(d,e))))return;if(Nu(a)&&A){const t=a.clientWidth>0&&a.scrollWidth>a.clientWidth,n=a.clientHeight>0&&a.scrollHeight>a.clientHeight;let r=n&&e.offsetX>a.clientWidth;if(n&&"rtl"===Du(a).direction&&(r=e.offsetX<=a.offsetWidth-a.clientWidth),r||t&&e.offsetY>a.clientHeight)return}const p=null==(t=s.current.floatingContext)?void 0:t.nodeId,f=g&&nf(g.nodesRef.current,p).some((t=>{var n;return ed(e,null==(n=t.context)?void 0:n.elements.floating)}));if(ed(e,o.floating)||ed(e,o.domReference)||f)return;const m=g?nf(g.nodesRef.current,p):[];if(m.length>0){let e=!0;if(m.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),N=kp((e=>{var t;const n=()=>{var t;T(e),null==(t=td(e))||t.removeEventListener(u,n)};null==(t=td(e))||t.addEventListener(u,n)}));i.useEffect((()=>{if(!n||!a)return;s.current.__escapeKeyBubbles=w,s.current.__outsidePressBubbles=E;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function i(){window.clearTimeout(e),_.current=!0}function c(){e=window.setTimeout((()=>{_.current=!1}),Ou()?5:0)}const d=Ju(o.floating);l&&(d.addEventListener("keydown",k?j:C,k),d.addEventListener("compositionstart",i),d.addEventListener("compositionend",c)),y&&d.addEventListener(u,S?N:T,S);let p=[];return f&&(Tu(o.domReference)&&(p=Vu(o.domReference)),Tu(o.floating)&&(p=p.concat(Vu(o.floating))),!Tu(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(Vu(o.reference.contextElement)))),p=p.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),p.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(d.removeEventListener("keydown",k?j:C,k),d.removeEventListener("compositionstart",i),d.removeEventListener("compositionend",c)),y&&d.removeEventListener(u,S?N:T,S),p.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[s,o,l,y,u,n,r,f,a,w,E,C,k,j,T,S,N]),i.useEffect((()=>{b.current=!1}),[y,u]);const M=i.useMemo((()=>({onKeyDown:C,[Pf[p]]:e=>{d&&r(!1,e.nativeEvent,"reference-press")}})),[C,r,d,p]),A=i.useMemo((()=>({onKeyDown:C,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[If[u]]:()=>{b.current=!0}})),[C,u]);return i.useMemo((()=>a?{reference:M,floating:A}:{}),[a,M,A])}function Df(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Wp(),s=i.useRef({}),[a]=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!=Yp(),[c,u]=i.useState(r.reference),d=kp(((e,t,r)=>{s.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),p=i.useMemo((()=>({setPositionReference:u})),[]),f=i.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return i.useMemo((()=>({dataRef:s,open:t,onOpenChange:d,elements:f,events:a,floatingId:o,refs:p})),[t,d,f,a,o,p])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,a]=i.useState(null),[l,c]=i.useState(null),u=(null==o?void 0:o.domReference)||s,d=i.useRef(null),p=Kp();Lp((()=>{u&&(d.current=u)}),[u]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,p]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=i.useState(r);pp(f,r)||m(r);const[h,g]=i.useState(null),[v,y]=i.useState(null),b=i.useCallback((e=>{e!==k.current&&(k.current=e,g(e))}),[]),x=i.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),w=s||h,E=a||v,k=i.useRef(null),S=i.useRef(null),_=i.useRef(d),C=null!=c,j=hp(c),T=hp(o),N=hp(u),M=i.useCallback((()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};T.current&&(e.platform=T.current),up(k.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==N.current};A.current&&!pp(_.current,t)&&(_.current=t,Wt.flushSync((()=>{p(t)})))}))}),[f,t,n,T,N]);dp((()=>{!1===u&&_.current.isPositioned&&(_.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[u]);const A=i.useRef(!1);dp((()=>(A.current=!0,()=>{A.current=!1})),[]),dp((()=>{if(w&&(k.current=w),E&&(S.current=E),w&&E){if(j.current)return j.current(w,E,M);M()}}),[w,E,M,j,C]);const R=i.useMemo((()=>({reference:k,floating:S,setReference:b,setFloating:x})),[b,x]),P=i.useMemo((()=>({reference:w,floating:E})),[w,E]),I=i.useMemo((()=>{const e={position:n,left:0,top:0};if(!P.floating)return e;const t=mp(P.floating,d.x),r=mp(P.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...fp(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,P.floating,d.x,d.y]);return i.useMemo((()=>({...d,update:M,refs:R,elements:P,floatingStyles:I})),[d,M,R,P,I])}({...e,elements:{...o,...l&&{reference:l}}}),m=i.useCallback((e=>{const t=Tu(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),f.refs.setReference(t)}),[f.refs]),h=i.useCallback((e=>{(Tu(e)||null===e)&&(d.current=e,a(e)),(Tu(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Tu(e))&&f.refs.setReference(e)}),[f.refs]),g=i.useMemo((()=>({...f.refs,setReference:h,setPositionReference:m,domReference:d})),[f.refs,h,m]),v=i.useMemo((()=>({...f.elements,domReference:u})),[f.elements,u]),y=i.useMemo((()=>({...f,...r,refs:g,elements:v,nodeId:t})),[f,g,v,t,r]);return Lp((()=>{r.dataRef.current.floatingContext=y;const e=null==p?void 0:p.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),i.useMemo((()=>({...f,context:y,refs:g,elements:v})),[f,g,v,y])}const Ff="active",zf="selected";function Bf(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Ff]:t,[zf]:__,...n}=e;i=n}return{..."floating"===n&&{tabIndex:-1,[Sf]:""},...i,...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,i]=t;var s;o&&[Ff,zf].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function Vf(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=>Bf(t,e,"reference")),t),s=i.useCallback((t=>Bf(t,e,"floating")),n),a=i.useCallback((t=>Bf(t,e,"item")),r);return i.useMemo((()=>({getReferenceProps:o,getFloatingProps:s,getItemProps:a})),[o,s,a])}let Uf=!1;function Hf(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Wf(e,t){return Hf(t,e===Sp||e===_p,e===Cp||e===jp)}function $f(e,t,n){return Hf(t,e===_p,n?e===Cp:e===jp)||"Enter"===e||" "===e||""===e}function Gf(e,t,n){return Hf(t,n?e===jp:e===Cp,e===Sp)}function qf(e,t){const{open:n,onOpenChange:r,elements:o}=e,{listRef:s,activeIndex:a,onNavigate:l=()=>{},enabled:c=!0,selectedIndex:u=null,allowEscape:d=!1,loop:p=!1,nested:f=!1,rtl:m=!1,virtual:h=!1,focusItemOnOpen:g="auto",focusItemOnHover:v=!0,openOnArrowKeyDown:y=!0,disabledIndices:b,orientation:x="vertical",cols:w=1,scrollItemIntoView:E=!0,virtualItemRef:k,itemSizes:S,dense:_=!1}=t,C=Zp(_f(o.floating)),j=Yp(),T=Kp(),N=kp(l),M=od(o.domReference),A=i.useRef(g),R=i.useRef(null!=u?u:-1),P=i.useRef(null),I=i.useRef(!0),O=i.useRef(N),L=i.useRef(!!o.floating),D=i.useRef(n),F=i.useRef(!1),z=i.useRef(!1),B=Zp(b),V=Zp(n),U=Zp(E),H=Zp(u),[W,$]=i.useState(),[G,q]=i.useState(),Y=kp((function(e,t,n){function r(e){h?($(e.id),null==T||T.events.emit("virtualfocus",e),k&&(k.current=e)):tf(e,{preventScroll:!0,sync:!(!Zu()||!Ku())&&(Uf||F.current)})}void 0===n&&(n=!1);const o=e.current[t.current];o&&r(o),requestAnimationFrame((()=>{const i=e.current[t.current]||o;if(!i)return;o||r(i);const s=U.current;s&&X&&(n||!I.current)&&(null==i.scrollIntoView||i.scrollIntoView("boolean"==typeof s?{block:"nearest",inline:"nearest"}:s))}))}));Lp((()=>{document.createElement("div").focus({get preventScroll(){return Uf=!0,!1}})}),[]),Lp((()=>{c&&(n&&o.floating?A.current&&null!=u&&(z.current=!0,R.current=u,N(u)):L.current&&(R.current=-1,O.current(null)))}),[c,n,o.floating,u,N]),Lp((()=>{if(c&&n&&o.floating)if(null==a){if(F.current=!1,null!=H.current)return;if(L.current&&(R.current=-1,Y(s,R)),(!D.current||!L.current)&&A.current&&(null!=P.current||!0===A.current&&null==P.current)){let e=0;const t=()=>{null==s.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(R.current=null==P.current||$f(P.current,x,m)||f?Mp(s,B.current):Ap(s,B.current),P.current=null,N(R.current))};t()}}else Np(s,a)||(R.current=a,Y(s,R,z.current),z.current=!1)}),[c,n,o.floating,a,H,f,s,x,m,N,Y,B]),Lp((()=>{var e;if(!c||o.floating||!T||h||!L.current)return;const t=T.nodesRef.current,n=null==(e=t.find((e=>e.id===j)))||null==(e=e.context)?void 0:e.elements.floating,r=Hu(Ju(o.floating)),i=t.some((e=>e.context&&Wu(e.context.elements.floating,r)));n&&!i&&I.current&&n.focus({preventScroll:!0})}),[c,o.floating,T,j,h]),Lp((()=>{if(c&&T&&h&&!j)return T.events.on("virtualfocus",e),()=>{T.events.off("virtualfocus",e)};function e(e){q(e.id),k&&(k.current=e)}}),[c,T,h,j,k]),Lp((()=>{O.current=N,L.current=!!o.floating})),Lp((()=>{n||(P.current=null)}),[n]),Lp((()=>{D.current=n}),[n]);const K=null!=a,X=i.useMemo((()=>{function e(e){if(!n)return;const t=s.current.indexOf(e);-1!==t&&N(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...v&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;I.current&&"touch"!==t&&(R.current=-1,Y(s,R),N(null),h||tf(C.current,{preventScroll:!0}))}}}}),[n,C,Y,v,s,N,h]),Z=kp((e=>{if(I.current=!1,F.current=!0,229===e.which)return;if(!V.current&&e.currentTarget===C.current)return;if(f&&Gf(e.key,x,m))return rd(e),r(!1,e.nativeEvent,"list-navigation"),void(Nu(o.domReference)&&(h?null==T||T.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=R.current,i=Mp(s,b),a=Ap(s,b);if(M||("Home"===e.key&&(rd(e),R.current=i,N(R.current)),"End"===e.key&&(rd(e),R.current=a,N(R.current))),w>1){const t=S||Array.from({length:s.current.length},(()=>({width:1,height:1}))),n=function(e,t,n){const r=[];let o=0;return e.forEach(((e,i)=>{let{width:s,height:a}=e,l=!1;for(n&&(o=0);!l;){const e=[];for(let n=0;n<s;n++)for(let r=0;r<a;r++)e.push(o+n+r*t);o%t+s<=t&&e.every((e=>null==r[e]))?(e.forEach((e=>{r[e]=i})),l=!0):o++}})),[...r]}(t,w,_),r=n.findIndex((e=>null!=e&&!Op(s.current,e,b))),o=n.reduce(((e,t,n)=>null==t||Op(s.current,t,b)?e:n),-1),l=n[function(e,t){let{event:n,orientation:r,loop:o,rtl:i,cols:s,disabledIndices:a,minIndex:l,maxIndex:c,prevIndex:u,stopEvent:d=!1}=t,p=u;if(n.key===Sp){if(d&&rd(n),-1===u)p=c;else if(p=Rp(e,{startingIndex:p,amount:s,decrement:!0,disabledIndices:a}),o&&(u-s<l||p<0)){const e=u%s,t=c%s,n=c-(t-e);p=t===e?c:t>e?n:n-s}Np(e,p)&&(p=u)}if(n.key===_p&&(d&&rd(n),-1===u?p=l:(p=Rp(e,{startingIndex:u,amount:s,disabledIndices:a}),o&&u+s>c&&(p=Rp(e,{startingIndex:u%s-s,amount:s,disabledIndices:a}))),Np(e,p)&&(p=u)),"both"===r){const t=ld(u/s);n.key===(i?Cp:jp)&&(d&&rd(n),u%s!=s-1?(p=Rp(e,{startingIndex:u,disabledIndices:a}),o&&Tp(p,s,t)&&(p=Rp(e,{startingIndex:u-u%s-1,disabledIndices:a}))):o&&(p=Rp(e,{startingIndex:u-u%s-1,disabledIndices:a})),Tp(p,s,t)&&(p=u)),n.key===(i?jp:Cp)&&(d&&rd(n),u%s!=0?(p=Rp(e,{startingIndex:u,decrement:!0,disabledIndices:a}),o&&Tp(p,s,t)&&(p=Rp(e,{startingIndex:u+(s-u%s),decrement:!0,disabledIndices:a}))):o&&(p=Rp(e,{startingIndex:u+(s-u%s),decrement:!0,disabledIndices:a})),Tp(p,s,t)&&(p=u));const r=ld(c/s)===t;Np(e,p)&&(p=o&&r?n.key===(i?jp:Cp)?c:Rp(e,{startingIndex:u-u%s-1,disabledIndices:a}):u)}return p}({current:n.map((e=>null!=e?s.current[e]:null))},{event:e,orientation:x,loop:p,rtl:m,cols:w,disabledIndices:Ip([...b||s.current.map(((e,t)=>Op(s.current,t)?t:void 0)),void 0],n),minIndex:r,maxIndex:o,prevIndex:Pp(R.current>a?i:R.current,t,n,w,e.key===_p?"bl":e.key===(m?Cp:jp)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(R.current=l,N(R.current)),"both"===x)return}if(Wf(e.key,x)){if(rd(e),n&&!h&&Hu(e.currentTarget.ownerDocument)===e.currentTarget)return R.current=$f(e.key,x,m)?i:a,void N(R.current);$f(e.key,x,m)?R.current=p?t>=a?d&&t!==s.current.length?-1:i:Rp(s,{startingIndex:t,disabledIndices:b}):Math.min(a,Rp(s,{startingIndex:t,disabledIndices:b})):R.current=p?t<=i?d&&-1!==t?s.current.length:a:Rp(s,{startingIndex:t,decrement:!0,disabledIndices:b}):Math.max(i,Rp(s,{startingIndex:t,decrement:!0,disabledIndices:b})),Np(s,R.current)?N(null):N(R.current)}})),Q=i.useMemo((()=>h&&n&&K&&{"aria-activedescendant":G||W}),[h,n,K,G,W]),J=i.useMemo((()=>({"aria-orientation":"both"===x?void 0:x,...!od(o.domReference)&&Q,onKeyDown:Z,onPointerMove(){I.current=!0}})),[Q,Z,o.domReference,x]),ee=i.useMemo((()=>{function e(e){"auto"===g&&qu(e.nativeEvent)&&(A.current=!0)}return{...Q,onKeyDown(e){I.current=!1;const t=e.key.startsWith("Arrow"),o=["Home","End"].includes(e.key),i=t||o,a=function(e,t,n){return Hf(t,n?e===Cp:e===jp,e===_p)}(e.key,x,m),l=Gf(e.key,x,m),c=Wf(e.key,x),d=(f?a:c)||"Enter"===e.key||""===e.key.trim();if(h&&n){const t=null==T?void 0:T.nodesRef.current.find((e=>null==e.parentId)),n=T&&t?function(e,t){let n,r=-1;return function t(o,i){i>r&&(n=o,r=i),nf(e,o).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===n))}(T.nodesRef.current,t.id):null;if(i&&n&&k){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(a||l){var p,g;const r=(null==(p=n.context)?void 0:p.elements.domReference)===e.currentTarget,o=l&&!r?null==(g=n.context)?void 0:g.elements.domReference:a?s.current.find((e=>(null==e?void 0:e.id)===W)):null;o&&(rd(e),o.dispatchEvent(t),q(void 0))}var v;if((c||o)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return rd(e),void(null==(v=n.context.elements.domReference)||v.dispatchEvent(t))}return Z(e)}(n||y||!t)&&(d&&(P.current=f&&c?null:e.key),f?a&&(rd(e),n?(R.current=Mp(s,B.current),N(R.current)):r(!0,e.nativeEvent,"list-navigation")):c&&(null!=u&&(R.current=u),rd(e),!n&&y?r(!0,e.nativeEvent,"list-navigation"):Z(e),n&&N(R.current)))},onFocus(){n&&!h&&N(null)},onPointerDown:function(e){A.current=g,"auto"===g&&Yu(e.nativeEvent)&&(A.current=!0)},onMouseDown:e,onClick:e}}),[W,Q,Z,B,g,s,f,N,r,n,y,x,m,u,T,h,k]);return i.useMemo((()=>c?{reference:ee,floating:J,item:X}:{}),[c,ee,J,X])}const Yf=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]),Kf=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function Xf(e,t){return"function"==typeof e?e(t):e}function Zf(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,s=i-1;e<i;s=e++){const[i,a]=t[e]||[0,0],[l,c]=t[s]||[0,0];a>=r!=c>=r&&n<=(l-i)*(r-a)/(c-a)+i&&(o=!o)}return o}function Qf(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,s=null,a=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:p,nodeId:f,tree:m}=e;return function(e){function h(){clearTimeout(o),p()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:g,clientY:v}=e,y=[g,v],b=td(e),x="mouseleave"===e.type,w=Wu(d.floating,b),E=Wu(d.domReference,b),k=d.domReference.getBoundingClientRect(),S=d.floating.getBoundingClientRect(),_=u.split("-")[0],C=n>S.right-S.width/2,j=c>S.bottom-S.height/2,T=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,k),N=S.width>k.width,M=S.height>k.height,A=(N?k:S).left,R=(N?k:S).right,P=(M?k:S).top,I=(M?k:S).bottom;if(w&&(i=!0,!x))return;if(E&&(i=!1),E&&!x)return void(i=!0);if(x&&Tu(e.relatedTarget)&&Wu(d.floating,e.relatedTarget))return;if(m&&nf(m.nodesRef.current,f).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===_&&c>=k.bottom-1||"bottom"===_&&c<=k.top+1||"left"===_&&n>=k.right-1||"right"===_&&n<=k.left+1)return h();let O=[];switch(_){case"top":O=[[A,k.top+1],[A,S.bottom-1],[R,S.bottom-1],[R,k.top+1]];break;case"bottom":O=[[A,S.top+1],[A,k.bottom-1],[R,k.bottom-1],[R,S.top+1]];break;case"left":O=[[S.right-1,I],[S.right-1,P],[k.left+1,P],[k.left+1,I]];break;case"right":O=[[k.right-1,I],[k.right-1,P],[S.left+1,P],[S.left+1,I]]}if(!Zf([g,v],O)){if(i&&!T)return h();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===s||null===a||0===r)return s=e,a=t,l=n,null;const o=e-s,i=t-a,c=Math.sqrt(o*o+i*i);return s=e,a=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}Zf([g,v],function(e){let[n,r]=e;switch(_){case"top":return[[N?n+t/2:C?n+4*t:n-4*t,r+t+1],[N?n-t/2:C?n+4*t:n-4*t,r+t+1],[S.left,C||N?S.bottom-t:S.top],[S.right,C?N?S.bottom-t:S.top:S.bottom-t]];case"bottom":return[[N?n+t/2:C?n+4*t:n-4*t,r-t],[N?n-t/2:C?n+4*t:n-4*t,r-t],[S.left,C||N?S.top+t:S.bottom],[S.right,C?N?S.top+t:S.bottom:S.top+t]];case"left":{const e=[n+t+1,M?r+t/2:j?r+4*t:r-4*t],o=[n+t+1,M?r-t/2:j?r+4*t:r-4*t];return[[j||M?S.right-t:S.left,S.top],[j?M?S.right-t:S.left:S.right-t,S.bottom],e,o]}case"right":return[[n-t,M?r+t/2:j?r+4*t:r-4*t],[n-t,M?r-t/2:j?r+4*t:r-4*t],[j||M?S.left+t:S.right,S.top],[j?M?S.left+t:S.right:S.left+t,S.bottom]]}}([n,c]))?!i&&r&&(o=window.setTimeout(h,40)):h()}}};return c.__options={blockPointerEvents:n},c}const Jf=({variant:e="dark",placement:t="bottom",title:n="",content:r,arrow:o=!1,open:s,setOpen:a,children:l,className:c,tooltipPortalRoot:u,tooltipPortalId:d,boundary:p="clippingAncestors",strategy:f="fixed",offset:m=8,triggers:h=["hover","focus"],interactive:g=!1})=>{const v=(0,i.useMemo)((()=>"boolean"==typeof s&&"function"==typeof a),[s,a]),[y,b]=(0,i.useState)(!1),x=(0,i.useRef)(null),{refs:w,floatingStyles:E,context:k}=Df({open:v?s:y,onOpenChange:v?a:b,placement:t,strategy:f,middleware:[vp(m),yp({boundary:p}),(O={boundary:p},{...sp(O),options:[O,undefined]}),bp({element:x})],whileElementsMounted:op}),S=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:s}}=e,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0,stickIfOpen:p=!0}=t,f=i.useRef(),m=i.useRef(!1),h=i.useMemo((()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==l&&(Qu(t,!0)&&u||(!n||!c||o.current.openEvent&&p&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===l&&f.current?f.current=void 0:Qu(t,!0)&&u||(!n||!c||o.current.openEvent&&p&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||Af(e)||(" "!==e.key||Rf(s)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Af(e)||Rf(s)||" "===e.key&&m.current&&(m.current=!1,r(!n||!c,e.nativeEvent,"click"))}})),[o,s,l,u,d,r,n,p,c]);return i.useMemo((()=>a?{reference:h}:{}),[a,h])}(k,{enabled:!v&&h.includes("click")}),_=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:s,elements:a}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:p=0,move:f=!0}=t,m=Kp(),h=Yp(),g=Zp(u),v=Zp(c),y=Zp(n),b=i.useRef(),x=i.useRef(-1),w=i.useRef(),E=i.useRef(-1),k=i.useRef(!0),S=i.useRef(!1),_=i.useRef((()=>{})),C=i.useRef(!1),j=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 s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(E.current),k.current=!0,C.current=!1)}}),[l,s]),i.useEffect((()=>{if(!l)return;if(!g.current)return;if(!n)return;function e(e){j()&&r(!1,e,"hover")}const t=Ju(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,l,g,j]);const T=i.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Jp(v.current,"close",b.current);o&&!w.current?(clearTimeout(x.current),x.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(x.current),r(!1,e,n))}),[v,r]),N=kp((()=>{_.current(),w.current=void 0})),M=kp((()=>{if(S.current){const e=Ju(a.floating).body;e.style.pointerEvents="",e.removeAttribute(Qp),S.current=!1}})),A=kp((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));i.useEffect((()=>{if(l&&Tu(a.domReference)){var e;const r=a.domReference;return n&&r.addEventListener("mouseleave",s),null==(e=a.floating)||e.addEventListener("mouseleave",s),f&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",i),()=>{var e;n&&r.removeEventListener("mouseleave",s),null==(e=a.floating)||e.removeEventListener("mouseleave",s),f&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",i)}}function t(e){if(clearTimeout(x.current),k.current=!1,d&&!Qu(b.current)||p>0&&!Jp(v.current,"open"))return;const t=Jp(v.current,"open",b.current);t?x.current=window.setTimeout((()=>{y.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function i(e){if(A())return;_.current();const t=Ju(a.floating);if(clearTimeout(E.current),C.current=!1,g.current&&o.current.floatingContext){n||clearTimeout(x.current),w.current=g.current({...o.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){M(),N(),A()||T(e,!0,"safe-polygon")}});const r=w.current;return t.addEventListener("mousemove",r),void(_.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==b.current||!Wu(a.floating,e.relatedTarget))&&T(e)}function s(e){A()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){M(),N(),A()||T(e)}})(e))}}),[a,l,e,d,p,f,T,N,M,r,n,y,m,v,g,o,A]),Lp((()=>{var e;if(l&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&j()){S.current=!0;const e=a.floating;if(Tu(a.domReference)&&e){var t;const n=Ju(a.floating).body;n.setAttribute(Qp,"");const r=a.domReference,o=null==m||null==(t=m.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,a,m,g,j]),Lp((()=>{n||(b.current=void 0,C.current=!1,N(),M())}),[n,N,M]),i.useEffect((()=>()=>{N(),clearTimeout(x.current),clearTimeout(E.current),M()}),[l,a.domReference,N,M]);const R=i.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){k.current||y.current||r(!0,t,"hover")}d&&!Qu(b.current)||n||0===p||C.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(E.current),"touch"===b.current?o():(C.current=!0,E.current=window.setTimeout(o,p)))}}}),[d,r,n,y,p]),P=i.useMemo((()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(e){A()||T(e.nativeEvent,!1)}})),[T,A]);return i.useMemo((()=>l?{reference:R,floating:P}:{}),[l,R,P])}(k,{move:!1,enabled:!v&&h.includes("hover"),...g&&{handleClose:Qf()}}),C=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:s,elements:a}=e,{enabled:l=!0,visibleOnly:c=!0}=t,u=i.useRef(!1),d=i.useRef(),p=i.useRef(!0);i.useEffect((()=>{if(!l)return;const e=_u(a.domReference);function t(){!n&&Nu(a.domReference)&&a.domReference===Hu(Ju(a.domReference))&&(u.current=!0)}function r(){p.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[a.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 f=i.useMemo((()=>({onPointerDown(e){Yu(e.nativeEvent)||(p.current=!1)},onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=td(e.nativeEvent);if(c&&Tu(t))try{if(Ku()&&Zu())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!p.current&&!nd(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=Tu(t)&&t.hasAttribute(Xp("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout((()=>{var e;const i=Hu(a.domReference?a.domReference.ownerDocument:document);(t||i!==a.domReference)&&(Wu(null==(e=s.current.floatingContext)?void 0:e.refs.floating.current,i)||Wu(a.domReference,i)||o||r(!1,n,"focus"))}))}})),[s,a.domReference,r,c]);return i.useMemo((()=>l?{reference:f}:{}),[l,f])}(k,{enabled:!v&&h.includes("focus")}),j=Lf(k),T=function(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:s=!0,role:a="dialog"}=t,l=null!=(n=Yf.get(a))?n:a,c=Wp(),u=null!=Yp(),d=i.useMemo((()=>"tooltip"===l||"label"===a?{["aria-"+("label"===a?"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"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}}),[l,o,u,r,c,a]),p=i.useMemo((()=>{const e={id:o,...l&&{role:l}};return"tooltip"===l||"label"===a?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,o,c,a]),f=i.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[o,a]);return i.useMemo((()=>s?{reference:d,floating:p,item:f}:{}),[s,d,p,f])}(k,{role:"tooltip"}),{getReferenceProps:N,getFloatingProps:M}=Vf([S,_,C,j,T]),{isMounted:A,styles:R}=function(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:o,common:s,duration:a=250}=t,l=e.placement,c=l.split("-")[0],u=i.useMemo((()=>({side:c,placement:l})),[c,l]),d="number"==typeof a,p=(d?a:a.open)||0,f=(d?a:a.close)||0,[m,h]=i.useState((()=>({...Xf(s,u),...Xf(n,u)}))),{isMounted:g,status:v}=function(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,s=("number"==typeof o?o:o.close)||0,[a,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,s);return c||"close"!==a||l("unmounted"),Lp((()=>{if(r){if(n){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}l("close")}}),[n,r]),{isMounted:c,status:a}}(e,{duration:a}),y=Zp(n),b=Zp(r),x=Zp(o),w=Zp(s);return Lp((()=>{const e=Xf(y.current,u),t=Xf(x.current,u),n=Xf(w.current,u),r=Xf(b.current,u)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===v&&h((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===v&&h({transitionProperty:Object.keys(r).map(Kf).join(","),transitionDuration:p+"ms",...n,...r}),"close"===v){const r=t||e;h({transitionProperty:Object.keys(r).map(Kf).join(","),transitionDuration:f+"ms",...n,...r})}}),[f,x,y,b,w,p,v,u]),{isMounted:g,styles:m}}(k,{duration:150,initial:{opacity:0},open:{opacity:1},close:{opacity:0}}),P={light:"bg-tooltip-background-light text-text-primary",dark:"bg-tooltip-background-dark text-text-on-color"}[e],I="dark"===e?"text-tooltip-background-dark":"text-tooltip-background-light";var O;return(0,Q.jsxs)(i.Fragment,{children:[(0,i.isValidElement)(l)&&(0,Q.jsx)(i.Fragment,{children:(0,i.cloneElement)(l,{ref:zt(l.ref,w.setReference),className:Ye(l.props.className),...N()})},"tooltip-reference"),(0,Q.jsx)(Ef,{id:d,root:u,children:A&&(0,Q.jsxs)("div",{className:Ye("absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg",P,"max-w-80 w-fit",c),ref:w.setFloating,style:{...E,...R},...M(),children:[(0,Q.jsxs)("div",{children:[!!n&&(0,Q.jsx)("span",{className:"font-semibold",children:n},"tooltip-title"),!!r&&(0,Q.jsx)("div",{className:"font-normal",children:r},"tooltip-content")]}),o&&(0,Q.jsx)($p,{ref:x,context:k,className:Ye("fill-current",I)})]})})]})};Jf.displayName="Tooltip";const em=(0,i.createContext)({isCollapsed:!1,setIsCollapsed:()=>{},collapsible:!0}),tm=({children:e,className:t,onCollapseChange:n,collapsible:r=!0,borderOn:o=!0,collapsed:s=!1,...a})=>{const l=(0,i.useRef)(null),[c,u]=(0,i.useState)((()=>!r&&s?s:et("sidebar-collapsed")||window.innerWidth<1280));return(0,i.useEffect)((()=>{"function"==typeof n&&n(c)}),[c,n]),(0,i.useEffect)((()=>{if(!r&&s)return;const e=()=>{const e=window.innerWidth<1280;if(r)if(e)u(!0),Je("sidebar-collapsed",!0);else{const e=et("sidebar-collapsed");u(e||!1)}else u(!1),(e=>{if(!(typeof window>"u"))try{localStorage.removeItem(e)}catch(e){console.error(e)}})("sidebar-collapsed")};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}}),[r]),(0,Q.jsx)(em.Provider,{value:{isCollapsed:c,setIsCollapsed:u,collapsible:r},children:(0,Q.jsx)("div",{ref:l,className:Ye("h-full overflow-auto w-72 px-4 py-4 gap-4 flex flex-col bg-background-primary",o&&"border-0 border-r border-solid border-border-subtle","transition-all duration-200",c&&"w-16 px-2",t),...a,children:e})})};tm.displayName="Sidebar";const nm=({children:e})=>(0,Q.jsx)("div",{className:"space-y-2",children:e});nm.displayName="Sidebar.Header";const rm=({children:e})=>(0,Q.jsx)("div",{className:Ye("space-y-4 grow items-start"),children:e});rm.displayName="Sidebar.Body";const om=({children:e})=>{const{isCollapsed:t,setIsCollapsed:n,collapsible:r}=(0,i.useContext)(em);return(0,Q.jsxs)("div",{className:"space-y-4",children:[e,r&&(0,Q.jsx)("button",{className:Ye("bg-transparent w-full border-0 p-0 m-0 flex items-center gap-2 text-base cursor-pointer",t&&"justify-center"),onClick:()=>{n(!t),Je("sidebar-collapsed",!t)},"aria-label":t?"Expand sidebar":"Collapse sidebar",children:t?(0,Q.jsx)(Q.Fragment,{children:(0,Q.jsx)(Jf,{title:"Expand",children:(0,Q.jsx)(wu,{className:"size-5"})})}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Eu,{className:"size-5"})," Collapse"]})})]})};om.displayName="Sidebar.Footer";const im=({children:e,className:t})=>(0,Q.jsx)("div",{className:Ye("w-full",t),children:e});im.displayName="Sidebar.Item";const sm=Object.assign(tm,{Header:nm,Body:rm,Footer:om,Item:im}),am=Ct("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),lm=(0,i.createContext)({}),cm=()=>(0,i.useContext)(lm),um=({size:e="md",children:t,className:n})=>(0,Q.jsx)(lm.Provider,{value:{size:e},children:(0,Q.jsx)("div",{className:Ye("flex flex-col bg-background-primary p-2",n),children:t})});um.displayName="Menu";const dm=({heading:e,arrow:t=!1,showArrowOnHover:n=!1,open:r=!0,onClick:o,children:s,className:a})=>{const[l,c]=(0,i.useState)(r),[u,d]=(0,i.useState)(!1),{size:p}=cm(),f={sm:"text-xs",md:"text-sm"}[p??"md"],m={sm:"size-4",md:"size-5"}[p??"md"],h=()=>{c(!l),o&&o(!l)};return(0,Q.jsxs)("div",{children:[!!e&&(0,Q.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:Ye("text-text-primary bg-transparent cursor-pointer flex justify-between items-center gap-1",f,e?"p-1":"p-0",a),"aria-expanded":l,children:[(0,Q.jsx)("span",{className:"text-text-tertiary",children:e}),t&&(0,Q.jsx)(Sc.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,Q.jsx)(Sc.span,{className:"inline-flex p-1",variants:{open:{rotate:180},closed:{rotate:0}},animate:l?"open":"closed",transition:{duration:.15},children:(0,Q.jsx)(am,{className:Ye("shrink-0",m)})})})]}),(0,Q.jsx)(on,{initial:!1,children:l&&(0,Q.jsx)(Sc.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:s})})]})};dm.displayName="Menu.List";const pm=({disabled:e=!1,active:t,onClick:n,children:r,className:o})=>{const{size:i}=cm(),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"}[i??"md"];return(0,Q.jsx)("li",{role:"menuitem",tabIndex:0,onClick:n,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&n?.()},className:Ye("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})};pm.displayName="Menu.Item";const fm=({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,Q.jsx)("li",{className:"m-0 p-0 list-none",role:"separator","aria-hidden":"true",children:(0,Q.jsx)("hr",{className:Ye("w-full border-0 border-t border-border-subtle",n,t)})})};fm.displayName="Menu.Separator",um.List=dm,um.Item=pm,um.Separator=fm;const mm=(0,i.forwardRef)((({children:e=null,tag:t="label",size:n="sm",className:r="",variant:o="neutral",required:i=!1,...s},a)=>{if(!e)return null;let l="";return i&&(l="after:content-['*'] after:text-field-required after:ml-0.5"),(0,Q.jsx)(t,{ref:a,className:Ye("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})}));mm.displayName="Label";let hm=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};const gm=({label:e,switchId:t,disabled:n=!1,children:r,size:o})=>{const s={xs:"text-xs leading-4 font-medium",sm:"text-sm leading-5 font-medium",md:"text-base leading-6 font-medium"},a={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,Q.jsxs)("div",{className:Ye("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,Q.jsxs)("div",{className:Ye("inline-flex",u,"gap-3"),children:[r,(()=>{const{heading:r="",description:i=""}=e||{};return(0,Q.jsxs)("div",{className:Ye("space-y-0.5",l[o]),children:[r&&(0,Q.jsx)(mm,{htmlFor:t,className:Ye("m-0",s[o]),...n&&{variant:"disabled"},children:r}),i&&(0,Q.jsx)(mm,{tag:"p",variant:"help",className:Ye("text-sm font-normal leading-5 m-0",a[o]),...n&&{variant:"disabled"},children:i})]})})()]})},vm=(0,i.forwardRef)((({id:e,onChange:t,value:n,defaultValue:r=!1,size:o="sm",disabled:s=!1,label:a={heading:"",description:""},name:l,className:c,...u},d)=>{const p="lg"===o?"md":o,f=(0,i.useMemo)((()=>typeof n<"u"),[n]),m=(0,i.useMemo)((()=>e||`switch-${hm()}`),[]),[h,g]=(0,i.useState)(r),v="primary",y=(0,i.useCallback)((()=>f?n:h),[f,n,h]),b={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"}},x={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,Q.jsx)(gm,{label:a,switchId:m,disabled:s,size:p,children:(0,Q.jsxs)("div",{className:Ye("relative group/switch inline-block cursor-pointer rounded-full shrink-0",x[p].container,c),children:[(0,Q.jsx)("input",{ref:d,id:m,type:"checkbox",className:Ye("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]",b[v].input,s&&"bg-toggle-off-disabled disabled:border-transparent disabled:cursor-not-allowed checked:disabled:bg-toggle-on-disabled disabled:shadow-toggle-disabled",!s&&{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"}}[v].input),checked:y(),onChange:e=>{if(s)return;const n=e.target.checked;f||g(n),"function"==typeof t&&t(n)},disabled:s,name:l,...u}),(0,Q.jsx)("label",{htmlFor:m,className:Ye("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",x[p].toggleDial,b[v].toggleDial,s&&"peer-disabled:cursor-not-allowed",!s&&{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"}[p])})]})})}));vm.displayName="Switch";const ym=window.lodash;var bm=o(442);const xm=bm.default||bm,wm=function(t){const{children:n,title:r,description:o,badge:i,badgeItemProps:s,content:a,type:l="inline"}=t,c=`field-${Math.random().toString(36).substr(2,9)}`;return(0,e.createElement)("section",{className:`flex ${"block"===l?"flex-col":"flex-col sm:flex-row"} py-6 justify-between gap-2 lg:gap-5 border-0 border-b border-solid border-border-subtle last:border-b-0`,"aria-labelledby":r?`${c}-title`:void 0},(r||o)&&(0,e.createElement)("div",{className:"block"===l?"w-full":"w-full sm:w-[70%]"},r&&(0,e.createElement)(e.Fragment,null,s?.label?(0,e.createElement)("span",{className:"flex"},(0,e.createElement)(mm,{className:"font-medium mb-1",htmlFor:c,size:"md",id:`${c}-title`,as:"h3"},r),(0,e.createElement)(Fc,s)):(0,e.createElement)(mm,{className:"font-medium mb-1",htmlFor:c,size:"md",id:`${c}-title`,as:"h3"},r)),o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",{className:"font-normal text-sm text-text-field-helper m-0",id:`${c}-description`,"aria-hidden":"true"},xm(o)),i&&(0,e.createElement)("span",{className:"inline-flex items-center mt-1 px-2.5 py-1 rounded-md text-xs font-medium bg-wpcolorfaded !text-wpcolor",role:"status","aria-label":`Status: ${i}`},i))),a&&(0,e.createElement)("div",{className:"pr-16 pb-8 w-full",role:"group","aria-labelledby":r?`${c}-title`:"","aria-describedby":o?`${c}-description`:""},n),!a&&n)},Em=function(t){const{title:n,description:r,name:o,value:s,badgeItemProps:a,onChange:l,disabled:c}=t,[u,d]=Mc(),[p,f]=(0,i.useState)(s),m=(0,i.useRef)((0,ym.debounce)((async e=>{d(e)}),500)).current;function h(e){f(!e),"function"==typeof t.manageState&&t.manageState(!e);const n=u,r=o.split(/[\[\]]/);n[r[0]][r[1]]=!e,l&&l(!e),m({type:"CHANGE",data:n})}(0,i.useEffect)((()=>()=>{m.cancel()}),[m]);const g=`toggle-${o.replace(/[\[\]]/g,"-")}`;return(0,e.createElement)(wm,{title:n,description:r,badgeItemProps:a},(0,e.createElement)("div",null,(0,e.createElement)(vm,{id:g,"aria-label":`${n} - ${p?"Enabled":"Disabled"}`,"aria-checked":p,value:p,name:o,onChange:()=>{h(p)},disabled:c||!1,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),h(p))},size:"md",className:"border-none moderncart-toggle-field",role:"switch"})))};var km=Object.defineProperty,Sm=(e,t,n)=>(((e,t,n)=>{t in e?km(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let _m=new class{constructor(){Sm(this,"current",this.detect()),Sm(this,"handoffState","pending"),Sm(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Cm=(e,t)=>{_m.isServer?(0,i.useEffect)(e,t):(0,i.useLayoutEffect)(e,t)};function jm(e){let t=(0,i.useRef)(e);return Cm((()=>{t.current=e}),[e]),t}function Tm(e,t){let[n,r]=(0,i.useState)(e),o=jm(e);return Cm((()=>r(o.current)),[o,r,...t]),n}let Nm=function(e){let t=jm(e);return i.useCallback(((...e)=>t.current(...e)),[t])};function Mm(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=Mm();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Am(){let[e]=(0,i.useState)(Mm);return(0,i.useEffect)((()=>()=>e.dispose()),[e]),e}function Rm(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in s&&(e=>e.useSyncExternalStore)(s)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=i.useState(_m.isHandoffComplete);return t&&!1===_m.isHandoffComplete&&n(!1),i.useEffect((()=>{!0!==t&&n(!0)}),[t]),i.useEffect((()=>_m.handoff()),[]),!e&&t}var Pm;let Im=null!=(Pm=i.useId)?Pm:function(){let e=Rm(),[t,n]=i.useState(e?()=>_m.nextId():null);return Cm((()=>{null===t&&n(_m.nextId())}),[t]),null!=t?""+t:void 0};function Om(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Om),r}function Lm(e){return _m.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Dm=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Fm=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Fm||{}),zm=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(zm||{}),Bm=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Bm||{}),Vm=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Vm||{});function Um(e,t=0){var n;return e!==(null==(n=Lm(e))?void 0:n.body)&&Om(t,{0:()=>e.matches(Dm),1(){let t=e;for(;null!==t;){if(t.matches(Dm))return!0;t=t.parentElement}return!1}})}var Hm=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Hm||{});function Wm(e,t,n){let r=jm(t);(0,i.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function $m(e,t,n=!0){let r=(0,i.useRef)(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=o(n);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let s=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of s){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i)||n.composed&&n.composedPath().includes(t))return}return!Um(i,Vm.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}(0,i.useEffect)((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let s=(0,i.useRef)(null);Wm("pointerdown",(e=>{var t,n;r.current&&(s.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Wm("mousedown",(e=>{var t,n;r.current&&(s.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Wm("click",(e=>{/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0||/Android/gi.test(window.navigator.userAgent)||s.current&&(o(e,(()=>s.current)),s.current=null)}),!0),Wm("touchend",(e=>o(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),function(e,t,n){let r=jm((e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))));(0,i.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("blur",0,!0)}function Gm(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function qm(e,t){let[n,r]=(0,i.useState)((()=>Gm(e)));return Cm((()=>{r(Gm(e))}),[e.type,e.as]),Cm((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0)),["textarea","input"].join(",");let Ym=Symbol();function Km(...e){let t=(0,i.useRef)(e);(0,i.useEffect)((()=>{t.current=e}),[e]);let n=Nm((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Ym])))?void 0:n}let Xm=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Zm(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let s=i?null!=(n=o.innerText)?n:"":r;return Xm.test(s)&&(s=s.replace(Xm,"")),s}function Qm(e){return[e.screenX,e.screenY]}function Jm(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var eh=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(eh||{}),th=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(th||{});function nh({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=null!=a?a:oh;let l=ih(t,e);if(i)return rh(l,n,r,s,a);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return rh(t,n,r,s,a)}if(1&c){let{unmount:e=!0,...t}=l;return Om(e?0:1,{0:()=>null,1:()=>rh({...t,hidden:!0,style:{display:"none"}},n,r,s,a)})}return rh(l,n,r,s,a)}function rh(e,t={},n,r,o){let{as:s=n,children:a,refName:l="ref",...c}=lh(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t));let p={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(p["data-headlessui-state"]=n.join(" "))}if(s===i.Fragment&&Object.keys(ah(c)).length>0){if(!(0,i.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=d.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>Jm(null==e?void 0:e.className(...t),c.className):Jm(null==e?void 0:e.className,c.className),n=t?{className:t}:{};return(0,i.cloneElement)(d,Object.assign({},ih(d.props,ah(lh(c,["ref"]))),p,u,{ref:o(d.ref,u.ref)},n))}return(0,i.createElement)(s,Object.assign({},lh(c,["ref"]),s!==i.Fragment&&u,s!==i.Fragment&&p),d)}function oh(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function ih(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function sh(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ah(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function lh(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}var ch=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ch||{});let uh=sh((function(e,t){var n;let{features:r=1,...o}=e;return nh({ourProps:{ref:t,"aria-hidden":!(2&~r)||(null!=(n=o["aria-hidden"])?n:void 0),hidden:!(4&~r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~r)&&!!(2&~r)&&{display:"none"}}},theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})})),dh=(0,i.createContext)(null);dh.displayName="OpenClosedContext";var ph=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ph||{});function fh(){return(0,i.useContext)(dh)}function mh({value:e,children:t}){return i.createElement(dh.Provider,{value:e},t)}var hh=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(hh||{});function gh(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))yh(n,vh(t,r),o);return n}function vh(e,t){return e?e+"["+t+"]":t}function yh(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())yh(e,vh(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):gh(n,t,e)}var bh=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(bh||{}),xh=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(xh||{}),wh=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(wh||{}),Eh=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Eh||{}),kh=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(kh||{});function Sh(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=e=>e){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let _h={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=Sh(e),o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),i=o?e.options.indexOf(o):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Sh(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=Sh(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},Ch=(0,i.createContext)(null);function jh(e){let t=(0,i.useContext)(Ch);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,jh),t}return t}Ch.displayName="ListboxActionsContext";let Th=(0,i.createContext)(null);function Nh(e){let t=(0,i.useContext)(Th);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Nh),t}return t}function Mh(e,t){return Om(t.type,_h,e,t)}Th.displayName="ListboxDataContext";let Ah=i.Fragment,Rh=eh.RenderStrategy|eh.Static,Ph=sh((function(e,t){let{value:n,defaultValue:r,form:o,name:s,onChange:a,by:l=(e,t)=>e===t,disabled:c=!1,horizontal:u=!1,multiple:d=!1,...p}=e;const f=u?"horizontal":"vertical";let m=Km(t),[h=(d?[]:void 0),g]=function(e,t,n){let[r,o]=(0,i.useState)(n),s=void 0!==e,a=(0,i.useRef)(s),l=(0,i.useRef)(!1),c=(0,i.useRef)(!1);return!s||a.current||l.current?!s&&a.current&&!c.current&&(c.current=!0,a.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,a.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[s?e:r,Nm((e=>(s||o(e),null==t?void 0:t(e))))]}(n,a,r),[v,y]=(0,i.useReducer)(Mh,{dataRef:(0,i.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),b=(0,i.useRef)({static:!1,hold:!1}),x=(0,i.useRef)(null),w=(0,i.useRef)(null),E=(0,i.useRef)(null),k=Nm("string"==typeof l?(e,t)=>{let n=l;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:l),S=(0,i.useCallback)((e=>Om(_.mode,{1:()=>h.some((t=>k(t,e))),0:()=>k(h,e)})),[h]),_=(0,i.useMemo)((()=>({...v,value:h,disabled:c,mode:d?1:0,orientation:f,compare:k,isSelected:S,optionsPropsRef:b,labelRef:x,buttonRef:w,optionsRef:E})),[h,c,d,v]);Cm((()=>{v.dataRef.current=_}),[_]),$m([_.buttonRef,_.optionsRef],((e,t)=>{var n;y({type:1}),Um(t,Vm.Loose)||(e.preventDefault(),null==(n=_.buttonRef.current)||n.focus())}),0===_.listboxState);let C=(0,i.useMemo)((()=>({open:0===_.listboxState,disabled:c,value:h})),[_,c,h]),j=Nm((e=>{let t=_.options.find((t=>t.id===e));t&&I(t.dataRef.current.value)})),T=Nm((()=>{if(null!==_.activeOptionIndex){let{dataRef:e,id:t}=_.options[_.activeOptionIndex];I(e.current.value),y({type:2,focus:hh.Specific,id:t})}})),N=Nm((()=>y({type:0}))),M=Nm((()=>y({type:1}))),A=Nm(((e,t,n)=>e===hh.Specific?y({type:2,focus:hh.Specific,id:t,trigger:n}):y({type:2,focus:e,trigger:n}))),R=Nm(((e,t)=>(y({type:5,id:e,dataRef:t}),()=>y({type:6,id:e})))),P=Nm((e=>(y({type:7,id:e}),()=>y({type:7,id:null})))),I=Nm((e=>Om(_.mode,{0:()=>null==g?void 0:g(e),1(){let t=_.value.slice(),n=t.findIndex((t=>k(t,e)));return-1===n?t.push(e):t.splice(n,1),null==g?void 0:g(t)}}))),O=Nm((e=>y({type:3,value:e}))),L=Nm((()=>y({type:4}))),D=(0,i.useMemo)((()=>({onChange:I,registerOption:R,registerLabel:P,goToOption:A,closeListbox:M,openListbox:N,selectActiveOption:T,selectOption:j,search:O,clearSearch:L})),[]),F={ref:m},z=(0,i.useRef)(null),B=Am();return(0,i.useEffect)((()=>{z.current&&void 0!==r&&B.addEventListener(z.current,"reset",(()=>{null==g||g(r)}))}),[z,g]),i.createElement(Ch.Provider,{value:D},i.createElement(Th.Provider,{value:_},i.createElement(mh,{value:Om(_.listboxState,{0:ph.Open,1:ph.Closed})},null!=s&&null!=h&&gh({[s]:h}).map((([e,t],n)=>i.createElement(uh,{features:ch.Hidden,ref:0===n?e=>{var t;z.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...ah({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,disabled:c,name:e,value:t})}))),nh({ourProps:F,theirProps:p,slot:C,defaultTag:Ah,name:"Listbox"}))))})),Ih=sh((function(e,t){var n;let r=Im(),{id:o=`headlessui-listbox-button-${r}`,...s}=e,a=Nh("Listbox.Button"),l=jh("Listbox.Button"),c=Km(a.buttonRef,t),u=Am(),d=Nm((e=>{switch(e.key){case bh.Space:case bh.Enter:case bh.ArrowDown:e.preventDefault(),l.openListbox(),u.nextFrame((()=>{a.value||l.goToOption(hh.First)}));break;case bh.ArrowUp:e.preventDefault(),l.openListbox(),u.nextFrame((()=>{a.value||l.goToOption(hh.Last)}))}})),p=Nm((e=>{e.key===bh.Space&&e.preventDefault()})),f=Nm((e=>{if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();0===a.listboxState?(l.closeListbox(),u.nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),l.openListbox())})),m=Tm((()=>{if(a.labelId)return[a.labelId,o].join(" ")}),[a.labelId,o]),h=(0,i.useMemo)((()=>({open:0===a.listboxState,disabled:a.disabled,value:a.value})),[a]);return nh({ourProps:{ref:c,id:o,type:qm(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=a.optionsRef.current)?void 0:n.id,"aria-expanded":0===a.listboxState,"aria-labelledby":m,disabled:a.disabled,onKeyDown:d,onKeyUp:p,onClick:f},theirProps:s,slot:h,defaultTag:"button",name:"Listbox.Button"})})),Oh=sh((function(e,t){let n=Im(),{id:r=`headlessui-listbox-label-${n}`,...o}=e,s=Nh("Listbox.Label"),a=jh("Listbox.Label"),l=Km(s.labelRef,t);Cm((()=>a.registerLabel(r)),[r]);let c=Nm((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),u=(0,i.useMemo)((()=>({open:0===s.listboxState,disabled:s.disabled})),[s]);return nh({ourProps:{ref:l,id:r,onClick:c},theirProps:o,slot:u,defaultTag:"label",name:"Listbox.Label"})})),Lh=sh((function(e,t){var n;let r=Im(),{id:o=`headlessui-listbox-options-${r}`,...s}=e,a=Nh("Listbox.Options"),l=jh("Listbox.Options"),c=Km(a.optionsRef,t),u=Am(),d=Am(),p=fh(),f=null!==p?(p&ph.Open)===ph.Open:0===a.listboxState;(0,i.useEffect)((()=>{var e;let t=a.optionsRef.current;t&&0===a.listboxState&&t!==(null==(e=Lm(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[a.listboxState,a.optionsRef]);let m=Nm((e=>{switch(d.dispose(),e.key){case bh.Space:if(""!==a.searchQuery)return e.preventDefault(),e.stopPropagation(),l.search(e.key);case bh.Enter:if(e.preventDefault(),e.stopPropagation(),null!==a.activeOptionIndex){let{dataRef:e}=a.options[a.activeOptionIndex];l.onChange(e.current.value)}0===a.mode&&(l.closeListbox(),Mm().nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case Om(a.orientation,{vertical:bh.ArrowDown,horizontal:bh.ArrowRight}):return e.preventDefault(),e.stopPropagation(),l.goToOption(hh.Next);case Om(a.orientation,{vertical:bh.ArrowUp,horizontal:bh.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),l.goToOption(hh.Previous);case bh.Home:case bh.PageUp:return e.preventDefault(),e.stopPropagation(),l.goToOption(hh.First);case bh.End:case bh.PageDown:return e.preventDefault(),e.stopPropagation(),l.goToOption(hh.Last);case bh.Escape:return e.preventDefault(),e.stopPropagation(),l.closeListbox(),u.nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case bh.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(l.search(e.key),d.setTimeout((()=>l.clearSearch()),350))}})),h=Tm((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.id}),[a.buttonRef.current]),g=(0,i.useMemo)((()=>({open:0===a.listboxState})),[a]);return nh({ourProps:{"aria-activedescendant":null===a.activeOptionIndex||null==(n=a.options[a.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===a.mode||void 0,"aria-labelledby":h,"aria-orientation":a.orientation,id:o,onKeyDown:m,role:"listbox",tabIndex:0,ref:c},theirProps:s,slot:g,defaultTag:"ul",features:Rh,visible:f,name:"Listbox.Options"})})),Dh=sh((function(e,t){let n=Im(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:s,...a}=e,l=Nh("Listbox.Option"),c=jh("Listbox.Option"),u=null!==l.activeOptionIndex&&l.options[l.activeOptionIndex].id===r,d=l.isSelected(s),p=(0,i.useRef)(null),f=function(e){let t=(0,i.useRef)(""),n=(0,i.useRef)("");return Nm((()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():Zm(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return Zm(e).trim()}(r).trim().toLowerCase();return t.current=o,n.current=i,i}))}(p),m=jm({disabled:o,value:s,domRef:p,get textValue(){return f()}}),h=Km(t,p);Cm((()=>{if(0!==l.listboxState||!u||0===l.activationTrigger)return;let e=Mm();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[p,u,l.listboxState,l.activationTrigger,l.activeOptionIndex]),Cm((()=>c.registerOption(r,m)),[m,r]);let g=Nm((e=>{if(o)return e.preventDefault();c.onChange(s),0===l.mode&&(c.closeListbox(),Mm().nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),v=Nm((()=>{if(o)return c.goToOption(hh.Nothing);c.goToOption(hh.Specific,r)})),y=function(){let e=(0,i.useRef)([-1,-1]);return{wasMoved(t){let n=Qm(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Qm(t)}}}(),b=Nm((e=>y.update(e))),x=Nm((e=>{y.wasMoved(e)&&(o||u||c.goToOption(hh.Specific,r,0))})),w=Nm((e=>{y.wasMoved(e)&&(o||u&&c.goToOption(hh.Nothing))})),E=(0,i.useMemo)((()=>({active:u,selected:d,disabled:o})),[u,d,o]);return nh({ourProps:{id:r,ref:h,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":d,disabled:void 0,onClick:g,onFocus:v,onPointerEnter:b,onMouseEnter:b,onPointerMove:x,onMouseMove:x,onPointerLeave:w,onMouseLeave:w},theirProps:a,slot:E,defaultTag:"li",name:"Listbox.Option"})})),Fh=Object.assign(Ph,{Button:Ih,Label:Oh,Options:Lh,Option:Dh});function zh(){let e=(0,i.useRef)(!1);return Cm((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Bh(e,...t){e&&t.length>0&&e.classList.add(...t)}function Vh(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Uh(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let Hh=(0,i.createContext)(null);Hh.displayName="TransitionContext";var Wh=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Wh||{});let $h=(0,i.createContext)(null);function Gh(e){return"children"in e?Gh(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function qh(e,t){let n=jm(e),r=(0,i.useRef)([]),o=zh(),s=Am(),a=Nm(((e,t=th.Hidden)=>{let i=r.current.findIndex((({el:t})=>t===e));-1!==i&&(Om(t,{[th.Unmount](){r.current.splice(i,1)},[th.Hidden](){r.current[i].state="hidden"}}),s.microTask((()=>{var e;!Gh(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),l=Nm((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,th.Unmount)})),c=(0,i.useRef)([]),u=(0,i.useRef)(Promise.resolve()),d=(0,i.useRef)({enter:[],leave:[],idle:[]}),p=Nm(((e,n,r)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(d.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?u.current=u.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),f=Nm(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>n(t)))}));return(0,i.useMemo)((()=>({children:r,register:l,unregister:a,onStart:p,onStop:f,wait:u,chains:d})),[l,a,r,p,f,d,u])}function Yh(){}$h.displayName="NestingContext";let Kh=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Xh(e){var t;let n={};for(let r of Kh)n[r]=null!=(t=e[r])?t:Yh;return n}let Zh=eh.RenderStrategy,Qh=sh((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...s}=e,a=(0,i.useRef)(null),l=Km(a,t);Rm();let c=fh();if(void 0===n&&null!==c&&(n=(c&ph.Open)===ph.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,i.useState)(n?"visible":"hidden"),p=qh((()=>{d("hidden")})),[f,m]=(0,i.useState)(!0),h=(0,i.useRef)([n]);Cm((()=>{!1!==f&&h.current[h.current.length-1]!==n&&(h.current.push(n),m(!1))}),[h,n]);let g=(0,i.useMemo)((()=>({show:n,appear:r,initial:f})),[n,r,f]);(0,i.useEffect)((()=>{if(n)d("visible");else if(Gh(p)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")}),[n,p]);let v={unmount:o},y=Nm((()=>{var t;f&&m(!1),null==(t=e.beforeEnter)||t.call(e)})),b=Nm((()=>{var t;f&&m(!1),null==(t=e.beforeLeave)||t.call(e)}));return i.createElement($h.Provider,{value:p},i.createElement(Hh.Provider,{value:g},nh({ourProps:{...v,as:i.Fragment,children:i.createElement(Jh,{ref:l,...v,...s,beforeEnter:y,beforeLeave:b})},theirProps:{},defaultTag:i.Fragment,features:Zh,visible:"visible"===u,name:"Transition"})))})),Jh=sh((function(e,t){var n,r;let{beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:c,enterFrom:u,enterTo:d,entered:p,leave:f,leaveFrom:m,leaveTo:h,...g}=e,v=(0,i.useRef)(null),y=Km(v,t),b=null==(n=g.unmount)||n?th.Unmount:th.Hidden,{show:x,appear:w,initial:E}=function(){let e=(0,i.useContext)(Hh);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[k,S]=(0,i.useState)(x?"visible":"hidden"),_=function(){let e=(0,i.useContext)($h);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:C,unregister:j}=_;(0,i.useEffect)((()=>C(v)),[C,v]),(0,i.useEffect)((()=>{if(b===th.Hidden&&v.current)return x&&"visible"!==k?void S("visible"):Om(k,{hidden:()=>j(v),visible:()=>C(v)})}),[k,v,C,j,x,b]);let T=jm({base:Uh(g.className),enter:Uh(c),enterFrom:Uh(u),enterTo:Uh(d),entered:Uh(p),leave:Uh(f),leaveFrom:Uh(m),leaveTo:Uh(h)}),N=function(e){let t=(0,i.useRef)(Xh(e));return(0,i.useEffect)((()=>{t.current=Xh(e)}),[e]),t}({beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l}),M=Rm();(0,i.useEffect)((()=>{if(M&&"visible"===k&&null===v.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[v,k,M]);let A=w&&x&&E,R=!M||E&&!w?"idle":x?"enter":"leave",P=function(e=0){let[t,n]=(0,i.useState)(e),r=zh(),o=(0,i.useCallback)((e=>{r.current&&n((t=>t|e))}),[t,r]),s=(0,i.useCallback)((e=>Boolean(t&e)),[t]),a=(0,i.useCallback)((e=>{r.current&&n((t=>t&~e))}),[n,r]),l=(0,i.useCallback)((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:s,removeFlag:a,toggleFlag:l}}(0),I=Nm((e=>Om(e,{enter:()=>{P.addFlag(ph.Opening),N.current.beforeEnter()},leave:()=>{P.addFlag(ph.Closing),N.current.beforeLeave()},idle:()=>{}}))),O=Nm((e=>Om(e,{enter:()=>{P.removeFlag(ph.Opening),N.current.afterEnter()},leave:()=>{P.removeFlag(ph.Closing),N.current.afterLeave()},idle:()=>{}}))),L=qh((()=>{S("hidden"),j(v)}),_),D=(0,i.useRef)(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let s=zh(),a=Am(),l=jm(n);Cm((()=>{e&&(l.current="enter")}),[e]),Cm((()=>{let e=Mm();a.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&s.current)return e.dispose(),o.current(l.current),e.add(function(e,t,n,r){let o=n?"enter":"leave",i=Mm(),s=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let a=Om(o,{enter:()=>t.enter,leave:()=>t.leave}),l=Om(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Om(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Vh(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Bh(e,...t.base,...a,...c),i.nextFrame((()=>{Vh(e,...t.base,...a,...c),Bh(e,...t.base,...a,...l),function(e,t){let n=Mm();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),a=i+s;if(0!==a){n.group((n=>{n.setTimeout((()=>{t(),n.dispose()}),a),n.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&n.dispose()}))}));let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(Vh(e,...t.base,...a),Bh(e,...t.base,...t.entered),s())))})),i.dispose}(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:A,container:v,classes:T,direction:R,onStart:jm((e=>{D.current=!0,L.onStart(v,e,I)})),onStop:jm((e=>{D.current=!1,L.onStop(v,e,O),"leave"===e&&!Gh(L)&&(S("hidden"),j(v))}))});let F=g,z={ref:y};return A?F={...F,className:Jm(g.className,...T.current.enter,...T.current.enterFrom)}:D.current&&(F.className=Jm(g.className,null==(r=v.current)?void 0:r.className),""===F.className&&delete F.className),i.createElement($h.Provider,{value:L},i.createElement(mh,{value:Om(k,{visible:ph.Open,hidden:ph.Closed})|P.flags},nh({ourProps:z,theirProps:F,defaultTag:"div",features:Zh,visible:"visible"===k,name:"Transition.Child"})))})),eg=sh((function(e,t){let n=null!==(0,i.useContext)(Hh),r=null!==fh();return i.createElement(i.Fragment,null,!n&&r?i.createElement(Qh,{ref:t,...e}):i.createElement(Jh,{ref:t,...e}))})),tg=Object.assign(Qh,{Child:eg,Root:Qh});function ng({title:e,titleId:t,...n},r){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const rg=i.forwardRef(ng),og=function(t){const{title:n,description:r,name:o,value:s,optionsArray:a,onChange:l}=t,[c,u]=Mc(),d=(0,i.useRef)((0,ym.debounce)((async e=>{u(e)}),500)).current;(0,i.useEffect)((()=>()=>{d.cancel()}),[d]);const p=Object.keys(a).find((e=>a[e].id===s))||"0",[f,m]=(0,i.useState)(a[p]),h=`dropdown-${o.replace(/[\[\]]/g,"-")}`;return(0,e.createElement)(wm,{title:n,description:r},(0,e.createElement)("div",{className:"flex-grow w-[25%]"},(0,e.createElement)(Fh,{name:o,value:f,onChange:e=>{m(e),function(e){let t=!1;const n=c,r=o.split(/[\[\]]/);c[r[0]][r[1]]!==e&&(n[r[0]][r[1]]=e,t=!0),t&&(l&&l(e),d({type:"CHANGE",data:n}))}(e.id)},as:"div",id:h},(0,e.createElement)(Fh.Label,{className:"sr-only"},n),(0,e.createElement)("div",{className:"relative mt-1 w-full min-w-32"},(0,e.createElement)(Fh.Button,{className:"relative w-full py-2 pl-3 pr-10 text-left bg-white rounded-md cursor-pointer border border-solid border-border-subtle active:border-wpcolor active:outline-none sm:text-sm focus:ring-2 focus:ring-wpcolor focus:border-wpcolor","aria-labelledby":`${h}-label`},(0,e.createElement)("span",{className:"block truncate",id:`${h}-label`},f.name),(0,e.createElement)("span",{className:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},(0,e.createElement)(rg,{className:"w-5 h-5 text-gray-400","aria-hidden":"true"}))),(0,e.createElement)(tg,{as:i.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)(Fh.Options,{className:"absolute min-w-full w-auto py-1 mt-1 z-40 overflow-auto text-base bg-white rounded-md shadow-lg max-h-60 ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},a.map(((t,n)=>(0,e.createElement)(Fh.Option,{key:n,className:({active:e})=>(e?" text-white bg-wpcolor":"text-gray-900")+"\n\t\t\t\t\t\t\t\t\tcursor-default select-none relative py-1 px-3 whitespace-nowrap",value:t},(({active:n,selected:r})=>(0,e.createElement)(i.Fragment,null,(0,e.createElement)("span",{className:(r?"font-medium":"font-normal")+" block"},t.name),r?(0,e.createElement)("span",{className:(n?"text-wpcolor":"text-wpcolor20")+"\n\t\t\t\t\t\t\t\t\t\t\tabsolute inset-y-0 left-0 flex items-center pl-3","aria-hidden":"true"}):null))))))))),(0,e.createElement)("input",{type:"hidden",name:o,value:f.id,"aria-hidden":"true"})))},ig=function(t){const{navigate:n}=t,[r]=Mc();if("Activated"!==r.license_status)return(0,e.createElement)("div",{className:"relative"},(0,e.createElement)(wt,{align:"center",containerType:"flex",direction:"row",justify:"center",className:"absolute top-0 left-0 w-full h-full bg-opacity-50 backdrop-blur-sm bg-white/30 z-[9]"},(0,e.createElement)(wt.Item,{className:"absolute p-6 bg-white shadow-md rounded-lg text-center"},(0,e.createElement)(wt,{containerType:"flex",direction:"row",justify:"center",className:"mb-4"},(0,e.createElement)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"h-8 w-8 text-red-500 stroke-1"},(0,e.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 013 3m3 0a6 6 0 01-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1121.75 8.25z"}))),(0,e.createElement)(cu,{size:"md",tag:"h2",title:(0,Ac.__)("Activate Your License","modern-cart-woo"),description:(0,Ac.__)("Please activate your license to get access to all features.","modern-cart-woo"),className:"mb-6 text-center [&_h2]:text-gray-900 [&_p]:!text-text-field-helper text-xl"}),(0,e.createElement)(Rt,{variant:"primary",onClick:()=>{n("moderncart_license")},className:"inline-flex justify-center items-center gap-1.5 rounded px-3 py-2 text-sm font-normal shadow-sm text-wpcolor hover:text-white border border-solid border-wpcolor bg-white hover:bg-wpcolor outline-0 hover:outline-0 focus:ring-0"},(0,Ac.__)("Activate License","modern-cart-woo")))),(0,e.createElement)("div",{className:"pointer-events-none select-none px-6"},(0,e.createElement)(og,{title:(0,Ac.__)("Display Cart","modern-cart-woo"),description:(0,Ac.__)("Choose where to show floating cart icon.","modern-cart-woo"),name:"moderncart_setting[enable_moderncart]",value:r.moderncart_setting.enable_moderncart,optionsArray:[{id:"wc_pages",name:(0,Ac.__)("WooCommerce Pages","modern-cart-woo")},{id:"all",name:(0,Ac.__)("Entire Website","modern-cart-woo")},{id:"disabled",name:(0,Ac.__)("Disable","modern-cart-woo")}]}),(0,e.createElement)(og,{title:(0,Ac.__)("Style","modern-cart-woo"),description:(0,Ac.__)("Choose a cart style.","modern-cart-woo"),name:"moderncart_cart[cart_theme_style]",value:r.moderncart_cart.cart_theme_style,optionsArray:[{id:"style1",name:(0,Ac.__)("Style 1","modern-cart-woo")},{id:"style2",name:(0,Ac.__)("Style 2","modern-cart-woo")}]}),(0,e.createElement)(Em,{title:(0,Ac.__)("Enable Free Shipping Bar","modern-cart-woo"),description:(0,Ac.sprintf)(
// translators: %1$s: link html start, %2$s: link html end
// translators: %1$s: link html start, %2$s: link html end
(0,Ac.__)("Displays a progress bar displaying how far away the order is to get free shipping. %1$s To make this work, you need to enable Free Shipping in the WooCommerce shipping method settings. Refer to %2$s this article %3$s to learn how to set it up","modern-cart-woo"),"<br />",'<a href="https://woocommerce.com/document/free-shipping/" class="moderncart-settings--article-link" target="_blank">',"</a>"),name:"moderncart_setting[enable_free_shipping_bar]",value:r.moderncart_setting.enable_free_shipping_bar})))},sg=Ct("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),ag=(0,i.forwardRef)((({id:e,type:t="text",defaultValue:n="",value:r,size:o="sm",className:s="",disabled:a=!1,onChange:l=()=>{},error:c=!1,onError:u=()=>{},prefix:d=null,suffix:p=null,label:f="",...m},h)=>{const g=(0,i.useRef)(null),v=(0,i.useMemo)((()=>e||`input-${t}-${hm()}`),[e]),y=(0,i.useMemo)((()=>typeof r<"u"),[r]),[b,x]=(0,i.useState)(n),[w,E]=(0,i.useState)(null),k=(0,i.useCallback)((()=>y?r:b),[y,r,b]),S=e=>{if(a)return;let n;"file"===t?(n=e.target.files,n&&n.length>0?E(n[0].name):E(null)):n=e.target.value,!y&&"file"!==t&&x(n),"function"==typeof l&&l(n)},_=()=>{E(null),g.current&&(g.current.value=""),l(null)},C="bg-field-secondary-background font-normal placeholder-text-tertiary text-text-primary w-full outline outline-1 outline-border-subtle border-none transition-[color,box-shadow,outline] duration-200",j={xs:"px-2 py-1 rounded",sm:"p-3 py-2 rounded",md:"p-3.5 py-2.5 rounded-md",lg:"p-4 py-3 rounded-lg"},T={xs:"text-xs font-medium",sm:"text-sm font-medium",md:"text-sm font-medium",lg:"text-base font-medium"},N={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-base"},M={sm:d?"pl-8":"",md:d?"pl-9":"",lg:d?"pl-10":""},A={sm:p?"pr-8":"",md:p?"pr-9":"",lg:p?"pr-10":""},R=a?"hover:outline-border-disabled":"hover:outline-border-strong",P="focus:outline-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2",I=c?"focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border":"",O=c?"focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border":"",L=a?"outline-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled":"",D=a?"outline-border-disabled cursor-not-allowed text-text-disabled file:text-text-tertiary":"",F="font-normal placeholder-text-tertiary text-text-primary pointer-events-none absolute inset-y-0 flex flex-1 items-center [&>svg]:h-4 [&>svg]:w-4",z=a?"font-normal placeholder-text-tertiary text-icon-disabled pointer-events-none absolute inset-y-0 flex flex-1 items-center":"font-normal placeholder-text-tertiary text-field-placeholder pointer-events-none absolute inset-y-0 flex flex-1 items-center",B={xs:"[&>svg]:size-4",sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6"},V=(0,i.useMemo)((()=>f?(0,Q.jsx)(mm,{className:Ye(T[o]),htmlFor:v,...m?.required&&{required:!0},children:f}):null),[f,o,v]),U=w?"file:border-0 file:bg-transparent pr-10":"text-text-tertiary file:border-0 file:bg-transparent pr-10";return"file"===t?(0,Q.jsxs)("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[V,(0,Q.jsxs)("div",{className:Ye("w-full relative flex focus-within:z-10",s),children:[(0,Q.jsx)("input",{ref:zt(g,h),id:v,type:"file",className:Ye(C,D,j[o],N[o],P,R,O,U),disabled:a,onChange:S,onInvalid:u,...m}),(0,Q.jsx)("div",{className:Ye(z,"right-0 pr-3",B[o]),children:(0,Q.jsx)(sg,{})})]})]}):(0,Q.jsxs)("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[V,(0,Q.jsxs)("div",{className:Ye("w-full relative flex focus-within:z-10",s),children:[d?(0,Q.jsx)("div",{className:Ye(F,"left-0 pl-3",N[o]),children:d}):null,(0,Q.jsx)("input",{ref:zt(g,h),id:v,type:t,className:Ye(C,L,j[o],N[o],M[o],A[o],P,R,I),disabled:a,onChange:S,onInvalid:u,value:k(),...m}),"file"===t?w?(0,Q.jsx)("div",{className:Ye(z,"right-0 pr-3 cursor-pointer z-20 pointer-events-auto",B[o]),onClick:_,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&_()},children:(0,Q.jsx)(jt,{})}):(0,Q.jsx)("div",{className:Ye(z,"right-0 pr-3",B[o]),children:(0,Q.jsx)(sg,{})}):p?(0,Q.jsx)("div",{className:Ye(F,"right-0 pr-3",N[o]),children:p}):null]})]})}));ag.displayName="Input";const lg=Ct("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),cg=({variant:e="primary",size:t="md",icon:n=null,className:r=""})=>{const o={primary:"text-brand-primary-600",secondary:"text-background-primary"}[e],i={sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6",xl:"[&>svg]:size-8"}[t];return(0,Q.jsx)("span",{className:Ye("flex",i,o,r),children:n||(0,Q.jsx)(lg,{className:"animate-spin shrink-0"})})},ug=window.wp.apiFetch;var dg=o.n(ug);const pg=function(){const[t,n]=Mc(),r=!(!t.license_status||"Activated"!==t.license_status),o=(0,Ac.__)("Activate License","modern-cart-woo"),s=(0,Ac.__)("Deactivate License","modern-cart-woo"),[a,l]=(0,i.useState)({licenseButtonText:r?s:o,licenseActivationProcess:!1}),{licenseButtonText:c,licenseActivationProcess:u}=a,[d,p]=(0,i.useState)(r?"**************************":""),[f,m]=(0,i.useState)(!1),[h,g]=(0,i.useState)(r),v=(0,i.useRef)(null),y="disabled:pointer-events-none disabled:bg-gray-200 disabled:text-while disabled:border-none disabled:text-gray-400";(0,i.useEffect)((()=>{v.current&&v.current.focus()}),[]);const b=function(e){if(e.preventDefault(),m(!1),""===d&&!r)return void m((0,Ac.__)("Please enter a valid license key!","modern-cart-woo"));e.target.disabled=!0;const i=e.currentTarget.dataset.nonce;let a=e.currentTarget.dataset.action;l({licenseButtonText:(0,Ac.__)("Processing","modern-cart-woo"),licenseActivationProcess:!0}),a="activate_license"===a?"modern_cart_activate_license":"modern_cart_deactivate_license";const c=new window.FormData;c.append("action",a),c.append("license_key",d),c.append("security",i),dg()({url:moderncart_settings.ajax_url,method:"POST",body:c}).then((r=>{if(r.success)if(e.target.blur(),"modern_cart_activate_license"===a){const r=t;t.license_status&&(r.license_status="Activated"),n({type:"CHANGE",data:r}),g(!0),l({licenseButtonText:s,licenseActivationProcess:!1}),p("**************************"),v.current.classList.add("disabled"),v.current.readOnly=!0,e.target.disabled=!1}else{const r=t;t.license_status&&(r.license_status="Deactivated"),n({type:"CHANGE",data:r}),g(!1),l({licenseButtonText:o,licenseActivationProcess:!1}),v.current.classList.remove("disabled"),v.current.readOnly=!1,p(""),e.target.disabled=!1}else{const t=r.data.error||r.data||"";m(t||(0,Ac.__)("Unknown error occurred while activating the license.","modern-cart-woo")),e.target.blur(),l({licenseButtonText:o,licenseActivationProcess:!1})}}))};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"h-auto bg-background-primary rounded-xl shadow-sm"},(0,e.createElement)(wt,{containerType:"flex",direction:"column",className:"p-6"},(0,e.createElement)(wt.Item,null,(0,e.createElement)(mm,{className:"font-semibold mb-1",htmlFor:"default-width",size:"md"},(0,Ac.__)("License Key","modern-cart-woo")),(0,e.createElement)("p",{className:"font-normal text-sm text-text-field-helper m-0 mb-4"},xm((0,Ac.sprintf)(
// translators: %1$s: link html start, %2$s: link html end
// translators: %1$s: link html start, %2$s: link html end
(0,Ac.__)("Enter your valid license key below to activate Modern Cart. If you donβt have a license key yet, you can get it from %1$shere%2$s.","modern-cart-woo"),'<a href="https://my.cartflows.com/api-keys/" class="text-wpcolor hover:text-wphovercolor no-underline" target="_blank">',"</a>")))),(0,e.createElement)(wt.Item,{className:"w-full relative flex gap-4 flex-col sm:flex-row"},(0,e.createElement)("div",{className:"flex-grow relative"},(0,e.createElement)(ag,{type:"text",size:"md",prefix:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-4 w-6 text-gray-400"},(0,e.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})),className:"h-full w-full moderncart-license-key disabled:!bg-gray-100 focus:[&>input]:ring-focus "+(f?"!border-border-subtle focus:border-wpcolor !shadow-none !outline-0 !outline-none":""),name:"moderncart_setting[license_key]",value:d,onChange:e=>p(e),disabled:!!r,ref:v}),r&&(0,e.createElement)(wt,{align:"center",containerType:"flex",direction:"row",className:"pointer-events-none absolute top-[0.3rem] h-9 right-0 pr-3"},(0,e.createElement)(wt.Item,null,(0,e.createElement)("svg",{className:"h-5 w-5 text-green-500",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",clipRule:"evenodd"})))),f&&(0,e.createElement)(wt,{align:"center",containerType:"flex",direction:"row",className:"pointer-events-none absolute top-[0.3rem] h-9 right-0 pr-3"},(0,e.createElement)(wt.Item,null,(0,e.createElement)("svg",{className:"h-5 w-5 text-red-500",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))))),(0,e.createElement)("div",null,h?(0,e.createElement)(Rt,{variant:"primary",className:`${y} w-full bg-wpcolor hover:bg-wphovercolor outline-0 hover:outline-0 focus:ring-0`,onClick:b,icon:u&&(0,e.createElement)(cg,{className:"bg-transparent text-white",icon:null,size:"sm",variant:"primary"}),iconPosition:"right","data-action":"deactivate_license","data-nonce":moderncart_settings.license_nonces.deactivate_license_nonce},c):(0,e.createElement)(Rt,{variant:"primary",className:`${y} w-full bg-wpcolor hover:bg-wphovercolor outline-0 hover:outline-0 focus:ring-0`,onClick:b,icon:u&&(0,e.createElement)(cg,{className:"bg-transparent text-white",icon:null,size:"sm",variant:"primary"}),iconPosition:"right","data-action":"activate_license","data-nonce":moderncart_settings.license_nonces.activate_license_nonce},c))),f&&(0,e.createElement)(wt.Item,null,(0,e.createElement)("div",{className:"license-errors text-wpcolor"},xm(f))))))},fg=({data:t,icons:n})=>{const[r,o]=(0,i.useState)({icon_color:t.moderncart_floating.icon_color||t.color_default_vars.icon_color,icon_background_color:t.moderncart_floating.icon_background_color||t.color_default_vars.icon_background_color,count_text_color:t.moderncart_floating.count_text_color||t.color_default_vars.count_text_color,count_background_color:t.moderncart_floating.count_background_color||t.color_default_vars.count_background_color,icon_width:t.moderncart_floating.icon_width||60,icon_border_radius:t.moderncart_floating.icon_border_radius||200,floating_cart_icon:t.moderncart_floating.floating_cart_icon||0});(0,i.useEffect)((()=>{o({icon_color:t.moderncart_floating.icon_color||t.color_default_vars.icon_color,icon_background_color:t.moderncart_floating.icon_background_color||t.color_default_vars.icon_background_color,count_text_color:t.moderncart_floating.count_text_color||t.color_default_vars.count_text_color,count_background_color:t.moderncart_floating.count_background_color||t.color_default_vars.count_background_color,icon_width:t.moderncart_floating.icon_width||60,icon_border_radius:t.moderncart_floating.icon_border_radius||200,floating_cart_icon:t.moderncart_floating.floating_cart_icon||0})}),[t.moderncart_floating]);const s={backgroundColor:r.icon_background_color||"#0284C7",color:r.icon_color||"#FFFFFF",width:`${r.icon_width||60}px`,height:`${r.icon_width||60}px`,borderRadius:`${r.icon_border_radius||200}px`,display:"flex",alignItems:"center",justifyContent:"center",position:"relative",cursor:"pointer",boxShadow:"0 4px 7px rgba(0, 0, 0, 0.1)"},a={position:"absolute",top:"-5px",left:"-5px",backgroundColor:r.count_background_color||"#10B981",color:r.count_text_color||"#FFFFFF",width:"22px",height:"22px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",fontWeight:"bold"},l=r.floating_cart_icon||0,c=n&&n[l]?n[l]:"";return(0,e.createElement)("div",{style:{position:"relative",width:"100%",height:"120px",background:"#f5f5f5",borderRadius:"8px",marginBottom:"20px",display:"flex",alignItems:"center",justifyContent:"center"}},(0,e.createElement)("div",{style:s},(0,e.createElement)("div",{style:a},"3"),(0,e.createElement)("div",{dangerouslySetInnerHTML:{__html:c}})))};var mg=o(8527);const hg=window.wp.components;function gg({title:e,titleId:t,...n},r){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const vg=i.forwardRef(gg);function yg({title:e,titleId:t,...n},r){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const bg=i.forwardRef(yg),xg=function(t){const{name:n,value:r,defaultColor:o,onChange:s}=t,[a,l]=Mc(),[c,u]=(0,i.useState)(!1),[d,p]=(0,i.useState)(r),f=moderncart_settings?.theme_colors?.map((e=>({name:e,color:e}))),[m,h]=(0,i.useState)(!1),g=(0,i.useRef)((0,ym.debounce)((async e=>{l(e)}),500)).current;(0,i.useEffect)((()=>()=>{g.cancel()}),[g]),(0,i.useEffect)((()=>{const e=e=>{c&&"Escape"===e.key&&x()};return c&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[c]);const v=(0,mg.Ay)({default:{color:{width:"36px",height:"30px",background:d}}}),y=`colorpicker-${n.replace(/[\[\]]/g,"-")}`,b=()=>{u((e=>!e))},x=()=>{u(!1)},w=()=>{d!==o&&(E(o),h(!0),setTimeout((()=>{h(!1)}),500))},E=e=>{e&&p(e);const r=new CustomEvent("moderncart:color:change",{bubbles:!0,detail:{e:"color",name:t.name,value:e||o}});document.dispatchEvent(r);let i=!1;const l=a,c=n.split(/[\[\]]/);a[c[0]][c[1]]!==e&&(l[c[0]][c[1]]=e||o,i=!0),i&&(s&&s(e),g({type:"CHANGE",data:l}))},k=(e=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e),n=t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null;return n&&Math.round((299*n.r+587*n.g+114*n.b)/1e3)>125?"text-black":"text-white"})(d);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"moderncart-field-data-content"},(0,e.createElement)("div",{className:"moderncart-colorpicker-selector sm:justify-end"},(0,e.createElement)("div",{className:"moderncart-colorpicker-swatch-wrap focus-visible:ring-1 focus-visible:ring-toggle-on",onClick:b,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),b())},role:"button",tabIndex:"0","aria-haspopup":"true","aria-expanded":c,"aria-controls":y,id:`${y}-trigger`},(0,e.createElement)("span",{className:"moderncart-colorpicker-swatch flex justify-center items-center",style:v.color,"aria-hidden":"true"},moderncart_settings?.theme_colors?.includes(d)&&(0,e.createElement)(vg,{className:`h-5 w-5 ${k}`})),(0,e.createElement)("span",{className:"moderncart-colorpicker-label"},(0,Ac.__)("Select Color","modern-cart")),(0,e.createElement)("input",{type:"hidden",name:n,value:d,"aria-labelledby":`${y}-trigger`})),(0,e.createElement)("span",{className:"moderncart-colorpicker-reset focus-visible:ring-1 "+(d===o?"opacity-40":""),onClick:w,onKeyDown:e=>"Enter"===e.key&&w(),title:(0,Ac.__)("Reset","modern-cart"),"aria-label":(0,Ac.__)("Reset to default color","modern-cart"),type:"button",tabIndex:"0"},(0,e.createElement)(bg,{className:`h-5 w-5 stroke-2 transform ${m?"rotate-180":""} transition-transform duration-500`,"aria-hidden":"true"}))),(0,e.createElement)("div",{className:"moderncart-color-picker"},c?(0,e.createElement)("div",{className:"moderncart-color-picker-popover",id:y},(0,e.createElement)("div",{className:"moderncart-color-picker-cover",onClick:x}),(0,e.createElement)("div",{className:"bg-white shadow-lg relative z-999999"},(0,e.createElement)(hg.ColorPicker,{color:d,onChange:E,enableAlpha:!0}),(0,e.createElement)("div",{className:"px-4 pb-4"},(0,e.createElement)(hg.ColorPalette,{colors:f,value:d,onChange:E,disableCustomColors:!0,clearable:!1})))):null)))},wg=function(t){const[n,r]=(0,i.useState)(t.val),[o,s]=Mc(),a=(0,i.useRef)((0,ym.debounce)((async e=>{s(e)}),500)).current;return(0,i.useEffect)((()=>()=>{a.cancel()}),[a]),(0,e.createElement)("div",{className:"flex sm:justify-end"},(0,e.createElement)(ag,{className:(t.badge?"w-24 ":"w-32 rounded-r-md")+" focus:[&>input]:ring-focus",suffix:(0,e.createElement)("span",{className:"text-badge-color-gray p-0.5 text-center text-xs font-medium"},t.type),type:"number",name:t.name,value:n,onChange:function(e){r(e);const n=o,i=t.name.split(/[\[\]]/);n[i[0]][i[1]]=e,a({type:"CHANGE",data:n})},min:t.min||0}))},Eg=Ct("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),kg={sm:"text-xs [&>svg]:size-4 rounded",md:"text-sm [&>svg]:size-5 rounded-md",lg:"text-base [&>svg]:size-6 rounded-md"},Sg={input:{sm:"py-1.5 px-2 rounded",md:"p-2.5 rounded-md",lg:"p-3 rounded-md"},content:{sm:"p-1.5",md:"p-1.5",lg:"p-2"},title:{sm:"p-2 text-xs",md:"p-2 text-sm",lg:"p-2 text-sm"},item:{sm:"text-sm text-text-secondary rounded",md:"text-base text-text-secondary rounded-md",lg:"text-base text-text-secondary rounded-md"},icon:{sm:"p-1 text-sm [&>svg]:size-4 text-icon-secondary",md:"p-2 text-base [&>svg]:size-5 text-icon-secondary",lg:"p-2 text-base [&>svg]:size-5 text-icon-secondary"},dialog:{sm:"mt-1 rounded-md",md:"mt-1.5 rounded-lg",lg:"mt-1.5 rounded-lg"},slashIcon:{sm:"px-2 py-0.5",md:"px-3 py-1",lg:"px-3.5 py-1"}},_g={primary:"bg-field-primary-background outline outline-1 outline-field-border hover:outline-border-strong focus-within:outline-focus-border focus-within:hover:outline-focus-border",secondary:"bg-field-secondary-background outline outline-1 outline-field-border hover:outline-border-strong focus-within:outline-focus-border focus-within:hover:outline-focus-border",ghost:"bg-field-secondary-background outline outline-1 outline-transparent focus-within:outline-focus-border"},Cg={ghost:"cursor-not-allowed text-text-disabled placeholder:text-text-disabled",primary:"outline-border-disabled hover:outline-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled placeholder:text-text-disabled",secondary:"outline-border-disabled hover:outline-border-disabled cursor-not-allowed text-text-disabled placeholder:text-text-disabled"},jg=(0,i.createContext)({}),Tg=()=>(0,i.useContext)(jg),Ng=(0,i.forwardRef)((({className:e,size:t="sm",open:n=!1,setOpen:r,onOpenChange:o,loading:s=!1,clearAfterSelect:a=!0,closeAfterSelect:l=!0,variant:c="primary",filter:u=!0,...d},p)=>{const[f,m]=(0,i.useState)(""),[h,g]=(0,i.useState)(s??!1),[v,y]=(0,i.useState)(null),b=i.useRef([]),x=(0,i.useMemo)((()=>"function"==typeof r?r:o),[r,o]),{refs:w,floatingStyles:E,context:k}=Df({open:n,onOpenChange:x,placement:"bottom-start",whileElementsMounted:op,middleware:[vp(2),yp({padding:10}),(N={apply({rects:e,elements:t,availableHeight:n}){t.floating.style.maxHeight=`${n}px`,t.floating.style.width=`${e.reference.width}px`,t.floating.style.fontFamily=window.getComputedStyle(t.reference).fontFamily}},{...lp(N),options:[N,undefined]})]}),S=qf(k,{listRef:b,activeIndex:v,onNavigate:y,loop:!0,openOnArrowKeyDown:!1}),_=Lf(k),{getReferenceProps:C,getFloatingProps:j,getItemProps:T}=Vf([_,S]);var N;return(0,i.useEffect)((()=>{const e=Qe(),t=t=>{const n="Mac OS"===e?t.metaKey:t.ctrlKey;if("/"===t.key&&n&&(t.preventDefault(),w.reference&&w.reference.current)){const e=w.reference.current instanceof HTMLElement?w.reference.current.querySelector("input"):null;e&&e.focus()}};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}}),[w.reference]),(0,i.useEffect)((()=>{n||y(null)}),[n]),(0,Q.jsx)(jg.Provider,{value:{size:t,open:n,onOpenChange:x,refs:w,floatingStyles:E,context:k,getReferenceProps:C,getFloatingProps:j,getItemProps:T,activeIndex:v,setActiveIndex:y,listRef:b,searchTerm:f,setSearchTerm:m,isLoading:h,setIsLoading:g,clearAfterSelect:a,closeAfterSelect:l,variant:c,filter:u},children:(0,Q.jsx)("div",{className:Ye("searchbox-wrapper box-border relative w-full",e),...d,ref:p})})}));Ng.displayName="SearchBox";const Mg=(0,i.forwardRef)((({className:e,type:t="text",placeholder:n="Search...",disabled:r=!1,onChange:o=()=>{},...i},s)=>{const{size:a,refs:l,getReferenceProps:c,searchTerm:u,setSearchTerm:d,open:p,setActiveIndex:f,listRef:m,onOpenChange:h,variant:g}=Tg(),v="lg"===a?"sm":"xs";return(0,Q.jsxs)("div",{ref:l.setReference,className:Ye("w-full group relative flex justify-center items-center gap-1.5 focus-within:z-10 transition-all ease-in-out duration-200",_g[g],Sg.input[a],r?Cg[g]:"focus-within:ring-2 focus-within:ring-focus focus-within:ring-offset-2 focus-within:border-focus-border focus-within:hover:border-focus-border",e),...c(),children:[(0,Q.jsx)("span",{className:Ye(kg[a],r?"text-icon-disabled":"text-icon-secondary group-hover:text-icon-primary group-focus-within:text-icon-primary","flex justify-center items-center"),children:(0,Q.jsx)(Eg,{})}),(0,Q.jsx)("input",{type:t,ref:s,className:Ye(kg[a],"flex-grow font-medium bg-transparent border-none outline-none border-transparent focus:ring-0 p-0 min-h-fit",r&&"text-field-placeholder focus-within:text-field-input group-hover:text-field-input placeholder:text-field-placeholder"),disabled:r,value:u,onChange:e=>{const t=e.target.value;d(t),o(t),"function"==typeof h&&(t.trim()?h(!0):h(!1))},onFocus:()=>{r||"function"!=typeof h||u?.trim()&&h(!0)},onKeyDown:e=>{if(!r){if("ArrowDown"===e.key||"ArrowUp"===e.key)return void(p&&(e.preventDefault(),"ArrowDown"===e.key?f((e=>null===e?0:e)):"ArrowUp"===e.key&&f((e=>{const t=m?.current?.length||0;return null===e&&t>0?t-1:e}))));"Escape"===e.key&&h(!1)}},placeholder:n,...(0,ym.omit)(i,["size","open","onOpenChange","loading"])}),(0,Q.jsx)(Fc,{label:"Mac OS"===Qe()?"β/":"Ctrl /",size:v,type:"rounded",variant:"neutral",className:"bg-background-primary"})]})}));Mg.displayName="SearchBox.Input";const Ag=({className:e,children:t,...n})=>{const{size:r,open:o,refs:i,floatingStyles:s,getFloatingProps:a,context:l}=Tg();return o?(0,Q.jsx)(Mf,{context:l,initialFocus:-1,returnFocus:!0,children:(0,Q.jsx)("div",{ref:i.setFloating,style:{...s},className:Ye("bg-background-primary rounded-md border border-solid border-border-subtle shadow-soft-shadow-lg overflow-y-auto text-wrap focus:outline-none",Sg.dialog[r],e),...a(),...n,children:t})}):null};Ag.displayName="SearchBox.Content";const Rg=({children:e,id:t,root:n})=>(0,Q.jsx)(Ef,{id:t,root:n,children:e});Rg.displayName="SearchBox.Portal";const Pg=({children:e,className:t})=>{const{searchTerm:n,isLoading:r,listRef:o,filter:s=!0}=Tg();if(!s)return(0,Q.jsx)(zp,{elementsRef:o,children:(0,Q.jsx)("div",{className:t,children:e})});const a=i.Children.toArray(e).map((e=>{if(i.isValidElement(e)&&e.type===Og){const t=i.Children.toArray(e.props.children).filter((e=>i.isValidElement(e)&&"string"==typeof e.props.children&&e.props.children.toLowerCase().includes(n.toLowerCase())));return t.length>0?(0,i.cloneElement)(e,{children:t}):null}return e})).filter(Boolean);return r?(0,Q.jsx)(Dg,{}):(0,Q.jsx)(zp,{elementsRef:o,children:(0,Q.jsx)("div",{className:t,children:a.some((e=>i.isValidElement(e)&&e.type!==Fg))?a:(0,Q.jsx)(Ig,{})})})};Pg.displayName="SearchBox.List";const Ig=({children:e="No results found.",className:t})=>{const{size:n}=Tg();return(0,Q.jsx)("div",{className:Ye("flex justify-center items-center",Sg.item[n],"text-text-tertiary p-4",t),children:e})};Ig.displayName="SearchBox.Empty";const Og=({heading:e,children:t})=>{const{size:n}=Tg();return(0,Q.jsxs)("div",{className:Ye(Sg.content[n],Sg.item[n]),children:[e&&(0,Q.jsx)("div",{className:Ye(Sg.title[n],"text-text-tertiary"),children:e}),t]})};Og.displayName="SearchBox.Group";const Lg=(0,i.forwardRef)((({className:e,icon:t,children:n,onClick:r,...o},s)=>{const{size:a,setSearchTerm:l,clearAfterSelect:c,getItemProps:u,activeIndex:d,onOpenChange:p,closeAfterSelect:f}=Tg(),{ref:m,index:h}=function(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:r,map:o,elementsRef:s,labelsRef:a}=i.useContext(Fp),[l,c]=i.useState(null),u=i.useRef(null),d=i.useCallback((e=>{if(u.current=e,null!==l&&(s.current[l]=e,a)){var n;const r=void 0!==t;a.current[l]=r?t:null!=(n=null==e?void 0:e.textContent)?n:null}}),[l,s,a,t]);return Lp((()=>{const e=u.current;if(e)return n(e),()=>{r(e)}}),[n,r]),Lp((()=>{const e=u.current?o.get(u.current):null;null!=e&&c(e)}),[o]),i.useMemo((()=>({ref:d,index:null==l?-1:l})),[l,d])}(),g=d===h;return(0,Q.jsxs)("button",{type:"button",ref:e=>{"function"==typeof s?s(e):s&&(s.current=e),m(e)},className:Ye("flex w-full items-center justify-start gap-1 p-1 cursor-pointer border-none bg-transparent text-left focus:outline-none",g&&"bg-background-secondary",!g&&"hover:bg-background-secondary focus:bg-background-secondary",Sg.item[a],e),...u?.({role:"option","aria-selected":g,onClick:()=>{"function"==typeof r&&r(),c&&l(""),f&&p(!1)},...o}),children:[t&&(0,Q.jsx)("span",{className:Ye(Sg.icon[a],"flex items-center justify-center"),children:t}),(0,Q.jsx)("span",{className:Ye("flex-grow py-0.5 px-1 font-normal",Sg.item[a]),children:n})]})}));Lg.displayName="SearchBox.Item";const Dg=({loadingIcon:e=(0,Q.jsx)(cg,{})})=>{const{size:t}=Tg(),n=i.isValidElement(e)?(0,i.cloneElement)(e,{size:t}):e;return(0,Q.jsx)("div",{className:Ye("flex justify-center p-4",kg[t],Sg.item[t]),children:n})};Dg.displayName="SearchBox.Loading";const Fg=(0,i.forwardRef)((({className:e,...t},n)=>(0,Q.jsx)("hr",{ref:n,className:Ye("border-0 border-t border-border-subtle border-solid m-0",e),...t})));Fg.displayName="SearchBox.Separator",Ng.Input=Mg,Ng.Loading=Dg,Ng.Separator=Fg,Ng.Content=Ag,Ng.List=Pg,Ng.Empty=Ig,Ng.Group=Og,Ng.Item=Lg,Ng.Portal=Rg;const zg=function(t){const[n,r]=(0,i.useState)(t.val),[o,s]=Mc(),a=(0,i.useRef)((0,ym.debounce)((async e=>{s(e)}),500)).current;return(0,i.useEffect)((()=>()=>{a.cancel()}),[a]),(0,e.createElement)(ag,{className:"w-full focus:[&>input]:ring-focus",type:"text",size:"md",name:t.name,value:n,onChange:function(e){r(e);const n=o,i=t.name.split(/[\[\]]/);n[i[0]][i[1]]=e,a({type:"CHANGE",data:n})},min:"0",max:t.max})},Bg={toggle:Em,dropdown:og,text:function(t){const{title:n,description:r}=t;return(0,e.createElement)(wm,{title:n,description:r,type:"block"},(0,e.createElement)("div",{className:"flex-grow"},(0,e.createElement)(zg,{name:t.name,val:t.value,max:t.max})))},number:function(t){const{title:n,description:r,name:o,value:i,badge:s,min:a,type:l}=t;return(0,e.createElement)(wm,{title:n,description:r,badge:s},(0,e.createElement)("div",{className:"moderncart-input-field-wrapper"},(0,e.createElement)(wg,{name:o,val:i,badge:s,min:a,type:l})))},color:function(t){const{title:n,description:r,onChange:o}=t;return(0,e.createElement)(wm,{title:n,description:r},(0,e.createElement)("div",{className:"moderncart-color-field"},(0,e.createElement)(xg,{name:t.name,value:t.value,defaultColor:t.default,onChange:e=>{o&&o(e)}})))},icon_picker:t=>{const[n,r]=Mc(),[o,s]=(0,i.useState)(t.value),[a,l]=(0,i.useState)(n.moderncart_floating.custom_cart_icon_url||""),{title:c,description:u,name:d,customIconName:p,onChange:f}=t,m=(0,i.useRef)((0,ym.debounce)((async e=>{r(e)}),500)).current;function h(e){s(e),f&&"function"==typeof f&&f(e);const t=n,r=d.split(/[\[\]]/);t[r[0]][r[1]]=e,m({type:"CHANGE",data:t})}return(0,i.useEffect)((()=>()=>{m.cancel()}),[m]),(0,e.createElement)(wm,{type:"block",title:c,description:u},(0,e.createElement)("div",{className:"space-y-4"},(0,e.createElement)("div",null,(0,e.createElement)("h4",{className:"text-sm font-medium text-gray-700 m-0"},(0,Ac.__)("Predefined Icons","modern-cart")),(0,e.createElement)("div",{className:"flex sm:justify-between flex-wrap gap-2"},n.moderncart_cart_icons.map(((t,n)=>(0,e.createElement)("div",{key:n,className:`p-2 flex justify-center items-center cursor-pointer rounded-md ${parseInt(o)===n&&"custom"!==o?"bg-wpcolorfaded text-wpcolor":"text-text-secondary"} transition-colors duration-300 ease-in-out hover:bg-wpcolorfaded hover:text-wpcolor focus-visible:outline focus-visible:outline-2`,onClick:()=>h(n),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.code||(e.preventDefault(),h(n))},role:"button",tabIndex:"0","aria-label":`Cart icon ${n+1}`,title:`Cart icon ${n+1}`},xm(t)))))),(0,e.createElement)("div",null,(0,e.createElement)("h4",{className:"text-sm font-medium text-gray-700 mb-2"},(0,Ac.__)("Custom Icon","modern-cart")),(0,e.createElement)("div",{className:"space-y-3"},a&&(0,e.createElement)("div",{className:"flex items-center space-x-3"},(0,e.createElement)("div",{className:"p-2 flex justify-center items-center rounded-md border-2 "+("custom"===o?"border-wpcolor bg-wpcolorfaded":"border-gray-200"),onClick:()=>h("custom"),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.code||(e.preventDefault(),h("custom"))},role:"button",tabIndex:"0","aria-label":(0,Ac.__)("Custom cart icon","modern-cart"),title:(0,Ac.__)("Custom cart icon","modern-cart"),style:{cursor:"pointer"}},(0,e.createElement)("img",{src:a,alt:(0,Ac.__)("Custom cart icon","modern-cart"),className:"w-9 h-9 object-contain"})),(0,e.createElement)("button",{type:"button",onClick:function(){l("");const e=n,t=p.split(/[\[\]]/);e[t[0]][t[1]]="",s(0);const r=d.split(/[\[\]]/);e[r[0]][r[1]]=0,m({type:"CHANGE",data:e})},className:"cursor-pointer text-red-600 hover:text-red-800 text-sm bg-white hover:bg-gray-50 focus:outline-none border-0"},(0,Ac.__)("Remove","modern-cart"))),(0,e.createElement)("button",{type:"button",onClick:function(){if("undefined"!=typeof wp&&wp.media){const e=wp.media({title:(0,Ac.__)("Select Custom Cart Icon","modern-cart"),button:{text:(0,Ac.__)("Use this icon","modern-cart")},multiple:!1,library:{type:["image"]}});e.on("select",(function(){const t=e.state().get("selection").first().toJSON().url;l(t);const r=n,o=p.split(/[\[\]]/);r[o[0]][o[1]]=t,s("custom");const i=d.split(/[\[\]]/);r[i[0]][i[1]]="custom",m({type:"CHANGE",data:r})})),e.open()}},className:"cursor-pointer inline-flex items-center px-4 py-2 lg:border lg:border-solid lg:border-wpcolor rounded-md shadow-sm text-sm font-medium text-wpcolor bg-white hover:bg-wpcolorfaded hover:text-wpcolor focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-wpcolor transition-colors duration-300 ease-in-out"},a?(0,Ac.__)("Change Custom Icon","modern-cart"):(0,Ac.__)("Upload Custom Icon","modern-cart")),(0,e.createElement)("p",{className:"text-xs text-gray-500"},(0,Ac.__)("Recommended: 36x36px PNG, SVG, or JPG image","modern-cart"))))))},live_preview:function(){const[t]=Mc();return(0,e.createElement)("div",{className:"mb-6"},(0,e.createElement)("p",{className:"mb-2 text-sm text-gray-600"},(0,Ac.__)("Live Preview","modern-cart")),(0,e.createElement)(fg,{key:JSON.stringify(t.moderncart_floating),data:t,icons:t.moderncart_cart_icons}))},product_selector:({name:t,value:n,title:r,description:o,disabled:s=!1})=>{const[a,l]=(0,i.useState)([]),[c,u]=(0,i.useState)([]),[d,p]=(0,i.useState)(""),[f,m]=(0,i.useState)([]),[h,g]=(0,i.useState)(!1),[v,y]=(0,i.useState)(!1),[b,x]=Mc();(0,i.useEffect)((()=>{if(n){const e=n?n.split(","):[];l(e),E(e)}}),[n]),(0,i.useEffect)((()=>{d.length>2&&w(d)}),[d]);const w=async e=>{g(!0);try{const t=new FormData;t.append("action","moderncart_search_products"),t.append("search",e),t.append("security",moderncart_settings.update_nonce);const n=await fetch(moderncart_settings.ajax_url,{method:"POST",body:t}),r=await n.json();r.success&&(m(r.data),g(!1))}catch(e){console.error("Error searching products:",e)}g(!1)},E=async e=>{if(0!==e.length)try{const t=new FormData;t.append("action","moderncart_get_products"),t.append("product_ids",e.join(",")),t.append("security",moderncart_settings.update_nonce);const n=await fetch(moderncart_settings.ajax_url,{method:"POST",body:t}),r=await n.json();r.success&&u(r.data)}catch(e){console.error("Error loading products:",e)}},k=e=>{const n=b,r=t.split(/[\[\]]/);n[r[0]][r[1]]=e.map((e=>e.id)).join(","),x({type:"CHANGE",data:n})};return(0,e.createElement)(wm,{disabled:s,type:"block",title:r,description:o},(0,e.createElement)(Ng,{variant:"secondary",closeAfterSelect:!1,loading:h,setOpen:y,open:v,size:"md"},(0,e.createElement)(Ng.Input,{className:"w-[97%] [&_span]:hidden",placeholder:(0,Ac.__)("Search products","modern-cart-woo"),onChange:p}),(0,e.createElement)(Ng.Portal,{id:"moderncart-settings"},(0,e.createElement)(Ng.Content,null,(0,e.createElement)(Ng.List,null,f.length>0&&d.length>2?f.map((t=>{const n=a.includes(String(t.id));return(0,e.createElement)(Ng.Item,{className:n&&"opacity-50 cursor-not-allowed",key:t.id,onClick:()=>{n||(e=>{if(!c.find((t=>t.id===e.id))){const t=[...c,e];u(t),k(t)}})(t)},icon:(0,e.createElement)("img",{src:t.image,alt:t.name,className:"w-10 h-10 object-cover rounded"})},t.name)})):(0,e.createElement)(Ng.Empty,null,d.length<3?(0,Ac.__)("Type atleast 3 letters to search","modern-cart-woo"):(0,Ac.__)("No products found","modern-cart-woo")))))),c.length>0&&(0,e.createElement)("div",{className:"space-y-2"},(0,e.createElement)("div",{className:"flex flex-wrap gap-2"},c.map((t=>(0,e.createElement)(Fc,{closable:!0,onClose:()=>(e=>{const t=c.filter((t=>t.id!==e));u(t),k(t)})(t.id),key:t.id,label:t.name,size:"sm",type:"pill",variant:"neutral"}))))))},page_selector:({name:t,value:n,title:r,description:o,hideImage:s=!1,disabled:a=!1})=>{const[l,c]=(0,i.useState)([]),[u,d]=(0,i.useState)([]),[p,f]=(0,i.useState)(""),[m,h]=(0,i.useState)([]),[g,v]=(0,i.useState)(!1),[y,b]=(0,i.useState)(!1),[x,w]=Mc();(0,i.useEffect)((()=>{if(n){const e=n?n.split(","):[];c(e),k(e)}}),[n]),(0,i.useEffect)((()=>{p.length>2&&E(p)}),[p]);const E=async e=>{v(!0);try{const t=new FormData;t.append("action","moderncart_search_pages"),t.append("search",e),t.append("security",moderncart_settings.update_nonce);const n=await fetch(moderncart_settings.ajax_url,{method:"POST",body:t}),r=await n.json();r.success&&(h(r.data),v(!1))}catch(e){console.error("Error searching pages:",e)}v(!1)},k=async e=>{if(0!==e.length)try{const t=new FormData;t.append("action","moderncart_get_pages"),t.append("page_ids",e.join(",")),t.append("security",moderncart_settings.update_nonce);const n=await fetch(moderncart_settings.ajax_url,{method:"POST",body:t}),r=await n.json();r.success&&d(r.data)}catch(e){console.error("Error loading pages:",e)}},S=e=>{const n=x,r=t.split(/[\[\]]/);n[r[0]][r[1]]=e.map((e=>e.id)).join(","),w({type:"CHANGE",data:n})};return(0,e.createElement)(wm,{disabled:a,type:"block",title:r,description:o},(0,e.createElement)(Ng,{variant:"secondary",closeAfterSelect:!1,loading:g,setOpen:b,open:y,size:"md"},(0,e.createElement)(Ng.Input,{className:"w-[97%] [&_span]:hidden",placeholder:(0,Ac.__)("Search pages","modern-cart"),onChange:f}),(0,e.createElement)(Ng.Portal,{id:"moderncart-settings"},(0,e.createElement)(Ng.Content,{className:"!shadow-lg"},(0,e.createElement)(Ng.List,null,m.length>0&&p.length>2?m.map((t=>{const n=l.includes(String(t.id)),r=t.post_states.length>0?(0,e.createElement)(e.Fragment,null,t.name,(0,e.createElement)("small",{className:"opacity-80"}," ","-"," ",t.post_states.join(", "))):t.name;return(0,e.createElement)(Ng.Item,{className:n&&"opacity-50 cursor-not-allowed",key:t.id,onClick:()=>{n||(e=>{if(!u.find((t=>t.id===e.id))){const t=[...u,e];d(t),S(t)}})(t)},icon:s?null:(0,e.createElement)("img",{src:t.image,alt:t.name,className:"w-10 h-10 object-cover rounded"})},r)})):(0,e.createElement)(Ng.Empty,null,p.length<3?(0,Ac.__)("Type atleast 3 letters to search","modern-cart"):(0,Ac.__)("No pages found","modern-cart")))))),u.length>0&&(0,e.createElement)("div",{className:"space-y-2"},(0,e.createElement)("div",{className:"flex flex-wrap gap-2"},u.map((t=>(0,e.createElement)(Fc,{closable:!0,onClose:()=>(e=>{const t=u.filter((t=>t.id!==e));d(t),S(t)})(t.id),key:t.id,label:t.name,size:"sm",type:"pill",variant:"neutral"}))))))}},Vg=(e,t)=>{const n=e.split(/[\[\]]/).filter(Boolean);return 2===n.length?t[n[0]][n[1]]:t[e]},Ug=function({field:t}){const n=Mc(),[r]=n,o=Bg[t.type];if(!o)return null;if(!((e,t)=>!e||e.fields.every((e=>{const n=Vg(e.name,t);return void 0===n||("!=="===e.operator?n!==e.value:n===e.value)})))(t.conditions,r))return null;const i={title:t.label,description:t.description,name:t.name,badge:t.badge,min:t.min,max:t.max,onChange:t?.onChange||(()=>{})};return i.value=Vg(t.name,r),t.options&&(i.optionsArray=t.options),t.type_attr&&(i.type=t.type_attr),t.default_var&&"color"===t.type&&(i.default=r.color_default_vars[t.default_var]),"page_selector"===t.type&&(i.hideImage=!t?.hide_image||!!t.hide_image),"icon_picker"===t.type&&(i.customIconName=t.customIconName),(0,e.createElement)(o,i)};function Hg(e){const t=Object.values(e);return Array.isArray(t)?[...t].sort(((e,t)=>("number"==typeof e.priority?e.priority:0)-("number"==typeof t.priority?t.priority:0))):t}const Wg=function({fields:t}){if(!t?.sections)return(0,e.createElement)("div",{className:"h-auto px-6 bg-background-primary rounded-xl shadow-sm"},Hg(t).map((t=>(0,e.createElement)(Ug,{key:t.name,field:t}))));const n=t.sections,r=Object.entries(n).sort((([,e],[,t])=>("number"==typeof e.priority?e.priority:0)-("number"==typeof t.priority?t.priority:0)));return(0,e.createElement)(e.Fragment,null,r.map((t=>{const n=t[1];return 0===n.field_args.length||0===Object.values(n.field_args).map((e=>Ug({field:e}))).filter(Boolean).length?null:(0,e.createElement)("div",{key:t[0],className:"h-auto px-6 bg-background-primary rounded-xl shadow-sm mb-6"},(0,e.createElement)("h3",{className:"text-[18px] font-semibold text-[#111827] mb-0 leading-6 tracking-[-0.5%]"},n.label),Hg(n.field_args).map((t=>(0,e.createElement)(Ug,{key:t.name,field:t}))))})))},$g=["moderncart_floating","moderncart_license"],Gg=(0,i.createContext)(null);function qg({children:t,currentTab:n}){const[r,o]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{$g.includes(n)&&o(!1)}),[n]),(0,e.createElement)(Gg.Provider,{value:{previewOpen:r,setPreviewOpen:o,currentTab:n}},t)}function Yg(){return(0,i.useContext)(Gg)}const Kg=function({tabKey:t}){const n=moderncart_settings.settings_tabs?.[t]||{},r=n?.title||n?.name,o=moderncart_settings.settings_fields?.[t]||[],i=Yg(),s=i&&!$g.includes(i.currentTab);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"flex items-center justify-between mb-6"},(0,e.createElement)(cu,{description:"",icon:null,size:"md",tag:"h2",title:r,className:"mb-0 [&_h2]:text-gray-900 text-xl"}),s&&(0,e.createElement)(Rt,{type:"button",variant:i.previewOpen?"primary":"secondary",size:"xs",className:"border outline-0 hover:outline-0 focus:ring-0 rounded-md transition-colors duration-300 ease-in-out "+(i.previewOpen?"text-white bg-wpcolor hover:bg-wphovercolor border-wpcolor":"text-wpcolor bg-white hover:bg-wpcolorfaded hover:text-wpcolor border-wpcolor border-solid"),onClick:()=>i.setPreviewOpen((e=>!e))},(0,Ac.__)("Preview","modern-cart"))),(0,e.createElement)(Wg,{fields:o}))},Xg=[{id:1,name:"Classic Cotton T-Shirt",price:"$29.99",subtotal:"$59.98",quantity:2,onSale:!1},{id:2,name:"Wireless Earbuds Pro",price:"$79.99",subtotal:"$79.99",quantity:1,onSale:!0,savedPercent:15}],Zg="$139.97",Qg="$139.97",Jg=function({isEmpty:t=!1}){const[n]=Mc(),[r,o]=(0,i.useState)(!1),s="undefined"!=typeof document&&"rtl"===document.documentElement.getAttribute("dir"),a=n.moderncart_cart||{},l=n.moderncart_setting||{},c=n.moderncart_appearance||{},u=n.color_default_vars||{},d={"--moderncart-primary-color":c.primary_color||u.primary_color||"#0284C7","--moderncart-heading-color":c.heading_color||u.heading_color||"#1F2937","--moderncart-body-color":c.body_color||u.body_color||"#4B5563","--moderncart-background-color":c.background_color||u.background_color||"#FFFFFF","--moderncart-highlight-color":c.highlight_color||u.highlight_color||"#10B981","--moderncart-button-font-color":c.button_font_color||u.button_font_color||"#FFFFFF","--moderncart-header-background-color":c.header_background_color||u.header_background_color||"#FFFFFF","--moderncart-header-font-color":c.header_font_color||u.header_font_color||"#1F2937","--moderncart-quantity-background-color":c.quantity_background_color||u.quantity_background_color||"#EAEFF3","--moderncart-quantity-font-color":c.quantity_font_color||u.quantity_font_color||"#1F2937","--moderncart-cart-header-text-alignment":c.cart_header_text_alignment||u.cart_header_text_alignment||"center","--moderncart-cart-header-font-size":(c.cart_header_font_size||u.cart_header_font_size||22)+"px","--moderncart-animation-duration":(a.animation_speed||300)+"ms","--moderncart-cart-item-padding":(a.cart_item_padding||20)+"px"},p=a.cart_theme_style||"style1",f=a.cart_header_style||"style1",m=a.order_summary_style||"style1",h=a.enable_coupon_field||"minimize",g=a.main_title||(0,Ac.__)("Review Your Cart","modern-cart"),v=a.free_shipping_bar_text||(0,Ac.__)("You're {amount} away from free shipping!","modern-cart"),y="$"+60.03.toFixed(2),b=(a.free_shipping_success_text||(0,Ac.__)("Awesome pick! You've unlocked free shipping.","modern-cart"),a.on_sale_percentage_text||(0,Ac.__)("You saved {percent}%","modern-cart")),x=!1!==a.enable_subtotal,w=!!a.enable_shipping,E=!!a.enable_discount,k=!!a.enable_tax,S=!!a.enable_total,_=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"9.75",viewBox:"0 0 57.48 28.003","aria-hidden":"true",focusable:"false",style:{fill:"var(--moderncart-header-font-color)",flexShrink:0,transform:s?"scaleX(-1)":"none"}},(0,e.createElement)("path",{d:"M57.481 14a1.725 1.725 0 0 0-.415-1.013L45.275.461a1.475 1.475 0 0 0-2.084-.058 1.52 1.52 0 0 0-.058 2.084L52.6 12.528H1.474a1.474 1.474 0 1 0 0 2.948H52.6l-9.466 10.04a1.545 1.545 0 0 0 .058 2.084 1.476 1.476 0 0 0 2.084-.058l11.79-12.527A1.313 1.313 0 0 0 57.481 14z"})),C=({color:t="var(--moderncart-header-font-color)",size:n=24})=>(0,e.createElement)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"m6.343 6.343 11.314 11.314m-11.314 0L17.657 6.343"})),j=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},(0,e.createElement)("path",{d:"M6 9l6 6 6-6"})),T=()=>(0,e.createElement)("svg",{width:"16",height:"17",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",style:{opacity:.5}},(0,e.createElement)("path",{d:"M6.18182 7.125V13.875C6.18182 13.9844 6.1456 14.0742 6.07315 14.1445C6.00071 14.2148 5.90814 14.25 5.79545 14.25H5.02273C4.91004 14.25 4.81747 14.2148 4.74503 14.1445C4.67259 14.0742 4.63636 13.9844 4.63636 13.875V7.125C4.63636 7.01562 4.67259 6.92578 4.74503 6.85547C4.81747 6.78516 4.91004 6.75 5.02273 6.75H5.79545C5.90814 6.75 6.00071 6.78516 6.07315 6.85547C6.1456 6.92578 6.18182 7.01562 6.18182 7.125ZM9.27273 7.125V13.875C9.27273 13.9844 9.23651 14.0742 9.16406 14.1445C9.09162 14.2148 8.99905 14.25 8.88636 14.25H8.11364C8.00095 14.25 7.90838 14.2148 7.83594 14.1445C7.76349 14.0742 7.72727 13.9844 7.72727 13.875V7.125C7.72727 7.01562 7.76349 6.92578 7.83594 6.85547C7.90838 6.78516 8.00095 6.75 8.11364 6.75H8.88636C8.99905 6.75 9.09162 6.78516 9.16406 6.85547C9.23651 6.92578 9.27273 7.01562 9.27273 7.125ZM12.3636 7.125V13.875C12.3636 13.9844 12.3274 14.0742 12.255 14.1445C12.1825 14.2148 12.09 14.25 11.9773 14.25H11.2045C11.0919 14.25 10.9993 14.2148 10.9268 14.1445C10.8544 14.0742 10.8182 13.9844 10.8182 13.875V7.125C10.8182 7.01562 10.8544 6.92578 10.9268 6.85547C10.9993 6.78516 11.0919 6.75 11.2045 6.75H11.9773C12.09 6.75 12.1825 6.78516 12.255 6.85547C12.3274 6.92578 12.3636 7.01562 12.3636 7.125ZM13.9091 15.6094V4.5H3.09091V15.6094C3.09091 15.7812 3.11908 15.9395 3.17543 16.084C3.23177 16.2285 3.29013 16.334 3.3505 16.4004C3.41087 16.4668 3.45312 16.5 3.47727 16.5H13.5227C13.5469 16.5 13.5891 16.4668 13.6495 16.4004C13.7099 16.334 13.7682 16.2285 13.8246 16.084C13.8809 15.9395 13.9091 15.7812 13.9091 15.6094ZM5.79545 3H11.2045L10.625 1.62891C10.5687 1.55859 10.5002 1.51562 10.4197 1.5H6.59233C6.51184 1.51562 6.44342 1.55859 6.38707 1.62891L5.79545 3ZM17 3.375V4.125C17 4.23438 16.9638 4.32422 16.8913 4.39453C16.8189 4.46484 16.7263 4.5 16.6136 4.5H15.4545V15.6094C15.4545 16.2578 15.2654 16.8184 14.8871 17.291C14.5088 17.7637 14.054 18 13.5227 18H3.47727C2.94602 18 2.49124 17.7715 2.11293 17.3145C1.73461 16.8574 1.54545 16.3047 1.54545 15.6562V4.5H0.386364C0.273674 4.5 0.181108 4.46484 0.108665 4.39453C0.0362216 4.32422 0 4.23438 0 4.125V3.375C0 3.26562 0.0362216 3.17578 0.108665 3.10547C0.181108 3.03516 0.273674 3 0.386364 3H4.11719L4.96236 1.04297C5.0831 0.753906 5.30043 0.507812 5.61435 0.304688C5.92827 0.101562 6.24621 0 6.56818 0H10.4318C10.7538 0 11.0717 0.101562 11.3857 0.304688C11.6996 0.507812 11.9169 0.753906 12.0376 1.04297L12.8828 3H16.6136C16.7263 3 16.8189 3.03516 16.8913 3.10547C16.9638 3.17578 17 3.26562 17 3.375Z",fill:"#5C5767"})),N=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"8",viewBox:"0 0 57.48 28.003",fill:"currentColor","aria-hidden":"true",style:{flexShrink:0,transform:s?"scaleX(-1)":"none"}},(0,e.createElement)("path",{d:"M57.481 14a1.725 1.725 0 0 0-.415-1.013L45.275.461a1.475 1.475 0 0 0-2.084-.058 1.52 1.52 0 0 0-.058 2.084L52.6 12.528H1.474a1.474 1.474 0 1 0 0 2.948H52.6l-9.466 10.04a1.545 1.545 0 0 0 .058 2.084 1.476 1.476 0 0 0 2.084-.058l11.79-12.527A1.313 1.313 0 0 0 57.481 14z"})),M=()=>(0,e.createElement)("svg",{viewBox:"0 0 10 7",width:"10",height:"7",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"},(0,e.createElement)("path",{d:"M1 6L5 2L9 6"})),A=()=>(0,e.createElement)("svg",{viewBox:"0 0 10 7",width:"10",height:"7",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"},(0,e.createElement)("path",{d:"M9 1L5 5L1 1"})),R=({quantity:t})=>(0,e.createElement)("div",{style:{display:"grid",gridTemplateRows:"25px 30px 25px",width:"30px",border:"1px solid #e5e7eb",borderRadius:"3px",overflow:"hidden",flexShrink:0}},(0,e.createElement)("button",{type:"button",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"25px",background:"none",border:"none",borderBottom:"1px solid #e5e7eb",cursor:"pointer",color:"var(--moderncart-body-color)",padding:0}},(0,e.createElement)(M,null)),(0,e.createElement)("input",{type:"text",readOnly:!0,value:t,style:{width:"30px",height:"30px",textAlign:"center",border:"none",borderTop:"1px solid #e5e7eb",borderBottom:"1px solid #e5e7eb",fontSize:"14px",fontWeight:600,color:"var(--moderncart-body-color)",background:"none",padding:0,boxSizing:"border-box"}}),(0,e.createElement)("button",{type:"button",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"25px",background:"none",border:"none",cursor:"pointer",color:"var(--moderncart-body-color)",padding:0}},(0,e.createElement)(A,null))),P=({quantity:t})=>(0,e.createElement)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",border:"1px solid #e5e7eb",borderRadius:"3px",overflow:"hidden",flexShrink:0}},(0,e.createElement)("button",{type:"button",style:{width:"30px",height:"30px",display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",fontSize:"16px",lineHeight:1,color:"var(--moderncart-body-color)",padding:0}},"β"),(0,e.createElement)("input",{type:"text",readOnly:!0,value:t,style:{width:"30px",height:"30px",textAlign:"center",border:"none",borderRight:"1px solid #e5e7eb",borderLeft:"1px solid #e5e7eb",fontSize:"14px",fontWeight:600,color:"var(--moderncart-body-color)",background:"none",padding:0,boxSizing:"border-box"}}),(0,e.createElement)("button",{type:"button",style:{width:"30px",height:"30px",display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",fontSize:"16px",lineHeight:1,color:"var(--moderncart-body-color)",padding:0}},"+")),I=({item:t})=>(0,e.createElement)("div",{style:{position:"relative",minWidth:"75px",width:"75px",maxWidth:"75px",marginInlineEnd:"18px",flexShrink:0}},(0,e.createElement)("div",{style:{width:"75px",height:"75px",backgroundColor:"#E5E7EB",borderRadius:"6px"}}),t.onSale&&(0,e.createElement)("span",{style:{position:"absolute",top:"5px",right:"5px",backgroundColor:"var(--moderncart-primary-color)",color:"var(--moderncart-button-font-color)",fontSize:"12px",fontWeight:700,padding:"3px 6px",borderRadius:"5px",lineHeight:1.2,whiteSpace:"nowrap"}},b.replace("{percent}",t.savedPercent||0))),O=({item:t})=>(0,e.createElement)("div",{style:{position:"relative",minWidth:"75px",width:"75px",maxWidth:"75px",marginInlineEnd:"18px",flexShrink:0}},(0,e.createElement)("div",{style:{width:"75px",height:"75px",backgroundColor:"#E5E7EB",borderRadius:"6px"}}),(0,e.createElement)("span",{style:{position:"absolute",left:"-5px",top:"-5px",width:"15px",height:"15px",backgroundColor:"#fff",border:"1px solid #9c9b9b",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"}},(0,e.createElement)(C,{color:"#9c9b9b",size:8})),t.onSale&&(0,e.createElement)("span",{style:{position:"absolute",top:"5px",right:"5px",backgroundColor:"var(--moderncart-primary-color)",color:"var(--moderncart-button-font-color)",fontSize:"12px",fontWeight:700,padding:"3px 6px",borderRadius:"5px",lineHeight:1.2,whiteSpace:"nowrap"}},b.replace("{percent}",t.savedPercent||0))),L=({name:t})=>(0,e.createElement)("div",{className:"moderncart-cart-item-product-link"},(0,e.createElement)("span",{style:{fontSize:"14px",fontWeight:600,letterSpacing:"0.5px",lineHeight:1.6,color:"var(--moderncart-heading-color)",display:"block"}},t)),D=({price:t})=>(0,e.createElement)("div",{style:{marginTop:"4px"}},(0,e.createElement)("span",{style:{fontSize:"14px",fontWeight:600,color:"var(--moderncart-heading-color)"}},t)),F=t=>(0,e.createElement)("div",{key:t.id,style:{display:"flex",justifyContent:"space-between",padding:"0 var(--moderncart-cart-item-padding)",borderBottom:"1px solid #e5e7eb"}},(0,e.createElement)("div",{style:{display:"flex",alignItems:"flex-start",padding:"20px 10px 20px 0",width:"100%"}},(0,e.createElement)(I,{item:t}),(0,e.createElement)("div",{style:{display:"flex",flexDirection:"column",width:"100%",alignItems:"flex-start",justifyContent:"center"}},(0,e.createElement)(L,{name:t.name}),(0,e.createElement)(D,{price:t.price}),(0,e.createElement)("button",{type:"button",style:{background:"none",border:"none",padding:0,marginTop:"6px",fontSize:"12px",textDecoration:"underline",color:"var(--moderncart-heading-color)",cursor:"pointer"}},(0,Ac.__)("Remove","modern-cart")))),(0,e.createElement)("div",{style:{display:"flex",alignItems:"center",padding:"20px 0",flexShrink:0}},(0,e.createElement)(R,{quantity:t.quantity}))),z=t=>(0,e.createElement)("div",{key:t.id,style:{display:"flex",justifyContent:"space-between",padding:"0 var(--moderncart-cart-item-padding)",borderBottom:"1px solid #e5e7eb"}},(0,e.createElement)("div",{style:{display:"flex",alignItems:"flex-start",padding:"20px 10px 20px 0",flex:1,minWidth:0}},(0,e.createElement)(I,{item:t}),(0,e.createElement)("div",{style:{display:"flex",flexDirection:"column",width:"100%",alignItems:"flex-start",justifyContent:"center"}},(0,e.createElement)(L,{name:t.name}),(0,e.createElement)("div",{style:{marginTop:"8px"}},(0,e.createElement)(P,{quantity:t.quantity})))),(0,e.createElement)("div",{style:{width:"150px",display:"flex",flexDirection:"column",alignItems:"flex-end",justifyContent:"space-between",padding:"20px 0",flexShrink:0}},(0,e.createElement)("button",{type:"button",style:{background:"none",border:"none",padding:0,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"}},(0,e.createElement)(C,{color:"var(--moderncart-heading-color)",size:24})),(0,e.createElement)("div",{style:{textAlign:"right"}},(0,e.createElement)("span",{style:{fontSize:"14px",fontWeight:600,color:"var(--moderncart-heading-color)"}},t.price)))),B=t=>(0,e.createElement)("div",{key:t.id,style:{display:"flex",justifyContent:"space-between",padding:"0 var(--moderncart-cart-item-padding)",borderBottom:"1px solid #e5e7eb"}},(0,e.createElement)("div",{style:{display:"flex",alignItems:"flex-start",padding:"20px 10px 20px 0",flex:1,minWidth:0}},(0,e.createElement)(I,{item:t}),(0,e.createElement)("div",{style:{display:"flex",flexDirection:"column",width:"100%",alignItems:"flex-start",justifyContent:"center"}},(0,e.createElement)(L,{name:t.name}),(0,e.createElement)("div",{style:{marginTop:"8px"}},(0,e.createElement)(P,{quantity:t.quantity})))),(0,e.createElement)("div",{style:{width:"150px",display:"flex",flexDirection:"column",alignItems:"flex-end",justifyContent:"space-between",padding:"20px 0",flexShrink:0}},(0,e.createElement)("div",{style:{textAlign:"right"}},(0,e.createElement)("span",{style:{fontSize:"14px",fontWeight:600,color:"var(--moderncart-heading-color)"}},t.price)),(0,e.createElement)("button",{type:"button",style:{background:"none",border:"none",padding:0,cursor:"pointer"}},(0,e.createElement)(T,null)))),V=t=>(0,e.createElement)("div",{key:t.id,style:{display:"flex",justifyContent:"space-between",padding:"0 var(--moderncart-cart-item-padding)",borderBottom:"1px solid #e5e7eb"}},(0,e.createElement)("div",{style:{display:"flex",alignItems:"flex-start",padding:"20px 10px 20px 0",width:"100%"}},(0,e.createElement)(O,{item:t}),(0,e.createElement)("div",{style:{display:"flex",flexDirection:"column",width:"100%",alignItems:"flex-start",justifyContent:"center"}},(0,e.createElement)(L,{name:t.name}),(0,e.createElement)(D,{price:t.price}),(0,e.createElement)("div",{style:{marginTop:"20px"}},(0,e.createElement)(R,{quantity:t.quantity})))),(0,e.createElement)("div",{style:{display:"flex",alignItems:"flex-start",padding:"20px 0",flexShrink:0}},(0,e.createElement)("button",{type:"button",style:{background:"none",border:"none",padding:0,cursor:"pointer"}},(0,e.createElement)(T,null)))),U=t=>(0,e.createElement)("div",{key:t.id,style:{display:"flex",justifyContent:"space-between",padding:"0 var(--moderncart-cart-item-padding)",borderBottom:"1px solid #e5e7eb"}},(0,e.createElement)("div",{style:{display:"flex",alignItems:"flex-start",padding:"20px 10px 20px 0",width:"100%"}},(0,e.createElement)(O,{item:t}),(0,e.createElement)("div",{style:{display:"flex",flexDirection:"column",width:"100%",alignItems:"flex-start",justifyContent:"center"}},(0,e.createElement)(L,{name:t.name}),(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",marginTop:"8px"}},(0,e.createElement)("span",{style:{fontSize:"14px",fontWeight:600,color:"var(--moderncart-heading-color)"}},t.price),(0,e.createElement)(P,{quantity:t.quantity}))))),H=t=>(0,e.createElement)("div",{key:t.id,style:{display:"flex",justifyContent:"space-between",padding:"0 var(--moderncart-cart-item-padding)",borderBottom:"1px solid #e5e7eb"}},(0,e.createElement)("div",{style:{display:"flex",alignItems:"flex-start",padding:"20px 10px 20px 0",flex:1,minWidth:0}},(0,e.createElement)(I,{item:t}),(0,e.createElement)("div",{style:{display:"flex",flexDirection:"column",width:"100%",alignItems:"flex-start",justifyContent:"center"}},(0,e.createElement)(L,{name:t.name}),(0,e.createElement)(D,{price:t.price}),(0,e.createElement)("div",{style:{marginTop:"8px"}},(0,e.createElement)(P,{quantity:t.quantity})))),(0,e.createElement)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",justifyContent:"space-between",padding:"20px 0",flexShrink:0}},(0,e.createElement)("button",{type:"button",style:{background:"none",border:"none",padding:0,cursor:"pointer"}},(0,e.createElement)(T,null))));return(0,e.createElement)("div",{dir:s?"rtl":"ltr",style:{...d,fontFamily:"inherit",backgroundColor:"var(--moderncart-background-color)",overflow:"hidden",width:"100%",minHeight:"100%"},className:"moderncart-preview-drawer"},(()=>{const n="style2"===f,r=(0,e.createElement)("div",{style:{flex:1,overflow:"hidden"}},(0,e.createElement)("span",{style:{fontSize:"var(--moderncart-cart-header-font-size)",fontWeight:600,lineHeight:"28px",color:"var(--moderncart-header-font-color)",textAlign:n?"start":"var(--moderncart-cart-header-text-alignment)",display:"block"}},g));return(0,e.createElement)("div",{style:{backgroundColor:"var(--moderncart-header-background-color)",borderBottom:"1px solid #e5e7eb"}},!l.enable_free_shipping_bar||t?null:(0,e.createElement)("div",{style:{position:"relative",width:"100%"}},(0,e.createElement)("div",{style:{backgroundColor:"#f0f9ff",padding:"15px 16px",textAlign:"center",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1)",color:"#333333",fontWeight:400,fontSize:"15px",lineHeight:"18px"}},(()=>{const t=v.split("{amount}");return t.length<2?v:(0,e.createElement)(e.Fragment,null,t[0],(0,e.createElement)("span",{style:{color:"var(--moderncart-primary-color)"}},y),t[1])})()),(0,e.createElement)("div",{style:{display:"block",width:"100%",marginTop:"-16px",height:"16px"}},(0,e.createElement)("span",{style:{display:"inline-block",width:`${Math.min(69.985,100)}%`,height:"3px",backgroundColor:"var(--moderncart-primary-color)"}}))),(0,e.createElement)("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"20px"}},n?(0,e.createElement)(e.Fragment,null,r,(0,e.createElement)("button",{type:"button",style:{background:"none",border:"none",padding:0,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},(0,e.createElement)(C,null))):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",style:{background:"none",border:"none",padding:0,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",width:"26px",height:"26px",flexShrink:0}},(0,e.createElement)(_,null)),r,!t&&(0,e.createElement)("div",{style:{backgroundColor:"var(--moderncart-quantity-background-color)",color:"var(--moderncart-quantity-font-color)",padding:"0 8px",borderRadius:"4px",fontSize:"16px",fontWeight:500,flexShrink:0,display:"flex",alignItems:"center",lineHeight:"1.4"}},(0,e.createElement)("span",null,3)))))})(),t?(()=>{const t=a.empty_cart_subheading||(0,Ac.__)("Check out our shop to see what's available","modern-cart");return(0,e.createElement)("div",{style:{display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",padding:"20px",textAlign:"center",minHeight:"200px"}},(0,e.createElement)("p",{style:{color:"var(--moderncart-heading-color)",fontSize:"18px",fontWeight:500,lineHeight:"24px",margin:0}},t))})():(()=>{const t={style2:z,style3:B,style4:V,style5:U,style6:H}[p]||F;return(0,e.createElement)("div",{style:{overflowY:"auto"}},Xg.map(t))})(),(()=>{if(t||"disabled"===h)return null;const n=a.coupon_title||(0,Ac.__)("Got a Discount Code?","modern-cart"),i=a.coupon_placeholder||(0,Ac.__)("Enter discount code","modern-cart"),s=a.coupon_button_text||(0,Ac.__)("Apply","modern-cart"),l="minimize"===h,c=!l||r;return(0,e.createElement)("div",{style:{padding:"0 20px",margin:"10px 0"}},l&&(0,e.createElement)("button",{type:"button",onClick:()=>o(!r),style:{background:"none",border:"none",padding:0,fontSize:"14px",color:"var(--moderncart-body-color)",cursor:"pointer",display:"flex",alignItems:"center",gap:"4px"}},n,(0,e.createElement)("span",{style:{transform:r?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease",display:"inline-flex"}},(0,e.createElement)(j,null))),c&&(0,e.createElement)("div",{style:{display:"flex",flexDirection:"row",gap:"8px",height:"40px",marginTop:l?"8px":0}},(0,e.createElement)("input",{type:"text",readOnly:!0,placeholder:i,style:{flex:1,border:"1px solid #eaeaec",borderRadius:"6px",fontSize:"14px",padding:"12px",outline:"none",backgroundColor:"var(--moderncart-background-color)",color:"var(--moderncart-body-color)",boxSizing:"border-box"}}),(0,e.createElement)("button",{type:"button",style:{backgroundColor:"var(--moderncart-primary-color)",color:"var(--moderncart-button-font-color)",border:"none",borderRadius:"6px",fontSize:"14px",fontWeight:600,padding:"12px 24px",cursor:"pointer",whiteSpace:"nowrap"}},s)))})(),(()=>{if(t)return null;const n=a.checkout_button_label||(0,Ac.__)("Proceed to Checkout","modern-cart");return"style2"===m?(0,e.createElement)("div",null,(0,e.createElement)("h3",{style:{padding:"24px 24px 0",fontWeight:600,fontSize:"18px",lineHeight:"24px",color:"var(--moderncart-heading-color)",margin:0}},(0,Ac.__)("Order Summary","modern-cart")),(0,e.createElement)("div",{style:{display:"flex",flexDirection:"column",gap:"8px",padding:"16px 24px",borderBottom:"1px solid #e5e7eb"}},w&&(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between"}},(0,e.createElement)("span",{style:{fontWeight:400,fontSize:"14px",lineHeight:"18px",color:"var(--moderncart-body-color)"}},(0,Ac.__)("Shipping","modern-cart")),(0,e.createElement)("span",{style:{fontWeight:600,fontSize:"14px",textAlign:"end",color:"var(--moderncart-heading-color)"}},(0,Ac.__)("Free","modern-cart"))),k&&(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between"}},(0,e.createElement)("span",{style:{fontWeight:400,fontSize:"14px",lineHeight:"18px",color:"var(--moderncart-body-color)"}},(0,Ac.__)("Tax","modern-cart")),(0,e.createElement)("span",{style:{fontWeight:600,fontSize:"14px",textAlign:"end",color:"var(--moderncart-heading-color)"}},"$5.00")),x&&(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between"}},(0,e.createElement)("span",{style:{fontWeight:400,fontSize:"14px",lineHeight:"18px",color:"var(--moderncart-body-color)"}},(0,Ac.__)("Subtotal","modern-cart")),(0,e.createElement)("span",{style:{fontWeight:600,fontSize:"14px",textAlign:"end",color:"var(--moderncart-heading-color)"}},Zg)),E&&(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between"}},(0,e.createElement)("span",{style:{fontWeight:400,fontSize:"14px",lineHeight:"18px",color:"var(--moderncart-body-color)"}},(0,Ac.__)("Discount","modern-cart")),(0,e.createElement)("span",{style:{fontWeight:600,fontSize:"14px",textAlign:"end",color:"var(--moderncart-highlight-color)"}},"-$10.00"))),S&&(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between",padding:"12px 24px"}},(0,e.createElement)("span",{style:{fontWeight:500,fontSize:"16px",color:"var(--moderncart-heading-color)"}},(0,Ac.__)("Total","modern-cart")),(0,e.createElement)("span",{style:{fontWeight:600,fontSize:"16px",color:"var(--moderncart-heading-color)"}},Qg)),(0,e.createElement)("div",{style:{padding:"16px 20px 6px"}},(0,e.createElement)("button",{type:"button",style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:"var(--moderncart-primary-color)",color:"var(--moderncart-button-font-color)",border:"none",borderRadius:"6px",fontSize:"18px",fontWeight:600,cursor:"pointer",boxSizing:"border-box"}},(0,e.createElement)("span",null,n),(0,e.createElement)("span",{style:{display:"flex",alignItems:"center",gap:"8px"}},(0,e.createElement)("span",null,s?"β":"β"),(0,e.createElement)("span",null,Qg))))):(0,e.createElement)("div",null,x&&(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"14px",lineHeight:"24px",color:"var(--moderncart-body-color)",padding:"10px 20px",borderBottom:"1px solid #e5e7eb"}},(0,e.createElement)("span",null,(0,Ac.__)("Subtotal","modern-cart")),(0,e.createElement)("span",null,Zg)),E&&(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"14px",lineHeight:"24px",padding:"10px 20px",borderBottom:"1px solid #e5e7eb"}},(0,e.createElement)("span",{style:{color:"var(--moderncart-body-color)"}},(0,Ac.__)("Discount","modern-cart")),(0,e.createElement)("span",{style:{color:"var(--moderncart-highlight-color)"}},"-$10.00")),k&&(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"14px",lineHeight:"24px",color:"var(--moderncart-body-color)",padding:"10px 20px",borderBottom:"1px solid #e5e7eb"}},(0,e.createElement)("span",null,(0,Ac.__)("Tax","modern-cart")),(0,e.createElement)("span",null,"$5.00")),w&&(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"14px",lineHeight:"24px",color:"var(--moderncart-body-color)",padding:"10px 20px",borderBottom:"1px solid #e5e7eb"}},(0,e.createElement)("span",null,(0,Ac.__)("Shipping","modern-cart")),(0,e.createElement)("span",null,(0,Ac.__)("Free","modern-cart"))),S&&(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between",padding:"10px 20px",borderBottom:"1px solid #e5e7eb"}},(0,e.createElement)("span",{style:{fontSize:"14px",fontWeight:600,color:"var(--moderncart-heading-color)"}},(0,Ac.__)("Total","modern-cart")),(0,e.createElement)("span",{style:{fontSize:"16px",fontWeight:600,color:"var(--moderncart-heading-color)"}},Qg)),(0,e.createElement)("div",{style:{padding:"16px 20px 6px"}},(0,e.createElement)("button",{type:"button",style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",padding:"12px",backgroundColor:"var(--moderncart-primary-color)",color:"var(--moderncart-button-font-color)",border:"none",borderRadius:"6px",fontSize:"18px",fontWeight:600,cursor:"pointer",boxSizing:"border-box"}},(0,e.createElement)("span",null,n),(0,e.createElement)(N,null))))})())},ev=function(){const[t,n]=(0,i.useState)(!1),{previewOpen:r,currentTab:o}=Yg();return $g.includes(o)?null:(0,e.createElement)("div",{className:"mcw-preview-side-bar flex-shrink-0 self-start sticky top-0 min-h-screen overflow-x-hidden transition-[width] duration-300 ease-in-out "+(r?"preview-open":""),style:{width:r?"360px":"0"}},(0,e.createElement)("div",{className:"w-[360px] min-h-screen flex flex-col bg-white border-l border-gray-200 shadow-lg"},(0,e.createElement)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-gray-100 flex-shrink-0"},(0,e.createElement)(cu,{tag:"h6",size:"sm",title:(0,Ac.__)("Live Preview","modern-cart"),className:"mb-0"}),(0,e.createElement)("div",{className:"flex items-center gap-2"},(0,e.createElement)("div",{className:"flex gap-1"},(0,e.createElement)(Rt,{type:"button",variant:t?"secondary":"primary",className:"border outline-0 hover:outline-0 focus:ring-0 rounded-md transition-colors duration-300 ease-in-out "+(t?"text-wpcolor bg-white hover:bg-wpcolorfaded hover:text-wpcolor border-wpcolor border-solid":"text-white bg-wpcolor hover:bg-wphovercolor border-wpcolor"),size:"xs",onClick:()=>n(!1),"aria-pressed":!t},(0,Ac.__)("With items","modern-cart")),(0,e.createElement)(Rt,{type:"button",variant:t?"primary":"secondary",className:"border outline-0 hover:outline-0 focus:ring-0 rounded-md transition-colors duration-300 ease-in-out "+(t?"text-white bg-wpcolor hover:bg-wphovercolor border-wpcolor":"text-wpcolor bg-white hover:bg-wpcolorfaded hover:text-wpcolor border-wpcolor border-solid"),size:"xs",onClick:()=>n(!0),"aria-pressed":t},(0,Ac.__)("Empty","modern-cart"))))),(0,e.createElement)("hr",{className:"border-0 border-b border-solid border-border-subtle m-0"}),(0,e.createElement)("div",{className:"flex-1 overflow-y-auto overflow-x-hidden"},r&&(0,e.createElement)(Jg,{isEmpty:t}))))},tv=function(t){const{navigation:n,tab:r,navigate:o}=t,[i]=Mc(),s=!(!i?.pro_version||"Activated"===i.license_status||"moderncart_license"===r);return(0,e.createElement)(qg,{currentTab:r},(0,e.createElement)("div",{className:"mcw-sidebar h-full min-h-screen flex flex-col w-auto -ml-2.5 md:-ml-5 sticky top-0 lg:top-4"},(0,e.createElement)(sm,{borderOn:!0,className:"!h-full md:pl-3 lg:p-4 lg:w-64 border-none rounded-br-lg box-border flex-grow"},(0,e.createElement)(sm.Body,null,(0,e.createElement)(sm.Item,null,(0,e.createElement)(um,{className:"w-full p-0 gap-4",size:"md"},(0,e.createElement)(um.List,{open:!0},n.map((t=>(0,e.createElement)(um.Item,{key:t.name,active:r===t.slug,onClick:()=>{o(t.slug)},className:`lg:justify-start justify-center h-9 ${r===t.slug&&"bg-wphovercolorfaded font-medium"} hover:bg-wphovercolorfaded`},moderncart_settings.settings_icons[t.slug]&&xm(moderncart_settings.settings_icons[t.slug]),(0,e.createElement)("span",{className:"lg:block hidden"},t.name)))))),(0,e.createElement)(wt,{containerType:"flex",direction:"column",gap:"xs",className:"lg:p-4 mt-7 lg:border lg:border-solid lg:border-wpcolor rounded-md"},(0,e.createElement)(wt.Item,{className:"lg:flex gap-2 items-center hidden"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"h-5 w-5 text-wpcolor",strokeLinecap:"round",strokeLinejoin:"round"},(0,e.createElement)("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"}),(0,e.createElement)("path",{d:"M21 16v2a4 4 0 0 1-4 4h-5"})),(0,e.createElement)(mm,{size:"md",className:"font-semibold"},(0,Ac.__)("Need Support?","modern-cart"))),(0,e.createElement)(wt.Item,{className:"lg:block hidden"},(0,e.createElement)("p",{className:"font-normal text-sm text-text-field-helper m-0 pb-2"},(0,Ac.__)("We're happy to help!","modern-cart"))),(0,e.createElement)(wt.Item,null,(0,e.createElement)("a",{href:"https://cartflows.com/support",target:"_blank",rel:"noreferrer",className:"flex justify-center p-2.5 no-underline text-white hover:text-white bg-wpcolor hover:bg-wphovercolor rounded-md box-content outline-0 hover:outline-0 focus:ring-0 focus-visible:ring-1 ring-black"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.7,stroke:"currentColor",className:"h-5 w-5 block lg:hidden",strokeLinecap:"round",strokeLinejoin:"round"},(0,e.createElement)("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"}),(0,e.createElement)("path",{d:"M21 16v2a4 4 0 0 1-4 4h-5"})),(0,e.createElement)("span",{className:"text-center w-full text-sm font-semibold lg:block hidden p-0"},(0,Ac.__)("Request Support","modern-cart"))))))))),(0,e.createElement)(wt,{className:"w-full max-w-[43.5rem] mx-auto mt-8 pr-4 pb-5 gap-0",direction:"column"},s?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ig,{navigate:o})):(0,e.createElement)(Kg,{tabKey:r}),"moderncart_license"===r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(pg,null))),(0,e.createElement)(ev,null))},nv=function(){const[t]=Mc(),[n,r]=(0,i.useState)(""),o=new URLSearchParams(D(P).location.search),s=o.get("path")||"settings",[a,l]=(0,i.useState)(!1),c=(0,i.useRef)(!1);(0,i.useEffect)((()=>{if(!c.current)return void(c.current=!0);const e=new window.FormData;e.append("action","moderncart_update_settings"),e.append("security",moderncart_settings.update_nonce),e.append("moderncart_setting",JSON.stringify(t.moderncart_setting)),e.append("moderncart_cart",JSON.stringify(t.moderncart_cart)),e.append("moderncart_floating",JSON.stringify(t.moderncart_floating)),e.append("moderncart_appearance",JSON.stringify(t.moderncart_appearance)),l(!0),dg()({url:moderncart_settings.ajax_url,method:"POST",body:e}).then((()=>{l(!1),Z.success("Successfully Saved!",{description:""})}))}),[t]);const u=D(R),d=[],p=moderncart_settings.settings_tabs?Object.values(moderncart_settings.settings_tabs):[];Object.values(p).flatMap((e=>e.sections&&"object"==typeof e.sections?Object.values(e.sections).map((t=>({name:t.label||e.name,slug:t.slug||e.slug,priority:t.priority||e.priority||0}))):{name:e.label||e.name,slug:e.slug,priority:e.priority||0})).sort(((e,t)=>(e.priority||0)-(t.priority||0))).forEach((e=>{d.push({name:e.name,slug:e.slug})}));const f=p.map((e=>e.slug)).includes(o.get("tab"))?o.get("tab"):n||"moderncart_setting";return(0,e.createElement)("form",{className:"moderncartSettings",id:"moderncartSettings",method:"post"},(0,e.createElement)(wt,{className:"h-full",containerType:"flex",direction:"column",gap:0},(0,e.createElement)(wt.Item,null,(0,e.createElement)(xu,{processing:a,activePage:"moderncart_settings",activePath:s})),"settings"===s&&(0,e.createElement)(wt.Item,{className:"flex gap-4 bg-background-secondary max-h-[calc(100%_-_6rem)]"},(0,e.createElement)(jc,{position:"top-right",design:"stack",theme:"light",autoDismiss:!0,dismissAfter:2e3,className:"top-16"}),(0,e.createElement)(tv,{navigation:d,tab:f,navigate:function(e){r(e),u.push("admin.php?page=moderncart_settings&path=settings&tab="+e)}}))))},rv=Ct("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),ov=(e,t)=>Ye("rounded-full text-brand-primary-600 transition-colors duration-300",e[t].dot,e[t].ring),iv={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"}},sv=({variant:e="dot",size:t="sm",type:n="inline",currentStep:r=1,children:o,className:s,lineClassName:a="min-w-10",completedVariant:l="icon",completedIcon:c=(0,Q.jsx)(Nt,{}),...u})=>{const d=i.Children.count(o);-1===r&&(r=d+1);const p=i.Children.map(o,((o,s)=>{const u={isCompleted:s+1<r,isCurrent:s+1===r,sizeClasses:iv,size:t,variant:e,type:n,isLast:s+1===d,index:s,lineClassName:a,completedVariant:l,completedIcon:c};return(0,Q.jsx)(i.Fragment,{children:i.isValidElement(o)?i.cloneElement(o,u):o},s)}));return(0,Q.jsx)("div",{className:Ye("flex w-full",s,"inline"===n?"items-center justify-between":""),...u,children:p})},av=({labelText:e="",icon:t=(0,Q.jsx)(rv,{}),isCurrent:n,isCompleted:r,className:o,type:i,variant:s,sizeClasses:a,size:l,isLast:c,index:u,lineClassName:d,completedVariant:p="icon",completedIcon:f=(0,Q.jsx)(Nt,{}),...m})=>{const h=lv(s,r,n,a,l,t,u,p,f),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)]"},v={lg:"top-3.5",md:"top-3",sm:"top-2.5"},y=()=>{if(e){const t=Ye(a[l].label,"text-text-tertiary",n?"text-brand-primary-600":"","break-word","stack"===i?"mt-2 transform max-w-xs":"mx-2 max-w-32");return(0,Q.jsx)("span",{className:t,children:e})}return null},b=()=>{if(!c){const t=Ye("block",r?"border-brand-primary-600":"border-border-subtle",d);return"stack"===i?(0,Q.jsx)("div",{className:Ye("relative","flex","border-solid","border-y","absolute",r?"border-brand-primary-600":"border-border-subtle",v[l],g[l]),children:(0,Q.jsx)("span",{className:"block"})}):(0,Q.jsx)("div",{className:"flex-1",children:(0,Q.jsx)("span",{className:Ye("mr-2 border-y border-solid",!e&&"ml-2",t)})})}return null};return"stack"===i?(0,Q.jsxs)("div",{className:"relative flex-1 justify-center",children:[(0,Q.jsxs)("div",{className:Ye("flex items-center flex-col",o),...m,children:[h,y()]}),b()]}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)("div",{className:Ye("flex items-center",o),...m,children:[h,y()]}),b()]})};av.displayName="ProgressSteps.Step";const lv=(e,t,n,r,o,i,s,a="icon",l=(0,Q.jsx)(Nt,{}))=>{if(t)return"number"===a?(0,Q.jsx)("span",{className:Ye(ov(r,o),"flex items-center justify-center bg-brand-primary-600 text-text-on-color rounded-full"),children:s+1}):(0,Q.jsx)("span",{className:ov(r,o),children:l});const c=((e,t,n)=>Ye("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?Ye(o,n[r].dot,t?"bg-brand-primary-600":"bg-text-tertiary"):"number"===e?Ye(o,n[r].dot,t?"text-brand-primary-600":"text-text-tertiary","flex items-center justify-center"):"icon"===e?Ye(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&&i&&(d=i),(0,Q.jsx)("span",{className:c,children:(0,Q.jsx)("span",{className:u,children:d})})};sv.Step=av;const cv=({heading:t,subHeading:n})=>(0,e.createElement)("div",{className:"p-[8px]"},(0,e.createElement)(mm,{className:"text-3xl font-semibold text-text-primary",size:"md"},t),(0,e.createElement)(mm,{className:"text-[#566A86] mt-2"},n)),uv=(0,i.createContext)(null),dv=()=>{const e=(0,i.useContext)(uv);if(!e)throw new Error("useOnboardingContext must be used within an OnboardingContextProvider");return e},pv=({children:t,value:n})=>(0,e.createElement)(uv.Provider,{value:n},t),fv=({labels:t})=>{const{handleStepCount:n}=dv(),{increaseStep:r,decreaseStep:o,skipStep:i}=n();return(0,e.createElement)("div",{className:"flex justify-between"},null!==t?.back&&(0,e.createElement)(Rt,{icon:Dv("chevronLeft"),onClick:o,variant:"outline"},t?.back||(0,Ac.__)("Back","modern-cart")),(0,e.createElement)("div",{className:"flex gap-[12px]"},null!==t?.skip&&(0,e.createElement)(Rt,{onClick:i,variant:"ghost",className:"text-text-tertiary hover:text-text-primary"},t?.skip||(0,Ac.__)("Skip","modern-cart")),null!==t?.next&&(0,e.createElement)(Rt,{icon:Dv("chevronRight"),iconPosition:"right",onClick:r,variant:"primary",className:"p-[10px] w-max bg-wpcolor hover:bg-wphovercolor rounded-md box-content outline-0 hover:outline-0 focus:ring-0 focus-visible:ring-1 ring-black"},t?.next||(0,Ac.__)("Next","modern-cart"))))},mv=({children:t})=>(0,e.createElement)("div",{className:"!mt-0 p-[8px]"},t),hv=[(0,Ac.__)("Transform your default WooCommerce cart into a modern, high-converting experience.","modern-cart"),(0,Ac.__)("Increase average order value with in-cart upsells and cross-sells.","modern-cart"),(0,Ac.__)("Motivate customers to spend more using a smart progress bar for rewards.","modern-cart"),(0,Ac.__)("Allow customers to apply coupon codes directly inside the cart.","modern-cart"),(0,Ac.__)("Customize cart styles, colors, text, and labels to match your brand.","modern-cart")],gv={primary:{checkbox:"border-border-strong hover:border-border-interactive checked:border-border-interactive bg-white checked:bg-toggle-on checked:hover:bg-toggle-on-hover checked:hover:border-toggle-on-hover focus:ring-2 focus:ring-offset-2 focus:ring-focus",icon:"text-white"}},vv={sm:"text-sm leading-5",md:"text-base leading-6"},yv={sm:{checkbox:"size-4",icon:"size-1.5",info:"size-4"},md:{checkbox:"size-5",icon:"size-2",info:"size-5"}},bv={xs:"py-1 px-1 text-sm gap-0.5 [&>svg]:size-4",sm:"py-1 px-1.5 text-base gap-1 [&>svg]:size-4",md:"py-2 px-2.5 text-base gap-1 [&>svg]:size-5",lg:"py-2.5 px-3 text-base gap-1 [&>svg]:size-6"},xv=(0,i.createContext)({}),wv=()=>(0,i.useContext)(xv),Ev=({children:e,name:t,style:n="simple",size:r="md",value:o,defaultValue:s,by:a="id",as:l="div",onChange:c,className:u,disableGroup:d=!1,vertical:p=!1,columns:f=4,multiSelection:m=!1,gapClassName:h="gap-2"})=>{const g=(0,i.useMemo)((()=>typeof o<"u"),[o]),v=(0,i.useMemo)((()=>t||`radio-button-group-${hm()}`),[t]);let y;y=g?o:m?s??[]:s;const[b,x]=(0,i.useState)(y),w=(0,i.useCallback)((e=>{if(m)x((t=>{let n;return n=Array.isArray(t)&&"string"==typeof e&&t.includes(e)?t.filter((t=>t!==e)):[...Array.isArray(t)?t:[],..."string"==typeof e?[e]:[]],"function"==typeof c&&c(n),n}));else{if(g||x(e),"function"!=typeof c)return;c(e)}}),[c]);u=Ye("grid grid-cols-4",Ze[f],h,"tile"===n&&"gap-0",p&&"grid-cols-1",u);const E=Ye("tile"===n?"border border-border-subtle border-solid rounded-md shadow-sm":"gap-6",u),k=()=>(0,Q.jsx)(xv.Provider,{value:{name:v,value:g?o:b,by:a,onChange:w,isControlled:g,disableAll:d,style:n,columns:f,multiSelection:m,size:r},children:i.Children.map(e,(e=>(0,i.isValidElement)(e)?e:null))});return(0,Q.jsx)(Q.Fragment,{children:"tile"===n?(0,Q.jsx)("div",{className:E,children:k()}):(0,Q.jsx)(l,{...l===i.Fragment?{}:{className:u},children:k()})})};Ev.displayName="RadioButton.Group";const kv=(0,i.forwardRef)((({id:e,label:t,value:n,children:r,disabled:o,icon:s=null,inlineIcon:a=!1,hideSelection:l=!1,reversePosition:c=!1,borderOn:u=!1,borderOnActive:d=!0,badgeItem:p=null,useSwitch:f=!1,info:m,minWidth:h=!0,...g},v)=>{const{buttonWrapperClasses:y,...b}=g,x=wv(),{name:w,value:E,by:k,onChange:S,disableAll:_,checked:C,multiSelection:j,size:T="md"}=x,N="primary",M=(0,i.useMemo)((()=>e||`radio-button-${hm()}`),[e]),A=(0,i.useMemo)((()=>_||o),[_,o]),R=(0,i.useMemo)((()=>j?Array.isArray(E)&&E.includes(n):typeof C<"u"?C:typeof E==typeof n&&("string"==typeof E?E===n:Array.isArray(E)?E.includes(n):E[k]===n[k])),[E,n,C]),P=(0,i.useCallback)((()=>(0,i.isValidElement)(t)?t:t?.heading?(0,Q.jsxs)("div",{className:Ye(!a&&{"space-y-3":"sm"===T,"space-y-4":"md"===T},c&&(f?"ml-10":"ml-4"),a&&"flex gap-2",a&&!t.description&&"items-center"),children:[s&&(0,Q.jsx)(Q.Fragment,{children:s}),(0,Q.jsxs)("div",{className:Ye(!s||!f||s&&p?{"space-y-0.5":"sm"===T,"space-y-1":"md"===T}:"space-y-0.5"),children:[(0,Q.jsx)("p",{className:Ye("text-text-primary font-medium m-0",vv[T],o&&"text-text-disabled cursor-not-allowed"),children:t.heading}),t.description&&(0,Q.jsx)("p",{className:"text-text-tertiary text-sm font-normal leading-5 m-0",children:t.description})]})]}):null),[t]);if("tile"===x.style)return(0,Q.jsx)(Sv,{id:e,label:t,value:n,disabled:o,size:T,children:r});const I=()=>{A||(j?f&&S(n,!R):S(n))};return(0,Q.jsxs)("label",{className:Ye("inline-flex items-center relative cursor-pointer transition-all duration-300",!!t&&"items-start justify-between",h&&"min-w-[180px]",u&&"outline outline-field-border outline-1 rounded-md shadow-sm hover:outline-border-interactive",d&&u&&R&&"outline-border-interactive",{"pl-3.5 pr-2.5 py-2.5":"sm"===T&&!(s&&f),"p-3":"sm"===T&&(s&&f||s&&p),"pl-4 pr-3 py-3":"md"===T&&!(s&&f),"p-4":"md"===T&&(s&&f||s&&p)},"pr-12",A&&"cursor-not-allowed opacity-40",y),htmlFor:M,onClick:I,children:[!!t&&(0,Q.jsx)("label",{className:Ye("cursor-pointer",A&&"cursor-not-allowed"),htmlFor:M,children:P()}),!!m&&(0,Q.jsx)("div",{className:"absolute mr-0.5 bottom-1.5 right-3",children:(0,Q.jsx)(Jf,{title:m?.heading,content:m?.description,children:(0,Q.jsx)(Tt,{className:Ye("text-text-primary",yv[T]?.info)})})}),(0,Q.jsxs)("label",{className:Ye("absolute mr-0.5 right-3 flex items-center cursor-pointer rounded-full gap-2",c&&"left-0",A&&"cursor-not-allowed",a&&"mr-3"),onClick:I,children:[!!p&&p,!l&&(f?(0,Q.jsx)(Q.Fragment,{children:(0,Q.jsx)(vm,{defaultValue:!1,size:T,onChange:()=>{j?S(n,!R):S(n)},checked:R,...b,"aria-label":t?.heading??"Switch"})}):(0,Q.jsxs)("span",{className:"relative p-0.5",children:[(0,Q.jsx)("input",{ref:v,id:M,type:j?"checkbox":"radio",className:Ye("peer flex relative cursor-pointer appearance-none transition-all m-0 before:content-[''] checked:before:content-[''] checked:before:hidden before:hidden !border-1.5 border-solid",!j&&"rounded-full",gv[N].checkbox,yv[T].checkbox,A&&"disabled:bg-white checked:disabled:bg-white disabled:border-border-disabled checked:disabled:border-border-disabled cursor-not-allowed"),name:w,value:n,onChange:e=>S(e.target.value),checked:R,disabled:A,...b}),(0,Q.jsx)("span",{className:Ye("inline-flex items-center absolute top-2/4 not-rtl:left-2/4 rtl:right-2/4 -translate-y-2/4 -translate-x-2/4 text-white opacity-0 transition-opacity peer-checked:opacity-100",gv[N].icon,A&&"peer-disabled:text-border-disabled cursor-not-allowed"),children:j?(0,Q.jsx)(Nt,{className:"sm"===T?"size-3":"size-4"}):(0,Q.jsx)("div",{className:Ye("rounded-full bg-current",yv[T]?.icon)})})]}))]})]})}));kv.displayName="RadioButton.Button";const Sv=({id:e,children:t,value:n,disabled:r,size:o="md",...s})=>{const a=wv(),{name:l,value:c,by:u,onChange:d,disableAll:p,checked:f}=a||{},m=(0,i.useMemo)((()=>e||`radio-button-${hm()}`),[e]),h=(0,i.useMemo)((()=>p||r),[p,r]),g=(0,i.useMemo)((()=>typeof f<"u"?f:typeof c==typeof n&&("string"==typeof c?c===n:Array.isArray(c)?c.includes(n):!(!c||!u)&&c[u]===n[u])),[c,n,f,u]),v=Ye("bg-background-primary text-primary cursor-pointer flex items-center justify-center","hover:bg-button-tertiary-hover","focus:outline-none",h?"text-text-disabled cursor-not-allowed":"",bv[o],"border-0 border-r border-border-subtle border-solid");return(0,Q.jsx)(Q.Fragment,{children:(0,Q.jsxs)("button",{type:"button",id:m,"aria-label":"Radio Button",className:Ye(v,"first:rounded-tl first:rounded-bl first:border-0 first:border-r first:border-border-subtle last:rounded-tr last:rounded-br last:border-0",g&&"bg-button-disabled"),onClick:()=>{d&&d(n)},disabled:h,...s,children:[(0,Q.jsx)("input",{type:"hidden",value:n,name:l,checked:g,onChange:e=>d?.(e.target.value)}),t]})})},_v=Object.assign(kv,{Group:Ev,Button:kv}),Cv=Ct("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),jv=(0,i.forwardRef)((({id:e,label:t,defaultChecked:n=!1,checked:r,onChange:o,indeterminate:s,disabled:a,size:l="md",className:c,...u},d)=>{const p=(0,i.useMemo)((()=>e||`checkbox-${hm()}`),[e]),f=(0,i.useMemo)((()=>typeof r<"u"),[r]),[m,h]=(0,i.useState)(n||!1),g="primary",v={sm:{checkbox:"size-4 rounded gap-1",icon:"size-3",text:"text-sm",description:"text-sm",gap:"gap-0.5"},md:{checkbox:"size-5 rounded gap-1",icon:"size-4",text:"text-base",description:"text-sm",gap:"gap-1"}},y={primary:{checkbox:"border-border-strong hover:border-border-interactive checked:border-border-interactive bg-white checked:bg-toggle-on checked:hover:bg-toggle-on-hover checked:hover:border-toggle-on-hover focus:ring-2 focus:ring-offset-2 focus:ring-focus",icon:"text-white"}},b=(0,i.useCallback)((()=>f?r:m),[f,r,m]),x=(0,i.useCallback)((()=>(0,i.isValidElement)(t)?t:t?.heading||t?.description?(0,Q.jsxs)("div",{className:v[l].gap,children:[t?.heading&&(0,Q.jsx)(mm,{className:Ye("text-text-primary font-medium leading-4 m-0",v[l].text,v[l].gap,a&&"text-text-disabled"),htmlFor:p,children:t?.heading}),t?.description&&(0,Q.jsx)(mm,{tag:"p",className:Ye("font-normal leading-5 m-0",v[l].description,a&&"text-text-disabled"),variant:"help",children:t?.description})]}):null),[t,l,a]);return(0,Q.jsxs)("div",{className:Ye("inline-flex items-center justify-center gap-2",!!t&&"items-start",a&&"cursor-not-allowed"),children:[(0,Q.jsxs)("label",{className:Ye("relative flex items-center justify-center rounded-full p-0.5",!a&&"cursor-pointer"),htmlFor:p,children:[(0,Q.jsx)("input",{ref:d,id:p,type:"checkbox",className:Ye("peer relative cursor-pointer appearance-none transition-all m-0 before:content-[''] checked:before:content-[''] checked:before:hidden before:hidden !border-1.5 border-solid",y[g].checkbox,v[l].checkbox,a&&"cursor-not-allowed disabled:bg-white checked:disabled:bg-white disabled:border-border-disabled checked:disabled:border-border-disabled",c),checked:b(),onChange:e=>{if(a)return;const t=e.target.checked;f||h(t),"function"==typeof o&&o(t)},disabled:a,...u}),(0,Q.jsx)("span",{className:Ye("pointer-events-none inline-flex items-center absolute top-2/4 not-rtl:left-2/4 rtl:right-2/4 -translate-y-2/4 -translate-x-2/4 text-white opacity-0 transition-opacity peer-checked:opacity-100",y[g].icon,a&&"cursor-not-allowed peer-disabled:text-border-disabled"),children:s?(0,Q.jsx)(Cv,{className:Ye(v[l]?.icon)}):(0,Q.jsx)(Nt,{className:Ye(v[l]?.icon)})})]}),!!t&&x()]})}));jv.displayName="Checkbox";const Tv=({title:t,value:n,onChange:r})=>(0,e.createElement)("div",{className:"w-full"},(0,e.createElement)(mm,{tag:"p",className:"text-[#566A86] mt-2"},t),(0,e.createElement)(ag,{size:"md",value:n,onChange:r})),Nv=({plugin:t})=>(0,e.createElement)("div",{className:"p-2 gap-1 items-center bg-background-primary rounded-md shadow-soft-shadow-inner"},(0,e.createElement)(wt,{align:"start",className:"gap-1 p-1",containerType:"flex",justify:"between"},(0,e.createElement)(wt.Item,{className:"flex items-start gap-[12px]"},(0,e.createElement)("img",{width:24,src:t.logo,alt:t.name}),(0,e.createElement)("div",{className:"flex flex-col gap-[2px]"},(0,e.createElement)("strong",{className:"text-[#111827] font-[400] text-[16px] line-[24px]"},t.name),(0,e.createElement)("p",{className:"m-0 text-[#566A86] font-[400] text-[14px] line-[20px]"},t.description))),(0,e.createElement)(wt.Item,{className:"flex"},(0,e.createElement)(jv,{size:"sm",checked:t.checked,onChange:t.onChange})))),Mv=o.p+"images/cartflows.b43bbec0.gif",Av=o.p+"images/wcar.95c1ba50.gif",Rv=o.p+"images/sureforms.652dad18.gif",Pv=o.p+"images/surerank.5134afe8.jpg",Iv=[()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(cv,{heading:(0,Ac.__)("Welcome to Modern Cart","modern-cart"),subHeading:(0,Ac.__)("Supercharge WooCommerce with Modern Cart!","modern-cart")}),(0,e.createElement)(mv,null,(0,e.createElement)("iframe",{className:"w-full aspect-video rounded-lg",src:"https://www.youtube.com/embed/jAsON8waa8g?autoplay=1&mute=1",title:(0,Ac.__)("Modern Cart YouTube Video","modern-cart"),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),(0,e.createElement)("ul",{className:"divide-y divide-gray-200 list-none pl-0 space-y-2"},hv.map(((t,n)=>(0,e.createElement)("li",{key:t+n,className:"flex items-center space-x-2 text-field-label text-sm font-medium"},Dv("check"),(0,e.createElement)("span",{className:"text-[#566A86]"},t," ")))))),(0,e.createElement)(fv,{labels:{next:(0,Ac.__)("Get Started with Onboarding","modern-cart"),skip:null,back:null}})),()=>{const{currentScreenData:t,handleData:n}=dv(),r="active"===moderncart_settings.proStatus;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(cv,{heading:(0,Ac.__)("Configure Your Cart","modern-cart"),subHeading:(0,Ac.__)("Set up cart settings to match your store's needs in just a few clicks.","modern-cart")}),(0,e.createElement)(mv,null,(0,e.createElement)("section",{className:"py-6 border-0 border-b border-solid border-border-subtle last:border-b-0"},(0,e.createElement)(mm,{className:"flex items-center gap-0.5 text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5 text-field-label [&>*]:text-field-label font-medium mb-1"},(0,Ac.__)("Choose Cart Type","modern-cart")),(0,e.createElement)("p",{className:"font-normal text-sm text-text-field-helper m-0 text-[#566A86]"},(0,Ac.__)("Choose how the cart appears to your customers.","modern-cart")),(0,e.createElement)("div",{className:"mt-[8px]"},(0,e.createElement)(_v.Group,{columns:2,onChange:e=>{n("cart_type",e)},size:"md",className:"[&>_label]:!opacity-100"},(0,e.createElement)(_v.Button,{borderOn:!0,checked:!0,label:{heading:(0,Ac.__)("Slide-in Cart","modern-cart")},value:"slideout"}),(0,e.createElement)(_v.Button,{hideSelection:!r,badgeItem:!r&&(0,e.createElement)(Fc,{label:"Pro",className:"mr-2",size:"sm",type:"pill",variant:"inverse"}),borderOn:!0,label:{heading:(0,Ac.__)("Popup Cart","modern-cart")},disabled:!r,value:"popup"})))),(0,e.createElement)(og,{title:(0,Ac.__)("Choose Floating Cart Button Position","modern-cart"),description:(0,Ac.__)("Select where you want to position floating cart button on your website.","modern-cart"),optionsArray:moderncart_settings.settings_fields.moderncart_floating.moderncart_floating_floating_cart_position.options,name:moderncart_settings.settings_fields.moderncart_floating.moderncart_floating_floating_cart_position.name,value:t.floating_cart_button_position,onChange:e=>n("floating_cart_button_position",e)}),(0,e.createElement)(Em,{title:(0,Ac.__)("Enable Free Shipping Bar","modern-cart"),description:(0,Ac.__)("Shows a progress bar that lets customers see how much more they need to spend to get free shipping.","modern-cart"),name:"moderncart_setting[enable_free_shipping_bar]",value:t.enable_free_shipping_bar,onChange:e=>n("enable_free_shipping_bar",e)}),(0,e.createElement)(Em,{title:(0,Ac.__)("Enable Product Recommendations","modern-cart"),badgeItemProps:r?{}:{label:"Pro",className:"ml-[12px]",size:"sm",type:"pill",variant:"inverse"},description:(0,Ac.__)("Automatically suggest relevant products to shoppers as they add items to their cart, helping them discover more while increasing your order value.","modern-cart"),disabled:!r,name:"moderncart_setting[enable_product_recommendations]",value:t.enable_product_recommendations,onChange:e=>n("enable_product_recommendations",e)})),(0,e.createElement)(fv,null))},()=>{const{currentScreenData:t,handleData:n}=dv();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(cv,{heading:(0,Ac.__)("Okay, Just One Last Stepβ¦","modern-cart"),subHeading:(0,Ac.__)("Subscribe to get the latest updates, tips, and features.","modern-cart")}),(0,e.createElement)(mv,{className:"flex flex-col gap-[24px]"},(0,e.createElement)("div",{className:"flex justify-between gap-[16px]"},(0,e.createElement)(Tv,{title:(0,Ac.__)("First Name","modern-cart-woo"),value:t.user_detail_firstname,onChange:e=>n("user_detail_firstname",e)}),(0,e.createElement)(Tv,{title:(0,Ac.__)("Last Name","modern-cart-woo"),value:t.user_detail_lastname,onChange:e=>n("user_detail_lastname",e)})),(0,e.createElement)(Tv,{title:(0,Ac.__)("Your Email","modern-cart-woo"),value:t.user_detail_email,onChange:e=>n("user_detail_email",e)}),(0,e.createElement)("div",{className:"mt-[24px]"},(0,e.createElement)(jv,{size:"sm",checked:!!t.optin_usage_tracking,onChange:e=>n("optin_usage_tracking",e),label:{heading:(0,e.createElement)("span",null,(0,Ac.__)("Allow Modern Cart and our other products to track non-sensitive usage tracking data.","modern-cart")," ",(0,e.createElement)("a",{className:"text-wpcolor hover:text-wphovercolor no-underline",target:"_blank",href:"https://my.cartflows.com/usage-tracking/?utm_source=dashboard&utm_medium=modern-cart-woo&utm_campaign=docs",rel:"noreferrer"},(0,Ac.__)("Learn More","modern-cart")))}}))),(0,e.createElement)(fv,null))},()=>{const{currentScreenData:t,handleData:n}=dv();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(cv,{heading:(0,Ac.__)("Add More Power to Your Website","modern-cart"),subHeading:(0,Ac.__)("These tools can help you build your website faster and easier. Try them out and see how they can help your website grow.","modern-cart")}),(0,e.createElement)(mv,null,(0,e.createElement)(wt.Item,{className:"flex flex-col md:w-full lg:w-full bg-field-primary-background gap-1 p-1 rounded-lg"},Ov.map(((r,o)=>(0,e.createElement)(Nv,{key:o,plugin:{...r,checked:t[r.slug],onChange:e=>n(r.slug,e)}}))))),(0,e.createElement)(fv,null))},()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(cv,{heading:(0,Ac.__)("You're Good to Go! π","modern-cart"),subHeading:(0,Ac.__)("Great job! π With Modern Cart active, your store is ready to deliver a smoother shopping experience that keeps customers happy and drives more revenue.","modern-cart")}),(0,e.createElement)(mv,{className:"flex flex-col gap-[24px]"},(0,e.createElement)("strong",null,(0,Ac.__)("Here's What Modern Cart Will Do for You Now:","modern-cart")),(0,e.createElement)("ul",{className:"divide-y divide-gray-200 list-none pl-0 space-y-2"},(0,e.createElement)("li",{className:"flex items-center space-x-2 text-field-label text-sm font-medium"},Dv("check"),(0,e.createElement)("strong",null,(0,Ac.__)("Frictionless checkout:","modern-cart")),(0,e.createElement)("span",null,(0,Ac.__)("Give shoppers a smooth and distraction-free cart experience.","modern-cart"))),(0,e.createElement)("li",{className:"flex items-center space-x-2 text-field-label text-sm font-medium"},Dv("check"),(0,e.createElement)("strong",null,(0,Ac.__)("Delightful shopping:","modern-cart")),(0,e.createElement)("span",null,(0,Ac.__)("A modern, user-friendly design that makes your store look polished.","modern-cart"))),(0,e.createElement)("li",{className:"flex items-center space-x-2 text-field-label text-sm font-medium"},Dv("check"),(0,e.createElement)("strong",null,(0,Ac.__)("Peace of mind:","modern-cart")),(0,e.createElement)("span",null,(0,Ac.__)("With higher order completions, you can focus on growing your business.","modern-cart"))))),(0,e.createElement)("div",{className:"flex flex-col gap-[12px]"},(0,e.createElement)(Rt,{className:"px-4 bg-wpcolor hover:bg-wphovercolor rounded-md box-content outline-0 hover:outline-0 focus:ring-0 focus-visible:ring-1 ring-black",onClick:Fv,variant:"primary"},(0,Ac.__)("Go To Dashboard","modern-cart")),(0,e.createElement)(Rt,{className:"text-text-tertiary hover:text-text-primary",onClick:()=>window.open("https://cartflows.com/docs/modern-cart-for-woocommerce/","_blank"),variant:"ghost"},(0,Ac.__)("Documentation","modern-cart"))))],Ov=[{name:"CartFlows",description:(0,Ac.__)("Create beautiful checkout pages & sales funnels for WooCommerce.","modern-cart"),slug:"cartflows",logo:Mv},{name:"Cart Abandonment Recovery",description:(0,Ac.__)("Start recovering lost revenue with ease in less than 10 minutes.","modern-cart"),slug:"woo-cart-abandonment-recovery",logo:Av},{name:"SureForms",description:(0,Ac.__)("Create forms that feel like a chat. One question at a time keeps users engaged.","modern-cart"),slug:"sureforms",logo:Rv},{name:"SureRank",description:(0,Ac.__)("Just a simple, lightweight SEO assistant that helps your site rise in the rankings.","modern-cart"),slug:"surerank",logo:Pv}],Lv={check:'<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 3.00098L4.5 8.50098L2 6.00098" stroke="#566A86" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/></svg>',close:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 4L4 12" stroke="#111827" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" /><path d="M4 4L12 12" stroke="#111827" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" /></svg>',chevronLeft:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.5 15.001L7.5 10.001L12.5 5.00098" stroke="#111827" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/></svg>',chevronRight:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 15.001L12.5 10.001L7.5 5.00098" stroke="white" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/></svg>'},Dv=e=>xm(Lv[e]),Fv=()=>{window.location.href="admin.php?page=moderncart_settings"},zv=()=>{const[t,n]=(0,i.useState)(moderncart_settings.onboarding.defaults),[r,o]=(0,i.useState)(0),[s,a]=(0,i.useState)(!1),l=Iv[r],c=t?.[r]||{},u=()=>({increaseStep:()=>o(r+1),decreaseStep:()=>o(r-1),skipStep:()=>{d("hasSkipped",!0),u().increaseStep()}}),d=(e,t)=>{n((n=>({...n,[r]:{...n[r]||{},[e]:t}})))};return(0,i.useEffect)((()=>{r===Iv.length-1&&(a(!0),dg()({url:moderncart_settings.onboarding.ajaxUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((()=>{a(!1)})).catch((()=>{a(!1)})))}),[r,t]),(0,e.createElement)(pv,{value:{handleData:d,handleStepCount:u,currentScreenData:c}},(0,e.createElement)("div",{className:"bg-background-secondary w-full pb-10"},(0,e.createElement)(Rc,{className:"bg-background-secondary"},(0,e.createElement)(Rc.Left,null,(0,e.createElement)(Rc.Item,null,(0,e.createElement)("img",{alt:(0,Ac.__)("Modern Cart Logo","modern-cart"),className:"w-[30px]",src:zc}))),(0,e.createElement)(Rc.Middle,null,(0,e.createElement)(Rc.Item,{className:"w-[12rem]"},(0,e.createElement)(sv,{size:"md",variant:"number",currentStep:r+1,completedVariant:"number"},Iv.slice(0,-1).map((t=>(0,e.createElement)(sv.Step,{key:t})))))),(0,e.createElement)(Rc.Right,null,(0,e.createElement)(Rc.Item,null,(0,e.createElement)(Rt,{icon:Dv("close"),iconPosition:"right",size:"xs",onClick:Fv,variant:"ghost"},(0,Ac.__)("Exit Guided Setup","modern-cart"))))),(0,e.createElement)("div",{className:"md:w-[672px] box-border mx-auto p-[24px] mt-[24px] border border-solid border-border-subtle bg-background-primary rounded-xl shadow-sm space-y-6"},s&&(0,e.createElement)("div",{className:"absolute inset-0 bg-white opacity-50 z-50 flex items-center justify-center"},(0,e.createElement)(cg,{className:"",icon:null,size:"lg",variant:"primary"})),(0,e.createElement)(l,null))))};function Bv({title:e,titleId:t,...n},r){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const Vv=i.forwardRef(Bv),Uv=function(){const[t,n]=(0,i.useState)(!0),[r,o]=(0,i.useState)({days:0,hours:0,minutes:0,seconds:0}),s="2025-11-17T00:00:00",a="2025-12-04T00:00:00",l=e=>String(e).padStart(2,"0");(0,i.useEffect)((()=>{if(!(()=>{const e=(new Date).getTime(),t=new Date(s).getTime(),n=new Date(a).getTime();return e>=t&&e<n})()){const e=(new Date).getTime(),t=new Date(s).getTime();if(e<t){const n=t-e,r=Math.floor(n/864e5),i=Math.floor(n%864e5/36e5),s=Math.floor(n%36e5/6e4),a=Math.floor(n%6e4/1e3);o({days:r,hours:i,minutes:s,seconds:a})}else localStorage.removeItem("moderncartSaleEndTime"),localStorage.setItem("moderncartSaleBannerDisable",!0),n(!1);return}const e=(()=>{const e=localStorage.getItem("moderncartSaleEndTime");if(e)return parseInt(e,10);const t=new Date(a).getTime();return localStorage.setItem("moderncartSaleEndTime",t.toString()),t})(),t=setInterval((()=>{const n=(new Date).getTime(),r=e-n;if(r<0)return clearInterval(t),o({days:0,hours:0,minutes:0,seconds:0}),void localStorage.removeItem("moderncartSaleEndTime");const i=Math.floor(r/864e5),s=Math.floor(r%864e5/36e5),a=Math.floor(r%36e5/6e4),l=Math.floor(r%6e4/1e3);o({days:i,hours:s,minutes:a,seconds:l})}),1e3);return()=>clearInterval(t)}),[]);const c=localStorage.getItem("moderncartSaleBannerDisable");return!t||c?null:(0,e.createElement)("div",{className:"w-[calc(100%-44px)] -left-5 bg-wpcolor px-8 py-3 z-10 relative"},(0,e.createElement)("button",{className:"absolute top-2 right-3 text-white hover:text-gray-200 bg-transparent border-none p-0 cursor-pointer focus:outline-none",onClick:()=>{localStorage.removeItem("moderncartSaleEndTime"),localStorage.setItem("moderncartSaleBannerDisable",!0),n(!1)},"aria-label":(0,Ac.__)("Dismiss","modern-cart")},(0,e.createElement)(Vv,{className:"h-4 w-4 stroke-[2]"})),(0,e.createElement)("div",{className:"flex flex-col sm:flex-row items-center justify-between max-w-7xl mx-auto flex-wrap"},(0,e.createElement)("div",{className:"flex items-center gap-6"},(0,e.createElement)("div",{className:"flex flex-col items-center"},(0,e.createElement)("div",{className:"text-lg font-bold text-white leading-4"},l(r.days)),(0,e.createElement)("div",{className:"text-sm text-white font-medium"},(0,Ac.__)("Days","modern-cart"))),(0,e.createElement)("div",{className:"flex flex-col items-center"},(0,e.createElement)("div",{className:"text-lg font-bold text-white leading-4"},l(r.hours)),(0,e.createElement)("div",{className:"text-sm text-white font-medium"},(0,Ac.__)("Hours","modern-cart"))),(0,e.createElement)("div",{className:"flex flex-col items-center"},(0,e.createElement)("div",{className:"text-lg font-bold text-white leading-4"},l(r.minutes)),(0,e.createElement)("div",{className:"text-sm text-white font-medium"},(0,Ac.__)("Minutes","modern-cart"))),(0,e.createElement)("div",{className:"flex flex-col items-center"},(0,e.createElement)("div",{className:"text-lg font-bold text-white leading-4"},l(r.seconds)),(0,e.createElement)("div",{className:"text-sm text-white font-medium"},(0,Ac.__)("Seconds","modern-cart")))),(0,e.createElement)("div",{className:"flex-1 text-center px-8"},(0,e.createElement)("h2",{className:"text-base font-bold text-white"},(0,Ac.__)("Black Friday Deal is Live: Get Modern Cart Pro for up to 40% OFF β","modern-cart"))),(0,e.createElement)("a",{href:"https://cartflows.com/modern-cart-for-woocommerce/?utm_source=mcw-free-dashboard&utm_medium=free-mcw&utm_campaign=bfcm",target:"_blank",rel:"noopener noreferrer",className:"bg-white hover:bg-[#fef1ec] text-wpcolor hover:text-wphovercolor font-semibold no-underline px-8 py-3 rounded-lg transition-colors whitespace-nowrap inline-block outline-0 hover:outline-0 focus:ring-0"},(0,Ac.__)("Claim Offer","modern-cart"))))},Hv=document.getElementById("moderncart-settings");(0,t.H)(Hv).render((0,e.createElement)((()=>(0,e.createElement)(F,null,(0,e.createElement)(Nc,{initialState:q,reducer:Y},moderncart_settings.onboarding.inProgress?(0,e.createElement)(zv,null):(0,e.createElement)(e.Fragment,null,"not-installed"===moderncart_settings.proStatus&&(0,e.createElement)(Uv,null),(0,e.createElement)(nv,null))))),null))})()})();