@egen-civitas/esm-app-shell 3.0.2 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ (self.webpackChunk_egen_civitas_esm_app_shell=self.webpackChunk_egen_civitas_esm_app_shell||[]).push([["6207"],{6871(e,t){var r,n;function a(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}r=this,n=function(){return function(e,t,r){var n=t.prototype,o=function(e){var t=e.date,o=e.utc,i={};if(!(null===t||a(t,Date)||a(t,Array)||n.$utils().u(t)||"Object"!==t.constructor.name)){if(!Object.keys(t).length)return new Date;var s=o?r.utc():r();Object.keys(t).forEach(function(e){var r;i["date"===(r=n.$utils().p(e))?"day":r]=t[e]});var l=i.day||(i.year||i.month>=0?1:s.date()),u=i.year||s.year(),c=i.month>=0?i.month:i.year||i.day?0:s.month(),d=i.hour||0,f=i.minute||0,p=i.second||0,m=i.millisecond||0;return o?new Date(Date.UTC(u,c,l,d,f,p,m)):new Date(u,c,l,d,f,p,m)}return t},i=n.parse;n.parse=function(e){e.date=o.bind(this)(e),i.bind(this)(e)};var s=n.set,l=n.add,u=n.subtract,c=function(e,t,r,n){void 0===n&&(n=1);var a=Object.keys(t),o=this;return a.forEach(function(r){o=e.bind(o)(t[r]*n,r)}),o};n.set=function(e,t){return t=void 0===t?e:t,"Object"===e.constructor.name?c.bind(this)(function(e,t){return s.bind(this)(t,e)},t,e):s.bind(this)(e,t)},n.add=function(e,t){return"Object"===e.constructor.name?c.bind(this)(l,e,t):l.bind(this)(e,t)},n.subtract=function(e,t){return"Object"===e.constructor.name?c.bind(this)(l,e,t,-1):u.bind(this)(e,t)}}},"object"==(t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)?e.exports=n():"function"==typeof define&&define.amd?define(n):(r="u">typeof globalThis?globalThis:r||self).dayjs_plugin_objectSupport=n()},2147(e,t){var r,n;r=this,n=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,a,o){var i=a.prototype;o.utc=function(e){var t={date:e,utc:!0,args:arguments};return new a(t)},i.utc=function(t){var r=o(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=i.utcOffset;i.utcOffset=function(n,a){var o=this.$utils().u;if(o(n))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof n&&null===(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var a=(""+n[0]).match(r)||["-",0,0],o=a[0],i=60*a[1]+ +a[2];return 0===i?0:"+"===o?i:-i}(n)))return this;var i=16>=Math.abs(n)?60*n:n;if(0===i)return this.utc(a);var s=this.clone();if(a)return s.$offset=i,s.$u=!1,s;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(i+l,e)).$offset=i,s.$x.$localOffset=l,s};var c=i.format;i.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=i.diff;i.diff=function(e,t,r){if(e&&this.$u===e.$u)return f.call(this,e,t,r);var n=this.local(),a=o(e).local();return f.call(n,a,t,r)}}},"object"==(t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)?e.exports=n():"function"==typeof define&&define.amd?define(n):(r="u">typeof globalThis?globalThis:r||self).dayjs_plugin_utc=n()},4347(e,t,r){"use strict";r.d(t,{A:()=>b});var n=r(8783),a=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(e,t,r){return!!e&&""!==e.trim()&&r.indexOf(e)===t}).join(" ").trim()},o={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"};function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e){if(Array.isArray(e))return e}function l(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function u(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function d(e,t){return s(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||p(e,t)||u()}function f(e){return function(e){if(Array.isArray(e))return i(e)}(e)||l(e)||p(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}}var m=(0,n.forwardRef)(function(e,t){var r,i,m,h=s(r=[e,t])||l(r)||p(r)||u(),y=h[0],v=h.slice(1),g=y.color,b=y.size,x=void 0===b?24:b,w=y.strokeWidth,j=void 0===w?2:w,O=y.absoluteStrokeWidth,S=y.className,k=y.children,E=y.iconNode,P=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(y,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]),A=d(v,1)[0];return(0,n.createElement)("svg",c((i=c({ref:A},o),m=m={width:x,height:x,stroke:void 0===g?"currentColor":g,strokeWidth:O?24*Number(j)/Number(x):j,className:a("lucide",void 0===S?"":S)},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(m)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(m)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(m,e))}),i),P),f(E.map(function(e){var t=d(e,2),r=t[0],a=t[1];return(0,n.createElement)(r,a)})).concat(f(Array.isArray(k)?k:[k])))});function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(e){if(Array.isArray(e))return e}function v(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}}var b=function(e,t){var r=(0,n.forwardRef)(function(r,o){var i,s=y(i=[r,o])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||g(i)||v(),l=s[0],u=s.slice(1),c=l.className,d=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(l,["className"]),f=(y(u)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(u)||g(u,1)||v())[0];return(0,n.createElement)(m,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({ref:f,iconNode:t,className:a("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),c)},d))});return r.displayName="".concat(e),r}},2930(e,t,r){"use strict";r.d(t,{A:()=>n});var n=(0,r(4347).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},9150(e,t,r){"use strict";r.d(t,{A:()=>n});var n=(0,r(4347).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},7190(e,t,r){"use strict";r.d(t,{A:()=>n});var n=(0,r(4347).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},3601(e,t,r){"use strict";r.d(t,{A:()=>n});var n=(0,r(4347).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},8032(e,t,r){"use strict";r.d(t,{A:()=>n});var n=(0,r(4347).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},8428(e,t,r){"use strict";r.d(t,{A:()=>n});var n=(0,r(4347).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},822(e,t,r){"use strict";r.d(t,{A:()=>n});var n=(0,r(4347).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},8929(e,t,r){"use strict";var n=r(8783),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,o={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,n)&&!l.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:a,type:e,key:u,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},2883(e,t,r){"use strict";e.exports=r(8929)},6503(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var o=Symbol("SemVer ANY");e.exports=function(){var e,t;function r(e,t){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");if(t=i(t),a(e,r))if(!!t.loose===e.loose)return e;else e=e.value;d("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===o?this.value="":this.value=this.operator+this.semver.version,d("comp",this)}return e=[{key:"parse",value:function(e){var t=this.options.loose?l[u.COMPARATORLOOSE]:l[u.COMPARATOR],r=e.match(t);if(!r)throw TypeError("Invalid comparator: ".concat(e));this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new f(r[2],this.options.loose):this.semver=o}},{key:"toString",value:function(){return this.value}},{key:"test",value:function(e){if(d("Comparator.test",e,this.options.loose),this.semver===o||e===o)return!0;if("string"==typeof e)try{e=new f(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}},{key:"intersects",value:function(e,t){if(!a(e,r))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}],t=[{key:"ANY",get:function(){return o}}],e&&n(r.prototype,e),t&&n(r,t),r}();var i=r(6480),s=r(4299),l=s.safeRe,u=s.t,c=r(570),d=r(7139),f=r(7583),p=r(7490)},7490(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var o=/\s+/g;e.exports=function(){var e;function t(e,r){var n=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");if(r=s(r),a(e,t))if(!!r.loose===e.loose&&!!r.includePrerelease===e.includePrerelease)return e;else return new t(e.raw,r);if(a(e,l))return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(o," "),this.set=this.raw.split("||").map(function(e){return n.parseRange(e.trim())}).filter(function(e){return e.length}),!this.set.length)throw TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){var i=this.set[0];if(this.set=this.set.filter(function(e){return!j(e[0])}),0===this.set.length)this.set=[i];else if(this.set.length>1){var u=!0,c=!1,d=void 0;try{for(var f,p=this.set[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var m=f.value;if(1===m.length&&O(m[0])){this.set=[m];break}}}catch(e){c=!0,d=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}}}this.formatted=void 0}return e=[{key:"range",get:function(){if(void 0===this.formatted){this.formatted="";for(var e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");for(var t=this.set[e],r=0;r<t.length;r++)r>0&&(this.formatted+=" "),this.formatted+=t[r].toString().trim()}}return this.formatted}},{key:"format",value:function(){return this.range}},{key:"toString",value:function(){return this.range}},{key:"parseRange",value:function(e){var t,r=this;e=e.replace(w,"");var a=((this.options.includePrerelease&&b)|(this.options.loose&&x))+":"+e,o=i.get(a);if(o)return o;var s=this.options.loose,c=s?f[m.HYPHENRANGELOOSE]:f[m.HYPHENRANGE];u("hyphen replace",e=e.replace(c,I(this.options.includePrerelease))),u("comparator trim",e=e.replace(f[m.COMPARATORTRIM],h)),u("tilde trim",e=e.replace(f[m.TILDETRIM],y)),u("caret trim",e=e.replace(f[m.CARETTRIM],v));var d=e.split(" ").map(function(e){return k(e,r.options)}).join(" ").split(/\s+/).map(function(e){return M(e,r.options)});s&&(d=d.filter(function(e){return u("loose invalid filter",e,r.options),!!e.match(f[m.COMPARATORLOOSE])})),u("range list",d);var p=new Map,g=d.map(function(e){return new l(e,r.options)}),O=!0,S=!1,E=void 0;try{for(var P,A=g[Symbol.iterator]();!(O=(P=A.next()).done);O=!0){var D=P.value;if(j(D))return[D];p.set(D.value,D)}}catch(e){S=!0,E=e}finally{try{O||null==A.return||A.return()}finally{if(S)throw E}}p.size>1&&p.has("")&&p.delete("");var C=function(e){if(Array.isArray(e))return n(e)}(t=p.values())||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return n(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return i.set(a,C),C}},{key:"intersects",value:function(e,r){if(!a(e,t))throw TypeError("a Range is required");return this.set.some(function(t){return S(t,r)&&e.set.some(function(e){return S(e,r)&&t.every(function(t){return e.every(function(e){return t.intersects(e,r)})})})})}},{key:"test",value:function(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(L(this.set[t],e,this.options))return!0;return!1}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();var i=new(r(3235)),s=r(6480),l=r(6503),u=r(7139),c=r(7583),d=r(4299),f=d.safeRe,p=d.src,m=d.t,h=d.comparatorTrimReplace,y=d.tildeTrimReplace,v=d.caretTrimReplace,g=r(9345),b=g.FLAG_INCLUDE_PRERELEASE,x=g.FLAG_LOOSE,w=RegExp(p[m.BUILD],"g"),j=function(e){return"<0.0.0-0"===e.value},O=function(e){return""===e.value},S=function(e,t){for(var r=!0,n=e.slice(),a=n.pop();r&&n.length;)r=n.every(function(e){return a.intersects(e,t)}),a=n.pop();return r},k=function(e,t){return u("comp",e=e.replace(f[m.BUILD],""),t),u("caret",e=D(e,t)),u("tildes",e=P(e,t)),u("xrange",e=T(e,t)),u("stars",e=R(e,t)),e},E=function(e){return!e||"x"===e.toLowerCase()||"*"===e},P=function(e,t){return e.trim().split(/\s+/).map(function(e){return A(e,t)}).join(" ")},A=function(e,t){var r=t.loose?f[m.TILDELOOSE]:f[m.TILDE],n=t.includePrerelease?"-0":"";return e.replace(r,function(t,r,a,o,i){var s;return u("tilde",e,t,r,a,o,i),E(r)?s="":E(a)?s=">=".concat(r,".0.0").concat(n," <").concat(+r+1,".0.0-0"):E(o)?s=">=".concat(r,".").concat(a,".0").concat(n," <").concat(r,".").concat(+a+1,".0-0"):i?(u("replaceTilde pr",i),s=">=".concat(r,".").concat(a,".").concat(o,"-").concat(i," <").concat(r,".").concat(+a+1,".0-0")):s=">=".concat(r,".").concat(a,".").concat(o," <").concat(r,".").concat(+a+1,".0-0"),u("tilde return",s),s})},D=function(e,t){return e.trim().split(/\s+/).map(function(e){return C(e,t)}).join(" ")},C=function(e,t){u("caret",e,t);var r=t.loose?f[m.CARETLOOSE]:f[m.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,function(t,r,a,o,i){var s;return u("caret",e,t,r,a,o,i),E(r)?s="":E(a)?s=">=".concat(r,".0.0").concat(n," <").concat(+r+1,".0.0-0"):E(o)?s="0"===r?">=".concat(r,".").concat(a,".0").concat(n," <").concat(r,".").concat(+a+1,".0-0"):">=".concat(r,".").concat(a,".0").concat(n," <").concat(+r+1,".0.0-0"):i?(u("replaceCaret pr",i),s="0"===r?"0"===a?">=".concat(r,".").concat(a,".").concat(o,"-").concat(i," <").concat(r,".").concat(a,".").concat(+o+1,"-0"):">=".concat(r,".").concat(a,".").concat(o,"-").concat(i," <").concat(r,".").concat(+a+1,".0-0"):">=".concat(r,".").concat(a,".").concat(o,"-").concat(i," <").concat(+r+1,".0.0-0")):(u("no pr"),s="0"===r?"0"===a?">=".concat(r,".").concat(a,".").concat(o," <").concat(r,".").concat(a,".").concat(+o+1,"-0"):">=".concat(r,".").concat(a,".").concat(o," <").concat(r,".").concat(+a+1,".0-0"):">=".concat(r,".").concat(a,".").concat(o," <").concat(+r+1,".0.0-0")),u("caret return",s),s})},T=function(e,t){return u("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return N(e,t)}).join(" ")},N=function(e,t){e=e.trim();var r=t.loose?f[m.XRANGELOOSE]:f[m.XRANGE];return e.replace(r,function(r,n,a,o,i,s){if(u("xRange",e,r,n,a,o,i,s),l=a,c=o,d=i,E(l)&&!E(c)||E(c)&&d&&!E(d))return e;var l,c,d,f=E(a),p=f||E(o),m=p||E(i);return"="===n&&m&&(n=""),s=t.includePrerelease?"-0":"",f?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&m?(p&&(o=0),i=0,">"===n?(n=">=",p?(a=+a+1,o=0):o=+o+1,i=0):"<="===n&&(n="<",p?a=+a+1:o=+o+1),"<"===n&&(s="-0"),r="".concat(n+a,".").concat(o,".").concat(i).concat(s)):p?r=">=".concat(a,".0.0").concat(s," <").concat(+a+1,".0.0-0"):m&&(r=">=".concat(a,".").concat(o,".0").concat(s," <").concat(a,".").concat(+o+1,".0-0")),u("xRange return",r),r})},R=function(e,t){return u("replaceStars",e,t),e.trim().replace(f[m.STAR],"")},M=function(e,t){return u("replaceGTE0",e,t),e.trim().replace(f[t.includePrerelease?m.GTE0PRE:m.GTE0],"")},I=function(e){return function(t,r,n,a,o,i,s,l,u,c,d,f){return r=E(n)?"":E(a)?">=".concat(n,".0.0").concat(e?"-0":""):E(o)?">=".concat(n,".").concat(a,".0").concat(e?"-0":""):i?">=".concat(r):">=".concat(r).concat(e?"-0":""),l=E(u)?"":E(c)?"<".concat(+u+1,".0.0-0"):E(d)?"<".concat(u,".").concat(+c+1,".0-0"):f?"<=".concat(u,".").concat(c,".").concat(d,"-").concat(f):e?"<".concat(u,".").concat(c,".").concat(+d+1,"-0"):"<=".concat(l),"".concat(r," ").concat(l).trim()}},L=function(e,t,r){for(var n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(var a=0;a<e.length;a++)if(u(e[a].semver),e[a].semver!==l.ANY&&e[a].semver.prerelease.length>0){var o=e[a].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}},7583(e,t,r){"use strict";function n(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var a=r(7139),o=r(9345),i=o.MAX_LENGTH,s=o.MAX_SAFE_INTEGER,l=r(4299),u=l.safeRe,c=l.t,d=r(6480),f=r(6640).compareIdentifiers,p=function(e,t){var r=t.split(".");if(r.length>e.length)return!1;for(var n=0;n<r.length;n++)if(0!==f(e[n],r[n]))return!1;return!0};e.exports=function(){var e;function t(e,r){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");if(r=d(r),n(e,t))if(!!r.loose===e.loose&&!!r.includePrerelease===e.includePrerelease)return e;else e=e.version;else if("string"!=typeof e)throw TypeError('Invalid version. Must be a string. Got type "'.concat(void 0===e?"undefined":(o=e)&&"u">typeof Symbol&&o.constructor===Symbol?"symbol":typeof o,'".'));if(e.length>i)throw TypeError("version is longer than ".concat(i," characters"));a("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;var o,l=e.trim().match(r.loose?u[c.LOOSE]:u[c.FULL]);if(!l)throw TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>s||this.major<0)throw TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw TypeError("Invalid patch version");l[4]?this.prerelease=l[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<s)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split("."):[],this.format()}return e=[{key:"format",value:function(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}},{key:"toString",value:function(){return this.version}},{key:"compare",value:function(e){if(a("SemVer.compare",this.version,this.options,e),!n(e,t)){if("string"==typeof e&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}},{key:"compareMain",value:function(e){return(n(e,t)||(e=new t(e,this.options)),this.major<e.major)?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:+(this.patch>e.patch)}},{key:"comparePre",value:function(e){if(n(e,t)||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var r=0;do{var o=this.prerelease[r],i=e.prerelease[r];if(a("prerelease compare",r,o,i),void 0===o&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===o)return -1;else if(o===i)continue;else return f(o,i)}while(++r)}},{key:"compareBuild",value:function(e){n(e,t)||(e=new t(e,this.options));var r=0;do{var o=this.build[r],i=e.build[r];if(a("build compare",r,o,i),void 0===o&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===o)return -1;else if(o===i)continue;else return f(o,i)}while(++r)}},{key:"inc",value:function(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw Error("invalid increment argument: identifier is empty");if(t){var n="-".concat(t).match(this.options.loose?u[c.PRERELEASELOOSE]:u[c.PRERELEASE]);if(!n||n[1]!==t)throw Error("invalid identifier: ".concat(t))}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw Error("version ".concat(this.raw," is not a prerelease"));this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":var a=+!!Number(r);if(0===this.prerelease.length)this.prerelease=[a];else{for(var o=this.prerelease.length;--o>=0;)"number"==typeof this.prerelease[o]&&(this.prerelease[o]++,o=-2);if(-1===o){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(t){var i=[t,a];!1===r&&(i=[t]),p(this.prerelease,t)?isNaN(this.prerelease[t.split(".").length])&&(this.prerelease=i):this.prerelease=i}break;default:throw Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}()},5995(e,t,r){"use strict";var n=r(5749);e.exports=function(e,t){var r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},570(e,t,r){"use strict";function n(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var a=r(6534),o=r(9962),i=r(4907),s=r(9928),l=r(6228),u=r(4401);e.exports=function(e,t,r,c){switch(t){case"===":return(void 0===e?"undefined":n(e))==="object"&&(e=e.version),(void 0===r?"undefined":n(r))==="object"&&(r=r.version),e===r;case"!==":return(void 0===e?"undefined":n(e))==="object"&&(e=e.version),(void 0===r?"undefined":n(r))==="object"&&(r=r.version),e!==r;case"":case"=":case"==":return a(e,r,c);case"!=":return o(e,r,c);case">":return i(e,r,c);case">=":return s(e,r,c);case"<":return l(e,r,c);case"<=":return u(e,r,c);default:throw TypeError("Invalid operator: ".concat(t))}}},5877(e,t,r){"use strict";var n=r(7583),a=r(5749),o=r(4299),i=o.safeRe,s=o.t;e.exports=function(e,t){if(o=e,null!=n&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](o):o instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var o,l,u=t.includePrerelease?i[s.COERCERTLFULL]:i[s.COERCERTL];(l=u.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&l.index+l[0].length===r.index+r[0].length||(r=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}else r=e.match(t.includePrerelease?i[s.COERCEFULL]:i[s.COERCE]);if(null===r)return null;var c=r[2],d=r[3]||"0",f=r[4]||"0",p=t.includePrerelease&&r[5]?"-".concat(r[5]):"",m=t.includePrerelease&&r[6]?"+".concat(r[6]):"";return a("".concat(c,".").concat(d,".").concat(f).concat(p).concat(m),t)}},2740(e,t,r){"use strict";var n=r(7583);e.exports=function(e,t,r){var a=new n(e,r),o=new n(t,r);return a.compare(o)||a.compareBuild(o)}},9478(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t){return n(e,t,!0)}},2057(e,t,r){"use strict";var n=r(7583);e.exports=function(e,t,r){return new n(e,r).compare(new n(t,r))}},6003(e,t,r){"use strict";var n=r(5749);e.exports=function(e,t){var r=n(e,null,!0),a=n(t,null,!0),o=r.compare(a);if(0===o)return null;var i=o>0,s=i?r:a,l=i?a:r,u=!!s.prerelease.length;if(l.prerelease.length&&!u){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(s))return l.minor&&!l.patch?"minor":"patch"}var c=u?"pre":"";return r.major!==a.major?c+"major":r.minor!==a.minor?c+"minor":r.patch!==a.patch?c+"patch":"prerelease"}},6534(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t,r){return 0===n(e,t,r)}},4907(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t,r){return n(e,t,r)>0}},9928(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t,r){return n(e,t,r)>=0}},4006(e,t,r){"use strict";var n=r(7583);e.exports=function(e,t,r,a,o){"string"==typeof r&&(o=a,a=r,r=void 0);try{return new n((null!=n&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)?e.version:e,r).inc(t,a,o).version}catch(e){return null}}},6228(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t,r){return 0>n(e,t,r)}},4401(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t,r){return 0>=n(e,t,r)}},9211(e,t,r){"use strict";var n=r(7583);e.exports=function(e,t){return new n(e,t).major}},2895(e,t,r){"use strict";var n=r(7583);e.exports=function(e,t){return new n(e,t).minor}},9962(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t,r){return 0!==n(e,t,r)}},5749(e,t,r){"use strict";var n=r(7583);e.exports=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!=n&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},6008(e,t,r){"use strict";var n=r(7583);e.exports=function(e,t){return new n(e,t).patch}},510(e,t,r){"use strict";var n=r(5749);e.exports=function(e,t){var r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},6153(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t,r){return n(t,e,r)}},9268(e,t,r){"use strict";var n=r(2740);e.exports=function(e,t){return e.sort(function(e,r){return n(r,e,t)})}},5775(e,t,r){"use strict";var n=r(7490);e.exports=function(e,t,r){try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},4372(e,t,r){"use strict";var n=r(2740);e.exports=function(e,t){return e.sort(function(e,r){return n(e,r,t)})}},7406(e,t,r){"use strict";var n=r(5749),a=r(9345),o=r(7583),i=function(e,t){return n((null!=o&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](e):e instanceof o)?e.version:e,t)},s=function(e,t){if(l(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0}return e.format()},l=function(e){return e.startsWith("pre")};e.exports=function(e,t,r){if(!a.RELEASE_TYPES.includes(t))return null;var n=i(e,r);return n&&s(n,t)}},3440(e,t,r){"use strict";var n=r(5749);e.exports=function(e,t){var r=n(e,t);return r?r.version:null}},8164(e,t,r){"use strict";var n=r(4299),a=r(9345),o=r(7583),i=r(6640);e.exports={parse:r(5749),valid:r(3440),clean:r(5995),inc:r(4006),diff:r(6003),major:r(9211),minor:r(2895),patch:r(6008),prerelease:r(510),compare:r(2057),rcompare:r(6153),compareLoose:r(9478),compareBuild:r(2740),sort:r(4372),rsort:r(9268),gt:r(4907),lt:r(6228),eq:r(6534),neq:r(9962),gte:r(9928),lte:r(4401),cmp:r(570),coerce:r(5877),truncate:r(7406),Comparator:r(6503),Range:r(7490),satisfies:r(5775),toComparators:r(7690),maxSatisfying:r(5901),minSatisfying:r(6975),minVersion:r(8158),validRange:r(3429),outside:r(3452),gtr:r(2560),ltr:r(9801),intersects:r(453),simplifyRange:r(1784),subset:r(7885),SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},9345(e){"use strict";e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||0x1fffffffffffff,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7139(e){"use strict";var t,r;function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}e.exports=("u"<typeof process?"undefined":(t=process)&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(r=console).error.apply(r,["SEMVER"].concat(function(e){if(Array.isArray(e))return n(e)}(t)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return n(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}:function(){}},6640(e){"use strict";var t=/^[0-9]+$/,r=function(e,r){if("number"==typeof e&&"number"==typeof r)return e===r?0:e<r?-1:1;var n=t.test(e),a=t.test(r);return n&&a&&(e*=1,r*=1),e===r?0:n&&!a?-1:a&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:function(e,t){return r(t,e)}}},3235(e){"use strict";e.exports=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.max=1e3,this.map=new Map}return e=[{key:"get",value:function(e){var t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}},{key:"delete",value:function(e){return this.map.delete(e)}},{key:"set",value:function(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){var r=this.map.keys().next().value;this.delete(r)}this.map.set(e,t)}return this}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}()},6480(e){"use strict";var t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=function(e){return e?(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)!="object"?t:e:r}},4299(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var a=r(9345),o=a.MAX_SAFE_COMPONENT_LENGTH,i=a.MAX_SAFE_BUILD_LENGTH,s=a.MAX_LENGTH,l=r(7139),u=(t=e.exports={}).re=[],c=t.safeRe=[],d=t.src=[],f=t.safeSrc=[],p=t.t={},m=0,h="[a-zA-Z0-9-]",y=[["\\s",1],["\\d",s],[h,i]],v=function(e){var t=!0,r=!1,a=void 0;try{for(var o,i=y[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var s,l=(s=o.value,function(e){if(Array.isArray(e))return e}(s)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(s)||function(e){if(e){if("string"==typeof e)return n(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,2)}}(s)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],c=l[1];e=e.split("".concat(u,"*")).join("".concat(u,"{0,").concat(c,"}")).split("".concat(u,"+")).join("".concat(u,"{1,").concat(c,"}"))}}catch(e){r=!0,a=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw a}}return e},g=function(e,t,r){var n=v(t),a=m++;l(e,a,t),p[e]=a,d[a]=t,f[a]=n,u[a]=new RegExp(t,r?"g":void 0),c[a]=new RegExp(n,r?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(h,"*")),g("MAINVERSION","(".concat(d[p.NUMERICIDENTIFIER],")\\.")+"(".concat(d[p.NUMERICIDENTIFIER],")\\.")+"(".concat(d[p.NUMERICIDENTIFIER],")")),g("MAINVERSIONLOOSE","(".concat(d[p.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(d[p.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(d[p.NUMERICIDENTIFIERLOOSE],")")),g("PRERELEASEIDENTIFIER","(?:".concat(d[p.NONNUMERICIDENTIFIER],"|").concat(d[p.NUMERICIDENTIFIER],")")),g("PRERELEASEIDENTIFIERLOOSE","(?:".concat(d[p.NONNUMERICIDENTIFIER],"|").concat(d[p.NUMERICIDENTIFIERLOOSE],")")),g("PRERELEASE","(?:-(".concat(d[p.PRERELEASEIDENTIFIER],"(?:\\.").concat(d[p.PRERELEASEIDENTIFIER],")*))")),g("PRERELEASELOOSE","(?:-?(".concat(d[p.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(d[p.PRERELEASEIDENTIFIERLOOSE],")*))")),g("BUILDIDENTIFIER","".concat(h,"+")),g("BUILD","(?:\\+(".concat(d[p.BUILDIDENTIFIER],"(?:\\.").concat(d[p.BUILDIDENTIFIER],")*))")),g("FULLPLAIN","v?".concat(d[p.MAINVERSION]).concat(d[p.PRERELEASE],"?").concat(d[p.BUILD],"?")),g("FULL","^".concat(d[p.FULLPLAIN],"$")),g("LOOSEPLAIN","[v=\\s]*".concat(d[p.MAINVERSIONLOOSE]).concat(d[p.PRERELEASELOOSE],"?").concat(d[p.BUILD],"?")),g("LOOSE","^".concat(d[p.LOOSEPLAIN],"$")),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE","".concat(d[p.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),g("XRANGEIDENTIFIER","".concat(d[p.NUMERICIDENTIFIER],"|x|X|\\*")),g("XRANGEPLAIN","[v=\\s]*(".concat(d[p.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIER],")")+"(?:".concat(d[p.PRERELEASE],")?").concat(d[p.BUILD],"?")+")?)?"),g("XRANGEPLAINLOOSE","[v=\\s]*(".concat(d[p.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(d[p.PRERELEASELOOSE],")?").concat(d[p.BUILD],"?")+")?)?"),g("XRANGE","^".concat(d[p.GTLT],"\\s*").concat(d[p.XRANGEPLAIN],"$")),g("XRANGELOOSE","^".concat(d[p.GTLT],"\\s*").concat(d[p.XRANGEPLAINLOOSE],"$")),g("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(o,"})")+"(?:\\.(\\d{1,".concat(o,"}))?")+"(?:\\.(\\d{1,".concat(o,"}))?")),g("COERCE","".concat(d[p.COERCEPLAIN],"(?:$|[^\\d])")),g("COERCEFULL",d[p.COERCEPLAIN]+"(?:".concat(d[p.PRERELEASE],")?")+"(?:".concat(d[p.BUILD],")?")+"(?:$|[^\\d])"),g("COERCERTL",d[p.COERCE],!0),g("COERCERTLFULL",d[p.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM","(\\s*)".concat(d[p.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",g("TILDE","^".concat(d[p.LONETILDE]).concat(d[p.XRANGEPLAIN],"$")),g("TILDELOOSE","^".concat(d[p.LONETILDE]).concat(d[p.XRANGEPLAINLOOSE],"$")),g("LONECARET","(?:\\^)"),g("CARETTRIM","(\\s*)".concat(d[p.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",g("CARET","^".concat(d[p.LONECARET]).concat(d[p.XRANGEPLAIN],"$")),g("CARETLOOSE","^".concat(d[p.LONECARET]).concat(d[p.XRANGEPLAINLOOSE],"$")),g("COMPARATORLOOSE","^".concat(d[p.GTLT],"\\s*(").concat(d[p.LOOSEPLAIN],")$|^$")),g("COMPARATOR","^".concat(d[p.GTLT],"\\s*(").concat(d[p.FULLPLAIN],")$|^$")),g("COMPARATORTRIM","(\\s*)".concat(d[p.GTLT],"\\s*(").concat(d[p.LOOSEPLAIN],"|").concat(d[p.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE","^\\s*(".concat(d[p.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(d[p.XRANGEPLAIN],")")+"\\s*$"),g("HYPHENRANGELOOSE","^\\s*(".concat(d[p.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(d[p.XRANGEPLAINLOOSE],")")+"\\s*$"),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2560(e,t,r){"use strict";var n=r(3452);e.exports=function(e,t,r){return n(e,t,">",r)}},453(e,t,r){"use strict";var n=r(7490);e.exports=function(e,t,r){return e=new n(e,r),t=new n(t,r),e.intersects(t,r)}},9801(e,t,r){"use strict";var n=r(3452);e.exports=function(e,t,r){return n(e,t,"<",r)}},5901(e,t,r){"use strict";var n=r(7583),a=r(7490);e.exports=function(e,t,r){var o=null,i=null,s=null;try{s=new a(t,r)}catch(e){return null}return e.forEach(function(e){s.test(e)&&(!o||-1===i.compare(e))&&(i=new n(o=e,r))}),o}},6975(e,t,r){"use strict";var n=r(7583),a=r(7490);e.exports=function(e,t,r){var o=null,i=null,s=null;try{s=new a(t,r)}catch(e){return null}return e.forEach(function(e){s.test(e)&&(!o||1===i.compare(e))&&(i=new n(o=e,r))}),o}},8158(e,t,r){"use strict";var n=r(7583),a=r(7490),o=r(4907);e.exports=function(e,t){e=new a(e,t);var r=new n("0.0.0");if(e.test(r)||(r=new n("0.0.0-0"),e.test(r)))return r;r=null;for(var i=0;i<e.set.length;++i)!function(t){var a=e.set[t],i=null;a.forEach(function(e){var t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!i||o(t,i))&&(i=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: ".concat(e.operator))}}),i&&(!r||o(r,i))&&(r=i)}(i);return r&&e.test(r)?r:null}},3452(e,t,r){"use strict";var n=r(7583),a=r(6503),o=a.ANY,i=r(7490),s=r(5775),l=r(4907),u=r(6228),c=r(4401),d=r(9928);e.exports=function(e,t,r,f){var p,m,h,y,v;switch(e=new n(e,f),t=new i(t,f),r){case">":p=l,m=c,h=u,y=">",v=">=";break;case"<":p=u,m=d,h=l,y="<",v="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,f))return!1;for(var g=0;g<t.set.length;++g){var b=function(r){var n=t.set[r],i=null,s=null;return(n.forEach(function(e){e.semver===o&&(e=new a(">=0.0.0")),i=i||e,s=s||e,p(e.semver,i.semver,f)?i=e:h(e.semver,s.semver,f)&&(s=e)}),i.operator===y||i.operator===v||(!s.operator||s.operator===y)&&m(e,s.semver)||s.operator===v&&h(e,s.semver))?{v:!1}:void 0}(g);if("object"==(b&&"u">typeof Symbol&&b.constructor===Symbol?"symbol":typeof b))return b.v}return!0}},1784(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var a=r(5775),o=r(2057);e.exports=function(e,t,r){var i=[],s=null,l=null,u=e.sort(function(e,t){return o(e,t,r)}),c=!0,d=!1,f=void 0;try{for(var p,m=u[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){var h=p.value;a(h,t,r)?(l=h,s||(s=h)):(l&&i.push([s,l]),l=null,s=null)}}catch(e){d=!0,f=e}finally{try{c||null==m.return||m.return()}finally{if(d)throw f}}s&&i.push([s,null]);var y=[],v=!0,g=!1,b=void 0;try{for(var x,w=i[Symbol.iterator]();!(v=(x=w.next()).done);v=!0){var j,O=(j=x.value,function(e){if(Array.isArray(e))return e}(j)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(j)||function(e){if(e){if("string"==typeof e)return n(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,2)}}(j)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),S=O[0],k=O[1];S===k?y.push(S):k||S!==u[0]?k?S===u[0]?y.push("<=".concat(k)):y.push("".concat(S," - ").concat(k)):y.push(">=".concat(S)):y.push("*")}}catch(e){g=!0,b=e}finally{try{v||null==w.return||w.return()}finally{if(g)throw b}}var E=y.join(" || "),P="string"==typeof t.raw?t.raw:String(t);return E.length<P.length?E:t}},7885(e,t,r){"use strict";var n=r(7490),a=r(6503),o=a.ANY,i=r(5775),s=r(2057),l=[new a(">=0.0.0-0")],u=[new a(">=0.0.0")],c=function(e,t,r){if(e===t)return!0;if(1===e.length&&e[0].semver===o)if(1===t.length&&t[0].semver===o)return!0;else e=r.includePrerelease?l:u;if(1===t.length&&t[0].semver===o)if(r.includePrerelease)return!0;else t=u;var n=new Set,a=!0,c=!1,p=void 0;try{for(var m,h,y,v=e[Symbol.iterator]();!(a=(y=v.next()).done);a=!0){var g=y.value;">"===g.operator||">="===g.operator?m=d(m,g,r):"<"===g.operator||"<="===g.operator?h=f(h,g,r):n.add(g.semver)}}catch(e){c=!0,p=e}finally{try{a||null==v.return||v.return()}finally{if(c)throw p}}if(n.size>1)return null;if(m&&h&&((j=s(m.semver,h.semver,r))>0||0===j&&(">="!==m.operator||"<="!==h.operator)))return null;var b=!0,x=!1,w=void 0;try{for(var j,O,S=n[Symbol.iterator]();!(b=(O=S.next()).done);b=!0){var k=O.value;if(m&&!i(k,String(m),r)||h&&!i(k,String(h),r))return null;var E=!0,P=!1,A=void 0;try{for(var D,C=t[Symbol.iterator]();!(E=(D=C.next()).done);E=!0){var T=D.value;if(!i(k,String(T),r))return!1}}catch(e){P=!0,A=e}finally{try{E||null==C.return||C.return()}finally{if(P)throw A}}return!0}}catch(e){x=!0,w=e}finally{try{b||null==S.return||S.return()}finally{if(x)throw w}}var N=!!h&&!r.includePrerelease&&!!h.semver.prerelease.length&&h.semver,R=!!m&&!r.includePrerelease&&!!m.semver.prerelease.length&&m.semver;N&&1===N.prerelease.length&&"<"===h.operator&&0===N.prerelease[0]&&(N=!1);var M=!0,I=!1,L=void 0;try{for(var F,B,V,z,W,U=t[Symbol.iterator]();!(M=(W=U.next()).done);M=!0){var $=W.value;if(z=z||">"===$.operator||">="===$.operator,V=V||"<"===$.operator||"<="===$.operator,m){if(R&&$.semver.prerelease&&$.semver.prerelease.length&&$.semver.major===R.major&&$.semver.minor===R.minor&&$.semver.patch===R.patch&&(R=!1),">"===$.operator||">="===$.operator){if((F=d(m,$,r))===$&&F!==m)return!1}else if(">="===m.operator&&!$.test(m.semver))return!1}if(h){if(N&&$.semver.prerelease&&$.semver.prerelease.length&&$.semver.major===N.major&&$.semver.minor===N.minor&&$.semver.patch===N.patch&&(N=!1),"<"===$.operator||"<="===$.operator){if((B=f(h,$,r))===$&&B!==h)return!1}else if("<="===h.operator&&!$.test(h.semver))return!1}if(!$.operator&&(h||m)&&0!==j)return!1}}catch(e){I=!0,L=e}finally{try{M||null==U.return||U.return()}finally{if(I)throw L}}return(!m||!V||!!h||0===j)&&(!h||!z||!!m||0===j)&&!R&&!N&&!0},d=function(e,t,r){if(!e)return t;var n=s(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},f=function(e,t,r){if(!e)return t;var n=s(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return!0;e=new n(e,r),t=new n(t,r);var a=!1,o=!0,i=!1,s=void 0;try{e:for(var l,u=e.set[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var d=l.value,f=!0,p=!1,m=void 0;try{for(var h,y=t.set[Symbol.iterator]();!(f=(h=y.next()).done);f=!0){var v=h.value,g=c(d,v,r);if(a=a||null!==g,g)continue e}}catch(e){p=!0,m=e}finally{try{f||null==y.return||y.return()}finally{if(p)throw m}}if(a)return!1}}catch(e){i=!0,s=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw s}}return!0}},7690(e,t,r){"use strict";var n=r(7490);e.exports=function(e,t){return new n(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}},3429(e,t,r){"use strict";var n=r(7490);e.exports=function(e,t){try{return new n(e,t).range||"*"}catch(e){return null}}},5898(e,t,r){"use strict";r.d(t,{KM:()=>d,Mj:()=>c,Z4:()=>m,j6:()=>h});var n=r(4942);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||u(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}}function c(e){return i(o({},e),{keys:e.keys.map(function(e){var t={},r=!0,a=!1,l=void 0;try{for(var u,c,d,f,p=Object.entries(null!=(u=e.pose)?u:{})[Symbol.iterator]();!(r=(f=p.next()).done);r=!0){var m=s(f.value,2),h=m[0],y=m[1],v=(0,n.vR)(h);t[v]=v!==h?[y[0],-y[1],-y[2]]:[y[0],y[1],y[2]]}}catch(e){a=!0,l=e}finally{try{r||null==p.return||p.return()}finally{if(a)throw l}}var g={};return(null==(c=e.hands)?void 0:c.L)&&(g.R=e.hands.L),(null==(d=e.hands)?void 0:d.R)&&(g.L=e.hands.R),i(o({},e),{pose:t,hands:g})})})}function d(e){var t=l(e.keys).sort(function(e,t){return e.t-t.t}),r=new Map,a=[],o={L:[],R:[]},i=!0,u=!1,c=void 0;try{for(var d,f,p,m=t[Symbol.iterator]();!(i=(p=m.next()).done);i=!0){var h=p.value,y=!0,v=!1,g=void 0;try{for(var b,x,w,j,O=Object.entries(null!=(b=h.pose)?b:{})[Symbol.iterator]();!(y=(j=O.next()).done);y=!0){var S=s(j.value,2),k=S[0],E=S[1],P=r.get(k);P||r.set(k,P={times:[],values:[]}),P.times.push(h.t),P.values.push(E)}}catch(e){v=!0,g=e}finally{try{y||null==O.return||O.return()}finally{if(v)throw g}}void 0!==h.lift&&a.push({t:h.t,v:h.lift}),(null==(x=h.hands)?void 0:x.L)&&o.L.push({t:h.t,shape:h.hands.L}),(null==(w=h.hands)?void 0:w.R)&&o.R.push({t:h.t,shape:h.hands.R})}}catch(e){u=!0,c=e}finally{try{i||null==m.return||m.return()}finally{if(u)throw c}}var A=!0,D=!1,C=void 0;try{for(var T,N=r[Symbol.iterator]();!(A=(T=N.next()).done);A=!0){var R=s(T.value,2),M=R[0],I=R[1],L=n.v$[M];I.times[0]>0&&(I.times.unshift(0),I.values.unshift(e.loop?I.values[I.values.length-1]:l(L))),I.times[I.times.length-1]<e.duration&&(I.times.push(e.duration),I.values.push(e.loop?I.values[0]:l(L)))}}catch(e){D=!0,C=e}finally{try{A||null==N.return||N.return()}finally{if(D)throw C}}var F=null;if(a.length){var B=a.map(function(e){return e.t}),V=a.map(function(e){return[e.v,0,0]});B[0]>0&&(B.unshift(0),V.unshift([0,0,0])),B[B.length-1]<e.duration&&(B.push(e.duration),V.push([0,0,0])),F={times:B,values:V}}return{name:e.name,duration:e.duration,loop:!!e.loop,fadeIn:null!=(d=e.fadeIn)?d:.25,fadeOut:null!=(f=e.fadeOut)?f:.3,tracks:r,lift:F,hands:o}}var f=function(e){return e*e*(3-2*e)};function p(e,t){var r=e.times,n=e.values;if(t<=r[0])return n[0];var a=r.length-1;if(t>=r[a])return n[a];for(var o=0;o<a&&r[o+1]<t;)o++;var i=r[o],s=r[o+1],l=s>i?f((t-i)/(s-i)):1,u=n[o],c=n[o+1];return[u[0]+(c[0]-u[0])*l,u[1]+(c[1]-u[1])*l,u[2]+(c[2]-u[2])*l]}function m(e,t){var r=e.loop?t%e.duration:Math.min(t,e.duration),n={},a=!0,o=!1,i=void 0;try{for(var l,u=e.tracks[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var c=s(l.value,2),d=c[0],f=c[1];n[d]=p(f,r)}}catch(e){o=!0,i=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw i}}for(var m={},h=0,y=["L","R"];h<y.length;h++){var v=y[h],g=void 0,b=!0,x=!1,w=void 0;try{for(var j,O=e.hands[v][Symbol.iterator]();!(b=(j=O.next()).done);b=!0){var S=j.value;S.t<=r&&(g=S.shape)}}catch(e){x=!0,w=e}finally{try{b||null==O.return||O.return()}finally{if(x)throw w}}g&&(m[v]=g)}return{pose:n,hands:m,lift:e.lift?p(e.lift,r)[0]:0}}function h(e,t,r,n){var a=e.fadeIn>0?Math.min(1,t/e.fadeIn):1,o=1;return r?o=e.fadeOut>0?Math.max(0,1-(t-n)/e.fadeOut):0:!e.loop&&e.fadeOut>0&&(o=Math.min(1,(e.duration-t)/e.fadeOut)),f(Math.max(0,Math.min(a,o)))}},2707(e,t,r){"use strict";r.d(t,{L:()=>g});var n=r(5898),a=r(9881),o=r(4942),i={relaxed:{curl:[.22,.2,.22,.25,.28],thumbOut:.1},open:{curl:[.02,.02,.02,.02,.04],thumbOut:.45},flat:{curl:[.05,0,0,0,0],thumbOut:.1},fist:{curl:[.85,1,1,1,1],thumbOut:0},point:{curl:[.9,0,1,1,1],thumbOut:.1},thumbsUp:{curl:[0,1,1,1,1],thumbOut:1.25},pinch:{curl:[.45,.55,.3,.3,.3],thumbOut:.35},cup:{curl:[.3,.38,.4,.42,.45],thumbOut:.5}},s=[.9,1.35,1.4,1.4,1.35],l=[.9,1.5,1.55,1.55,1.5];function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||p(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=function(e,t,r,n){return e+(t-e)*(1-Math.exp(-r*n))},y=function(e){return Math.atan2(Math.sin(e),Math.cos(e))},v=function(e){var t=Math.min(1,Math.max(0,e));return t*t*(3-2*t)},g=function(){var e;function t(){var e,r,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof t))throw TypeError("Cannot call a class as a function");m(this,"pose",(0,o.iJ)()),m(this,"root",{x:0,z:0,yaw:0,lift:0}),m(this,"blink",0),m(this,"speechLevel",0),m(this,"reach",{L:{target:null,weight:0,active:!1},R:{target:null,weight:0,active:!1}}),m(this,"state","idle"),m(this,"time",0),m(this,"rand",void 0),m(this,"autoBehaviors",void 0),m(this,"players",[]),m(this,"nextId",1),m(this,"target",(0,o.iJ)()),m(this,"gazeManual",null),m(this,"gazeGoal",{yaw:0,pitch:0}),m(this,"gaze",{yaw:0,pitch:0}),m(this,"nextGlanceAt",1.5),m(this,"nextBlinkAt",2),m(this,"blinkStart",-10),m(this,"nextTalkAt",0),m(this,"nextNodAt",3),m(this,"walkTarget",null),m(this,"walkBlend",0),m(this,"walkPhase",0),m(this,"speed",0),m(this,"yawRate",0),m(this,"handManual",{L:null,R:null}),m(this,"handGoal",{L:i.relaxed,R:i.relaxed}),m(this,"hand",{L:{curl:f(i.relaxed.curl),thumbOut:i.relaxed.thumbOut},R:{curl:f(i.relaxed.curl),thumbOut:i.relaxed.thumbOut}}),this.rand=(e=(null!=(r=a.seed)?r:1)>>>0,function(){var t=e=e+0x6d2b79f5>>>0;return t=Math.imul(t^t>>>15,1|t),(((t^=t+Math.imul(t^t>>>7,61|t))^t>>>14)>>>0)/0x100000000}),this.autoBehaviors=null==(n=a.autoBehaviors)||n,this.nextBlinkAt=1.5+2*this.rand()}return e=[{key:"play",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,a.q5)(e,null!=(t=r.side)?t:"L");return this.start(n,(a.kh[e],1),r)}},{key:"playClip",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.start(e,1,t)}},{key:"stopGesture",value:function(e){var t=!0,r=!1,n=void 0;try{for(var a,o=this.players[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=a.value;e&&i.clip.name!==e||this.beginStop(i)}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}}},{key:"isGesturing",get:function(){return this.players.some(function(e){return!e.stopping&&e.priority>0})}},{key:"setState",value:function(e){e!==this.state&&(this.state=e,"thinking"===e&&this.autoBehaviors&&this.play("think",{side:this.rand()>.5?"L":"R"}),"speaking"!==e&&(this.speechLevel=0))}},{key:"getState",value:function(){return this.state}},{key:"setGaze",value:function(e){this.gazeManual=e?{yaw:e.yaw,pitch:e.pitch}:null}},{key:"walkTo",value:function(e,t){var r,n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null==(r=this.walkTarget)||r.resolve(),new Promise(function(r){var o;n.walkTarget={x:e,z:t,arriveYaw:null!=(o=a.arriveYaw)?o:null,resolve:r}})}},{key:"stopWalking",value:function(){var e;null==(e=this.walkTarget)||e.resolve(),this.walkTarget=null}},{key:"isWalking",get:function(){return null!==this.walkTarget||this.walkBlend>.05}},{key:"turnTo",value:function(e){var t;return(t=function(){return function(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return[4,this.walkTo(this.root.x,this.root.z,{arriveYaw:e})];case 1:return t.sent(),[2]}})},function(){var e=this,r=arguments;return new Promise(function(n,a){var o=t.apply(e,r);function i(e){c(o,n,a,i,s,"next",e)}function s(e){c(o,n,a,i,s,"throw",e)}i(void 0)})}).call(this)}},{key:"reachAt",value:function(e,t){var r=this.reach[e];r.active=null!==t,t&&(r.target=f(t))}},{key:"toRobotFrame",value:function(e,t,r){var n=e-this.root.x,a=r-this.root.z,o=Math.cos(this.root.yaw),i=Math.sin(this.root.yaw);return[n*o-a*i,t-this.root.lift,n*i+a*o]}},{key:"pointAt",value:function(e,t){this.reachAt(e,t),this.setHand(e,t?"point":null)}},{key:"setHand",value:function(e,t){this.handManual[e]=t?"string"==typeof t?i[t]:t:null}},{key:"update",value:function(e){var t=Math.min(.05,Math.max(0,e));if(0!==t){this.time+=t,this.runAutoBehaviors(),this.advancePlayers(t);var r=this.target,a=!0,i=!1,s=void 0;try{for(var l,u=o.qS[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var c=l.value,f=o.v$[c];r[c][0]=f[0],r[c][1]=f[1],r[c][2]=f[2]}}catch(e){i=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw s}}this.applyStateStance(r),this.updateLocomotion(t),this.applyGait(r);var p=0,m={},y=!0,v=!1,g=void 0;try{for(var b,x=this.players[Symbol.iterator]();!(y=(b=x.next()).done);y=!0){var w=b.value,j=(0,n.j6)(w.clip,w.time,w.stopping,w.stopTime);if(!(j<=0)){var O=(0,n.Z4)(w.clip,w.time),S=!0,k=!1,E=void 0;try{for(var P,A=Object.entries(O.pose)[Symbol.iterator]();!(S=(P=A.next()).done);S=!0){var D=d(P.value,2),C=D[0],T=D[1],N=r[C];N[0]+=(T[0]-N[0])*j,N[1]+=(T[1]-N[1])*j,N[2]+=(T[2]-N[2])*j}}catch(e){k=!0,E=e}finally{try{S||null==A.return||A.return()}finally{if(k)throw E}}p+=O.lift*j,j>.3&&Object.assign(m,O.hands)}}}catch(e){v=!0,g=e}finally{try{y||null==x.return||x.return()}finally{if(v)throw g}}this.applyAdditive(r,t);var R=!0,M=!1,I=void 0;try{for(var L,F=o.qS[Symbol.iterator]();!(R=(L=F.next()).done);R=!0){var B=L.value,V=(0,o.FW)(B,r[B]),z=this.pose[B],W=B.startsWith("hips")?20:16;z[0]=h(z[0],V[0],W,t),z[1]=h(z[1],V[1],W,t),z[2]=h(z[2],V[2],W,t)}}catch(e){M=!0,I=e}finally{try{R||null==F.return||F.return()}finally{if(M)throw I}}this.updateHands(t,m),this.root.lift=h(this.root.lift,p+this.walkBob(),24,t);for(var U=0,$=["L","R"];U<$.length;U++){var H=$[U],K=this.reach[H];K.weight=h(K.weight,+!!K.active,7,t),!K.active&&K.weight<.005&&(K.weight=0,K.target=null)}this.updateBlink()}}},{key:"start",value:function(e,t,r){var a,o,i=this,s=!0,l=!1,u=void 0;try{for(var c,d=this.players[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var f=c.value;f.priority<=t&&this.beginStop(f)}}catch(e){l=!0,u=e}finally{try{s||null==d.return||d.return()}finally{if(l)throw u}}var p=(0,n.KM)(r.loop?(a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),o=o={loop:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(o)).forEach(function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(o,e))}),a):e);return new Promise(function(e){var n;i.players.push({id:i.nextId++,clip:p,time:0,speed:null!=(n=r.speed)?n:1,stopping:!1,stopTime:0,priority:t,resolve:e,loopOverride:!!r.loop})})}},{key:"beginStop",value:function(e){!e.stopping&&(e.stopping=!0,e.stopTime=e.time,e.clip.fadeOut<=0&&(e.clip.fadeOut=.15))}},{key:"advancePlayers",value:function(e){var t=!0,r=!1,n=void 0;try{for(var a,o=this.players[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=a.value;i.time+=e*i.speed,(i.stopping?i.time-i.stopTime>=i.clip.fadeOut:!i.clip.loop&&i.time>=i.clip.duration)&&i.resolve()}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}this.players=this.players.filter(function(e){return!(e.stopping?e.time-e.stopTime>=e.clip.fadeOut:!e.clip.loop&&e.time>=e.clip.duration)})}},{key:"runAutoBehaviors",value:function(){if(this.autoBehaviors){var e=this.time;if("speaking"===this.state&&!this.isGesturing&&e>=this.nextTalkAt){var t=a.AT[Math.floor(this.rand()*a.AT.length)],r=this.rand()>.5?"L":"R",n=(0,a.q5)(t,r);this.start(n,0,{speed:.9+.3*this.rand()}),this.nextTalkAt=e+n.duration+.2+1.1*this.rand()}if("thinking"===this.state&&!this.players.some(function(e){return!e.stopping&&"think"===e.clip.name})&&.02>this.rand()&&this.play("think",{side:this.rand()>.5?"L":"R"}),"listening"===this.state&&!this.isGesturing&&e>=this.nextNodAt&&(this.start((0,a.q5)("nod"),0,{speed:.85}),this.nextNodAt=e+2.8+3*this.rand()),!this.gazeManual&&e>=this.nextGlanceAt){var o="speaking"===this.state||"listening"===this.state;this.gazeGoal={yaw:(this.rand()-.5)*(o?.25:.7),pitch:(this.rand()-.5)*.25},this.nextGlanceAt=e+1.6+3*this.rand()}e>=this.nextBlinkAt&&(this.blinkStart=e,this.nextBlinkAt=e+2.2+3.8*this.rand())}}},{key:"updateBlink",value:function(){var e=this.time-this.blinkStart,t=0;e>=0&&e<.055?t=e/.055:e<.1?t=1:e<.18&&(t=1-(e-.1)/.08),this.blink=t}},{key:"applyStateStance",value:function(e){"listening"===this.state?(e.head[2]+=.1,e.neck[0]+=.03,e.spine[0]+=.06):"thinking"===this.state&&(e.head[0]+=-.05,e.head[1]+=.12)}},{key:"updateLocomotion",value:function(e){var t=this.walkTarget,r=this.root.yaw,n=!1;if(t){var a=t.x-this.root.x,o=t.z-this.root.z,i=Math.hypot(a,o);if(i>.04){var s=Math.atan2(a,o),l=y(s-this.root.yaw);this.root.yaw+=Math.max(-3.2*e,Math.min(3.2*e,l));var u=Math.min(.9,.25+1.6*i)*v(1-Math.abs(y(s-this.root.yaw))/.9);this.speed=h(this.speed,u,8,e);var c=Math.min(this.speed*e,i);this.root.x+=Math.sin(this.root.yaw)*c,this.root.z+=Math.cos(this.root.yaw)*c,n=this.speed>.05}else if(null!==t.arriveYaw){var d=y(t.arriveYaw-this.root.yaw);Math.abs(d)>.03?this.root.yaw+=Math.max(-3.2*e,Math.min(3.2*e,d)):this.finishWalk(),this.speed=h(this.speed,0,8,e)}else this.finishWalk(),this.speed=h(this.speed,0,8,e)}else this.speed=h(this.speed,0,8,e);this.yawRate=y(this.root.yaw-r)/e;var f=Math.abs(this.yawRate)>.5;if(this.walkBlend=h(this.walkBlend,n||f?1:0,6,e),this.walkBlend>.01){var p=this.speed*e+(f?Math.abs(this.yawRate)*e*.1:0);this.walkPhase+=p/.9*Math.PI*2}}},{key:"finishWalk",value:function(){var e=this.walkTarget;this.walkTarget=null,null==e||e.resolve()}},{key:"walkBob",value:function(){return .018*this.walkBlend*Math.abs(Math.sin(this.walkPhase))}},{key:"applyGait",value:function(e){var t=this.walkBlend;if(!(t<.01)){for(var r=this.walkPhase,n=Math.sin(r),a=Math.cos(r),o=.5*Math.min(1,.4+(this.speed+.1*Math.abs(this.yawRate))/.9),i=function(r,n){var a=e[r];a[0]+=(n[0]-a[0])*t,a[1]+=(n[1]-a[1])*t,a[2]+=(n[2]-a[2])*t},s=0,l=["L","R"];s<l.length;s++){var u=l[s],c="L"===u?1:-1,d="L"===u?1:-1,f=c*n,p=-o*f,m=.12+.85*Math.max(0,c*a)*(o/.5);i("hip".concat(u),[p,0,.03*d]),i("knee".concat(u),[m,0,0]),i("ankle".concat(u),[-(.8*(p+m)),0,0]),i("shoulder".concat(u),[.8*o*f,0,.1*d]),i("elbow".concat(u),[-.28-.3*Math.max(0,-f),0,0])}i("spine",[.05,-.1*n,0]),i("chest",[0,.14*n,0]),i("hips",[0,.1*n,.03*a])}}},{key:"applyAdditive",value:function(e,t){var r,n=this.time,a=Math.sin(1.55*n);if(e.chest[0]+=.014*a,e.spine[0]+=.008*a,e.shoulderL[2]+=.012*a,e.shoulderR[2]-=.012*a,e.hips[1]+=.025*Math.sin(.43*n)*(1-this.walkBlend),e.hips[2]+=.012*Math.sin(.31*n+.7)*(1-this.walkBlend),e.head[2]+=.014*Math.sin(.71*n+1.1),"speaking"===this.state){var o=.02+.1*this.speechLevel;e.head[0]+=Math.sin(7.3*n)*o*.6+Math.sin(3.1*n)*o,e.head[1]+=Math.sin(2.3*n)*o*1.5}var i=null!=(r=this.gazeManual)?r:this.gazeGoal;this.gaze.yaw=h(this.gaze.yaw,i.yaw,9,t),this.gaze.pitch=h(this.gaze.pitch,i.pitch,9,t);var s=this.gaze,l=s.yaw,u=s.pitch;e.head[1]+=.55*l,e.neck[1]+=.3*l,e.chest[1]+=.12*l,e.head[0]+=-(.6*u),e.neck[0]+=-(.3*u)}},{key:"updateHands",value:function(e,t){for(var r=0,n=["L","R"];r<n.length;r++){var a=n[r],u=null!=(g=this.handManual[a])?g:t[a]?i[t[a]]:i.relaxed;this.handGoal[a]=u;for(var c=this.hand[a],f=0;f<5;f++)c.curl[f]=h(c.curl[f],u.curl[f],18,e);c.thumbOut=h(c.thumbOut,u.thumbOut,18,e);var p=function(e,t,r){var n="L"===e?1:-1,a={};return o.VC.forEach(function(o,i){var u=Math.min(1,Math.max(0,t[i])),c=[0,0,-n*u*s[i]],d=[0,0,-n*u*l[i]];"thumb"===o&&(c[0]=-r),a["".concat(o).concat(e,"1")]=c,a["".concat(o).concat(e,"2")]=d}),a}(a,c.curl,c.thumbOut),m=!0,y=!1,v=void 0;try{for(var g,b,x=Object.entries(p)[Symbol.iterator]();!(m=(b=x.next()).done);m=!0){var w=d(b.value,2),j=w[0],O=w[1];this.pose[j][0]=O[0],this.pose[j][1]=O[1],this.pose[j][2]=O[2]}}catch(e){y=!0,v=e}finally{try{m||null==x.return||x.return()}finally{if(y)throw v}}}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}()},9881(e,t,r){"use strict";r.d(t,{AT:()=>m,kh:()=>f,q5:()=>h,rG:()=>p});var n=r(5898);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function s(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return a(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){var t=(0,n.Mj)(e);return i(o({},e),{keys:e.keys.map(function(e,r){var n,a,s,l;return i(o({},e),{pose:o({},null!=(n=e.pose)?n:{},null!=(a=t.keys[r].pose)?a:{}),hands:o({},null!=(s=e.hands)?s:{},null!=(l=t.keys[r].hands)?l:{})})})})}function u(e,t,r,n,a){for(var o=[],i=0;i<2*r;i++)o.push({t:e+i*t/2,pose:i%2==0?n:a});return o}var c={name:"wave",duration:2.1,keys:[{t:.4,pose:{shoulderL:[-.1,1.45,1.1],elbowL:[-1.45,0,0],wristL:[0,0,0],head:[0,0,-.1],chest:[0,0,-.04]},hands:{L:"open"}}].concat(s(u(.4,.4,3,{shoulderL:[-.1,1.45,1.1],elbowL:[-1.15,0,0],wristL:[0,0,.3]},{shoulderL:[-.1,1.45,1.1],elbowL:[-1.85,0,0],wristL:[0,0,-.3]}).slice(1)),[{t:1.75,pose:{shoulderL:[-.1,1.45,1.1],elbowL:[-1.45,0,0],head:[0,0,-.1]}}])},d=i(o({},c),{name:"greet",keys:s(c.keys).concat([{t:.3,pose:{head:[.12,.25,-.08],neck:[.05,.1,0]}},{t:1.7,pose:{head:[.12,.25,-.08],neck:[.05,.1,0]}}])}),f={wave:{def:c,sided:!0},greet:{def:d,sided:!0},nod:{def:{name:"nod",duration:1.1,fadeIn:.1,fadeOut:.2,keys:[{t:.18,pose:{head:[.32,0,0],neck:[.1,0,0]}},{t:.36,pose:{head:[-.04,0,0],neck:[0,0,0]}},{t:.54,pose:{head:[.32,0,0],neck:[.1,0,0]}},{t:.76,pose:{head:[0,0,0],neck:[0,0,0]}}]},sided:!1},shakeHead:{def:{name:"shakeHead",duration:1.3,fadeIn:.1,fadeOut:.2,keys:[{t:.16,pose:{head:[0,.42,0],neck:[0,.14,0]}},{t:.4,pose:{head:[0,-.42,0],neck:[0,-.14,0]}},{t:.64,pose:{head:[0,.38,0],neck:[0,.12,0]}},{t:.88,pose:{head:[0,-.3,0],neck:[0,-.1,0]}},{t:1.1,pose:{head:[0,0,0],neck:[0,0,0]}}]},sided:!1},tiltHead:{def:{name:"tiltHead",duration:1.8,keys:[{t:.4,pose:{head:[-.05,.12,-.3],neck:[0,.05,-.1]}},{t:1.4,pose:{head:[-.05,.12,-.3],neck:[0,.05,-.1]}}]},sided:!1},point:{def:{name:"point",duration:2.2,keys:[{t:.45,pose:{shoulderL:[-1.4,.15,.2],elbowL:[-.12,0,0],wristL:[0,-.2,0],chest:[0,-.12,0],head:[0,-.15,0]},hands:{L:"point"}},{t:1.7,pose:{shoulderL:[-1.4,.15,.2],elbowL:[-.12,0,0],wristL:[0,-.2,0],chest:[0,-.12,0],head:[0,-.15,0]}}]},sided:!0},thumbsUp:{def:{name:"thumbsUp",duration:2,keys:[{t:.45,pose:{shoulderL:[-.84,-.14,.34],elbowL:[-1.56,0,0],wristL:[0,0,0],head:[-.05,0,.08]},hands:{L:"thumbsUp"}},{t:1.5,pose:{shoulderL:[-.84,-.14,.34],elbowL:[-1.56,0,0],wristL:[0,0,0],head:[-.05,0,.08]}}]},sided:!0},openArms:{def:l({name:"openArms",duration:2.6,keys:[{t:.6,pose:{shoulderL:[-.35,.9,1.05],elbowL:[-.55,0,0],wristL:[0,0,0],head:[-.12,0,0],chest:[-.1,0,0]},hands:{L:"open"}},{t:2,pose:{shoulderL:[-.35,.9,1.05],elbowL:[-.55,0,0],wristL:[0,0,0],head:[-.12,0,0],chest:[-.1,0,0]}}]}),sided:!1},shrug:{def:l({name:"shrug",duration:1.9,keys:[{t:.35,pose:{shoulderL:[-.25,1,.45],elbowL:[-1.25,0,0],wristL:[0,.3,0],head:[0,0,.14],neck:[-.08,0,.05],chest:[-.05,0,0]},hands:{L:"open"}},{t:1.3,pose:{shoulderL:[-.25,1,.45],elbowL:[-1.25,0,0],wristL:[0,.3,0],head:[0,0,.14],neck:[-.08,0,.05]}}]}),sided:!1},think:{def:{name:"think",duration:3.2,keys:[{t:.6,pose:{shoulderL:[-.68,-1.05,-.57],elbowL:[-1.87,0,0],wristL:[-.25,0,0],head:[.1,-.18,-.12],neck:[.05,0,0],chest:[.04,0,0]},hands:{L:"relaxed"}},{t:2.6,pose:{shoulderL:[-.68,-1.05,-.57],elbowL:[-1.87,0,0],wristL:[-.25,0,0],head:[.1,-.18,-.12],neck:[.05,0,0]}}]},sided:!0},clap:{def:l({name:"clap",duration:1.9,keys:[{t:.3,pose:{shoulderL:[-.52,-.4,.18],elbowL:[-1.64,0,0],head:[.04,0,0]},hands:{L:"flat"}}].concat(s(u(.3,.3,4,{shoulderL:[-.52,-.4,.18],elbowL:[-1.64,0,0]},{shoulderL:[-.69,-.97,-.47],elbowL:[-1.06,0,0]}).slice(1)),[{t:1.6,pose:{shoulderL:[-.52,-.4,.18],elbowL:[-1.64,0,0]}}])}),sided:!1},bow:{def:{name:"bow",duration:2.4,keys:[{t:.8,pose:{spine:[.45,0,0],chest:[.18,0,0],neck:[.18,0,0],head:[.1,0,0],shoulderL:[-.3,.2,.15],shoulderR:[-.3,-.2,-.15],hipL:[-.25,0,.03],hipR:[-.25,0,-.03]}},{t:1.4,pose:{spine:[.45,0,0],chest:[.18,0,0],neck:[.18,0,0],head:[.1,0,0],shoulderL:[-.3,.2,.15],shoulderR:[-.3,-.2,-.15],hipL:[-.25,0,.03],hipR:[-.25,0,-.03]}}]},sided:!1},celebrate:{def:l({name:"celebrate",duration:2.2,keys:[{t:.3,pose:{shoulderL:[-.2,.3,2.45],elbowL:[-.35,0,0],head:[-.15,0,0],chest:[-.12,0,0]},hands:{L:"open"},lift:0},{t:.55,pose:{shoulderL:[-.2,.3,2.6],elbowL:[-.25,0,0],hipL:[.1,0,.03]},lift:.14},{t:.85,pose:{shoulderL:[-.2,.3,2.45],elbowL:[-.35,0,0]},lift:0},{t:1.1,pose:{shoulderL:[-.2,.3,2.6],elbowL:[-.25,0,0]},lift:.14},{t:1.4,pose:{shoulderL:[-.2,.3,2.45],elbowL:[-.35,0,0]},lift:0},{t:1.8,pose:{shoulderL:[-.2,.3,2.45],elbowL:[-.35,0,0]},lift:0}]}),sided:!1},present:{def:{name:"present",duration:2.2,keys:[{t:.5,pose:{shoulderL:[-.65,.95,.65],elbowL:[-1,0,0],wristL:[.1,.4,0],chest:[0,-.1,0],head:[0,-.12,0]},hands:{L:"cup"}},{t:1.7,pose:{shoulderL:[-.65,.95,.65],elbowL:[-1,0,0],wristL:[.1,.4,0],chest:[0,-.1,0],head:[0,-.12,0]}}]},sided:!0},talkA:{def:{name:"talkA",duration:1.1,fadeIn:.2,fadeOut:.3,keys:[{t:.3,pose:{shoulderL:[-.55,.5,.3],elbowL:[-1.1,0,0],head:[.05,.06,0]},hands:{L:"relaxed"}},{t:.6,pose:{shoulderL:[-.6,.5,.3],elbowL:[-.9,0,0],head:[-.03,.06,0]}}]},sided:!0},talkB:{def:{name:"talkB",duration:1.2,fadeIn:.2,fadeOut:.3,keys:[{t:.35,pose:{shoulderL:[-.5,.8,.5],elbowL:[-1,0,0],wristL:[.1,.3,0],head:[0,-.07,.05]},hands:{L:"cup"}},{t:.7,pose:{shoulderL:[-.5,.8,.55],elbowL:[-.8,0,0],wristL:[.1,.3,0]}}]},sided:!0},talkC:{def:{name:"talkC",duration:1.2,fadeIn:.2,fadeOut:.3,keys:[{t:.3,pose:{shoulderL:[-.45,.4,.25],elbowL:[-1.2,0,0],shoulderR:[-.45,-.4,-.25],elbowR:[-1.2,0,0],head:[.04,0,0]},hands:{L:"relaxed",R:"relaxed"}},{t:.65,pose:{shoulderL:[-.5,.4,.35],elbowL:[-1,0,0],shoulderR:[-.5,-.4,-.35],elbowR:[-1,0,0],head:[-.03,0,0]}}]},sided:!1}},p=Object.keys(f),m=["talkA","talkB","talkC"];function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"L",r=f[e];return r.sided&&"R"===t?(0,n.Mj)(r.def):r.def}},4942(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r.d(t,{BV:()=>s,Bm:()=>f,FW:()=>b,IR:()=>p,UQ:()=>i,VC:()=>l,a5:()=>h,iJ:()=>y,qS:()=>m,v$:()=>v,vR:()=>g});var i={hipsHeight:.62,upperArm:.25,foreArm:.23,thigh:.27,shin:.26,ankleHeight:.07,shoulderX:.27,hipX:.1},s=["L","R"],l=["thumb","index","middle","ring","pinky"],u=Math.PI,c=function(e,t,r){return[e,t,r]},d={thumb:c(-.034,-.03,.022),index:c(-.024,-.093,.004),middle:c(-.008,-.098,.004),ring:c(.008,-.094,.004),pinky:c(.023,-.087,.004)},f={thumb:[.034,.03],index:[.03,.026],middle:[.033,.028],ring:[.03,.026],pinky:[.024,.022]},p=function(){var e={},t=function(t,r){e[t]=r};t("hips",{parent:null,offset:c(0,i.hipsHeight,0),min:c(-.5,-.8,-.4),max:c(.5,.8,.4),order:"YXZ"}),t("spine",{parent:"hips",offset:c(0,.05,0),min:c(-.5,-.8,-.4),max:c(.7,.8,.4),order:"YXZ"}),t("chest",{parent:"spine",offset:c(0,.24,0),min:c(-.4,-.8,-.4),max:c(.6,.8,.4),order:"YXZ"}),t("neck",{parent:"chest",offset:c(0,.27,0),min:c(-.5,-.9,-.4),max:c(.6,.9,.4),order:"YXZ"}),t("head",{parent:"neck",offset:c(0,.06,0),min:c(-.6,-1,-.5),max:c(.7,1,.5),order:"YXZ"});var r=!0,p=!1,m=void 0;try{for(var h,y=s[Symbol.iterator]();!(r=(h=y.next()).done);r=!0)!function(){var e=h.value,r="L"===e?1:-1,s=function(e,t){return 1===r?{min:e,max:t}:{min:c(e[0],-t[1],-t[2]),max:c(t[0],-e[1],-e[2])}};t("shoulder".concat(e),o(a({parent:"chest",offset:c(r*i.shoulderX,.2,0)},s(c(-u,-1.7,-.9),c(1,1.7,u))),{order:"ZXY"})),t("elbow".concat(e),o(a({parent:"shoulder".concat(e),offset:c(0,-i.upperArm,0)},s(c(-2.6,-.3,-.1),c(.05,.3,.1))),{order:"XYZ"})),t("wrist".concat(e),o(a({parent:"elbow".concat(e),offset:c(0,-i.foreArm,0)},s(c(-1.1,-1.7,-.7),c(1.1,1.7,.7))),{order:"YXZ"})),t("hip".concat(e),o(a({parent:"hips",offset:c(r*i.hipX,-.02,0)},s(c(-1.7,-.6,-.4),c(.6,.6,.9))),{order:"XZY"})),t("knee".concat(e),{parent:"hip".concat(e),offset:c(0,-i.thigh,0),min:c(0,0,0),max:c(2.5,0,0),order:"XYZ"}),t("ankle".concat(e),o(a({parent:"knee".concat(e),offset:c(0,-i.shin,0)},s(c(-.6,-.3,-.3),c(.6,.3,.3))),{order:"XYZ"}));var p=!0,m=!1,y=void 0;try{for(var v,g=l[Symbol.iterator]();!(p=(v=g.next()).done);p=!0){var b,x=v.value,w=d[x],j=(b=f[x],function(e){if(Array.isArray(e))return e}(b)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(b)||function(e){if(e){if("string"==typeof e)return n(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,1)}}(b)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],O=function(e){return s(c(-.2,-.2,-e),c(.2,.2,.1))},S="thumb"===x?s(c(-1.5,-.5,-1.5),c(.5,.5,.1)):O(1.5);t("".concat(x).concat(e,"1"),o(a({parent:"wrist".concat(e),offset:c(r*w[0],w[1],w[2])},S),{order:"XYZ"})),t("".concat(x).concat(e,"2"),o(a({parent:"".concat(x).concat(e,"1"),offset:c(0,-j,0)},O(1.7)),{order:"XYZ"}))}}catch(e){m=!0,y=e}finally{try{p||null==g.return||g.return()}finally{if(m)throw y}}}()}catch(e){p=!0,m=e}finally{try{r||null==y.return||y.return()}finally{if(p)throw m}}return e}(),m=Object.keys(p),h=function(){var e={},t=!0,r=!1,n=void 0;try{for(var a,o=m[Symbol.iterator]();!(t=(a=o.next()).done);t=!0)e[a.value]=[]}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}var i=!0,s=!1,l=void 0;try{for(var u,c=m[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var d=u.value,f=p[d].parent;f&&e[f].push(d)}}catch(e){s=!0,l=e}finally{try{i||null==c.return||c.return()}finally{if(s)throw l}}return e}();function y(){var e={},t=!0,r=!1,n=void 0;try{for(var a,o=m[Symbol.iterator]();!(t=(a=o.next()).done);t=!0)e[a.value]=[0,0,0]}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}var i=!0,u=!1,c=void 0;try{for(var d,f=s[Symbol.iterator]();!(i=(d=f.next()).done);i=!0){var p=d.value,h="L"===p?1:-1;e["shoulder".concat(p)]=[0,0,.1*h],e["elbow".concat(p)]=[-.12,0,0],e["hip".concat(p)]=[0,0,.03*h];var y=!0,v=!1,g=void 0;try{for(var b,x=l[Symbol.iterator]();!(y=(b=x.next()).done);y=!0){var w=b.value,j="thumb"===w?.25:.18;e["".concat(w).concat(p,"1")]=[0,0,-h*j],e["".concat(w).concat(p,"2")]=[0,0,-h*j*1.2]}}catch(e){v=!0,g=e}finally{try{y||null==x.return||x.return()}finally{if(v)throw g}}}}catch(e){u=!0,c=e}finally{try{i||null==f.return||f.return()}finally{if(u)throw c}}return e}var v=y();function g(e){return e.includes("L")?e.replace("L","R"):e.includes("R")?e.replace("R","L"):e}function b(e,t){var r=p[e],n=r.min,a=r.max;return[Math.min(a[0],Math.max(n[0],t[0])),Math.min(a[1],Math.max(n[1],t[1])),Math.min(a[2],Math.max(n[2],t[2]))]}},1017(e,t,r){"use strict";r.d(t,{u:()=>i});var n=r(3645),a=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],o={primaryColor:{_type:n.Type.String,_description:"The color for displaying primary classification tags",_default:"red",_validators:[n.validators.oneOf(a)]},secondaryColor:{_type:n.Type.String,_description:"The color for displaying secondary classification tags",_default:"blue",_validators:[n.validators.oneOf(a)]}},i={"Brand color #1":{_default:"#005d5d",_type:n.Type.String},"Brand color #2":{_default:"#004144",_type:n.Type.String},"Brand color #3":{_default:"#007d79",_type:n.Type.String},implementationName:{_type:n.Type.String,_description:"The name of the deployment or authority displayed in the UI.",_default:"Framework"},preferredCalendar:{_type:n.Type.Object,_description:"Keys should be locale codes, values should be the preferred calendar for that locale. For example, {'am': 'ethiopic'}.",_default:{am:"ethiopic"},_elements:{_validators:[n.validators.oneOf(["buddhist","chinese","coptic","dangi","ethioaa","ethiopic","gregory","hebrew","indian","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","iso8601","japanese","persian","roc","islamicc"])]}},preferredDateLocale:{_type:n.Type.Object,_description:"Allows setting the locale used for date formatting for any browser locale. Keys should be locale codes, values should be the preferred locale for formatting dates. For example, {'en': 'en-US', 'fr-CA': 'en-CA'}.",_default:{en:"en-GB"},_elements:{_type:n.Type.String}},classificationTags:o}},5977(e,t,r){"use strict";let n,a,o,i,s,l,u;r.d(t,{dNG:()=>yp,JTN:()=>iZ,a8E:()=>kM,_RD:()=>vy,FNf:()=>Dz,eCO:()=>id,CW5:()=>Ej,rGP:()=>kH,wmT:()=>EF,Xhy:()=>Cq,yAz:()=>z.yA,aRn:()=>j,ttj:()=>CH,gaZ:()=>z.g,p7N:()=>z.p7,id:()=>su,ozP:()=>gy,fNA:()=>Sn,vFG:()=>iL,ciK:()=>z.ci,whL:()=>NQ,e_T:()=>vO,uBm:()=>gf,Exy:()=>z.Ex,Gg1:()=>z.Gg,yBj:()=>iW,pde:()=>z.pd,zMO:()=>z.zM,Q5Y:()=>CO,kNS:()=>OJ,_f_:()=>Dn,lbO:()=>kk,nFg:()=>iN,y0l:()=>Cx,rGw:()=>NT.rG,KGd:()=>D0,ivh:()=>Cj,Lfm:()=>i5,gHx:()=>kc,Vsm:()=>CI,Pfj:()=>Nc,WO_:()=>gd,T7Q:()=>kA,iq0:()=>Cc,Drp:()=>z.Dr,SvQ:()=>vt,QsE:()=>Eu,avX:()=>z.av,ilK:()=>yR,toY:()=>hi,d4y:()=>N2,P0c:()=>y6,gpz:()=>yn,O3W:()=>k$,c0o:()=>kd,EPe:()=>ho,jCr:()=>gL,hOu:()=>z.hO,No8:()=>kn,zYs:()=>yr,lgu:()=>Nk,rId:()=>z.rI,mOW:()=>N0,dKS:()=>ys,Bic:()=>kV,LdX:()=>Ck,AdF:()=>z.Ad,jJZ:()=>z.jJ,cwr:()=>z.cw,lFh:()=>Cd,z6M:()=>z.z6,Uve:()=>sd,XWY:()=>kx,CU$:()=>h_,ctS:()=>vx,Wjo:()=>gS,nBS:()=>Cs,ikI:()=>z.ik,o81:()=>NO,pm$:()=>ig,Hwc:()=>kE,Cff:()=>z.Cf,W5n:()=>lw,lGe:()=>z.lG,XWC:()=>O9,ZyP:()=>hB,NIm:()=>Sk,Kz$:()=>h4,P8U:()=>OF,EiO:()=>E4,m9A:()=>yW,AVA:()=>z.AV,BM2:()=>DU,xaH:()=>z.x,Wdn:()=>ik,GF9:()=>Dt,Fny:()=>OT,nD3:()=>z.nD,WyE:()=>vN,qUP:()=>iD,z0Y:()=>hZ,wn6:()=>Cv,EAD:()=>z.EA,YP7:()=>OY,uPh:()=>z.uP,m_M:()=>z.m_,LPu:()=>i0,SQm:()=>z.SQ,lvB:()=>z.lv,uTG:()=>h5,ZLm:()=>yC,ncA:()=>SP,EDM:()=>vD,i_j:()=>kG,b6Z:()=>CS,aJF:()=>i4,uge:()=>kD,mqB:()=>F,cJy:()=>gu,K0:()=>z.K0,ksK:()=>z.ks,Dsh:()=>hL,pdq:()=>kO,pyx:()=>CJ,AsP:()=>z.As,Qsg:()=>O8,ZLW:()=>kY,cjw:()=>O7,SwV:()=>im,XIK:()=>z.XI,GGC:()=>W,mmM:()=>il,FAs:()=>z.FA,Nqf:()=>h3,tKr:()=>ly,Kpk:()=>is,Wdr:()=>z.Wd,JJd:()=>ip,Ua6:()=>lb,gCo:()=>ER,lq$:()=>iX,QeH:()=>PI,lok:()=>yY,hae:()=>O4,uDL:()=>Du,k$k:()=>z.k$,gz6:()=>kr,y8:()=>yJ,D3D:()=>ib,BIq:()=>Nw,dOG:()=>z.dO,YJP:()=>ix,XL1:()=>z.XL,pJo:()=>Os,REV:()=>ir,frg:()=>El,ruM:()=>z.ru,ZLN:()=>ia,OeE:()=>vl,Fmw:()=>vo,CTc:()=>iu,uWG:()=>y$,paI:()=>D4,osL:()=>so,x9q:()=>vm,MiD:()=>NE,EJV:()=>sr,drd:()=>hp,mIk:()=>CF,flY:()=>ii,Bcw:()=>z.Bc,tp2:()=>SE,UcB:()=>kR,FcD:()=>z.Fc,TND:()=>z.TN,F$l:()=>Em,OoY:()=>Ny,b1c:()=>i7,T7$:()=>TL,zfR:()=>hF,ICb:()=>kZ,mBJ:()=>z.mB,iRo:()=>E5,QpY:()=>lg,tUM:()=>z.tU,d1P:()=>yU,xlj:()=>kP,q__:()=>yh,s3U:()=>iA,LCd:()=>z.LC,XvC:()=>v3,Ycj:()=>Dc,_Jn:()=>N1,kxh:()=>Ou,bmf:()=>yg,GcC:()=>hq,ckU:()=>K,tdF:()=>yT,EA:()=>p,bqE:()=>ED,wvv:()=>z.wv,OuH:()=>z.Ou,Ddn:()=>D3,JvV:()=>ND,npY:()=>it,wwY:()=>iY,bF1:()=>yb,Cvq:()=>z.Cv,nA6:()=>z.nA,ndF:()=>z.nd,A0N:()=>z.A0,pYV:()=>i8,_kB:()=>Og,foY:()=>ky,hPu:()=>EO,HMX:()=>z.HM,Xac:()=>Tb,yde:()=>OU,eFc:()=>CG,iVR:()=>N5,HrQ:()=>z.Hr,gFP:()=>C_,Pyy:()=>iR,cOG:()=>z.cO,lyJ:()=>iU,pyG:()=>iE,A60:()=>io,qb_:()=>yS,Ogf:()=>TX,AFR:()=>TQ,nVd:()=>z.nV,aiS:()=>CW,v99:()=>yV,PtA:()=>sc,Fm9:()=>O5,C44:()=>Nd,j7C:()=>z.j7,TC2:()=>va,slS:()=>lx,CGR:()=>OQ,Apm:()=>DW,AnT:()=>kf,vY7:()=>D$,Ht1:()=>z.Ht,Hjg:()=>z.Hj,jT8:()=>Ph,FtQ:()=>iv,ofx:()=>NJ,PK0:()=>E3,KFv:()=>yx,OFC:()=>Et,_26:()=>z._2,ZrL:()=>i_,oVc:()=>Ew,Um2:()=>z.Um,mjw:()=>NA,Ia5:()=>z.I,Eg0:()=>hl,OC$:()=>i6,Nvq:()=>C2,p4K:()=>k5,u7L:()=>kb,Y26:()=>Ol,SLu:()=>Td,WIv:()=>i1,BDu:()=>S4,JU7:()=>z.JU,MO4:()=>sn,$Kb:()=>kw,qLc:()=>Ox,Xib:()=>z.Xi,YqK:()=>z.Yq,RPL:()=>km,DOo:()=>z.DO,dwU:()=>se,bDP:()=>ic,O_s:()=>lc,USm:()=>iO,G3_:()=>Pw,uFu:()=>iz,rmb:()=>TR,tyb:()=>z.ty,Njx:()=>z.Nj,biy:()=>go,cn:()=>w.cn,GYk:()=>ga,_PX:()=>OL,SCH:()=>iy,koC:()=>mQ,_e_:()=>iI,G_3:()=>vg,_1W:()=>vj,rv3:()=>i$,XaH:()=>iC,AOq:()=>EX,GRJ:()=>z.GR,RFy:()=>i3,x4I:()=>NS,jlY:()=>z.jl,SnF:()=>DX,LMw:()=>NC.L,_PB:()=>z._P,qpM:()=>O6,NGl:()=>E1,dce:()=>z.dc,F3N:()=>vs,RGi:()=>Dd,y$y:()=>z.y$,BpM:()=>h1,cxd:()=>q,rrK:()=>z.rr,e5j:()=>z.e5,wJ8:()=>TI,CH0:()=>vb,M56:()=>z.M5,n$t:()=>mq,RJr:()=>Rr,_Xm:()=>iV,Km0:()=>Nf,Y21:()=>ym,uQc:()=>iM,lHJ:()=>kX,BFY:()=>z.BF,r6L:()=>z.r6,Sc0:()=>z.Sc,vKP:()=>iw,XzH:()=>vh,vNL:()=>NZ,CUM:()=>z.CU,aN0:()=>function e(t,r){var n,a=(0,m1.Q_)(t),o=r.state,i=r.onWorkspaceGroupLaunch,s=r.workspaceGroupCleanup,l=r.workspaceToLaunch,u=function(){return vm}();if(u.getState().openWorkspaces.length){var c=u.getState().workspaceGroup;c?vr(null==c?void 0:c.name,function(){e(t,r)}):vg(function(){e(t,r)})}else u.setState(function(e){return ve(y7({},e),{workspaceGroup:{name:t,members:a.members,cleanup:s}})}),vO(t,o),null==i||i(),l&&va(l.name,null!=(n=l.additionalProps)?n:{})},DYW:()=>hJ,nys:()=>si,Tqd:()=>kv,DWK:()=>PN,BGy:()=>iK,X3I:()=>Cu,KId:()=>Oz,tMf:()=>vz,EDr:()=>yB,$m7:()=>z.$m,vJW:()=>yf,yDT:()=>sa,YpM:()=>Cw,V0J:()=>z.V0,sCq:()=>OB,TQT:()=>G,pd:()=>kI,PAB:()=>Rd,Zqu:()=>Ec,ub_:()=>z.ub,oSs:()=>S7,JrA:()=>lj,Ce6:()=>iP,tyG:()=>C9,$nd:()=>z.$n,Rt$:()=>iF,Plc:()=>No,BT6:()=>iB,zrV:()=>z.zr,hpF:()=>S9,Oi_:()=>ss,Pe5:()=>TF,NNe:()=>Oc,tDv:()=>z.tD,l6P:()=>Ek,NOx:()=>h2,uQD:()=>B.u,Int:()=>sp,oCk:()=>iS,Jbi:()=>DF,L33:()=>z.L3,KbA:()=>i9,ZIw:()=>z.ZI,Qnn:()=>NK,Ws0:()=>N4,SwB:()=>st,pTx:()=>gi,zkr:()=>kC,zLd:()=>S5,MJ8:()=>vd,AkA:()=>gc,SKX:()=>yy,AA7:()=>CL,qXl:()=>E2,JKc:()=>vf,zlb:()=>vu,lpj:()=>z.lp,WMK:()=>y,rZj:()=>iq,ZJt:()=>z.ZJ,KKH:()=>yv,Fe_:()=>DH,cQD:()=>iQ,Jc:()=>iT,lA$:()=>kj,Rnm:()=>iH,Zes:()=>i2,c75:()=>z.c7,aHM:()=>yI,D6i:()=>Ss,PPo:()=>iG,IHy:()=>kB,cBB:()=>TM,ulw:()=>z.ul,rQ0:()=>z.rQ,NAP:()=>iJ,oy0:()=>sf,lu9:()=>N6,Mtm:()=>ij,Esm:()=>z.Es,kE8:()=>ie,ZHE:()=>ih,wtE:()=>Sw,aXL:()=>kh,tCQ:()=>sl,hLN:()=>gl,f1b:()=>y5});var c,d,f,p={PHONE_MIN:0,PHONE_MAX:600,TABLET_MIN:601,TABLET_MAX:1023,SMALL_DESKTOP_MIN:1024,SMALL_DESKTOP_MAX:1439,LARGE_DESKTOP_MIN:1440,LARGE_DESKTOP_MAX:Number.MAX_SAFE_INTEGER};function m(){document.body.classList.toggle("egen-breakpoint-lt-tablet",window.innerWidth<p.TABLET_MIN),document.body.classList.toggle("egen-breakpoint-gt-phone",window.innerWidth>p.PHONE_MAX),document.body.classList.toggle("egen-breakpoint-gt-tablet",window.innerWidth>p.TABLET_MAX),document.body.classList.toggle("egen-breakpoint-lt-desktop",window.innerWidth<p.SMALL_DESKTOP_MIN),document.body.classList.toggle("egen-breakpoint-lt-small-desktop",window.innerWidth<p.SMALL_DESKTOP_MIN),document.body.classList.toggle("egen-breakpoint-lt-large-desktop",window.innerWidth<p.LARGE_DESKTOP_MIN),document.body.classList.toggle("egen-breakpoint-gt-small-desktop",window.innerWidth>p.SMALL_DESKTOP_MAX)}var h=!1;function y(){h||(window.addEventListener("resize",m),m(),h=!0)}var v=r(2883),g=r(8783),b=r.n(g),x=r(7388),w=r(8969);function j(e){var t=e.title,r=e.children,n="tablet"===(0,x.useLayoutType)();return(0,v.jsxs)("div",{className:(0,w.cn)("flex items-center justify-between bg-background py-3 pr-0 pl-4 rtl:pr-4 rtl:pl-0 rtl:text-right",n?"h-[4.5rem]":"h-12"),children:[(0,v.jsx)("h4",{className:(0,w.cn)("text-muted-foreground",n?"text-xl":"text-sm font-semibold","after:block after:w-8 after:border-b-[0.375rem] after:border-[var(--brand-03)] after:pt-[0.188rem] after:content-['']"),children:t}),r]})}var O=r(9663),S=r.n(O);let k={card:"ZR49+JboDUJ-rZd009NL2Q==",content:"wGiBg8JtDE4wDu50a1rBwQ==",title:"_8o0qKWrqsLfU-xPV9FP7tA==",description:"nePI8o3fZX0hGuSd1oF-Ug==","card--default":"_4aaDFC4-5EFEjU-ZytGX2A==","card--dots":"_3MCi6-tIzgijwVEPdAwVnA==",hLineTop:"T3d30RFOhsuR3DqFJQ-S4g==",hLineBottom:"N8hOsq7AUvXStj1KgO-73A==",dotsFrame:"_5Eodn9yav4xXH-dHQsiEdA==",dotsGrid:"inxpXwRLxbxb-YugLq4b3A==",dot:"A4o3BNCpdPG4gKRl78+3nQ==",dotsInner:"Kthd6Ro9Qk9wzPHN9bQ3iA==","card--gradient":"X3xGI9PfiQWJfKBjlGaxdQ==",gradientLineTop:"x3fj8T2FGjjQL5jvoDmxwg==",gradientLineBottom:"int7qnKHTg-S3xbRsy9hhg==",gradientSideLeft:"mO1kx1Eaf9VyRBc6rnRA3g==",gradientSideRight:"wcsee41jBKtlCH3cKxqbGg==",gradientInner:"_5+7CJYMWtxpNNRv493dONQ==","card--plus":"_3vnknW0uq-Izjc6is4NoJA==",plusIcon:"tEwUwT7+pse5SA9oTMCMjg==","plusIcon--topLeft":"_7emmrQjNIr0UFNANKF2-hg==","plusIcon--topRight":"ZQv2k5qsM5WWatK8ZPxWOA==","plusIcon--bottomLeft":"GA0Q6OWNRZnVAMeOF4aeEQ==","plusIcon--bottomRight":"_42fiCO1NytHQkO5emOI6vg==","card--neubrutalism":"rL+LZ+ljABjZ-Vy+xGt7ZQ==","card--inner":"_4nwLepzPdQFgdRW8C3BtRw==",innerPanel:"UQwcVmO-Z13Dw4pJAF2pHg==","card--lifted":"EmVOSdhnptqV2Ci5Dnmakw==","card--corners":"uuei+hJg6m-a0WTCmIKTkw==",cornerBracket:"zT0rgvLsNc6U7BmEH4aRVg==","cornerBracket--topLeft":"SJKTuRnhjub36OIzQ6HmuQ==","cornerBracket--topRight":"kdAxmqd4Ov+RhCkwpD5QeA==","cornerBracket--bottomLeft":"uMLKYc3bCR9p61rXEedC2Q==","cornerBracket--bottomRight":"hEzlT+a1mPBPorwJXzK3bw==","card--glass":"cwHLH5cdvNsnqW38pcMESQ==","card--mirror":"XzIP-WVff3dX8nxDnCWdRw==",mirrorSurface:"qoiowG+SFbGL6EBlYUrhIw==",mirrorShadow:"+DBMk9zm2eE5Ceys3m5CLg==","mirrorSurface--sm":"Ej1mhmsfJhlk-oLDMp4rAw==","mirrorSurface--default":"OGXThIgSrIpXDTDLmn9pVg==","mirrorSurface--lg":"KllNi7XUE8bjya-bIthuJg==","mirrorSurface--icon":"dnh+0qipEJOqR9tMpht39g=="};var E=function(e){var t=e.dotsColor;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:k.hLineTop}),(0,v.jsx)("div",{className:k.hLineBottom}),(0,v.jsx)("div",{className:k.dotsFrame,children:(0,v.jsxs)("div",{className:k.dotsGrid,children:[(0,v.jsx)("span",{className:k.dot,style:{background:t,transform:"translateX(-2.5px)"}}),(0,v.jsx)("span",{className:k.dot,style:{background:t,transform:"translateX(2.5px)",justifySelf:"end"}}),(0,v.jsx)("span",{className:k.dot,style:{background:t,transform:"translateX(-2.5px)"}}),(0,v.jsx)("span",{className:k.dot,style:{background:t,transform:"translateX(2.5px)",justifySelf:"end"}})]})})]})},P=function(){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:k.gradientLineTop}),(0,v.jsx)("div",{className:k.gradientLineBottom}),(0,v.jsx)("div",{className:k.gradientSideLeft}),(0,v.jsx)("div",{className:k.gradientSideRight})]})},A=["topLeft","topRight","bottomLeft","bottomRight"],D=function(){return(0,v.jsx)(v.Fragment,{children:A.map(function(e){return(0,v.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1,width:24,height:24,className:"".concat(k.plusIcon," ").concat(k["plusIcon--".concat(e)]),"aria-hidden":"true",children:(0,v.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m6-6H6"})},e)})})},C=function(){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"".concat(k.cornerBracket," ").concat(k["cornerBracket--topLeft"])}),(0,v.jsx)("div",{className:"".concat(k.cornerBracket," ").concat(k["cornerBracket--topRight"])}),(0,v.jsx)("div",{className:"".concat(k.cornerBracket," ").concat(k["cornerBracket--bottomLeft"])}),(0,v.jsx)("div",{className:"".concat(k.cornerBracket," ").concat(k["cornerBracket--bottomRight"])})]})};function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function N(e){if(Array.isArray(e))return e}function R(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function I(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function L(e,t){if(e){if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}}var F=(0,g.forwardRef)(function(e,t){var r,n=N(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||L(r)||R(),a=n[0],o=n.slice(1),i=a.variant,s=void 0===i?"default":i,l=a.size,u=a.title,c=a.description,d=a.children,f=a.className,p=a.style,m=a.contentClassName,h=a.contentStyle,y=a.dotsColor,g=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(a,["variant","size","title","description","children","className","style","contentClassName","contentStyle","dotsColor"]),b=(N(o)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(o)||L(o,1)||R())[0],x=(0,v.jsxs)("div",{className:S()(k.content,m),style:h,children:[u&&(0,v.jsx)("h3",{className:k.title,children:u}),c&&(0,v.jsx)("p",{className:k.description,children:c}),d]}),w=S()(k.card,k["card--".concat(s)],f);switch(s){case"dots":return(0,v.jsxs)("div",I(M({ref:b,className:w,style:p},g),{children:[(0,v.jsx)(E,{dotsColor:void 0===y?"var(--colors-success-500)":y}),(0,v.jsx)("div",{className:k.dotsInner,children:x})]}));case"gradient":return(0,v.jsxs)("div",I(M({ref:b,className:w,style:p},g),{children:[(0,v.jsx)(P,{}),(0,v.jsx)("div",{className:k.gradientInner,children:x})]}));case"inner":return(0,v.jsx)("div",I(M({ref:b,className:w,style:p},g),{children:(0,v.jsx)("div",{className:k.innerPanel,children:x})}));case"plus":return(0,v.jsxs)("div",I(M({ref:b,className:w,style:p},g),{children:[(0,v.jsx)(D,{}),x]}));case"corners":return(0,v.jsxs)("div",I(M({ref:b,className:w,style:p},g),{children:[(0,v.jsx)(C,{}),x]}));case"mirror":return(0,v.jsxs)("div",I(M({ref:b,className:w,style:p},g),{children:[(0,v.jsx)("div",{className:S()(k.mirrorSurface,k["mirrorSurface--".concat(void 0===l?"default":l)]),children:x}),(0,v.jsx)("div",{className:k.mirrorShadow})]}));default:return(0,v.jsx)("div",I(M({ref:b,className:w,style:p},g),{children:x}))}});F.displayName="DecoratedCard";var B=r(1017),V=r(5565),z=r(4625),W=function(e){var t,r,n=e.shouldShowBatchActions,a=e.totalSelected,o=e.totalCount,i=e.onCancel,s=e.onSelectAll,l=e.className,u=e.children,c=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["shouldShowBatchActions","totalSelected","totalCount","onCancel","onSelectAll","className","children"]);if(!(void 0===n||n))return null;var d=1===a?(0,V.V)("batchActionItemSelected","{{totalSelected}} item selected",{totalSelected:a}):(0,V.V)("batchActionsItemsSelected","{{totalSelected}} items selected",{totalSelected:a});return(0,v.jsxs)("div",(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({role:"toolbar","aria-label":d,className:(0,w.cn)("flex items-center gap-2 bg-primary px-4 py-2 text-primary-foreground",l)},c),r=r={children:[(0,v.jsx)("span",{className:"mr-auto text-sm font-semibold","aria-live":"polite",children:d}),u,s&&void 0!==o&&a<o?(0,v.jsx)(z.$n,{type:"button",variant:"ghost",size:"sm",onClick:s,className:"text-current hover:bg-white/15",children:(0,V.V)("selectAll","Select all")}):null,(0,v.jsx)(z.$n,{type:"button",variant:"ghost",size:"sm",onClick:i,className:"text-current hover:bg-white/15",children:(0,V.V)("cancel","Cancel")})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))};function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var H=(0,g.createContext)(null);function K(){var e=(0,g.useContext)(H);if(!e)throw Error("useCustomOverflowMenu must be used within a CustomOverflowMenu");return e}function G(e){var t,r=e.menuTitle,n=e.children,a=function(e){if(Array.isArray(e))return e}(t=b().useState(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return U(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return U(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=a[0],i=a[1],s=(0,x.useOnClickOutside)(function(){return i(!1)},o),l="tablet"===(0,x.useLayoutType)(),u=(0,g.useCallback)(function(){return i(function(e){return!e})},[]),c=(0,g.useRef)(null),d=(0,g.useRef)(null),f=(0,g.useId)(),p="custom-overflow-menu-trigger-".concat(f),m="custom-overflow-menu-".concat(f),h=(0,g.useCallback)(function(){var e;i(!1),null==(e=c.current)||e.focus()},[]),y=(0,g.useMemo)(function(){return{closeMenu:h}},[h]),w=(0,g.useCallback)(function(e){"Escape"===e.key&&o&&(e.stopPropagation(),h())},[h,o]),j=g.Children.toArray(n);(0,g.useEffect)(function(){if(o&&d.current){var e=d.current.querySelector('[role="menuitem"]:not([disabled])');null==e||e.focus()}},[o]);var O=(0,g.useCallback)(function(e){e.currentIndex;var t,r,n,a,o,i,s=e.direction,l=null==(r=d.current)?void 0:r.querySelectorAll('[role="menuitem"]:not([disabled])');if(null==l?void 0:l.length){var u=null!=(t=null==(a=document.activeElement)||null==(n=a.closest)?void 0:n.call(a,'[role="menuitem"]'))?t:document.activeElement,c=Array.from(l).indexOf(u);if(-1===c){null==(i=l[s>0?0:l.length-1])||i.focus();return}var f=c+s,p=f<0?l.length-1:f>=l.length?0:f;null==(o=l[p])||o.focus()}},[]),k=j.map(function(e,t){return(0,g.isValidElement)(e)?(0,g.cloneElement)(e,{closeMenu:h,handleOverflowMenuItemFocus:O,index:t}):e});return(0,v.jsxs)("div",{"data-overflow-menu":!0,className:"wwa-EyO9T50FvtnmyeARyw==",ref:s,children:[(0,v.jsx)("button",{type:"button",className:S()("FnRl3t5P+hDpfnpoDLIkYQ==",$({},"ECgECWELLn5BECr3OdXOew==",o)),"aria-controls":m,"aria-expanded":o,"aria-haspopup":"true",id:p,onClick:u,onKeyDown:w,ref:c,children:r}),(0,v.jsx)("div",{className:S()("_2rzmb0ibC+KEZt1WRdY7ow==",$({},"PXGXOWRgeozyfcBAS1-atg==",o)),"aria-labelledby":p,"data-placement":"bottom",id:m,onKeyDown:w,ref:d,role:"menu",tabIndex:-1,children:(0,v.jsx)("ul",{className:"_60sU2T+CmXLPmC+GtwyA8Q==","data-size":l?"lg":"md",children:(0,v.jsx)(H.Provider,{value:y,children:k})})})]})}function q(e){var t,r,n=e.itemText,a=e.onClick,o=e.isDelete,i=e.hasDivider,s=e.href,l=e.requireTitle,u=e.wrapperClassName,c=e.className,d=e.disabled,f=e.closeMenu,p=e.handleOverflowMenuItemFocus,m=(e.index,function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["itemText","onClick","isDelete","hasDivider","href","requireTitle","wrapperClassName","className","disabled","closeMenu","handleOverflowMenuItemFocus","index"])),h=(0,g.useContext)(H),y=null!=f?f:null==h?void 0:h.closeMenu,b=S()("_0kjBdwPSKb58BRpud6FCLg==",$({},"po-+9+2wrqjHmcWB7opb1Q==",o),c),x=function(e){null==a||a(e),null==y||y()},w=function(e){"ArrowDown"===e.key?(e.preventDefault(),null==p||p({direction:1})):"ArrowUp"===e.key&&(e.preventDefault(),null==p||p({direction:-1}))},j=l&&"string"==typeof n?n:void 0;return(0,v.jsx)("li",{role:"none",className:S()("QNUPMFTm0wy-G6Dx1-1jxw==",$({},"sSIaKPpo8AEp6CyNxbbuiA==",i),u),children:s?(0,v.jsx)("a",{role:"menuitem",href:s,className:b,title:j,onClick:x,onKeyDown:w,children:n}):(0,v.jsx)("button",(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){$(e,t,r[t])})}return e}({type:"button",role:"menuitem",className:b,disabled:d,title:j,onClick:x,onKeyDown:w},m),r=r={children:n},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))})}function Y(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}let X="u">typeof document?b().useLayoutEffect:()=>{},Z={prefix:String(Math.round(1e10*Math.random())),current:0},Q=b().createContext(Z),J=b().createContext(!1),ee=("u">typeof window&&window.document&&window.document.createElement,new WeakMap),et="function"==typeof b().useId?function(e){let t=b().useId(),[r]=(0,g.useState)(eo()),n=r?"react-aria":`react-aria${Z.prefix}`;return e||`${n}-${t}`}:function(e){let t=(0,g.useContext)(Q),r=function(e=!1){let t=(0,g.useContext)(Q),r=(0,g.useRef)(null);if(null===r.current&&!e){let e=b().__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let r=ee.get(e);null==r?ee.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==r.state&&(t.current=r.id,ee.delete(e))}r.current=++t.current}return r.current}(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`};function er(){return!1}function en(){return!0}function ea(e){return()=>{}}function eo(){return"function"==typeof b().useSyncExternalStore?b().useSyncExternalStore(ea,er,en):(0,g.useContext)(J)}let ei=!!("u">typeof window&&window.document&&window.document.createElement),es=new Map;"u">typeof FinalizationRegistry&&(n=new FinalizationRegistry(e=>{es.delete(e)}));let el=new WeakMap;function eu(e){let[t,r]=(0,g.useState)(e),a=(0,g.useRef)(null),o=et(t),i=(0,g.useRef)(null),s=el.get(i);if(n&&s!==o&&(null!=s&&n.unregister(i),n.register(i,o,i),el.set(i,o)),ei){let e=es.get(o);e&&!e.includes(a)?e.push(a):es.set(o,[a])}return X(()=>()=>{n&&(n.unregister(i),el.delete(i)),es.delete(o)},[o]),(0,g.useEffect)(()=>{let e=a.current;return e&&r(e),()=>{e&&(a.current=null)}}),o}function ec(e=[]){let t=eu(),[r,n]=function(e){let[t,r]=(0,g.useState)(e),n=(0,g.useRef)(t),a=(0,g.useRef)(null),o=(0,g.useRef)(()=>{if(!a.current)return;let e=a.current.next();if(e.done){a.current=null;return}n.current===e.value?o.current():r(e.value)});return X(()=>{n.current=t,a.current&&o.current()}),[t,(0,g.useCallback)(e=>{a.current=e(n.current),o.current()},[o])]}(t),a=(0,g.useCallback)(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return X(a,[t,a,...e]),r}function ed(...e){return 1===e.length&&e[0]?e[0]:t=>{let r=!1,n=e.map(e=>{let n=ef(e,t);return r||="function"==typeof n,n});if(r)return()=>{n.forEach((t,r)=>{"function"==typeof t?t():ef(e[r],null)})}}}function ef(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var ep=r(7064);function em(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let e in n){let r=t[e],a=n[e];"function"==typeof r&&"function"==typeof a&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=Y(r,a):("className"===e||"UNSAFE_className"===e)&&"string"==typeof r&&"string"==typeof a?t[e]=(0,ep.A)(r,a):"id"===e&&r&&a?t.id=function(e,t){if(e===t)return e;let r=es.get(e);if(r)return r.forEach(e=>e.current=t),t;let n=es.get(t);return n?(n.forEach(t=>t.current=e),e):t}(r,a):"ref"===e&&r&&a?t.ref=ed(r,a):t[e]=void 0!==a?a:r}}return t}function eh(e){let t=(0,g.useRef)(null),r=(0,g.useRef)(void 0),n=(0,g.useCallback)(t=>{if("function"==typeof e){let r=e(t);return()=>{"function"==typeof r?r():e(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,g.useMemo)(()=>({get current(){return t.current},set current(value){t.current=value,r.current&&(r.current(),r.current=void 0),null!=value&&(r.current=n(value))}}),[n])}let ey=Symbol("default");function ev({values:e,children:t}){for(let[r,n]of e)t=b().createElement(r.Provider,{value:n},t);return t}function eg(e){let{className:t,style:r,children:n,defaultClassName:a,defaultChildren:o,defaultStyle:i,values:s,render:l}=e;return(0,g.useMemo)(()=>{let e,u,c;return e="function"==typeof t?t({...s,defaultClassName:a}):t,u="function"==typeof r?r({...s,defaultStyle:i||{}}):r,c="function"==typeof n?n({...s,defaultChildren:o}):null==n?o:n,{className:e??a,style:u||i?{...i,...u}:void 0,children:c??o,"data-rac":"",render:l?e=>l(e,s):void 0}},[t,r,n,a,o,i,s,l])}function eb(e,t){let r=(0,g.useContext)(e);if(null===t)return null;if(r&&"object"==typeof r&&"slots"in r&&r.slots){let e=t||ey;if(!r.slots[e]){let e=new Intl.ListFormat().format(Object.keys(r.slots).map(e=>`"${e}"`)),n=t?`Invalid slot "${t}".`:"A slot prop is required.";throw Error(`${n} Valid slot names are ${e}.`)}return r.slots[e]}return r}function ex(e,t,r){let{ref:n,...a}=eb(r,e.slot)||{},o=eh((0,g.useMemo)(()=>ed(t,n),[t,n])),i=em(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&("function"==typeof a.style||"function"==typeof e.style?i.style=t=>{let r="function"==typeof a.style?a.style(t):a.style,n={...t.defaultStyle,...r},o="function"==typeof e.style?e.style({...t,defaultStyle:n}):e.style;return{...n,...o}}:i.style={...a.style,...e.style}),[i,o]}function ew(e=!0){let[t,r]=(0,g.useState)(e),n=(0,g.useRef)(!1),a=(0,g.useCallback)(e=>{n.current=!0,r(!!e)},[]);return X(()=>{n.current||r(!1)},[]),[a,t]}function ej(e){let t=/^(data-.*)$/,r={};for(let n in e)t.test(n)||(r[n]=e[n]);return r}function eO(e,t,r){let{render:n,...a}=t,o=(0,g.useRef)(null),i=(0,g.useMemo)(()=>ed(r,o),[r,o]);X(()=>{},[e,n]);let s={...a,ref:i};return n?n(s,void 0):b().createElement(e,s)}let eS={},ek=new Proxy({},{get(e,t){if("string"!=typeof t)return;let r=eS[t];return r||(r=(0,g.forwardRef)(eO.bind(null,t)),eS[t]=r),r}}),eE=(0,g.createContext)(null),eP=null;function eA(e,t="assertive",r=7e3){eP?eP.announce(e,t,r):(eP=new eD,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"u">typeof jest)?eP.announce(e,t,r):setTimeout(()=>{eP?.isAttached()&&eP?.announce(e,t,r)},100))}class eD{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"u">typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){if(!this.node)return;let n=document.createElement("div");"object"==typeof e?(n.setAttribute("role","img"),n.setAttribute("aria-labelledby",e["aria-labelledby"])):n.textContent=e,"assertive"===t?this.assertiveLog?.appendChild(n):this.politeLog?.appendChild(n),""!==e&&setTimeout(()=>{n.remove()},r)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}}let eC=new Set(["id"]),eT=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),eN=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),eR=new Set(["dir","lang","hidden","inert","translate"]),eM=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),eI=/^(data-.*)$/;function e_(e,t={}){let{labelable:r,isLink:n,global:a,events:o=a,propNames:i}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(eC.has(t)||r&&eT.has(t)||n&&eN.has(t)||a&&eR.has(t)||o&&(eM.has(t)||t.endsWith("Capture")&&eM.has(t.slice(0,-7)))||i?.has(t)||eI.test(t))&&(s[t]=e[t]);return s}function eL(e){if(function(){if(null==eF){eF=!1;try{document.createElement("div").focus({get preventScroll(){return eF=!0,!0}})}catch{}}return eF}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}(t)}}let eF=null,eB=e=>{var t,r;return"object"==typeof(t=e)&&null!=t&&"window"in t&&t.window===t?e.document:ez(r=e)&&9===r.nodeType?e:e?.ownerDocument??("u">typeof document?document:void 0)},eV=e=>{let t=eB(e);return t?.defaultView??("u">typeof window?window:void 0)};function ez(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType}function eW(e,t,r,n){if(null==r||null==e)return()=>{};let a=Array.isArray(e)?e:[e];for(let e of a)e.addEventListener(t,r,n);return()=>{for(let e of a)e.removeEventListener(t,r,n)}}function eU(e,t,r,n){if(null==e)return()=>{};let a=[];for(let o of Array.isArray(e)?e:[e]){let e=o.style.getPropertyValue(t),i=o.style.getPropertyPriority(t);o.style.setProperty(t,r,n),a.unshift(()=>{e?o.style.setProperty(t,e,i):o.style.removeProperty(t)})}return()=>{for(let e of a)e()}}function e$(e,t){return!!t&&!!e&&e.contains(t)}function eH(e){return e.target}function eK(e,t){if(null===t)return[];let r=[t=t??eV(e)];return r}function eG(e){if(!e)return!1;let t=e.getRootNode(),r=eV(e);if(!(t instanceof r.Document||t instanceof r.ShadowRoot))return!1;let n=t.activeElement;return null!=n&&e.contains(n)}let eq="u">typeof Element&&"checkVisibility"in Element.prototype;function eY(e,t){return eq?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):"#comment"!==e.nodeName&&function(e){let t=eV(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,a="none"!==r&&"hidden"!==n&&"collapse"!==n;if(a){let{getComputedStyle:t}=eV(e),{display:r,visibility:n}=t(e);a="none"!==r&&"hidden"!==n&&"collapse"!==n}return a}(e)&&!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))&&(!e.parentElement||eY(e.parentElement,e))}let eX=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],eZ=eX.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";eX.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let eQ=eX.join(':not([hidden]):not([tabindex="-1"]),');function eJ(e,t){return e.matches(eZ)&&!e1(e)&&(t?.skipVisibilityCheck||eY(e))}function e0(e){return e.matches(eQ)&&eY(e)&&!e1(e)}function e1(e){let t=e;for(;null!=t;){if(t instanceof eV(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function e2(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function e3(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function e4(e){let t=(0,g.useRef)({isFocused:!1,observer:null});return X(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,g.useCallback)(r=>{let n=eH(r);(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement)&&(t.current.isFocused=!0,n.addEventListener("focusout",r=>{if(t.current.isFocused=!1,n.disabled){let t=e2(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();n.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]}))},[e])}let e5=!1;function e6(e){if("u"<typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function e8(e){return"u">typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function e9(e){let t=null;return()=>(null==t&&(t=e()),t)}let e7=e9(function(){return e8(/^Mac/i)}),te=e9(function(){return e8(/^iPhone/i)}),tt=e9(function(){return e8(/^iPad/i)||e7()&&navigator.maxTouchPoints>1}),tr=e9(function(){return te()||tt()});e9(function(){return e7()||tr()});let tn=e9(function(){return e6(/AppleWebKit/i)&&(tr()||!ta())});e9(function(){return tn()&&!ta()&&!ti()});let ta=e9(function(){return e6(/Chrome|CriOS|CrMo/i)}),to=e9(function(){return e6(/Android/i)}),ti=e9(function(){return e6(/(Firefox|FxiOS)/i)});function ts(e){return""===e.pointerType&&!!e.isTrusted||(to()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function tl(e,t,r=!0){let{metaKey:n,ctrlKey:a,altKey:o,shiftKey:i}=t;!tn()&&ti()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(e7()?n=!0:a=!0);let s=tn()&&e7()&&!tt()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:n,ctrlKey:a,altKey:o,shiftKey:i}):new MouseEvent("click",{metaKey:n,ctrlKey:a,altKey:o,shiftKey:i,detail:1,bubbles:!0,cancelable:!0});tl.isOpening=r,eL(e),e.dispatchEvent(s),tl.isOpening=!1}tl.isOpening=!1;let tu=null,tc=new Set,td=new Map,tf=!1,tp=!1,tm={Tab:!0,Escape:!0};function th(e,t){for(let r of tc)r(e,t)}function ty(e){tf=!0,tl.isOpening||e.metaKey||!e7()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(tu="keyboard",th("keyboard",e))}function tv(e){tu="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(tf=!0,th("pointer",e))}function tg(e){!tl.isOpening&&ts(e)&&(tf=!0,tu="virtual")}function tb(e){if(e5)return;let t=eH(e),r=eV(t),n=eB(t);if(t===r){tp=!0;return}t!==n&&e.isTrusted&&(tf||tp||(tu="virtual",th("virtual",e)),tf=!1,tp=!1)}function tx(){e5||(tf=!1,tp=!0)}function tw(e){if("u"<typeof window||"u"<typeof document)return;let t=eV(e),r=eB(e);if(td.get(t))return;let n=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){tf=!0,n.apply(this,arguments)}}),r.addEventListener("keydown",ty,!0),r.addEventListener("keyup",ty,!0),r.addEventListener("click",tg,!0),t.addEventListener("focus",tb,!0),t.addEventListener("blur",tx,!1),"u">typeof PointerEvent&&(r.addEventListener("pointerdown",tv,!0),r.addEventListener("pointermove",tv,!0),r.addEventListener("pointerup",tv,!0)),t.addEventListener("beforeunload",()=>{tj(e)},{once:!0}),td.set(t,{focus:n})}let tj=(e,t)=>{let r=eV(e),n=eB(e);t&&n.removeEventListener("DOMContentLoaded",t),td.has(r)&&(Reflect.defineProperty(r.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:td.get(r).focus}),n.removeEventListener("keydown",ty,!0),n.removeEventListener("keyup",ty,!0),n.removeEventListener("click",tg,!0),r.removeEventListener("focus",tb,!0),r.removeEventListener("blur",tx,!1),"u">typeof PointerEvent&&(n.removeEventListener("pointerdown",tv,!0),n.removeEventListener("pointermove",tv,!0),n.removeEventListener("pointerup",tv,!0)),td.delete(r))};function tO(){return"pointer"!==tu}"u">typeof document&&("loading"!==(l=eB(void 0)).readyState?tw(void 0):l.addEventListener("DOMContentLoaded",()=>{tw(void 0)}));let tS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),tk=new Map,tE=new Set;function tP(){if("u"<typeof window)return;function e(e){return"propertyName"in e}let t=r=>{let n=eH(r);if(!e(r)||!n)return;let a=tk.get(n);if(a&&(a.delete(r.propertyName),0===a.size&&(n.removeEventListener("transitioncancel",t),tk.delete(n)),0===tk.size)){for(let e of tE)e();tE.clear()}};document.body.addEventListener("transitionrun",r=>{let n=eH(r);if(!e(r)||!n)return;let a=tk.get(n);a||(a=new Set,tk.set(n,a),n.addEventListener("transitioncancel",t,{once:!0})),a.add(r.propertyName)}),document.body.addEventListener("transitionend",t)}function tA(e){requestAnimationFrame(()=>{for(let[e]of tk)"isConnected"in e&&!e.isConnected&&tk.delete(e);0===tk.size?e():tE.add(e)})}function tD(e){if(!e.isConnected)return;let t=eB(e);if("virtual"===tu){let r=((e=document)=>e.activeElement)(t);tA(()=>{let n=((e=document)=>e.activeElement)(t);(n===r||n===t.body)&&e.isConnected&&eL(e)})}else eL(e)}function tC(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:a}=e,o=(0,g.useCallback)(e=>{if(eH(e)===e.currentTarget)return n&&n(e),a&&a(!1),!0},[n,a]),i=e4(o),s=(0,g.useCallback)(e=>{let t=eH(e),n=eB(t),o=n?((e=document)=>e.activeElement)(n):((e=document)=>e.activeElement)();t===e.currentTarget&&t===o&&(r&&r(e),a&&a(!0),i(e))},[a,r,i]);return{focusProps:{onFocus:!t&&(r||a||n)?s:void 0,onBlur:!t&&(n||a)?o:void 0}}}function tT(e){if(e)return t=>{let r=!0;e({...t,preventDefault(){t.preventDefault()},isDefaultPrevented:()=>t.isDefaultPrevented(),stopPropagation(){r=!0},continuePropagation(){r=!1,"function"==typeof t.continuePropagation&&t.continuePropagation()},isPropagationStopped:()=>r}),r&&!("function"==typeof t.isPropagationStopped&&t.isPropagationStopped())&&t.stopPropagation()}}"u">typeof document&&("loading"!==document.readyState?tP():document.addEventListener("DOMContentLoaded",tP));let tN=new Set(["shift","alt","control","meta","mod"]),tR=["Alt","Control","Meta","Shift"];function tM(e){return tR.filter(t=>e.has(t))}function tI(e){return e.toLowerCase()}let t_={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function tL(e){let t,r,{shortcuts:n,allowRepeats:a=!1,allowComposing:o=!1}=e;if(n){let i=function(e){let t=new Map;for(let[r,n]of Object.entries(e)){let e=function(e){let t=e.split("+").reduce((e,t)=>{let r=t.toLowerCase();return tN.has(r)?"shift"===r?e.shift=!0:"alt"===r?e.alt=!0:"control"===r?e.ctrl=!0:"meta"===r?e.meta=!0:"mod"===r&&(e.mod=!0):e.key=t,e},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(""===t.key)throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}(r);t.set(function(e){let t,r,n,a=tM((t=new Set,e.alt&&t.add("Alt"),e.shift&&t.add("Shift"),e.ctrl&&t.add("Control"),e.meta&&t.add("Meta"),e.mod&&t.add(e7()?"Meta":"Control"),t)),o=null!=(n=t_[r=tI(e.key)])?n:r;return a.length>0?`${a.join("+")}+${o}`:o}(e),n)}return e=>{let r,n,a,o=(n=tM((r=new Set,e.altKey&&r.add("Alt"),e.ctrlKey&&r.add("Control"),e.metaKey&&r.add("Meta"),e.shiftKey&&r.add("Shift"),r)),a=tI(e.key),(n.length>0?`${n.join("+")}+`:"")+a),i=t.get(o),s=i?.(e);void 0===s&&void 0!==i?s={shouldContinuePropagation:!1,shouldPreventDefault:!0}:"boolean"==typeof s&&(s={shouldContinuePropagation:!s,shouldPreventDefault:s}),s?.shouldPreventDefault&&e.preventDefault(),(!i||s?.shouldContinuePropagation)&&e.continuePropagation()}}(n),s=tT(e=>{!e$(e.currentTarget,eH(e))||e.nativeEvent?.repeat&&!a||e.nativeEvent?.isComposing&&!o?e.continuePropagation():i(e)}),l=tT(e=>{!e$(e.currentTarget,eH(e))||e.nativeEvent?.repeat&&!a||e.nativeEvent?.isComposing,e.continuePropagation()});t=e.onKeyDown?Y(e.onKeyDown,s):s,r=e.onKeyUp?Y(e.onKeyUp,l):l}else t=tT(e.onKeyDown),r=tT(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:t,onKeyUp:r}}}function tF(e,t){X(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}let tB=b().createContext(null);function tV(e,t){let{focusProps:r}=tC(e),{keyboardProps:n}=tL(e),a=em(r,n),o=function(e){let t=(0,g.useContext)(tB)||{};tF(t,e);let{ref:r,...n}=t;return n}(t),i=e.isDisabled?{}:o,s=(0,g.useRef)(e.autoFocus);(0,g.useEffect)(()=>{s.current&&t.current&&tD(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:em({...a,tabIndex:l},i)}}b().forwardRef(function(e,t){let{children:r,...n}=e,a=eh(t),o={...n,ref:a};return b().createElement(tB.Provider,{value:o},r)});let tz="default",tW="",tU=new WeakMap;function t$(e){if(tr()&&tn())"disabled"===tz&&(tz="restoring",setTimeout(()=>{tA(()=>{if("restoring"===tz){let t=eB(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=tW||""),tW="",tz="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&tU.has(e)){let t=tU.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[r]&&(e.style[r]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),tU.delete(e)}}let tH=new WeakMap;function tK(e){let t=eB(e),r=tH.get(t);return void 0!==(r??=function(e,t){let r,n=eV(t),a=eB(t);if(null==a||null==n)return;let o=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,i=a.querySelector(o);return i&&i instanceof n.HTMLMetaElement&&("csp-nonce"===e&&i.nonce&&(r??=i.nonce||void 0),i.content&&(r??=i.content||void 0)),"csp-nonce"===e&&(r??=n.__webpack_nonce__||globalThis.__webpack_nonce__||void 0),r}("csp-nonce",t))&&tH.set(t,r),r}let tG=b().createContext({register:()=>{}});tG.displayName="PressResponderContext";let tq=b().useInsertionEffect??X;function tY(e){let t=(0,g.useRef)(null);return tq(()=>{t.current=e},[e]),(0,g.useCallback)((...e)=>{let r=t.current;return r?.(...e)},[])}function tX(){let e=(0,g.useRef)(new Map),t=(0,g.useCallback)((t,r,n,a)=>{let o=a?.once?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:o,options:a}),t.addEventListener(r,o,a)},[]),r=(0,g.useCallback)((t,r,n,a)=>{let o=e.current.get(n)?.fn||n;t.removeEventListener(r,o,a),e.current.delete(n)},[]),n=(0,g.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,g.useEffect)(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}var tZ=r(803),tQ=r.n(tZ);class tJ{#e;constructor(e,t,r,n){this.#e=!0;let a=n?.target??r.currentTarget;const o=a?.getBoundingClientRect();let i,s=0,l,u=null;null!=r.clientX&&null!=r.clientY&&(l=r.clientX,u=r.clientY),o&&(null!=l&&null!=u?(i=l-o.left,s=u-o.top):(i=o.width/2,s=o.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=i,this.y=s,this.key=r.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}let t0=Symbol("linkClicked"),t1="react-aria-pressable-style",t2="data-react-aria-pressable";function t3(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:a,onPressUp:o,onClick:i,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=function(e){let t=(0,g.useContext)(tG);if(t){let{register:r,ref:n,...a}=t;e=em(a,e),r()}return tF(t,e.ref),e}(e),[m,h]=(0,g.useState)(!1),y=(0,g.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:b}=tX(),x=(0,g.useCallback)((e,t)=>{let a=y.current;if(s||a.didFirePressStart)return!1;let o=!0;if(a.isTriggeringEvent=!0,n){let r=new tJ("pressstart",t,e);n(r),o=r.shouldStopPropagation}return r&&r(!0),a.isTriggeringEvent=!1,a.didFirePressStart=!0,h(!0),o},[s,n,r]),w=(0,g.useCallback)((e,n,o=!0)=>{let i=y.current;if(!i.didFirePressStart)return!1;i.didFirePressStart=!1,i.isTriggeringEvent=!0;let l=!0;if(a){let t=new tJ("pressend",n,e);a(t),l=t.shouldStopPropagation}if(r&&r(!1),h(!1),t&&o&&!s){let r=new tJ("press",n,e);t(r),l&&=r.shouldStopPropagation}return i.isTriggeringEvent=!1,l},[s,a,r,t]),j=tY(w),O=tY((0,g.useCallback)((e,t)=>{let r=y.current;if(s)return!1;if(o){r.isTriggeringEvent=!0;let n=new tJ("pressup",t,e);return o(n),r.isTriggeringEvent=!1,n.shouldStopPropagation}return!0},[s,o])),S=(0,g.useCallback)(e=>{let t=y.current;if(t.isPressed&&t.target){for(let r of(t.didFirePressStart&&null!=t.pointerType&&w(t6(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,b(),d||t$(t.target),t.disposables))r();t.disposables=[]}},[d,b,w]),k=tY(S);(0,g.useEffect)(()=>{s&&y.current.isPressed&&k({currentTarget:y.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let E=(0,g.useCallback)(e=>{c&&S(e)},[c,S]),P=(0,g.useCallback)(e=>{s||i?.(e)},[s,i]),A=(0,g.useCallback)((e,t)=>{if(!s&&i){let r=new MouseEvent("click",e);e3(r,t),i(e2(r))}},[s,i]),D=(0,g.useMemo)(()=>{let e=y.current,t={onKeyDown(t){if(t5(t.nativeEvent,t.currentTarget)&&e$(t.currentTarget,eH(t))){t8(eH(t),t.key)&&t.preventDefault();let n=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",n=x(t,"keyboard"));let a=t.currentTarget;v(eB(t.currentTarget),"keyup",Y(t=>{t5(t,a)&&!t.repeat&&e$(a,eH(t))&&e.target&&O(t6(e.target,t),"keyboard")},r),!0),n&&t.stopPropagation(),t.metaKey&&e7()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||e$(t.currentTarget,eH(t)))&&t&&0===t.button&&!e.isTriggeringEvent&&!tl.isOpening){let r=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||ts(t.nativeEvent))){let e=x(t,"virtual"),n=O(t,"virtual"),a=j(t,"virtual");P(t),r=e&&n&&a}else if(e.isPressed&&"keyboard"!==e.pointerType){let n=e.pointerType||t.nativeEvent.pointerType||"virtual",a=O(t6(t.currentTarget,t),n),o=j(t6(t.currentTarget,t),n,!0);r=a&&o,e.isOverTarget=!1,P(t),k(t)}e.ignoreEmulatedMouseEvents=!1,r&&t.stopPropagation()}}},r=t=>{if(e.isPressed&&e.target&&t5(t,e.target)){t8(eH(t),t.key)&&t.preventDefault();let r=eH(t),n=e$(e.target,r);j(t6(e.target,t),"keyboard",n),n&&A(t,e.target),b(),"Enter"!==t.key&&t4(e.target)&&e$(e.target,r)&&!t[t0]&&(t[t0]=!0,tl(e.target,t,!1)),e.isPressed=!1,e.metaKeyEvents?.delete(t.key)}else if("Meta"===t.key&&e.metaKeyEvents?.size){let t=e.metaKeyEvents;for(let r of(e.metaKeyEvents=void 0,t.values()))e.target?.dispatchEvent(new KeyboardEvent("keyup",r))}};if("u">typeof PointerEvent){t.onPointerDown=t=>{var a;if(0!==t.button||!e$(t.currentTarget,eH(t)))return;if(a=t.nativeEvent,!to()&&0===a.width&&0===a.height||to()&&1===a.width&&1===a.height&&0===a.pressure&&0===a.detail&&"mouse"===a.pointerType){e.pointerType="virtual";return}e.pointerType=t.pointerType;let o=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||function(e){if(tr()&&tn()){if("default"===tz){let t=eB(e);tW=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}tz="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";tU.set(e,e.style[t]),e.style[t]="none"}}(e.target),o=x(t,e.pointerType);let a=eH(t);"releasePointerCapture"in a&&("hasPointerCapture"in a?a.hasPointerCapture(t.pointerId)&&a.releasePointerCapture(t.pointerId):a.releasePointerCapture(t.pointerId)),v(eB(t.currentTarget),"pointerup",r,!1),v(eB(t.currentTarget),"pointercancel",n,!1)}o&&t.stopPropagation()},t.onMouseDown=t=>{if(e$(t.currentTarget,eH(t))&&0===t.button){if(u){let r=function(e){for(var t;e&&!eJ(e,{skipVisibilityCheck:!0});)e=e.parentElement;let r=((e=document)=>e.activeElement)(eV(e).document);if(!r||r===e)return;let n=e?.getRootNode(),a=null!=n&&ez(t=n)&&11===t.nodeType&&"host"in t?n:eV(e),o=t=>t===e||null!=t&&e$(e,t),i=e=>e===r||null!=r&&null!=e&&e$(r,e);e5=!0;let s=!1,l=e=>{(i(eH(e))||s)&&e.stopImmediatePropagation()},u=t=>{(i(eH(t))||s)&&(t.stopImmediatePropagation(),e||s||(s=!0,eL(r),f()))},c=e=>{(o(eH(e))||s)&&e.stopImmediatePropagation()},d=e=>{(o(eH(e))||s)&&(e.stopImmediatePropagation(),s||(s=!0,eL(r),f()))};a.addEventListener("blur",l,!0),a.addEventListener("focusout",u,!0),a.addEventListener("focusin",d,!0),a.addEventListener("focus",c,!0);let f=()=>{cancelAnimationFrame(p),a.removeEventListener("blur",l,!0),a.removeEventListener("focusout",u,!0),a.removeEventListener("focusin",d,!0),a.removeEventListener("focus",c,!0),e5=!1,s=!1},p=requestAnimationFrame(f);return f}(t.target);r&&e.disposables.push(r)}t.stopPropagation()}},t.onPointerUp=t=>{e$(t.currentTarget,eH(t))&&"virtual"!==e.pointerType&&(0!==t.button||e.isPressed||O(t,e.pointerType||t.pointerType))},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,x(t6(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,j(t6(e.target,t),e.pointerType,!1),E(t))};let r=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(e$(e.target,eH(t))&&null!=e.pointerType){let r=!1,n=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(r?k(t):(eL(e.target),e.target.click()))},80);v(t.currentTarget,"click",()=>r=!0,!0),e.disposables.push(()=>clearTimeout(n))}else k(t);e.isOverTarget=!1}},n=e=>{k(e)};t.onDragStart=e=>{e$(e.currentTarget,eH(e))&&k(e)}}return t},[v,s,u,b,d,E,x,P,A]);return(0,g.useEffect)(()=>{if(!f)return;let e=eB(f.current);if(!e||!e.head||e.getElementById(t1))return;let t=e.createElement("style");t.id=t1;let r=tK(e);r&&(t.nonce=r),t.textContent=`
2
+ @layer {
3
+ [${t2}] {
4
+ touch-action: pan-x pan-y pinch-zoom;
5
+ }
6
+ }
7
+ `.trim(),e.head.prepend(t)},[f]),(0,g.useEffect)(()=>{let e=y.current;return()=>{for(let t of(d||t$(e.target??void 0),e.disposables))t();e.disposables=[]}},[d]),{isPressed:l||m,pressProps:em(p,D,{[t2]:!0})}}function t4(e){return"A"===e.tagName&&e.hasAttribute("href")}function t5(e,t){let{key:r,code:n}=e,a=t.getAttribute("role");return("Enter"===r||" "===r||"Spacebar"===r||"Space"===n)&&!(t instanceof eV(t).HTMLInputElement&&!t7(t,r)||t instanceof eV(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===a||!a&&t4(t))&&"Enter"!==r)}function t6(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n,key:t.key}}function t8(e,t){return(!e7()||"Enter"!==t)&&(e instanceof HTMLInputElement?("Enter"!==t||"checkbox"!==e.type&&"radio"!==e.type)&&!t7(e,t):!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!t4(e)))}let t9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function t7(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:t9.has(e.type)}"u">typeof HTMLTemplateElement&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));let re=(0,g.createContext)(!1);function rt(e){let t=(t,r)=>(0,g.useContext)(re)?null:e(t,r);return t.displayName=e.displayName||e.name,(0,g.forwardRef)(t)}function rr(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:a}=e,o=(0,g.useRef)({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:s}=tX(),l=(0,g.useCallback)(e=>{e$(e.currentTarget,eH(e))&&o.current.isFocusWithin&&!e$(e.currentTarget,e.relatedTarget)&&(o.current.isFocusWithin=!1,s(),r&&r(e),a&&a(!1))},[r,a,o,s]),u=e4(l),c=(0,g.useCallback)(e=>{if(!e$(e.currentTarget,eH(e)))return;let t=eH(e),r=eB(t),s=((e=document)=>e.activeElement)(r);if(!o.current.isFocusWithin&&s===t){n&&n(e),a&&a(!0),o.current.isFocusWithin=!0,u(e);let t=e.currentTarget;i(r,"focus",e=>{let n=eH(e);if(o.current.isFocusWithin&&!e$(t,n)){let e=new r.defaultView.FocusEvent("blur",{relatedTarget:n});e3(e,t),l(e2(e))}},{capture:!0})}},[n,a,u,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}function rn(e={}){var t;let{autoFocus:r=!1,isTextInput:n,within:a}=e,o=(0,g.useRef)({isFocused:!1,isFocusVisible:r||tO()}),[i,s]=(0,g.useState)(!1),[l,u]=(0,g.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),c=(0,g.useCallback)(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),d=(0,g.useCallback)(e=>{o.current.isFocused=e,o.current.isFocusVisible=tO(),s(e),c()},[c]);t={enabled:i,isTextInput:n},tw(),(0,g.useEffect)(()=>{if(t?.enabled===!1)return;let e=(e,r)=>{var n;let a,i,s,l,u,d,f,p;n=!!t?.isTextInput,i=eB(a=r?eH(r):void 0),l=void 0!==(s=eV(a))?s.HTMLInputElement:HTMLInputElement,u=void 0!==s?s.HTMLTextAreaElement:HTMLTextAreaElement,d=void 0!==s?s.HTMLElement:HTMLElement,f=void 0!==s?s.KeyboardEvent:KeyboardEvent,p=((e=document)=>e.activeElement)(i),(n=n||p instanceof l&&!tS.has(p.type)||p instanceof u||p instanceof d&&p.isContentEditable)&&"keyboard"===e&&r instanceof f&&!tm[r.key]||(e=>{o.current.isFocusVisible=e,c()})(tO())};return tc.add(e),()=>{tc.delete(e)}},[n,i]);let{focusProps:f}=tC({isDisabled:a,onFocusChange:d}),{focusWithinProps:p}=rr({isDisabled:!a,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:l,focusProps:a?p:f}}let ra=!1,ro=0;function ri(e){"touch"===e.pointerType&&(ra=!0,setTimeout(()=>{ra=!1},500))}function rs(){let e=eB(null);if(void 0!==e)return 0===ro&&"u">typeof PointerEvent&&e.addEventListener("pointerup",ri),ro++,()=>{!(--ro>0)&&"u">typeof PointerEvent&&e.removeEventListener("pointerup",ri)}}function rl(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:a}=e,[o,i]=(0,g.useState)(!1),s=(0,g.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,g.useEffect)(rs,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=tX(),{hoverProps:c,triggerHoverEnd:d}=(0,g.useMemo)(()=>{let e=(e,t)=>{let a=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&a&&(s.isHovered=!1,u(),n&&n({type:"hoverend",target:a,pointerType:t}),r&&r(!1),i(!1))},o={};return"u">typeof PointerEvent&&(o.onPointerEnter=n=>{ra&&"mouse"===n.pointerType||((n,o)=>{if(s.pointerType=o,a||"touch"===o||s.isHovered||!e$(n.currentTarget,eH(n)))return;s.isHovered=!0;let u=n.currentTarget;s.target=u,l(eB(eH(n)),"pointerover",t=>{s.isHovered&&s.target&&!e$(s.target,eH(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:o}),r&&r(!0),i(!0)})(n,n.pointerType)},o.onPointerLeave=t=>{!a&&e$(t.currentTarget,eH(t))&&e(t,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,r,n,a,s,l,u]);return(0,g.useEffect)(()=>{a&&d({currentTarget:s.target},s.pointerType)},[a]),{hoverProps:c,isHovered:o}}let ru=(0,g.createContext)({}),rc=rt(function(e,t){[e,t]=ex(e,t,ru);let r=e,{isPending:n}=r,{buttonProps:a,isPressed:o}=function(e,t){let r,{elementType:n="button",isDisabled:a,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:l,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:m,rel:h,type:y="button"}=e;r="button"===n?{type:y,disabled:a,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:"button",href:"a"!==n||a?void 0:p,target:"a"===n?m:void 0,type:"input"===n?y:void 0,disabled:"input"===n?a:void 0,"aria-disabled":a&&"input"!==n?a:void 0,rel:"a"===n?h:void 0};let{pressProps:v,isPressed:g}=t3({onPressStart:i,onPressEnd:s,onPressChange:u,onPress:o,onPressUp:l,onClick:f,isDisabled:a,preventFocusOnPress:c,ref:t}),{focusableProps:b}=tV(e,t);d&&(b.tabIndex=a?-1:b.tabIndex);let x=em(b,v,e_(e,{labelable:!0}));return{isPressed:g,buttonProps:em(r,x,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}(e,t);a=function(e,t){if(t){for(let t in e)t.startsWith("on")&&!rd.test(t)&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}(a,n);let{focusProps:i,isFocused:s,isFocusVisible:l}=rn(e),{hoverProps:u,isHovered:c}=rl({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||o)&&!n,isFocused:s,isFocusVisible:l,isDisabled:e.isDisabled||!1,isPending:n??!1},f=eg({...e,values:d,defaultClassName:"react-aria-Button"}),p=eu(a.id),m=eu(),h=a["aria-labelledby"];n&&(h?h=`${h} ${m}`:a["aria-label"]&&(h=`${p} ${m}`));let y=(0,g.useRef)(n);(0,g.useEffect)(()=>{let e={"aria-labelledby":h||p};!y.current&&s&&n?eA(e,"assertive"):y.current&&s&&!n&&eA(e,"assertive"),y.current=n},[n,s,h,p]);let v=e_(e,{global:!0});return delete v.onClick,b().createElement(ek.button,{...em(v,f,a,i,u),type:"submit"===a.type&&n?"button":a.type,id:p,ref:t,"aria-labelledby":h,slot:e.slot||void 0,"aria-disabled":n?"true":a["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":c||void 0,"data-focused":s||void 0,"data-pending":n||void 0,"data-focus-visible":l||void 0},b().createElement(eE.Provider,{value:{id:m}},f.children))}),rd=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/,rf=(0,g.createContext)({}),rp=(0,g.createContext)({}),rm=rt(function(e,t){[e,t]=ex(e,t,rp);let{elementType:r="span",...n}=e,a=ek[r];return b().createElement(a,{className:"react-aria-Text",...n,ref:t})});var rh={};function ry(e,t){let r=(0,g.useRef)(null);return e&&r.current&&t(e,r.current)&&(e=r.current),r.current=e,e}rh={"ar-AE":{dateRange:e=>`${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,dateSelected:e=>`${e.date} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`\u{627}\u{644}\u{64A}\u{648}\u{645}\u{60C} ${e.date}`,todayDateSelected:e=>`\u{627}\u{644}\u{64A}\u{648}\u{645}\u{60C} ${e.date} \u{645}\u{62D}\u{62F}\u{62F}`},"bg-BG":{dateRange:e=>`${e.startDate} \u{434}\u{43E} ${e.endDate}`,dateSelected:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{435} ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`\u{414}\u{43D}\u{435}\u{441}, ${e.date}`,todayDateSelected:e=>`\u{414}\u{43D}\u{435}\u{441}, ${e.date} \u{441}\u{430} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}`},"cs-CZ":{dateRange:e=>`${e.startDate} a\u{17E} ${e.endDate}`,dateSelected:e=>`Vybr\xe1no ${e.date}`,finishRangeSelectionPrompt:"Kliknut\xedm dokonč\xedte v\xfdběr rozsahu dat",maximumDate:"Posledn\xed dostupn\xe9 datum",minimumDate:"Prvn\xed dostupn\xe9 datum",next:"Dalš\xed",previous:"Předchoz\xed",selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknut\xedm zah\xe1j\xedte v\xfdběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybr\xe1no ${e.date}`},"da-DK":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldf\xf8re valg af datoomr\xe5de",maximumDate:"Sidste ledige dato",minimumDate:"F\xf8rste ledige dato",next:"N\xe6ste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoomr\xe5de",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"de-DE":{dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgew\xe4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verf\xfcgbares Datum",minimumDate:"Erstes verf\xfcgbares Datum",next:"Weiter",previous:"Zur\xfcck",selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgew\xe4hlt`},"el-GR":{dateRange:e=>`${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,dateSelected:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`\u{3A3}\u{3AE}\u{3BC}\u{3B5}\u{3C1}\u{3B1}, ${e.date}`,todayDateSelected:e=>`\u{3A3}\u{3AE}\u{3BC}\u{3B5}\u{3C1}\u{3B1}, \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3C4}\u{3B7}\u{3BA}\u{3B5} ${e.date}`},"en-US":{previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`},"es-ES":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"\xdaltima fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`},"et-EE":{dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Kl\xf5psake kuup\xe4evavahemiku valimise l\xf5petamiseks",maximumDate:"Viimane saadaolev kuup\xe4ev",minimumDate:"Esimene saadaolev kuup\xe4ev",next:"J\xe4rgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Kl\xf5psake kuup\xe4evavahemiku valimiseks",todayDate:e=>`T\xe4na, ${e.date}`,todayDateSelected:e=>`T\xe4na, ${e.date} valitud`},"fi-FI":{dateRange:e=>`${e.startDate} \u{2013} ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta p\xe4iv\xe4m\xe4\xe4r\xe4alueen valinta napsauttamalla t\xe4t\xe4.",maximumDate:"Viimeinen varattavissa oleva p\xe4iv\xe4m\xe4\xe4r\xe4",minimumDate:"Ensimm\xe4inen varattavissa oleva p\xe4iv\xe4m\xe4\xe4r\xe4",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita p\xe4iv\xe4m\xe4\xe4r\xe4alueen valinta napsauttamalla t\xe4t\xe4.",todayDate:e=>`T\xe4n\xe4\xe4n, ${e.date}`,todayDateSelected:e=>`T\xe4n\xe4\xe4n, ${e.date} valittu`},"fr-FR":{dateRange:e=>`${e.startDate} \xe0 ${e.endDate}`,dateSelected:e=>`${e.date} s\xe9lectionn\xe9`,finishRangeSelectionPrompt:"Cliquer pour finir de s\xe9lectionner la plage de dates",maximumDate:"Derni\xe8re date disponible",minimumDate:"Premi\xe8re date disponible",next:"Suivant",previous:"Pr\xe9c\xe9dent",selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer \xe0 s\xe9lectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd\u{2019}hui, ${e.date} s\xe9lectionn\xe9`},"he-IL":{dateRange:e=>`${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,dateSelected:e=>`${e.date} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`\u{5D4}\u{5D9}\u{5D5}\u{5DD}, ${e.date}`,todayDateSelected:e=>`\u{5D4}\u{5D9}\u{5D5}\u{5DD}, ${e.date} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`},"hr-HR":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`},"hu-HU":{dateRange:e=>`${e.startDate}\u{2013}${e.endDate}`,dateSelected:e=>`${e.date} kiv\xe1lasztva`,finishRangeSelectionPrompt:"Kattintson a d\xe1tumtartom\xe1ny kijel\xf6l\xe9s\xe9nek befejez\xe9s\xe9hez",maximumDate:"Utols\xf3 el\xe9rhető d\xe1tum",minimumDate:"Az első el\xe9rhető d\xe1tum",next:"K\xf6vetkező",previous:"Előző",selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a d\xe1tumtartom\xe1ny kijel\xf6l\xe9s\xe9nek ind\xedt\xe1s\xe1hoz",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijel\xf6lve`},"it-IT":{dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`},"ja-JP":{dateRange:e=>`${e.startDate} \u{304B}\u{3089} ${e.endDate}`,dateSelected:e=>`${e.date} \u{3092}\u{9078}\u{629E}`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`\u{672C}\u{65E5}\u{3001}${e.date}`,todayDateSelected:e=>`\u{672C}\u{65E5}\u{3001}${e.date} \u{3092}\u{9078}\u{629E}`},"ko-KR":{dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} \u{C120}\u{D0DD}\u{B428}`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`\u{C624}\u{B298}, ${e.date}`,todayDateSelected:e=>`\u{C624}\u{B298}, ${e.date} \u{C120}\u{D0DD}\u{B428}`},"lt-LT":{dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`\u{160}iandien, ${e.date}`,todayDateSelected:e=>`\u{160}iandien, pasirinkta ${e.date}`},"lv-LV":{dateRange:e=>`No ${e.startDate} l\u{12B}dz ${e.endDate}`,dateSelected:e=>`Atlas\u{12B}ts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`\u{160}odien, ${e.date}`,todayDateSelected:e=>`Atlas\u{12B}ta \u{161}odiena, ${e.date}`},"nb-NO":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for \xe5 fullf\xf8re valg av datoomr\xe5de",maximumDate:"Siste tilgjengelige dato",minimumDate:"F\xf8rste tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for \xe5 starte valg av datoomr\xe5de",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"nl-NL":{dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`},"pl-PL":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wyb\xf3r zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wyb\xf3r zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`},"pt-BR":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a sele\xe7\xe3o do intervalo de datas",maximumDate:"\xdaltima data dispon\xedvel",minimumDate:"Primeira data dispon\xedvel",next:"Pr\xf3ximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a sele\xe7\xe3o do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"pt-PT":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"\xdaltima data dispon\xedvel",minimumDate:"Primeira data dispon\xedvel",next:"Pr\xf3ximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para come\xe7ar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"ro-RO":{dateRange:e=>`De la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,dateSelected:e=>`${e.date} selectat\u{103}`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"\xcenainte",selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a \xeencepe selecţia razei pentru dată",todayDate:e=>`Ast\u{103}zi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectat\u{103}`},"ru-RU":{dateRange:e=>`\u{421} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,dateSelected:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`\u{421}\u{435}\u{433}\u{43E}\u{434}\u{43D}\u{44F}, ${e.date}`,todayDateSelected:e=>`\u{421}\u{435}\u{433}\u{43E}\u{434}\u{43D}\u{44F}, \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`},"sk-SK":{dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybrat\xfd d\xe1tum ${e.date}`,finishRangeSelectionPrompt:"Kliknut\xedm dokonč\xedte v\xfdber rozsahu d\xe1tumov",maximumDate:"Posledn\xfd dostupn\xfd d\xe1tum",minimumDate:"Prv\xfd dostupn\xfd d\xe1tum",next:"Nasleduj\xface",previous:"Predch\xe1dzaj\xface",selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknut\xedm spust\xedte v\xfdber rozsahu d\xe1tumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybrat\xfd dne\u{161}n\xfd d\xe1tum ${e.date}`},"sl-SI":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u{10D}je: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`},"sr-SP":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`},"sv-SE":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka f\xf6r att avsluta val av datumintervall",maximumDate:"Sista tillg\xe4ngliga datum",minimumDate:"F\xf6rsta tillg\xe4ngliga datum",next:"N\xe4sta",previous:"F\xf6reg\xe5ende",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka f\xf6r att v\xe4lja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"tr-TR":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} se\xe7ildi`,finishRangeSelectionPrompt:"Tarih aralığı se\xe7imini tamamlamak i\xe7in tıklayın",maximumDate:"Son m\xfcsait tarih",minimumDate:"İlk m\xfcsait tarih",next:"Sonraki",previous:"\xd6nceki",selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı se\xe7imini başlatmak i\xe7in tıklayın",todayDate:e=>`Bug\xfcn, ${e.date}`,todayDateSelected:e=>`Bug\xfcn, ${e.date} se\xe7ildi`},"uk-UA":{dateRange:e=>`${e.startDate} \u{2014} ${e.endDate}`,dateSelected:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`\u{421}\u{44C}\u{43E}\u{433}\u{43E}\u{434}\u{43D}\u{456}, ${e.date}`,todayDateSelected:e=>`\u{421}\u{44C}\u{43E}\u{433}\u{43E}\u{434}\u{43D}\u{456}, \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`},"zh-CN":{dateRange:e=>`${e.startDate} \u{81F3} ${e.endDate}`,dateSelected:e=>`\u{5DF2}\u{9009}\u{62E9} ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`\u{4ECA}\u{5929}\u{FF0C}\u{5373} ${e.date}`,todayDateSelected:e=>`\u{5DF2}\u{9009}\u{62E9}\u{4ECA}\u{5929}\u{FF0C}\u{5373} ${e.date}`},"zh-TW":{dateRange:e=>`${e.startDate} \u{81F3} ${e.endDate}`,dateSelected:e=>`\u{5DF2}\u{9078}\u{53D6} ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`\u{4ECA}\u{5929}\u{FF0C}${e.date}`,todayDateSelected:e=>`\u{5DF2}\u{9078}\u{53D6}\u{4ECA}\u{5929}\u{FF0C}${e.date}`}};let rv=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),rg=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function rb(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),r="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(r)return"rtl"===r.direction;if(t.script)return rv.has(t.script)}let t=e.split("-")[0];return rg.has(t)}let rx=Symbol.for("react-aria.i18n.locale");function rw(){let e="u">typeof window&&window[rx]||"u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:rb(e)?"rtl":"ltr"}}let rj=rw(),rO=new Set;function rS(){for(let e of(rj=rw(),rO))e(rj)}function rk(){let e=eo(),[t,r]=(0,g.useState)(rj);return((0,g.useEffect)(()=>(0===rO.size&&window.addEventListener("languagechange",rS),rO.add(r),()=>{rO.delete(r),0===rO.size&&window.removeEventListener("languagechange",rS)}),[]),e)?{locale:"u">typeof window&&window[rx]||"en-US",direction:"ltr"}:t}let rE=b().createContext(null);function rP(e){let{locale:t,children:r}=e,n=b().useMemo(()=>({locale:t,direction:rb(t)?"rtl":"ltr"}),[t]);return b().createElement(rE.Provider,{value:n},r)}function rA(e){let{children:t}=e,r=rk();return b().createElement(rE.Provider,{value:r},t)}function rD(e){let{locale:t,children:r}=e;return t?b().createElement(rP,{locale:t,children:r}):b().createElement(rA,{children:r})}function rC(){let e=rk();return(0,g.useContext)(rE)||e}let rT=new Map;class rN{constructor(e,t={}){this.formatter=rM(e,t),this.options=t}format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.formatter.format(e)} \u{2013} ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let r=this.formatter.formatToParts(e),n=this.formatter.formatToParts(t);return[...r.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==r_&&(r_="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),r_&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let r=rM(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),n=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(e=>"hour"===e.type).value,10),a=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(e=>"hour"===e.type).value,10);if(0===n&&23===a)return"h23";if(24===n&&23===a)return"h24";if(0===n&&11===a)return"h11";if(12===n&&11===a)return"h12";throw Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}}let rR={true:{ja:"h11"},false:{}};function rM(e,t={}){if("boolean"==typeof t.hour12&&(null==rI&&(rI="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),rI)){let r=rR[String((t={...t}).hour12)][e.split("-")[0]],n=t.hour12?"h12":"h23";t.hourCycle=r??n,delete t.hour12}let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(rT.has(r))return rT.get(r);let n=new Intl.DateTimeFormat(e,t);return rT.set(r,n),n}let rI=null,r_=null;function rL(e){e=ry(e??{},rF);let{locale:t}=rC();return(0,g.useMemo)(()=>new rN(t,e),[t,e])}function rF(e,t){if(e===t)return!0;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(t[n]!==e[n])return!1;return!0}let rB=Symbol.for("react-aria.i18n.locale"),rV=Symbol.for("react-aria.i18n.strings");class rz{constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let r=this.getStringsForLocale(t)[e];if(!r)throw Error(`Could not find intl message ${e} in ${t} locale`);return r}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,r="en-US"){var n;if(t[e])return t[e];let a=(n=e,Intl.Locale?new Intl.Locale(n).language:n.split("-")[0]),o=function(e){if(Intl.Locale)return new Intl.Locale(e).script}(e);if(o&&t[`${a}-${o}`])return t[`${a}-${o}`];if(t[a])return t[a];for(let e in t)if(e.startsWith(a+"-"))return t[e];return t[r]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("u"<typeof window)return null;let t=window[rB];if(void 0===u){let e=window[rV];if(!e)return null;for(let r in u={},e)u[r]=new rz({[t]:e[r]},t)}let r=u?.[e];if(!r)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}}let rW=new Map,rU=new Map;class r${constructor(e,t){this.locale=e,this.strings=t}format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return"function"==typeof r?r(t,this):r}plural(e,t,r="cardinal"){let n=t["="+e];if(n)return"function"==typeof n?n():n;let a=this.locale+":"+r,o=rW.get(a);return o||(o=new Intl.PluralRules(this.locale,{type:r}),rW.set(a,o)),"function"==typeof(n=t[o.select(e)]||t.other)?n():n}number(e){let t=rU.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),rU.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return"function"==typeof r?r():r}}let rH=new WeakMap;function rK(e,t){let r;return t&&rz.getGlobalDictionaryForPackage(t)||((r=rH.get(e))||(r=new rz(e),rH.set(e,r)),r)}function rG(e,t){let{locale:r}=rC(),n=rK(e,t);return(0,g.useMemo)(()=>new r$(r,n),[r,n])}var rq=r(240);function rY(e){return e&&e.__esModule?e.default:e}let rX=new WeakMap;function rZ(e){return e?.calendar.identifier==="gregory"&&"BC"===e.era?"short":void 0}function rQ(e,t,r,n){let a=rG(rY(rh),"@react-aria/calendar"),o=rZ(e)||rZ(t),i=rL({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:r}),s=rL({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:r});return(0,g.useMemo)(()=>{if((0,rq.ro)(e,(0,rq.wH)(e))){let o=e,s=t;if(e.calendar.getFormattableMonth&&(o=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(s=t.calendar.getFormattableMonth(t)),(0,rq.ro)(t,(0,rq.p9)(e)))return i.format(o.toDate(r));if((0,rq.ro)(t,(0,rq.p9)(t)))return n?rJ(i,a,o,s,r):i.formatRange(o.toDate(r),s.toDate(r))}return n?rJ(s,a,e,t,r):s.formatRange(e.toDate(r),t.toDate(r))},[e,t,i,s,a,r,n])}function rJ(e,t,r,n,a){let o=e.formatRangeToParts(r.toDate(a),n.toDate(a)),i=-1;for(let e=0;e<o.length;e++){let t=o[e];if("shared"===t.source&&"literal"===t.type)i=e;else if("endRange"===t.source)break}let s="",l="";for(let e=0;e<o.length;e++)e<i?s+=o[e].value:e>i&&(l+=o[e].value);return t.format("dateRange",{startDate:s,endDate:l})}function r0(e,t){let{id:r,"aria-label":n,"aria-labelledby":a}=e;return r=eu(r),a&&n?a=[...new Set([r,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),n||a||!t||(n=t),{id:r,"aria-label":n,"aria-labelledby":a}}function r1(e,t){let r=(0,g.useRef)(!0),n=(0,g.useRef)(null),a=tY(e);(0,g.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]),(0,g.useEffect)(()=>{let e=n.current;r.current?r.current=!1:(!e||t.some((t,r)=>!Object.is(t,e[r])))&&a(),n.current=t},t)}function r2(e,t){var r;let n=rG((r=rh)&&r.__esModule?r.default:r,"@react-aria/calendar"),a=e_(e),o=rQ(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),i=rQ(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);r1(()=>{t.isFocused||eA(i)},[i]);let s=function(e){let t,r,n=rG(rY(rh),"@react-aria/calendar");"highlightedRange"in e?{start:t,end:r}=e.highlightedRange||{}:(t=Array.isArray(e.value)?e.value[0]:e.value??void 0,r=Array.isArray(e.value)?e.value.at(-1):e.value??void 0);let a=rL({weekday:"long",month:"long",year:"numeric",day:"numeric",era:rZ(t)||rZ(r),timeZone:e.timeZone}),{locale:o}=rC(),i=(0,g.useMemo)(()=>new Intl.ListFormat(o),[o]),s="anchorDate"in e?e.anchorDate:null;return(0,g.useMemo)(()=>{if(!s&&t&&r){if((0,rq.ro)(t,r)){let r=a.format(t.toDate(e.timeZone));return n.format("selectedDateDescription",{date:r})}else if("highlightedRange"in e){let o=rJ(a,n,t,r,e.timeZone);return n.format("selectedRangeDescription",{dateRange:o})}else if(Array.isArray(e.value)){let t=e.value.map(t=>a.format(t.toDate(e.timeZone))),r=i.format(t);return n.format("selectedDateDescription",{date:r})}}return""},[t,r,s,e,n,a,i])}(t);r1(()=>{s&&eA(s,"polite",4e3)},[s]);let l=ec([!!e.errorMessage,e.isInvalid,e.validationState]);rX.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:l,selectedDateDescription:s});let[u,c]=(0,g.useState)(!1),d=e.isDisabled||t.isNextVisibleRangeInvalid();d&&u&&(c(!1),t.setFocused(!0));let[f,p]=(0,g.useState)(!1),m=e.isDisabled||t.isPreviousVisibleRangeInvalid();return m&&f&&(p(!1),t.setFocused(!0)),{calendarProps:em(a,r0({id:e.id,"aria-label":[e["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:d,onFocusChange:c},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:m,onFocusChange:p},errorMessageProps:{id:l},title:o}}function r3(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=document.scrollingElement||document.documentElement,a=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return e===n&&"hidden"!==r.overflow&&(a=!0),a&&t&&(a=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),a}function r4(e,t){let r=e;for(r3(r,t)&&(r=r.parentElement);r&&!r3(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function r5(e,t){let r=[],n=document.scrollingElement||document.documentElement;for(;e&&(r3(e,t)&&r.push(e),e!==n);)e=e.parentElement;return r}function r6(e,t,r={}){if(e===t)return;let n=t.getBoundingClientRect();!function(e,t,r,n={}){let{block:a="nearest",inline:o="nearest"}=n,i=e.scrollTop,s=e.scrollLeft,l=e.getBoundingClientRect(),u=window.getComputedStyle(t),c=window.getComputedStyle(e),d=document.scrollingElement||document.documentElement,f=e===d,p=e===d?0:l.top,m=e===d?e.clientHeight:l.bottom,h=e===d?0:l.left,y=e===d?e.clientWidth:l.right,v=parseFloat(u.scrollMarginTop)||0,g=parseFloat(u.scrollMarginBottom)||0,b=parseFloat(u.scrollMarginLeft)||0,x=parseFloat(u.scrollMarginRight)||0,w=parseFloat(c.scrollPaddingTop)||0,j=parseFloat(c.scrollPaddingBottom)||0,O=parseFloat(c.scrollPaddingLeft)||0,S=parseFloat(c.scrollPaddingRight)||0,k=parseFloat(c.borderTopWidth)||0,E=parseFloat(c.borderBottomWidth)||0,P=parseFloat(c.borderLeftWidth)||0,A=parseFloat(c.borderRightWidth)||0,D=r.top-v,C=r.bottom+g,T=r.left-b,N=r.right+x,R=e===d?0:P+A,M=e===d?0:k+E,I=e===d?0:e.offsetWidth-e.clientWidth-R,L=e===d?0:e.offsetHeight-e.clientHeight-M,F=p+(f?0:k)+w,B=m-(f?0:E)-j-L,V=h+(f?0:P)+O,z=y-(f?0:A)-S;tr()&&tn()||"ltr"===c.direction?z-=I:"rtl"===c.direction&&(V+=I);let W=D<F||C>B,U=T<V||N>z;if(W&&"start"===a)i+=D-F;else if(W&&"center"===a)i+=(D+C)/2-(F+B)/2;else if(W&&"end"===a)i+=C-B;else if(W&&"nearest"===a){let e=D-F,t=C-B;i+=Math.abs(e)<=Math.abs(t)?e:t}if(U&&"start"===o)s+=T-V;else if(U&&"center"===o)s+=(T+N)/2-(V+z)/2;else if(U&&"end"===o)s+=N-z;else if(U&&"nearest"===o){let e=T-V,t=N-z;s+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:s,top:i})}(e,t,n,r)}function r8(e,t={}){let{containingElement:r}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(t).overflow){let{left:t,top:n}=e.getBoundingClientRect(),a=r5(e,!0);for(let t of a)r6(t,e);let{left:o,top:i}=e.getBoundingClientRect();if(Math.abs(t-o)>1||Math.abs(n-i)>1){for(let e of a=r?r5(r,!0):[])r6(e,r,{block:"center",inline:"center"});for(let t of r5(e,!0))r6(t,e)}}else{let{left:t,top:n}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:a,top:o}=e.getBoundingClientRect();(Math.abs(t-a)>1||Math.abs(n-o)>1)&&(r?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}let r9=0,r7=new Map;function ne(e){let[t,r]=(0,g.useState)();return X(()=>{if(!e)return;let t=r7.get(e);if(t)r(t.element.id);else{let n=`react-aria-description-${r9++}`;r(n);let a=document.createElement("div");a.id=n,a.style.display="none",a.textContent=e,document.body.appendChild(a),t={refCount:0,element:a},r7.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),r7.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function nt(e,t,r,n){let a=tY(r),o=null==r;(0,g.useEffect)(()=>{if(!o&&null!=e.current)return eW(e.current,t,a,n)},[e,t,n,o])}var nr=r(227),nn=r(9405);function na(e,t,r){return null!=t&&0>e.compare(t)||null!=r&&e.compare(r)>0}function no(e,t,r,n,a){let o={};for(let e in t)o[e]=Math.floor(t[e]/2),o[e]>0&&t[e]%2==0&&o[e]--;let i=ni(e,t,r).subtract(o);return nl(e,i,t,r,n,a)}function ni(e,t,r,n,a){let o=e;return t.years?o=(0,rq.D)(e):t.months?o=(0,rq.wH)(e):(t.weeks||t.days&&t.days>7)&&(o=(0,rq.kq)(e,r)),nl(e,o,t,r,n,a)}function ns(e,t,r,n,a){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let i=ni(e,t,r).subtract(o);return nl(e,i,t,r,n,a)}function nl(e,t,r,n,a,o){if(a&&e.compare(a)>=0){let e=(0,rq.ZI)(t,ni((0,nn.gw)(a),r,n));e&&(t=e)}if(o&&0>=e.compare(o)){let e=(0,rq.Py)(t,ns((0,nn.gw)(o),r,n));e&&(t=e)}return t}function nu(e,t,r){if(t){let r=(0,rq.ZI)(e,(0,nn.gw)(t));r&&(e=r)}if(r){let t=(0,rq.Py)(e,(0,nn.gw)(r));t&&(e=t)}return e}function nc(e,t,r){if(!r)return e;for(;e.compare(t)>=0&&r(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}let nd="u">typeof document?b().useInsertionEffect??b().useLayoutEffect:()=>{};function nf(e,t,r){let[n,a]=(0,g.useState)(e||t),o=(0,g.useRef)(n),i=(0,g.useRef)(void 0!==e),s=void 0!==e;(0,g.useEffect)(()=>{i.current,i.current=s},[s]);let l=s?e:n;nd(()=>{o.current=l});let[,u]=(0,g.useReducer)(()=>({}),{});return[l,(0,g.useCallback)((e,...t)=>{let n="function"==typeof e?e(o.current):e;Object.is(o.current,n)||(o.current=n,a(n),u(),r?.(n,...t))},[r])]}var np=r(345);function nm(e){let t=(0,g.useMemo)(()=>new rN(e.locale),[e.locale]),r=(0,g.useMemo)(()=>t.resolvedOptions(),[t]),{locale:n,createCalendar:a,visibleDuration:o={months:1},minValue:i,maxValue:s,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible",selectionMode:d="single",firstDayOfWeek:f,weeksInMonth:p}=e,m=(0,g.useMemo)(()=>a(r.calendar),[a,r.calendar]),[h,y]=nf(e.value,e.defaultValue??null,e.onChange),v=(0,g.useMemo)(()=>Array.isArray(h)?h.map(e=>(0,nn.yP)((0,nn.gw)(e),m)):h?(0,nn.yP)((0,nn.gw)(h),m):null,[h,m]),b=(0,g.useMemo)(()=>{let e=Array.isArray(h)?h[0]:h;return e&&"timeZone"in e?e.timeZone:r.timeZone},[h,r.timeZone]),[x,w]=nf((0,g.useMemo)(()=>e.focusedValue?nu((0,nn.yP)((0,nn.gw)(e.focusedValue),m),i,s):void 0,[e.focusedValue,m,i,s]),(0,g.useMemo)(()=>e.defaultFocusedValue?nu((0,nn.yP)((0,nn.gw)(e.defaultFocusedValue),m),i,s):v?nu(Array.isArray(v)?v[0]:v,i,s):nu((0,nn.yP)((0,rq.Ec)(b),m),i,s),[e.defaultFocusedValue,v,b,m,i,s]),e.onFocusChange),j=()=>{switch(l){case"start":return ni(x,o,n,i,s);case"end":return ns(x,o,n,i,s);default:return no(x,o,n,i,s)}},[O,S]=(0,g.useState)(j),[k,E]=(0,g.useState)(e.autoFocus||!1),[P,A]=(0,g.useState)(o);o!==P&&(o.days!==P.days||o.weeks!==P.weeks||o.months!==P.months||o.years!==P.years)&&(A(o),S(j()));let D=(0,g.useMemo)(()=>{let e={...o};return e.days?e.days--:e.days=-1,O.add(e)},[O,o]),[C,T]=(0,g.useState)(m);if(!(0,rq.Jg)(m,C)){let e=(0,nn.yP)(x,m);S(no(e,o,n,i,s)),w(e),T(m)}function N(e){w(e=nu(e,i,s))}function R(e){let t=nu(e,i,s),r=i??(0,rq.Py)(t,O),n=nc(t,r,u);if(!n)return null;let a=Array.isArray(h)?h[0]:h,o=(0,nn.yP)(n,a?.calendar||new(0,np.FG));return a&&"hour"in a?a.set(o):o}function M(t){if(!e.isDisabled&&!e.isReadOnly){if(null===t)return void y("multiple"===d?[]:null);if(Array.isArray(t))y(t.map(R).filter(Boolean));else{let e=R(t);e&&y(e)}}}na(x,i,s)?w(nu(x,i,s)):0>x.compare(O)?S(ns(x,o,n,i,s)):x.compare(D)>0&&S(ni(x,o,n,i,s));let I=(0,g.useMemo)(()=>!!v&&(Array.isArray(v)?v.some(e=>u?.(e)||na(e,i,s)):u?.(v)||na(v,i,s)),[v,u,i,s]),L=e.isInvalid||"invalid"===e.validationState||I,F=(0,g.useMemo)(()=>"visible"===c?o:nh(o),[c,o]);return{isDisabled:e.isDisabled??!1,isReadOnly:e.isReadOnly??!1,value:v,setValue:M,selectionMode:d,visibleDuration:o,visibleRange:{start:O,end:D},minValue:i,maxValue:s,focusedDate:x,timeZone:b,validationState:L?"invalid":null,isValueInvalid:L,setFocusedDate(e){N(e)},focusNextDay(){N(x.add({days:1}))},focusPreviousDay(){N(x.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&N(x.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&N(x.subtract({weeks:1}))},focusNextPage(){let e=O.add(F);w(nu(x.add(F),i,s)),S(ni(nl(x,e,F,n,i,s),F,n))},focusPreviousPage(){let e=O.subtract(F);w(nu(x.subtract(F),i,s)),S(ni(nl(x,e,F,n,i,s),F,n))},focusSectionStart(){o.days?N(O):o.weeks?N((0,rq.kq)(x,n)):(o.months||o.years)&&N((0,rq.wH)(x))},focusSectionEnd(){o.days?N(D):o.weeks?N((0,rq.$I)(x,n)):(o.months||o.years)&&N((0,rq.p9)(x))},focusNextSection(e){e||o.days?o.days?this.focusNextPage():o.weeks?N(x.add({months:1})):(o.months||o.years)&&N(x.add({years:1})):N(x.add(nh(o)))},focusPreviousSection(e){e||o.days?o.days?this.focusPreviousPage():o.weeks?N(x.subtract({months:1})):(o.months||o.years)&&N(x.subtract({years:1})):N(x.subtract(nh(o)))},selectFocusedDate(){u&&u(x)||this.selectDate(x)},selectDate(t){if(!e.isDisabled&&!e.isReadOnly)if("multiple"===d&&null!=t){let e=R(t);if(!e)return;let r=[];Array.isArray(h)?r=h:null!=h&&(r=[h]);let n=r.findIndex(t=>(0,rq.ro)(t,e));y(n>=0?r.slice(0,n).concat(r.slice(n+1)):[...r,e])}else M(t)},isFocused:k,setFocused:E,isInvalid:e=>na(e,i,s),isSelected(e){return!(!v||this.isCellDisabled(e)||this.isCellUnavailable(e))&&(Array.isArray(v)?v.some(t=>(0,rq.ro)(t,e)):(0,rq.ro)(e,v))},isCellFocused:e=>k&&x&&(0,rq.ro)(e,x),isCellDisabled(t){return e.isDisabled||0>t.compare(O)||t.compare(D)>0||this.isInvalid(t)},isCellUnavailable:t=>!!e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=O.subtract({days:1});return(0,rq.ro)(e,O)||this.isInvalid(e)},isNextVisibleRangeInvalid(){let e=D.add({days:1});return(0,rq.ro)(e,D)||this.isInvalid(e)},getDatesInWeek(e,t=O){let r=t.add({weeks:e}),a=[],i=o.days&&o.days<7?o.days:7;if(7===i){r=(0,rq.kq)(r,n,f);let e=(0,rq.SJ)(r,n,f);for(let t=0;t<e;t++)a.push(null)}for(;a.length<i;){a.push(r);let e=r.add({days:1});if((0,rq.ro)(r,e))break;r=e}for(;a.length<i;)a.push(null);return a},getWeeksInMonth(e=O){let t=p||(0,rq.RZ)(e,n,f);return(o.weeks||o.days)&&(t=o.weeks??0,o.days&&(t+=Math.ceil(o.days/7))),t}}}function nh(e){let t={...e};for(let r in e)t[r]=1;return t}function ny(e,t){return e&&t?(0>t.compare(e)&&([e,t]=[t,e]),{start:(0,nn.gw)(e),end:(0,nn.gw)(t)}):null}function nv(e,t){return(e=(0,nn.yP)(e,t?.calendar||new(0,np.FG)),t&&"hour"in t)?t.set(e):e}function ng(e,t,r,n){let a=e.add({days:n}),o=e.subtract(r),i=e.add(r);for(;(n<0?a.compare(o)>=0:0>=a.compare(i))&&!t(a);)a=a.add({days:n});if(t(a))return a.add({days:-n})}let nb={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function nx(e={}){let{style:t,isFocusable:r}=e,[n,a]=(0,g.useState)(!1),{focusWithinProps:o}=rr({isDisabled:!r,onFocusWithinChange:e=>a(e)}),i=(0,g.useMemo)(()=>n?t:t?{...nb,...t}:nb,[n]);return{visuallyHiddenProps:{...o,style:i}}}function nw(e){let{children:t,elementType:r="div",isFocusable:n,style:a,...o}=e,{visuallyHiddenProps:i}=nx(e);return b().createElement(r,em(o,i),t)}let nj=(0,g.createContext)(null),nO=(0,g.createContext)(null),nS=(0,g.createContext)(null),nk=(0,g.createContext)(null),nE=(0,g.forwardRef)(function(e,t){[e,t]=ex(e,t,nj);let{locale:r}=rC(),n=nm({...e,locale:r,createCalendar:e.createCalendar||nr.d}),{calendarProps:a,prevButtonProps:o,nextButtonProps:i,errorMessageProps:s,title:l}=r2(e,n),u=eg({...e,values:{state:n,isDisabled:e.isDisabled||!1,isInvalid:n.isValueInvalid},defaultClassName:"react-aria-Calendar"}),c=e_(e,{global:!0});return b().createElement(ek.div,{...em(c,u,a),ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":n.isValueInvalid||void 0},b().createElement(ev,{values:[[ru,{slots:{previous:o,next:i}}],[rf,{"aria-hidden":!0,level:2,children:l}],[nS,n],[nj,e],[rp,{slots:{errorMessage:s}}]]},b().createElement(nw,null,b().createElement("h2",null,a["aria-label"])),u.children,b().createElement(nw,null,b().createElement("button",{"aria-label":i["aria-label"],disabled:i.isDisabled,onClick:()=>n.focusNextPage(),tabIndex:-1}))))}),nP=(0,g.forwardRef)(function(e,t){[e,t]=ex(e,t,nO);let{locale:r}=rC(),n=function(e){let{value:t,defaultValue:r,onChange:n,createCalendar:a,locale:o,visibleDuration:i={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=nf(t,r||null,n),[f,p]=(0,g.useState)(null),m="center";if(c&&c.start&&c.end){let e=no((0,nn.gw)(c.start),i,o,s,l).add(i).subtract({days:1});c.end.compare(e)>0&&(m="start")}let h=(0,g.useMemo)(()=>{let t=e.isDateUnavailable;if(t)return e=>t(e,f)},[e.isDateUnavailable,f]),y=(0,g.useCallback)(t=>t&&h&&!e.allowsNonContiguousRanges?{start:ng(t,h,i,-1),end:ng(t,h,i,1)}:null,[h,i,e.allowsNonContiguousRanges]),v=(0,g.useMemo)(()=>y(f),[y,f]),b=(0,g.useMemo)(()=>(0,rq.ZI)(s,v?.start),[s,v]),x=(0,g.useMemo)(()=>(0,rq.Py)(l,v?.end),[l,v]),w=nm({...u,value:c&&c.start,createCalendar:a,locale:o,visibleDuration:i,minValue:b,maxValue:x,selectionAlignment:e.selectionAlignment||m,isDateUnavailable:h}),j=f?ny(f,w.focusedDate):c&&ny(c.start,c.end),O=t=>{if(e.isReadOnly)return;let r=nc(nu(t,b,x),w.visibleRange.start,h);if(r)if(f){let e=ny(f,r);e&&d({start:nv(e.start,c?.start),end:nv(e.end,c?.end)}),p(null)}else p(r)},[S,k]=(0,g.useState)(!1),E=(0,g.useMemo)(()=>!!c&&!f&&(!!(h&&(h(c.start)||h(c.end)))||na(c.start,s,l)||na(c.end,s,l)),[h,c,f,s,l]),P=e.isInvalid||"invalid"===e.validationState||E;return{...w,value:c,setValue:d,anchorDate:f,setAnchorDate:p,highlightedRange:j,validationState:P?"invalid":null,isValueInvalid:P,selectFocusedDate(){w.isCellUnavailable(w.focusedDate)||O(w.focusedDate)},commitSelection(){O(w.focusedDate)},selectDate:O,highlightDate(e){f&&w.setFocusedDate(e)},isSelected:e=>!!(j&&e.compare(j.start)>=0&&0>=e.compare(j.end)&&!w.isCellDisabled(e)&&!w.isCellUnavailable(e)),isInvalid:e=>w.isInvalid(e)||na(e,v?.start,v?.end),isDragging:S,setDragging:k,clearSelection(){p(null),d(null)},focusNearestAvailableDate(e){let t=y(e),r=e=>this.isInvalid(e)||na(e,t?.start,t?.end),n=e.add({days:1});r(n)&&(n=e.subtract({days:1})),r(n)||(this.setFocusedDate(n),this.setFocused(!0))}}}({...e,locale:r,createCalendar:e.createCalendar||nr.d}),{calendarProps:a,prevButtonProps:o,nextButtonProps:i,errorMessageProps:s,title:l}=function(e,t,r){let{commitBehavior:n="select",...a}=e,o=r2(a,t),i=(0,g.useRef)(!1),s=(0,g.useRef)("u">typeof window?window:null);nt(s,"pointerdown",e=>{i.current=0===e.width&&0===e.height});let l={clear:()=>t.clearSelection(),reset:()=>t.setAnchorDate(null),select:()=>t.commitSelection()};return nt(s,"pointerup",e=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let a=eH(e);r.current&&eG(r.current)&&(!e$(r.current,a)||!a.closest('button, [role="button"]'))&&l[n]()}),o.calendarProps.onBlur=e=>{r.current&&(e.relatedTarget&&e$(r.current,e.relatedTarget)||!t.anchorDate||l[n]())},nt(r,"touchmove",e=>{t.isDragging&&e.preventDefault()},{passive:!1,capture:!0}),o}(e,n,t),u=eg({...e,values:{state:n,isDisabled:e.isDisabled||!1,isInvalid:n.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),c=e_(e,{global:!0});return b().createElement(ek.div,{...em(u,c,a),ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":n.isValueInvalid||void 0},b().createElement(ev,{values:[[ru,{slots:{previous:o,next:i}}],[rf,{"aria-hidden":!0,level:2,children:l}],[nk,n],[nO,e],[rp,{slots:{errorMessage:s}}]]},b().createElement(nw,null,b().createElement("h2",null,a["aria-label"])),u.children,b().createElement(nw,null,b().createElement("button",{"aria-label":i["aria-label"],disabled:i.isDisabled,onClick:()=>n.focusNextPage(),tabIndex:-1}))))}),nA=(0,g.createContext)(null),nD=(0,g.forwardRef)(function(e,t){let r=(0,g.useContext)(nS),n=(0,g.useContext)(nk),a=eb(nj),o=eb(nO),i=r??n,s=i.visibleRange.start;e.offset&&(s=s.add(e.offset));let l=a?.firstDayOfWeek??o?.firstDayOfWeek,{gridProps:u,headerProps:c,weekDays:d,weeksInMonth:f}=function(e,t){let{startDate:r=t.visibleRange.start,endDate:n=t.visibleRange.end,firstDayOfWeek:a}=e,{direction:o}=rC(),{keyboardProps:i}=tL({shortcuts:{End:()=>{t.focusSectionEnd()},Home:()=>{t.focusSectionStart()},Escape:()=>("setAnchorDate"in t&&t.setAnchorDate(null),!1)}}),{keyboardProps:s}=tL({shortcuts:{Enter:()=>{t.selectFocusedDate()}," ":()=>{t.selectFocusedDate()},PageUp:()=>{t.focusPreviousSection()},"Shift+PageUp":()=>{t.focusPreviousSection(!0)},PageDown:()=>{t.focusNextSection()},"Shift+PageDown":()=>{t.focusNextSection(!0)},ArrowLeft:()=>{"rtl"===o?t.focusNextDay():t.focusPreviousDay()},ArrowUp:()=>{t.focusPreviousRow()},ArrowRight:()=>{"rtl"===o?t.focusPreviousDay():t.focusNextDay()},ArrowDown:()=>{t.focusNextRow()}},allowRepeats:!0}),l=rQ(r,n,t.timeZone,!0),{ariaLabel:u,ariaLabelledBy:c}=rX.get(t),d=r0({"aria-label":[u,l].filter(Boolean).join(", "),"aria-labelledby":c}),f=rL({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:p}=rC(),m=(0,g.useMemo)(()=>{let e=t.visibleDuration.days&&t.visibleDuration.days<7,n=e?r:(0,rq.kq)((0,rq.Ec)(t.timeZone),p,a);return[...Array(e?t.visibleDuration.days:7).keys()].map(e=>{let r=n.add({days:e}).toDate(t.timeZone);return f.format(r)})},[p,t.timeZone,f,a,r,t.visibleDuration.days]),h=t.getWeeksInMonth(r);return{gridProps:em(d,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||"multiple"===t.selectionMode||void 0,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)},i,s),headerProps:{"aria-hidden":!0},weekDays:m,weeksInMonth:h}}({startDate:s,endDate:(0,rq.p9)(s),weekdayStyle:e.weekdayStyle,firstDayOfWeek:l},i),p=e_(e,{global:!0});return b().createElement(nA.Provider,{value:{headerProps:c,weekDays:d,startDate:s,weeksInMonth:f}},b().createElement(ek.table,{render:e.render,...em(p,u),ref:t,style:e.style,cellPadding:0,className:e.className??"react-aria-CalendarGrid"},"function"!=typeof e.children?e.children:b().createElement(b().Fragment,null,b().createElement(nC,null,e=>b().createElement(nT,null,e)),b().createElement(nN,null,e.children))))}),nC=(0,g.forwardRef)(function(e,t){let{children:r,style:n,className:a}=e,{headerProps:o,weekDays:i}=(0,g.useContext)(nA),s=e_(e,{global:!0});return b().createElement(ek.thead,{render:e.render,...em(s,o),ref:t,style:n,className:a??"react-aria-CalendarGridHeader"},b().createElement("tr",null,i.map((e,t)=>b().cloneElement(r(e),{key:t}))))}),nT=(0,g.forwardRef)(function(e,t){let{children:r,style:n,className:a}=e,o=e_(e,{global:!0});return b().createElement(ek.th,{render:e.render,...o,ref:t,style:n,className:a||"react-aria-CalendarHeaderCell"},r)}),nN=(0,g.forwardRef)(function(e,t){let{children:r,style:n,className:a}=e,o=(0,g.useContext)(nS),i=(0,g.useContext)(nk),s=o??i,{startDate:l,weeksInMonth:u}=(0,g.useContext)(nA),c=e_(e,{global:!0});return b().createElement(ek.tbody,{render:e.render,...c,ref:t,style:n,className:a??"react-aria-CalendarGridBody"},[...Array(u).keys()].map(e=>b().createElement("tr",{key:e},s.getDatesInWeek(e,l).map((e,t)=>e?b().cloneElement(r(e),{key:t}):b().createElement("td",{key:t})))))}),nR=(0,g.forwardRef)(function({date:e,...t},r){let n=(0,g.useContext)(nS),a=(0,g.useContext)(nk),o=n??a,{startDate:i}=(0,g.useContext)(nA)??{startDate:o.visibleRange.start},s=!o.visibleDuration.days&&!o.visibleDuration.weeks&&!(0,rq.tF)(i,e),l=(0,rq.cK)(e,o.timeZone),u=(0,g.useRef)(null),{cellProps:c,buttonProps:d,...f}=function(e,t,r){var n;let a,{date:o,isDisabled:i}=e,{errorMessageId:s,selectedDateDescription:l}=rX.get(t),u=rG((n=rh)&&n.__esModule?n.default:n,"@react-aria/calendar"),c=rL({weekday:"long",day:"numeric",month:"long",year:"numeric",era:rZ(o),timeZone:t.timeZone}),d=t.isCellFocused(o)&&!e.isOutsideMonth;i=i||t.isCellDisabled(o)||!!e.isOutsideMonth;let f=t.isCellUnavailable(o),p=!i&&!f,m=t.isSelected(o)&&p,h=!1;t.isValueInvalid&&("highlightedRange"in t?h=!t.anchorDate&&null!=t.highlightedRange&&o.compare(t.highlightedRange.start)>=0&&0>=o.compare(t.highlightedRange.end):Array.isArray(t.value)?h=t.value.some(e=>(0,rq.ro)(e,o)):t.value&&(h=(0,rq.ro)(t.value,o))),h&&!i&&(m=!0),o=ry(o,rq.NV);let y=(0,g.useMemo)(()=>o.toDate(t.timeZone),[o,t.timeZone]),v=(0,rq.cK)(o,t.timeZone),b=(0,g.useMemo)(()=>{let e="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&((0,rq.ro)(o,t.value.start)||(0,rq.ro)(o,t.value.end))&&(e=l+", "),e+=c.format(y),v?e=u.format(m?"todayDateSelected":"todayDate",{date:e}):m&&(e=u.format("dateSelected",{date:e})),t.minValue&&(0,rq.ro)(o,t.minValue)?e+=", "+u.format("minimumDate"):t.maxValue&&(0,rq.ro)(o,t.maxValue)&&(e+=", "+u.format("maximumDate")),e},[c,y,u,m,v,o,t,l]),x="";"anchorDate"in t&&d&&!t.isReadOnly&&p&&(x=t.anchorDate?u.format("finishRangeSelectionPrompt"):u.format("startRangeSelectionPrompt"));let w=ne(x),j=(0,g.useRef)(!1),O=(0,g.useRef)(!1),S=(0,g.useRef)(void 0),{pressProps:k,isPressed:E}=t3({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!p||t.isReadOnly,onPressStart(e){if(t.isReadOnly){t.setFocusedDate(o),t.setFocused(!0);return}if("highlightedRange"in t&&!t.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(t.highlightedRange&&!h){if((0,rq.ro)(o,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(o),t.setFocused(!0),t.setDragging(!0),O.current=!0;return}else if((0,rq.ro)(o,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(o),t.setFocused(!0),t.setDragging(!0),O.current=!0;return}}let r=()=>{t.setDragging(!0),S.current=void 0,t.selectDate(o),t.setFocusedDate(o),t.setFocused(!0),j.current=!0};"touch"===e.pointerType?S.current=setTimeout(r,200):r()}},onPressEnd(){O.current=!1,j.current=!1,clearTimeout(S.current),S.current=void 0},onPress(){"anchorDate"in t||t.isReadOnly||(t.selectDate(o),t.setFocusedDate(o),t.setFocused(!0))},onPressUp(e){!t.isReadOnly&&("anchorDate"in t&&S.current&&(t.selectDate(o),t.setFocusedDate(o),t.setFocused(!0)),"anchorDate"in t&&(O.current?t.setAnchorDate(o):t.anchorDate&&!j.current?(t.selectDate(o),t.setFocusedDate(o),t.setFocused(!0)):"keyboard"!==e.pointerType||t.anchorDate?"virtual"===e.pointerType&&(t.selectDate(o),t.setFocusedDate(o),t.setFocused(!0)):(t.selectDate(o),t.focusNearestAvailableDate(o))))}});i||(a=(0,rq.ro)(o,t.focusedDate)?0:-1),(0,g.useEffect)(()=>{d&&r.current&&(eL(r.current),"pointer"!==tu&&((e=document)=>e.activeElement)()===r.current&&r8(r.current,{containingElement:r4(r.current)}))},[d,r]);let P=rL({day:"numeric",timeZone:t.timeZone,calendar:o.calendar.identifier}),A=(0,g.useMemo)(()=>P.formatToParts(y).find(e=>"day"===e.type).value,[P,y]);return{cellProps:{role:"gridcell","aria-disabled":!p||void 0,"aria-selected":m||void 0,"aria-invalid":h||void 0},buttonProps:em(k,{onFocus(){i||(t.setFocusedDate(o),t.setFocused(!0))},tabIndex:a,role:"button","aria-disabled":!p||void 0,"aria-label":b,"aria-invalid":h||void 0,"aria-describedby":[h?s:void 0,w["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in t&&("touch"!==e.pointerType||t.isDragging)&&p&&t.highlightDate(o)},onPointerDown(e){let t=eH(e);t instanceof HTMLElement&&"releasePointerCapture"in t&&("hasPointerCapture"in t?t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId):t.releasePointerCapture(e.pointerId))},onContextMenu(e){e.preventDefault()}}),isPressed:E,isFocused:d,isSelected:m,isDisabled:i,isUnavailable:f,isOutsideVisibleRange:0>o.compare(t.visibleRange.start)||o.compare(t.visibleRange.end)>0,isInvalid:h,formattedDate:A}}({date:e,isOutsideMonth:s},o,u),{hoverProps:p,isHovered:m}=rl({...t,isDisabled:f.isDisabled||f.isUnavailable}),{focusProps:h,isFocusVisible:y}=rn();y&&=f.isFocused;let v=!1,x=!1;"highlightedRange"in o&&o.highlightedRange&&(v=(0,rq.ro)(e,o.highlightedRange.start),x=(0,rq.ro)(e,o.highlightedRange.end));let w=eg({...t,defaultChildren:f.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:e,isHovered:m,isOutsideMonth:s,isFocusVisible:y,isSelectionStart:v,isSelectionEnd:x,isToday:l,...f}}),j={"data-focused":f.isFocused||void 0,"data-hovered":m||void 0,"data-pressed":f.isPressed||void 0,"data-unavailable":f.isUnavailable||void 0,"data-disabled":f.isDisabled||void 0,"data-focus-visible":y||void 0,"data-outside-visible-range":f.isOutsideVisibleRange||void 0,"data-outside-month":s||void 0,"data-selected":f.isSelected||void 0,"data-selection-start":v||void 0,"data-selection-end":x||void 0,"data-invalid":f.isInvalid||void 0,"data-today":l||void 0},O=e_(t,{global:!0});return b().createElement("td",{...c,ref:r},b().createElement(ek.div,{...em(O,d,h,p,j,w),ref:u}))}),nM=(0,g.createContext)({}),nI=(0,g.forwardRef)(function(e,t){[e,t]=ex(e,t,nM);let{isDisabled:r,isInvalid:n,isReadOnly:a,onHoverStart:o,onHoverChange:i,onHoverEnd:s,...l}=e;r??=!!e["aria-disabled"]&&"false"!==e["aria-disabled"],n??=!!e["aria-invalid"]&&"false"!==e["aria-invalid"];let{hoverProps:u,isHovered:c}=rl({onHoverStart:o,onHoverChange:i,onHoverEnd:s,isDisabled:r}),{isFocused:d,isFocusVisible:f,focusProps:p}=rn({within:!0}),m=eg({...e,values:{isHovered:c,isFocusWithin:d,isFocusVisible:f,isDisabled:r,isInvalid:n},defaultClassName:"react-aria-Group"});return b().createElement(ek.div,{...em(l,p,u),...m,ref:t,role:e.role??"group",slot:e.slot??void 0,"data-focus-within":d||void 0,"data-hovered":c||void 0,"data-focus-visible":f||void 0,"data-disabled":r||void 0,"data-invalid":n||void 0,"data-readonly":a||void 0},m.children)}),n_=(0,g.createContext)({}),nL=rt(function(e,t){[e,t]=ex(e,t,n_);let{hoverProps:r,isHovered:n}=rl({...e,isDisabled:e.disabled}),{isFocused:a,isFocusVisible:o,focusProps:i}=rn({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],l=eg({...e,values:{isHovered:n,isFocused:a,isFocusVisible:o,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return b().createElement(ek.input,{...em((e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,...a}=e;return a})(e),i,r),...l,ref:t,"data-focused":a||void 0,"data-disabled":e.disabled||void 0,"data-hovered":n||void 0,"data-focus-visible":o||void 0,"data-invalid":s||void 0})});function nF(e,t,r,n){return e.createTreeWalker(t,r,n)}let nB=b().createContext(null),nV="react-aria-focus-scope-restore",nz=null;function nW(e){var t,r,n,a,o,i,s,l,u,c;let d,f,p,m,{children:h,contain:y,restoreFocus:v,autoFocus:x}=e,w=(0,g.useRef)(null),j=(0,g.useRef)(null),O=(0,g.useRef)([]),{parentNode:S}=(0,g.useContext)(nB)||{},k=(0,g.useMemo)(()=>new n3({scopeRef:O}),[O]);X(()=>{let e=S||n4.root;if(n4.getTreeNode(e.scopeRef)&&nz&&!nG(nz,e.scopeRef)){let t=n4.getTreeNode(nz);t&&(e=t)}e.addChild(k),n4.addNode(k)},[k,S]),X(()=>{let e=n4.getTreeNode(O);e&&(e.contain=!!y)},[y]),X(()=>{let e=w.current?.nextSibling,t=[],r=e=>e.stopPropagation();for(;e&&e!==j.current;)t.push(e),e.addEventListener(nV,r),e=e.nextSibling;return O.current=t,()=>{for(let e of t)e.removeEventListener(nV,r)}},[h]),X(()=>{if(r||n)return;let e=t.current,a=eB(e?e[0]:void 0),o=e=>{let r=eH(e);nH(r,t.current)?nz=t:nK(r)||(nz=null)};return a.addEventListener("focusin",o,!1),e?.forEach(e=>e.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),e?.forEach(e=>e.removeEventListener("focusin",o,!1))}},[t=O,r=v,n=y]),a=O,o=y,d=(0,g.useRef)(void 0),f=(0,g.useRef)(void 0),X(()=>{let e=a.current;if(!o){f.current&&(cancelAnimationFrame(f.current),f.current=void 0);return}let t=eB(e?e[0]:void 0),r=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!n$(a)||e.isComposing)return;let r=((e=document)=>e.activeElement)(t),n=a.current;if(!n||!nH(r,n))return;let o=nJ(nU(n),{tabbable:!0},n);if(!r)return;o.currentNode=r;let i=e.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=e.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,i=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),i&&(nq(i,!0),i instanceof eV(i).HTMLInputElement&&i.select())},n=e=>{(!nz||nG(nz,a))&&nH(eH(e),a.current)?(nz=a,d.current=eH(e)):n$(a)&&!nK(eH(e),a)?d.current?nq(d.current):nz&&nz.current&&nX(nz.current):n$(a)&&(d.current=eH(e))},i=e=>{f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame(()=>{let r=tu,n=("virtual"===r||null===r)&&to()&&ta(),o=((e=document)=>e.activeElement)(t);if(!n&&o&&n$(a)&&!nK(o,a)){nz=a;let t=eH(e);t&&t.isConnected?(d.current=t,nq(d.current)):nz.current&&nX(nz.current)}})};return t.addEventListener("keydown",r,!1),t.addEventListener("focusin",n,!1),e?.forEach(e=>e.addEventListener("focusin",n,!1)),e?.forEach(e=>e.addEventListener("focusout",i,!1)),()=>{t.removeEventListener("keydown",r,!1),t.removeEventListener("focusin",n,!1),e?.forEach(e=>e.removeEventListener("focusin",n,!1)),e?.forEach(e=>e.removeEventListener("focusout",i,!1))}},[a,o]),X(()=>()=>{f.current&&cancelAnimationFrame(f.current)},[f]),i=O,s=v,l=y,p=(0,g.useRef)("u">typeof document?((e=document)=>e.activeElement)(eB(i.current?i.current[0]:void 0)):null),X(()=>{let e=i.current,t=eB(e?e[0]:void 0);if(!s||l)return;let r=()=>{(!nz||nG(nz,i))&&nH(((e=document)=>e.activeElement)(t),i.current)&&(nz=i)};return t.addEventListener("focusin",r,!1),e?.forEach(e=>e.addEventListener("focusin",r,!1)),()=>{t.removeEventListener("focusin",r,!1),e?.forEach(e=>e.removeEventListener("focusin",r,!1))}},[i,l]),X(()=>{let e=eB(i.current?i.current[0]:void 0);if(!s)return;let t=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!n$(i)||t.isComposing)return;let r=e.activeElement;if(!nK(r,i)||!nZ(i))return;let n=n4.getTreeNode(i);if(!n)return;let a=n.nodeToRestore,o=nJ(e.body,{tabbable:!0});o.currentNode=r;let s=t.shiftKey?o.previousNode():o.nextNode();if(a&&a.isConnected&&a!==e.body||(a=void 0,n.nodeToRestore=void 0),(!s||!nK(s,i))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while(nK(s,i));(t.preventDefault(),t.stopPropagation(),s)?nq(s,!0):nK(a)?nq(a,!0):r.blur()}};return l||e.addEventListener("keydown",t,!0),()=>{l||e.removeEventListener("keydown",t,!0)}},[i,s,l]),X(()=>{let e=eB(i.current?i.current[0]:void 0);if(!s)return;let t=n4.getTreeNode(i);if(t)return t.nodeToRestore=p.current??void 0,()=>{let t=n4.getTreeNode(i);if(!t)return;let r=t.nodeToRestore,n=((e=document)=>e.activeElement)(e);if(s&&r&&(n&&nK(n,i)||n===e.body&&nZ(i))){let t=n4.clone();requestAnimationFrame(()=>{if(e.activeElement===e.body){let e=t.getTreeNode(i);for(;e;){if(e.nodeToRestore&&e.nodeToRestore.isConnected)return void nQ(e.nodeToRestore);e=e.parent}for(e=t.getTreeNode(i);e;){if(e.scopeRef&&e.scopeRef.current&&n4.getTreeNode(e.scopeRef)){let t=nY(e.scopeRef.current,!0);if(t)return void nQ(t)}e=e.parent}}})}}},[i,s]),u=O,c=x,m=b().useRef(c),(0,g.useEffect)(()=>{m.current&&(nz=u,!nH(((e=document)=>e.activeElement)(eB(u.current?u.current[0]:void 0)),nz.current)&&u.current&&nX(u.current)),m.current=!1},[u]),(0,g.useEffect)(()=>{let e=((e=document)=>e.activeElement)(eB(O.current?O.current[0]:void 0)),t=null;if(nH(e,O.current)){for(let r of n4.traverse())r.scopeRef&&nH(e,r.scopeRef.current)&&(t=r);t===n4.getTreeNode(O)&&(nz=t.scopeRef)}},[O]),X(()=>()=>{let e=n4.getTreeNode(O)?.parent?.scopeRef??null;(O===nz||nG(O,nz))&&(!e||n4.getTreeNode(e))&&(nz=e),n4.removeTreeNode(O)},[O]);let E=(0,g.useMemo)(()=>{var e;return e=O,{focusNext(t={}){let r=e.current,{from:n,tabbable:a,wrap:o,accept:i}=t,s=n||((e=document)=>e.activeElement)(eB(r[0]??void 0)),l=r[0].previousElementSibling,u=nJ(nU(r),{tabbable:a,accept:i},r);u.currentNode=nH(s,r)?s:l;let c=u.nextNode();return!c&&o&&(u.currentNode=l,c=u.nextNode()),c&&nq(c,!0),c},focusPrevious(t={}){let r=e.current,{from:n,tabbable:a,wrap:o,accept:i}=t,s=n||((e=document)=>e.activeElement)(eB(r[0]??void 0)),l=r[r.length-1].nextElementSibling,u=nJ(nU(r),{tabbable:a,accept:i},r);u.currentNode=nH(s,r)?s:l;let c=u.previousNode();return!c&&o&&(u.currentNode=l,c=u.previousNode()),c&&nq(c,!0),c},focusFirst(t={}){let r=e.current,{tabbable:n,accept:a}=t,o=nJ(nU(r),{tabbable:n,accept:a},r);o.currentNode=r[0].previousElementSibling;let i=o.nextNode();return i&&nq(i,!0),i},focusLast(t={}){let r=e.current,{tabbable:n,accept:a}=t,o=nJ(nU(r),{tabbable:n,accept:a},r);o.currentNode=r[r.length-1].nextElementSibling;let i=o.previousNode();return i&&nq(i,!0),i}}},[]),P=(0,g.useMemo)(()=>({focusManager:E,parentNode:k}),[k,E]);return b().createElement(nB.Provider,{value:P},b().createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:w}),h,b().createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:j}))}function nU(e){return e[0].parentElement}function n$(e){let t=n4.getTreeNode(nz);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function nH(e,t){return!!e&&!!t&&t.some(t=>e$(t,e))}function nK(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of n4.traverse(n4.getTreeNode(t)))if(r&&nH(e,r.current))return!0;return!1}function nG(e,t){let r=n4.getTreeNode(t)?.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function nq(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{tD(e)}catch{}}function nY(e,t=!0){let r=e[0].previousElementSibling,n=nU(e),a=nJ(n,{tabbable:t},e);a.currentNode=r;let o=a.nextNode();return t&&!o&&((a=nJ(n=nU(e),{tabbable:!1},e)).currentNode=r,o=a.nextNode()),o}function nX(e,t=!0){nq(nY(e,t))}function nZ(e){let t=n4.getTreeNode(nz);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function nQ(e){e.dispatchEvent(new CustomEvent(nV,{bubbles:!0,cancelable:!0}))&&nq(e)}function nJ(e,t,r){let n=t?.tabbable?e0:eJ,a=eB(e?.nodeType===Node.ELEMENT_NODE?e:null),o=nF(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e$(t?.from,e)||t?.tabbable&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")&&(!function(e){if(e.checked)return!0;let t=function(e){if(!e.form)return Array.from(eB(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),r=eV(e);return t instanceof r.RadioNodeList?Array.from(t).filter(e=>e instanceof r.HTMLInputElement):t instanceof r.HTMLInputElement?[t]:[]}(e);return t.length>0&&!t.some(e=>e.checked)}(e)||"INPUT"===o.currentNode.tagName&&"radio"===o.currentNode.type&&o.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:n(e)&&(!r||nH(e,r))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});return t?.from&&(o.currentNode=t.from),o}function n0(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:a,tabbable:o=t.tabbable,wrap:i=t.wrap,accept:s=t.accept}=r,l=a||((e=document)=>e.activeElement)(eB(n)),u=nJ(n,{tabbable:o,accept:s});e$(n,l)&&(u.currentNode=l);let c=u.nextNode();return!c&&i&&(u.currentNode=n,c=u.nextNode()),c&&nq(c,!0),c},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:a,tabbable:o=t.tabbable,wrap:i=t.wrap,accept:s=t.accept}=r,l=a||((e=document)=>e.activeElement)(eB(n)),u=nJ(n,{tabbable:o,accept:s});if(e$(n,l))u.currentNode=l;else{let e=n1(u);return e&&nq(e,!0),e??null}let c=u.previousNode();if(!c&&i){u.currentNode=n;let e=n1(u);if(!e)return null;c=e}return c&&nq(c,!0),c??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:a=t.tabbable,accept:o=t.accept}=r,i=nJ(n,{tabbable:a,accept:o}).nextNode();return i&&nq(i,!0),i},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:a=t.tabbable,accept:o=t.accept}=r,i=n1(nJ(n,{tabbable:a,accept:o}));return i&&nq(i,!0),i??null}}}function n1(e){let t,r;do(t=e.lastChild())&&(r=t);while(t);return r}class n2{constructor(){this.fastMap=new Map,this.root=new n3({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(t??null);if(!n)return;let a=new n3({scopeRef:e});n.addChild(a),a.parent=n,this.fastMap.set(e,a),r&&(a.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&nH(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r&&(r.removeChild(t),n.size>0&&n.forEach(e=>r&&r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new n2;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent?.scopeRef??null,t.nodeToRestore);return e}}class n3{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}}let n4=new n2;var n5={};function n6(e,t,r){let{direction:n}=rC(),a=(0,g.useMemo)(()=>n0(t),[t]),{keyboardProps:o}=tL({shortcuts:{"Alt+ArrowDown":()=>"setOpen"in e&&void e.setOpen(!0),"Alt+ArrowUp":()=>"setOpen"in e&&void e.setOpen(!0),ArrowLeft:e=>{if(r)return!1;if("rtl"!==n)return void a.focusPrevious();if(t.current){let r=eH(e),n=n8(t.current,r.getBoundingClientRect().left,-1);if(n)return void n.focus()}return!1},ArrowRight:e=>{if(r)return!1;if("rtl"!==n)return void a.focusNext();if(t.current){let r=eH(e),n=n8(t.current,r.getBoundingClientRect().left,1);if(n)return void n.focus()}return!1}},allowRepeats:!0}),i=()=>{if(!t.current)return;let e=window.event?eH(window.event):null,r=nJ(t.current,{tabbable:!0});if(e&&(r.currentNode=e,e=r.previousNode()),!e){let t;do(t=r.lastChild())&&(e=t);while(t)}for(;e?.hasAttribute("data-placeholder");){let t=r.previousNode();if(t&&t.hasAttribute("data-placeholder"))e=t;else break}e&&e.focus()},{pressProps:s}=t3({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&i()},onPress(e){("touch"===e.pointerType||"pen"===e.pointerType)&&i()}});return em(s,o)}function n8(e,t,r){let n=nJ(e,{tabbable:!0}),a=n.nextNode(),o=null,i=1/0;for(;a;){let e=a.getBoundingClientRect().left-t,s=Math.abs(e);Math.sign(e)===r&&s<i&&(o=a,i=s),a=n.nextNode()}return o}function n9(e){let{description:t,errorMessage:r,isInvalid:n,validationState:a}=e,{labelProps:o,fieldProps:i}=function(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":a,labelElementType:o="label"}=e;t=eu(t);let i=eu(),s={};return r&&(n=n?`${i} ${n}`:i,s={id:i,htmlFor:"label"===o?t:void 0}),{labelProps:s,fieldProps:r0({id:t,"aria-label":a,"aria-labelledby":n})}}(e),s=ec([!!t,!!r,n,a]),l=ec([!!t,!!r,n,a]);return{labelProps:o,fieldProps:i=em(i,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:s},errorMessageProps:{id:l}}}function n7(e,t,r){let n=tY(e=>{r&&!e.defaultPrevented&&r(t)});(0,g.useEffect)(()=>{let t=e?.current?.form;return t?.addEventListener("reset",n),()=>{t?.removeEventListener("reset",n)}},[e])}function ae(e,t,r){let{validationBehavior:n,focus:a}=e;X(()=>{if("native"===n&&r?.current&&"setCustomValidity"in r.current&&!r.current.disabled){var e;let n,a=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(a),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=r.current).validity.valid,validationDetails:{badInput:(n=e.validity).badInput,customError:n.customError,patternMismatch:n.patternMismatch,rangeOverflow:n.rangeOverflow,rangeUnderflow:n.rangeUnderflow,stepMismatch:n.stepMismatch,tooLong:n.tooLong,tooShort:n.tooShort,typeMismatch:n.typeMismatch,valueMissing:n.valueMissing,valid:n.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let o=(0,g.useRef)(!1),i=tY(()=>{o.current||t.resetValidation()}),s=tY(e=>{t.displayValidation.isInvalid||t.commitValidation();let n=r?.current?.form;!e.defaultPrevented&&r&&n&&function(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(r.validity?.valid===!1)return r}return null}(n)===r.current&&(a?a():r.current?.focus(),tu="keyboard",th("keyboard",null));e.preventDefault()}),l=tY(()=>{t.commitValidation()});(0,g.useEffect)(()=>{let e=r?.current;if(!e)return;let t=e.form,n=t?.reset;return t&&(t.reset=()=>{o.current=!window.event||"message"===window.event.type&&eH(window.event)instanceof MessagePort,n?.call(t),o.current=!1}),e.addEventListener("invalid",s),e.addEventListener("change",l),t?.addEventListener("reset",i),()=>{e.removeEventListener("invalid",s),e.removeEventListener("change",l),t?.removeEventListener("reset",i),t&&(t.reset=n)}},[r,n])}n5={"ar-AE":{calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,selectedTimeDescription:e=>`\u{627}\u{644}\u{648}\u{642}\u{62A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"},"bg-BG":{calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{434}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{432}\u{440}\u{435}\u{43C}\u{435}: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"},"cs-CZ":{calendar:"Kalend\xe1ř",day:"den",dayPeriod:"č\xe1st dne",endDate:"Konečn\xe9 datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měs\xedc",second:"sekunda",selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.startDate} a\u{17E} ${e.endDate}`,selectedTimeDescription:e=>`Vybran\xfd \u{10D}as: ${e.time}`,startDate:"Poč\xe1tečn\xed datum",timeZoneName:"časov\xe9 p\xe1smo",weekday:"den v t\xfddnu",year:"rok"},"da-DK":{calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"\xe6ra",hour:"time",minute:"minut",month:"m\xe5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"\xe5r"},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:"Tagesh\xe4lfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgew\xe4hlte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,selectedTimeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3CE}\u{3C1}\u{3B1}: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"},"en-US":{era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`},"es-ES":{calendar:"Calendario",day:"d\xeda",dayPeriod:"a.\xa0m./p.\xa0m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"d\xeda de la semana",year:"a\xf1o"},"et-EE":{calendar:"Kalender",day:"p\xe4ev",dayPeriod:"enne/p\xe4rast l\xf5unat",endDate:"L\xf5ppkuup\xe4ev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuup\xe4ev",timeZoneName:"ajav\xf6\xf6nd",weekday:"n\xe4dalap\xe4ev",year:"aasta"},"fi-FI":{calendar:"Kalenteri",day:"p\xe4iv\xe4",dayPeriod:"vuorokaudenaika",endDate:"P\xe4\xe4ttymisp\xe4iv\xe4",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.startDate} \u{2013} ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamisp\xe4iv\xe4",timeZoneName:"aikavy\xf6hyke",weekday:"viikonp\xe4iv\xe4",year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"\xe8re",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie\xa0: ${e.time}`,startDate:"Date de d\xe9but",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"ann\xe9e"},"he-IL":{calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,selectedTimeDescription:e=>`\u{5D6}\u{5DE}\u{5DF} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"},"hr-HR":{calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"},"hu-HU":{calendar:"Napt\xe1r",day:"nap",dayPeriod:"napszak",endDate:"Befejező d\xe1tum",era:"\xe9ra",hour:"\xf3ra",minute:"perc",month:"h\xf3nap",second:"m\xe1sodperc",selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.startDate}\u{2013}${e.endDate}`,selectedTimeDescription:e=>`Kijel\xf6lt id\u{151}: ${e.time}`,startDate:"Kezdő d\xe1tum",timeZoneName:"időz\xf3na",weekday:"h\xe9t napja",year:"\xe9v"},"it-IT":{calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"},"ja-JP":{calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.startDate} \u{304B}\u{3089} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{6642}\u{9593} : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"},"ko-KR":{calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`\u{C120}\u{D0DD} \u{C2DC}\u{AC04}: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"},"lt-LT":{calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"},"lv-LV":{calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: no ${e.startDate} l\u{12B}dz ${e.endDate}`,selectedTimeDescription:e=>`Atlas\u{12B}tais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"},"nb-NO":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"m\xe5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"\xe5r"},"nl-NL":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"},"pl-PL":{calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"},"pt-BR":{calendar:"Calend\xe1rio",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"m\xeas",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso hor\xe1rio",weekday:"dia da semana",year:"ano"},"pt-PT":{calendar:"Calend\xe1rio",day:"dia",dayPeriod:"am/pm",endDate:"Data de T\xe9rmino",era:"era",hour:"hora",minute:"minuto",month:"m\xeas",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de In\xedcio",timeZoneName:"fuso hor\xe1rio",weekday:"dia da semana",year:"ano"},"ro-RO":{calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectat\u{103}: ${e.time}`,startDate:"Dată \xeenceput",timeZoneName:"fus orar",weekday:"ziua din săptăm\xe2nă",year:"an"},"ru-RU":{calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: \u{441} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{435} \u{432}\u{440}\u{435}\u{43C}\u{44F}: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"},"sk-SK":{calendar:"Kalend\xe1r",day:"deň",dayPeriod:"AM/PM",endDate:"D\xe1tum ukončenia",era:"letopočet",hour:"hodina",minute:"min\xfata",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybrat\xfd \u{10D}as: ${e.time}`,startDate:"D\xe1tum začatia",timeZoneName:"časov\xe9 p\xe1smo",weekday:"deň t\xfdždňa",year:"rok"},"sl-SI":{calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u{10D}je: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani \u{10D}as: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"},"sr-SP":{calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"},"sv-SE":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"m\xe5nad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"\xe5r"},"tr-TR":{calendar:"Takvim",day:"g\xfcn",dayPeriod:"\xd6\xd6/\xd6S",endDate:"Bitiş Tarihi",era:"\xe7ağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xe7ilen Zaman: ${e.time}`,startDate:"Başlangı\xe7 Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın g\xfcn\xfc",year:"yıl"},"uk-UA":{calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{2014} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{447}\u{430}\u{441}: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"},"zh-CN":{calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65F6}\u{95F4}\u{FF1A}${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"},"zh-TW":{calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{6642}\u{9593}\u{FF1A}${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"}};let at=new WeakMap,ar="__reactAriaDateFieldRole",an="__reactAriaDateFieldFocusManager";function aa(e,t,r){var n;let a,{isInvalid:o,validationErrors:i,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=n9({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),f=(0,g.useRef)(null),{focusWithinProps:p}=rr({...e,onFocusWithin(r){f.current=t.value,e.onFocus?.(r)},onBlurWithin:r=>{t.confirmPlaceholder(),t.value!==f.current&&t.commitValidation(),e.onBlur?.(r)},onFocusWithinChange:e.onFocusChange}),m=rG((n=n5)&&n.__esModule?n.default:n,"@react-aria/datepicker"),h="hour"===t.maxGranularity?"selectedTimeDescription":"selectedDateDescription",y="hour"===t.maxGranularity?"time":"date",v=ne(t.value?m.format(h,{[y]:t.formatValue({month:"long"})}):""),b="presentation"===e[ar]?u["aria-describedby"]:[v["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[an],w=(0,g.useMemo)(()=>x||n0(r),[x,r]),j=n6(t,r,"presentation"===e[ar]);at.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[l.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:b,focusManager:w});let O=(0,g.useRef)(e.autoFocus);a="presentation"===e[ar]?{role:"presentation"}:em(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":b}),(0,g.useEffect)(()=>{O.current&&w.focusFirst(),O.current=!1},[w]),n7(e.inputRef,t.defaultValue,t.setValue),ae({...e,focus(){w.focusFirst()}},t,e.inputRef);let S={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};"native"===e.validationBehavior&&(S.type="text",S.hidden=!0,S.required=e.isRequired,S.onChange=()=>{});let k=e_(e);return{labelProps:{...l,onClick:()=>{w.focusFirst()}},fieldProps:em(k,a,j,p,{onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,style:{unicodeBidi:"isolate"}}),inputProps:S,descriptionProps:c,errorMessageProps:d,isInvalid:o,validationErrors:i,validationDetails:s}}var ao={};ao={"ar-AE":{rangeOverflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.maxValue} \u{623}\u{648} \u{642}\u{628}\u{644} \u{630}\u{644}\u{643}.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.minValue} \u{623}\u{648} \u{628}\u{639}\u{62F} \u{630}\u{644}\u{643}.`,unavailableDate:"البيانات المحددة غير متاحة."},"bg-BG":{rangeOverflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.maxValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{440}\u{430}\u{43D}\u{43D}\u{430}.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.minValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{43A}\u{44A}\u{441}\u{43D}\u{43E}.`,unavailableDate:"Избраната дата не е налична."},"cs-CZ":{rangeOverflow:e=>`Hodnota mus\xed b\xfdt ${e.maxValue} nebo d\u{159}\xedv\u{11B}j\u{161}\xed.`,rangeReversed:"Datum zah\xe1jen\xed mus\xed předch\xe1zet datu ukončen\xed.",rangeUnderflow:e=>`Hodnota mus\xed b\xfdt ${e.minValue} nebo pozd\u{11B}j\u{161}\xed.`,unavailableDate:"Vybran\xe9 datum nen\xed k dispozici."},"da-DK":{rangeOverflow:e=>`V\xe6rdien skal v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal v\xe6re f\xf8r slutdatoen.",rangeUnderflow:e=>`V\xe6rdien skal v\xe6re ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilg\xe6ngelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xfcher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xe4ter sein.`,unavailableDate:"Das ausgew\xe4hlte Datum ist nicht verf\xfcgbar."},"el-GR":{rangeOverflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.maxValue} \u{3AE} \u{3C0}\u{3B1}\u{3BB}\u{3B1}\u{3B9}\u{3CC}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.minValue} \u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3B3}\u{3B5}\u{3BD}\u{3AD}\u{3C3}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalizaci\xf3n.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`V\xe4\xe4rtus peab olema ${e.maxValue} v\xf5i varasem.`,rangeReversed:"Alguskuup\xe4ev peab olema enne l\xf5ppkuup\xe4eva.",rangeUnderflow:e=>`V\xe4\xe4rtus peab olema ${e.minValue} v\xf5i hilisem.`,unavailableDate:"Valitud kuup\xe4ev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xe4 aikaisempi.`,rangeReversed:"Aloitusp\xe4iv\xe4n on oltava ennen lopetusp\xe4iv\xe4\xe4.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xe4 my\xf6h\xe4isempi.`,unavailableDate:"Valittu p\xe4iv\xe4m\xe4\xe4r\xe4 ei ole k\xe4ytett\xe4viss\xe4."},"fr-FR":{rangeOverflow:e=>`La valeur doit \xeatre ${e.maxValue} ou ant\xe9rieure.`,rangeReversed:"La date de d\xe9but doit \xeatre ant\xe9rieure \xe0 la date de fin.",rangeUnderflow:e=>`La valeur doit \xeatre ${e.minValue} ou ult\xe9rieure.`,unavailableDate:"La date s\xe9lectionn\xe9e n’est pas disponible."},"he-IL":{rangeOverflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.maxValue} \u{5D0}\u{5D5} \u{5DE}\u{5D5}\u{5E7}\u{5D3}\u{5DD} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.minValue} \u{5D0}\u{5D5} \u{5DE}\u{5D0}\u{5D5}\u{5D7}\u{5E8} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,unavailableDate:"התאריך הנבחר אינו זמין."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az \xe9rt\xe9knek ${e.maxValue} vagy kor\xe1bbinak kell lennie.`,rangeReversed:"A kezdő d\xe1tumnak a befejező d\xe1tumn\xe1l kor\xe1bbinak kell lennie.",rangeUnderflow:e=>`Az \xe9rt\xe9knek ${e.minValue} vagy k\xe9s\u{151}bbinek kell lennie.`,unavailableDate:"A kiv\xe1lasztott d\xe1tum nem \xe9rhető el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`\u{5024}\u{306F} ${e.maxValue} \u{4EE5}\u{4E0B}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`\u{5024}\u{306F} ${e.minValue} \u{4EE5}\u{4E0A}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,unavailableDate:"選択した日付は使用できません。"},"ko-KR":{rangeOverflow:e=>`\u{AC12}\u{C740} ${e.maxValue} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`\u{AC12}\u{C740} ${e.minValue} \u{C774}\u{D6C4}\u{C5EC}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."},"lt-LT":{rangeOverflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.maxValue} arba ankstesn\u{117}.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.minValue} arba naujesn\u{117}.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.maxValue} vai agr\u{101}kai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.minValue} vai v\u{113}l\u{101}kai.`,unavailableDate:"Atlasītais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien m\xe5 v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen m\xe5 v\xe6re f\xf8r sluttdatoen.",rangeUnderflow:e=>`Verdien m\xe5 v\xe6re ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.maxValue} lub wcze\u{15B}niejsz\u{105}.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.minValue} lub p\xf3\u{17A}niejsz\u{105}.`,unavailableDate:"Wybrana data jest niedostępna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior \xe0 data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xedvel."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de in\xedcio deve ser anterior \xe0 data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xedvel."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie s\u{103} fie ${e.maxValue} sau anterioar\u{103}.`,rangeReversed:"Data de \xeenceput trebuie să fie anterioară datei de sf\xe2rșit.",rangeUnderflow:e=>`Valoarea trebuie s\u{103} fie ${e.minValue} sau ulterioar\u{103}.`,unavailableDate:"Data selectată nu este disponibilă."},"ru-RU":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{43F}\u{43E}\u{437}\u{436}\u{435} ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{44C}\u{448}\u{435} ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."},"sk-SK":{rangeOverflow:e=>`Hodnota mus\xed by\u{165} ${e.maxValue} alebo skor\u{161}ia.`,rangeReversed:"D\xe1tum začiatku mus\xed byť skorš\xed ako d\xe1tum konca.",rangeUnderflow:e=>`Hodnota mus\xed by\u{165} ${e.minValue} alebo neskor\u{161}ia.`,unavailableDate:"Vybrat\xfd d\xe1tum je nedostupn\xfd."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u{161}a.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u{161}a.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet m\xe5ste vara f\xf6re slutdatumet.",rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet \xe4r inte tillg\xe4ngligt."},"tr-TR":{rangeOverflow:e=>`De\u{11F}er, ${e.maxValue} veya \xf6ncesi olmal\u{131}d\u{131}r.`,rangeReversed:"Başlangı\xe7 tarihi bitiş tarihinden \xf6nce olmalıdır.",rangeUnderflow:e=>`De\u{11F}er, ${e.minValue} veya sonras\u{131} olmal\u{131}d\u{131}r.`,unavailableDate:"Se\xe7ilen tarih kullanılamıyor."},"uk-UA":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{43F}\u{456}\u{437}\u{43D}\u{456}\u{448}\u{435} ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{456}\u{448}\u{435} ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."},"zh-CN":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{65E5}\u{671F}\u{3002}`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{65E5}\u{671F}\u{3002}`,unavailableDate:"所选日期不可用。"},"zh-TW":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{3002}`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{3002}`,unavailableDate:"所選日期無法使用。"}};let ai={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},as={...ai,customError:!0,valid:!1},al={isInvalid:!1,validationDetails:ai,validationErrors:[]},au=(0,g.createContext)({}),ac="__reactAriaFormValidationState";function ad(e){if(e[ac]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:a,commitValidation:o}=e[ac];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:a,commitValidation:o}}return function(e){let{isInvalid:t,validationState:r,name:n,value:a,builtinValidation:o,validate:i,validationBehavior:s="aria"}=e;r&&(t||="invalid"===r);let l=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:as}:null,u=(0,g.useMemo)(()=>i&&null!=a?ap(function(e,t){if("function"==typeof e){let r=e(t);if(r&&"boolean"!=typeof r)return af(r)}return[]}(i,a)):null,[i,a]);o?.validationDetails.valid&&(o=void 0);let c=(0,g.useContext)(au),d=(0,g.useMemo)(()=>n?Array.isArray(n)?n.flatMap(e=>af(c[e])):af(c[n]):[],[c,n]),[f,p]=(0,g.useState)(c),[m,h]=(0,g.useState)(!1);c!==f&&(p(c),h(!1));let y=(0,g.useMemo)(()=>ap(m?[]:d),[m,d]),v=(0,g.useRef)(al),[b,x]=(0,g.useState)(al),w=(0,g.useRef)(al),[j,O]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{if(!j)return;O(!1);let e=u||o||v.current;am(e,w.current)||(w.current=e,x(e))}),{realtimeValidation:l||y||u||o||al,displayValidation:"native"===s?l||y||b:l||y||u||o||b,updateValidation(e){"aria"!==s||am(b,e)?v.current=e:x(e)},resetValidation(){am(al,w.current)||(w.current=al,x(al)),"native"===s&&O(!1),h(!0)},commitValidation(){"native"===s&&O(!0),h(!0)}}}(e)}function af(e){return e?Array.isArray(e)?e:[e]:[]}function ap(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:as}:null}function am(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,r)=>e===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([e,r])=>t.validationDetails[e]===r)}function ah(...e){let t=new Set,r=!1,n={...ai};for(let a of e){for(let e of a.validationErrors)t.add(e);for(let e in r||=a.isInvalid,n)n[e]||=a.validationDetails[e]}return n.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:n}}var ay=r(5923);let av=new rz((gW=ao)&&gW.__esModule?gW.default:gW);function ag(){let e="u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function ab(e,t,r,n,a){let o=null!=e&&null!=r&&e.compare(r)>0,i=null!=e&&null!=t&&0>e.compare(t),s=null!=e&&n?.(e)||!1,l=o||i||s,u=[];if(l){let e=ag(),n=new r$(e,rz.getGlobalDictionaryForPackage("@react-stately/datepicker")||av),l=new rN(e,aj({},a)),c=l.resolvedOptions().timeZone;i&&null!=t&&u.push(n.format("rangeUnderflow",{minValue:l.format(t.toDate(c))})),o&&null!=r&&u.push(n.format("rangeOverflow",{maxValue:l.format(r.toDate(c))})),s&&u.push(n.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:i,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}let ax={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},aw={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function aj(e,t){e={...t.shouldForceLeadingZeros?aw:ax,...e};let r=t.granularity||"minute",n=Object.keys(e),a=n.indexOf(t.maxGranularity??"year");a<0&&(a=0);let o=n.indexOf(r);if(o<0&&(o=2),a>o)throw Error("maxGranularity must be greater than granularity");let i=n.slice(a,o+1).reduce((t,r)=>(t[r]=e[r],t),{});return null!=t.hourCycle&&(i.hour12=12===t.hourCycle),i.timeZone=t.timeZone||"UTC",("hour"===r||"minute"===r||"second"===r)&&t.timeZone&&!t.hideTimeZone&&(i.timeZoneName="short"),t.showEra&&0===a&&(i.era="short"),i}function aO(e){return e&&"hour"in e?e:new(0,ay.gX)}function aS(e,t){return null===e?null:e?(0,nn.yP)(e,t):void 0}function ak(e,t){let r=e&&"timeZone"in e?e.timeZone:void 0,n=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw Error("Invalid granularity "+t+" for value "+e.toString());let[a,o]=(0,g.useState)([n,r]);return e&&(a[0]!==n||a[1]!==r)&&o([n,r]),t||(t=e?n:a[0]),[t,e?r:a[1]]}let aE=new rz({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"\xf1\xf1"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"\xe9\xe9\xe9\xe9",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"\xe1\xe1\xe1\xe1",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},no:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},sv:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");class aP{constructor(e,t,r){if(this.era=r?.era??null,this.calendar=e,this.year=r?.year??null,this.month=r?.month??null,this.day=r?.day??null,this.hour=r?.hour??null,this.hourCycle=t,this.dayPeriod=null,this.minute=r?.minute??null,this.second=r?.second??null,this.millisecond=r?.millisecond??null,this.offset="offset"in(r??{})?r.offset:null,null!=this.hour){let[e,r]=aD(this.hour,t);this.dayPeriod=e,this.hour=r}}copy(){let e=new aP(this.calendar,this.hourCycle);return e.era=this.era,e.year=this.year,e.month=this.month,e.day=this.day,e.hour=this.hour,e.dayPeriod=this.dayPeriod,e.minute=this.minute,e.second=this.second,e.millisecond=this.millisecond,e.offset=this.offset,e}isComplete(e){return e.every(e=>null!=this[e])}validate(e,t){return t.every(t=>{if(("hour"===t||"dayPeriod"===t)&&"hour"in e){let[t,r]=aD(e.hour,this.hourCycle);return this.dayPeriod===t&&this.hour===r}return this[t]===e[t]})}isCleared(e){return e.every(e=>null===this[e])}set(e,t,r){let n=this.copy();return n[e]=t,"hour"===e&&null==n.dayPeriod&&"hour"in r&&(n.dayPeriod=aD(r.hour,this.hourCycle)[0]),"year"===e&&null==n.era&&(n.era=r.era),"second"!==e&&"literal"!==e&&"timeZoneName"!==e&&(n.offset=null),n}clear(e){let t=this.copy();return t[e]=null,"year"===e&&(t.era=null),t.offset=null,t}cycle(e,t,r,n){let a=this.copy();if(null==a[e]&&"dayPeriod"!==e&&"era"!==e){if("hour"===e&&"hour"in r){let[e,t]=aD(r.hour,this.hourCycle);a.dayPeriod=e,a.hour=t}else a[e]=r[e];return"year"===e&&null==a.era&&(a.era=r.era),a}switch(e){case"era":{let e=this.calendar.getEras(),r=e.indexOf(a.era);r=aA(r,t,0,e.length-1),a.era=e[r];break}case"year":{let n=new(0,ay.ng)(this.calendar,this.era??r.era,this.year??r.year,this.month??1,this.day??1);a.era=(n=n.cycle(e,t,{round:"year"===e})).era,a.year=n.year;break}case"month":a.month=aA(a.month??1,t,1,this.calendar.getMaximumMonthsInYear());break;case"day":a.day=aA(a.day??1,t,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let e=n.some(e=>["year","month","day"].includes(e));if("timeZone"in r&&(!e||null!=a.year&&null!=a.month&&null!=a.day)){let e=this.toValue(r),[n,o]=aD((e=e.cycle("hour",t,{hourCycle:"h12"===this.hourCycle?12:24,round:!1})).hour,this.hourCycle);a.hour=o,a.dayPeriod=n,a.offset=e.offset}else{let e=a.hour??0,n=this.getSegmentLimits("hour");a.hour=aA(e,t,n.minValue,n.maxValue),null==a.dayPeriod&&"hour"in r&&(a.dayPeriod=aD(r.hour,this.hourCycle)[0])}break}case"dayPeriod":a.dayPeriod=aA(a.dayPeriod??0,t,0,1);break;case"minute":a.minute=aA(a.minute??0,t,0,59,!0);break;case"second":a.second=aA(a.second??0,t,0,59,!0)}return a}toValue(e){if(!("hour"in e))return e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day});{let t=this.hour;null!=t?t=function(e,t,r){switch(r){case"h11":1===t&&(e+=12);break;case"h12":12===e&&(e=0),1===t&&(e+=12);break;case"h24":e-=1}return e}(t,this.dayPeriod??0,this.hourCycle):("h12"===this.hourCycle||"h11"===this.hourCycle)&&(t=12*(1===this.dayPeriod));let r=e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day,hour:t??e.hour,minute:this.minute??e.minute,second:this.second??e.second,millisecond:this.millisecond??e.millisecond});return"offset"in r&&null!=this.offset&&r.offset!==this.offset&&(r=r.add({milliseconds:r.offset-this.offset})),r}}getSegmentLimits(e){switch(e){case"era":{let e=this.calendar.getEras();return{value:null!=this.era?e.indexOf(this.era):e.length-1,minValue:0,maxValue:e.length-1}}case"year":return{value:this.year,minValue:1,maxValue:9999};case"month":return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case"day":return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case"dayPeriod":return{value:this.dayPeriod,minValue:0,maxValue:1};case"hour":{let e=0,t=23;return"h12"===this.hourCycle?(e=1,t=12):"h11"===this.hourCycle&&(e=0,t=11),{value:this.hour,minValue:e,maxValue:t}}case"minute":return{value:this.minute,minValue:0,maxValue:59};case"second":return{value:this.second,minValue:0,maxValue:59}}}}function aA(e,t,r,n,a=!1){if(a){(e+=Math.sign(t))<r&&(e=n);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>n&&(e=r)}else(e+=t)<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function aD(e,t){let r=+(e>=12);switch(t){case"h11":e>=12&&(e-=12);break;case"h12":0===e?e=12:e>12&&(e-=12);break;case"h23":r=null;break;case"h24":e+=1,r=null}return[r,e]}let aC=new Map,aT=!1;try{aT="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let aN=!1;try{aN="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}let aR={degree:{narrow:{default:"\xb0","ja-JP":" 度","zh-TW":"度","sl-SI":" \xb0"}}};class aM{constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),"unit"===t.style&&!aN){let{unit:e,unitDisplay:r="short"}=t;if(!e)throw Error('unit option must be provided with style: "unit"');if(!aR[e]?.[r])throw Error(`Unsupported unit ${e} with unitDisplay = ${r}`);t={...t,style:"decimal"}}let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(aC.has(n))return aC.get(n);let a=new Intl.NumberFormat(e,t);return aC.set(n,a),a}(e,t),this.options=t}format(e){let t="";if(t=aT||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,r){if("auto"===t)return e.format(r);{if("never"===t)return e.format(Math.abs(r));let n=!1;if("always"===t?n=r>0||Object.is(r,0):"exceptZero"===t&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),!n)return e.format(r);{let t=e.format(-r),n=e.format(r),a=t.replace(n,"").replace(/\u200e|\u061C/,"");return 1!=[...a].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(n,"!!!").replace(a,"+").replace("!!!",n)}}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!aN){let{unit:e,unitDisplay:r="short",locale:n}=this.resolvedOptions();if(!e)return t;let a=aR[e]?.[r];t+=a[n]||a.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return aT||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),aN||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}}let aI={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},a_={year:5,month:2,day:7,hour:2,minute:15,second:15},aL={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function aF(e){let{locale:t,createCalendar:r,hideTimeZone:n,isDisabled:a=!1,isReadOnly:o=!1,isRequired:i=!1,minValue:s,maxValue:l,isDateUnavailable:u}=e,c=e.value||e.defaultValue||e.placeholderValue||null,[d,f]=ak(c,e.granularity),p=f||"UTC";if(c&&!(d in c))throw Error("Invalid granularity "+d+" for value "+c.toString());let[m,h]=(0,g.useMemo)(()=>{let n=new rN(t,{dateStyle:"short",timeStyle:"short",hour12:null!=e.hourCycle?12===e.hourCycle:void 0}).resolvedOptions();return[r(n.calendar),n.hourCycle]},[t,e.hourCycle,r]),[y,v]=nf(e.value,e.defaultValue??null,e.onChange),[b]=(0,g.useState)(y),x=(0,g.useMemo)(()=>aS(y,m)??null,[y,m]),[w,j]=(0,g.useState)(()=>new aP(m,h,x)),O="gregory"===m.identifier&&"BC"===w.era,S=(0,g.useMemo)(()=>({granularity:d,maxGranularity:e.maxGranularity??"year",timeZone:f,hideTimeZone:n,hourCycle:e.hourCycle,showEra:O,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,d,e.hourCycle,e.shouldForceLeadingZeros,f,n,O]),k=(0,g.useMemo)(()=>aj({},S),[S]),E=(0,g.useMemo)(()=>new rN(t,k),[t,k]),P=(0,g.useMemo)(()=>E.resolvedOptions(),[E]),A=(0,g.useMemo)(()=>(function(e,t,r,n){if(e)return aS(e,r);let a=(0,nn.yP)((0,rq.tB)(n??(0,rq.Xj)()).set({hour:0,minute:0,second:0,millisecond:0}),r);return"year"===t||"month"===t||"day"===t?(0,nn.gw)(a):n?a:(0,nn.tR)(a)})(e.placeholderValue,d,m,f),[e.placeholderValue,d,m,f]),D=(0,g.useMemo)(()=>{let t="h11"===h||"h12"===h,r=["era","year","month","day","hour",...t?["dayPeriod"]:[],"minute","second"],n=r.indexOf(e.maxGranularity||"era"),a=r.indexOf("hour"===d&&t?"dayPeriod":d);return r.slice(n,a+1)},[e.maxGranularity,d,h]),[C,T]=(0,g.useState)(x),[N,R]=(0,g.useState)(m),[M,I]=(0,g.useState)(h);x===C&&h===M&&(0,rq.Jg)(m,N)||(w=new aP(m,h,x),T(x),R(m),I(h),j(w));let L=t=>{if(!e.isDisabled&&!e.isReadOnly)if(null==t||t instanceof aP&&t.isCleared(D))j(new aP(m,h,x)),v(null);else if(t instanceof aP){if(t.isComplete(D)){let e=t.toValue(x??A);if(t.validate(e,D)){let t=(0,nn.yP)(e,c?.calendar||new(0,np.FG));if(!y||0!==t.compare(y)){j(new aP(m,h,x)),v(t);return}}}j(t)}else t=(0,nn.yP)(t,c?.calendar||new(0,np.FG)),j(new aP(m,h,x)),v(t)},F=(0,g.useMemo)(()=>w.toValue(x??A).toDate(p),[w,p,x,A]),B=(0,g.useMemo)(()=>(function(e,t,r,n,a,o,i){let s=["hour","minute","second"],l=r.formatToParts(e),u=new aM(o,{useGrouping:!1}),c=new aM(o,{useGrouping:!1,minimumIntegerDigits:2});for(let e of l)if("year"===e.type||"month"===e.type||"day"===e.type||"hour"===e.type){let r=t[e.type]??0;"2-digit"===n[e.type]?e.value=c.format(r):e.value=u.format(r)}let d=[];for(let e of l){var f;let r=aL[e.type]||e.type,n=aI[r];"era"===r&&1===a.getEras().length&&(n=!1);let l=aI[r]&&null==t[e.type],u=aI[r]?(f=e.value,"era"===r||"dayPeriod"===r?f:"year"===r||"month"===r||"day"===r?aE.getStringForLocale(r,o):"––"):null,c={type:r,text:l?u:e.value,...t.getSegmentLimits(r),isPlaceholder:l,placeholder:u,isEditable:n};"hour"===r?(d.push({type:"literal",text:"⁦",isPlaceholder:!1,placeholder:"",isEditable:!1}),d.push(c),r===i&&d.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):s.includes(r)&&r===i?(d.push(c),d.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):d.push(c)}return d})(F,w,E,P,m,t,d),[F,E,P,w,m,t,d]),V=(e,t)=>{L(w.cycle(e,t,A,D))},z=(0,g.useMemo)(()=>ab(y,s,l,u,S),[y,s,l,u,S]),W=ad({...e,value:y,builtinValidation:z}),U=W.displayValidation.isInvalid,$=e.validationState||(U?"invalid":null);return{...W,value:x,defaultValue:e.defaultValue??b,dateValue:F,calendar:m,setValue:L,segments:B,dateFormatter:E,validationState:$,isInvalid:U,granularity:d,maxGranularity:e.maxGranularity??"year",isDisabled:a,isReadOnly:o,isRequired:i,increment(e){V(e,1)},decrement(e){V(e,-1)},incrementPage(e){V(e,a_[e]||1)},decrementPage(e){V(e,-(a_[e]||1))},incrementToMax(e){let t="hour"===e&&"h12"===h?11:w.getSegmentLimits(e).maxValue;L(w.set(e,t,A))},decrementToMin(e){let t="hour"===e&&"h12"===h?12:w.getSegmentLimits(e).minValue;L(w.set(e,t,A))},setSegment(e,t){L(w.set(e,t,A))},confirmPlaceholder(){if(!e.isDisabled&&!e.isReadOnly&&w.isComplete(D)){let e=w.toValue(x??A),t=(0,nn.yP)(e,c?.calendar||new(0,np.FG));y&&0===t.compare(y)||v(t),j(new aP(m,h,x))}},clearSegment(e){let t=w;"timeZoneName"!==e&&"literal"!==e&&(t=w.clear(e)),L(t)},formatValue:e=>x?new rN(t,aj(e,S)).format(F):"",getDateFormatter:(e,t)=>new rN(e,aj({},{...S,...t}))}}let aB=(0,g.createContext)(null),aV=(0,g.createContext)(null),az=(0,g.createContext)(null),aW=(0,g.forwardRef)(function(e,t){let r=(0,g.useContext)(aV),n=(0,g.useContext)(az);return r||n?b().createElement(a$,{...e,ref:t}):b().createElement(aU,{...e,ref:t})}),aU=(0,g.forwardRef)((e,t)=>{let[r,n]=ex({slot:e.slot},t,aB),{locale:a}=rC(),o=aF({...r,locale:a,createCalendar:nr.d}),i=(0,g.useRef)(null),{fieldProps:s,inputProps:l}=aa({...r,inputRef:i},o,n);return b().createElement(ev,{values:[[aV,o],[n_,{...l,ref:i}],[nM,{...s,ref:n,isInvalid:o.isInvalid,isDisabled:o.isDisabled}]]},b().createElement(a$,e))}),a$=(0,g.forwardRef)((e,t)=>{let{className:r,children:n}=e,a=(0,g.useContext)(aV),o=(0,g.useContext)(az),i=a??o;return b().createElement(b().Fragment,null,b().createElement(nI,{...e,ref:t,slot:e.slot||void 0,className:r??"react-aria-DateInput",isReadOnly:i.isReadOnly,isInvalid:i.isInvalid,isDisabled:i.isDisabled},i.segments.map((e,t)=>(0,g.cloneElement)(n(e),{key:t}))),b().createElement(nL,{className:""}))});function aH({children:e}){let t=(0,g.useMemo)(()=>({register:()=>{}}),[]);return b().createElement(tG.Provider,{value:t},e)}b().forwardRef(({children:e,...t},r)=>{let n=(0,g.useRef)(!1),a=(0,g.useContext)(tG),o=em(a||{},{...t,register(){n.current=!0,a&&a.register()}});return o.ref=eh(r||a?.ref),tF(a,o.ref),(0,g.useEffect)(()=>{n.current||(n.current=!0)},[]),b().createElement(tG.Provider,{value:o},e)});let aK=(0,g.createContext)({}),aG=b().createContext(null);function aq(e){let t=eo(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[a,o]=(0,g.useState)(!1),i=(0,g.useMemo)(()=>({contain:a,setContain:o}),[a,o]),{getContainer:s}=(0,g.useContext)(aK)??{};if(!e.portalContainer&&s&&(r=s()),!r)return null;let l=e.children;return e.disableFocusManagement||(l=b().createElement(nW,{restoreFocus:!0,contain:(e.shouldContainFocus||a)&&!n},l)),l=b().createElement(aG.Provider,{value:i},b().createElement(aH,null,b().createElement(tB.Provider,{value:null},l))),tQ().createPortal(l,r)}let aY=(0,g.createContext)(null),aX=(0,g.createContext)(null),aZ=(0,g.forwardRef)(function(e,t){let r=e["aria-labelledby"];[e,t]=ex(e,t,aY);let{dialogProps:n,titleProps:a,contentProps:o}=function(e,t){let r,n,{role:a="dialog"}=e,o=ec();o=e["aria-label"]?void 0:o;let i=ec();i="alertdialog"!==a||e["aria-describedby"]?void 0:i;let s=(0,g.useRef)(!1);(0,g.useEffect)(()=>{if(t.current&&!eG(t.current)){tD(t.current);let e=setTimeout(()=>{(((e=document)=>e.activeElement)()===t.current||((e=document)=>e.activeElement)()===document.body)&&(s.current=!0,t.current&&(t.current.blur(),tD(t.current)),s.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),r=(0,g.useContext)(aG),X(()=>{n?.(!0)},[n=r?.setContain]),(0,g.useRef)(!1),(0,g.useEffect)(()=>{});let l=e["aria-describedby"]??i;return{dialogProps:{...e_(e,{labelable:!0}),role:a,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]??o,"aria-describedby":l,onBlur:e=>{s.current&&e.stopPropagation()}},titleProps:{id:o},contentProps:{id:i}}}({...e,"aria-labelledby":r},t),i=(0,g.useContext)(aX);n["aria-label"]||n["aria-labelledby"]||e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]);let s=eg({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:i?.close||(()=>{})}}),l=e_(e,{global:!0});return b().createElement(ek.section,{...em(l,s,n),render:e.render,ref:t,slot:e.slot||void 0},b().createElement(ev,{values:[[rf,{slots:{[ey]:{},title:{...a,level:2}}}],[rp,{slots:{[ey]:{},description:o}}],[ru,{slots:{[ey]:{},close:{onPress:()=>i?.close()}}}]]},s.children))}),aQ=(0,g.createContext)(null),aJ=(0,g.forwardRef)(function(e,t){let r=(0,g.useContext)(aQ);return r?.isInvalid?b().createElement(a0,{...e,ref:t}):null}),a0=(0,g.forwardRef)((e,t)=>{let r=(0,g.useContext)(aQ),{elementType:n,...a}=e,o=e_(a,{global:!0}),i=eg({...a,defaultClassName:"react-aria-FieldError",defaultChildren:0===r.validationErrors.length?void 0:r.validationErrors.join(" "),values:r});return null==i.children?null:b().createElement(rm,{slot:"errorMessage",elementType:n,...o,...i,ref:t})}),a1=(0,g.createContext)(null);var a2=r(2298);let a3=["day","month","year"],a4={hour:1,minute:2,second:3};function a5(e){let{state:t}=e,{containerProps:r,inputProps:n}=function(e,t){let{autoComplete:r,isDisabled:n,name:a}=e,{visuallyHiddenProps:o}=nx({style:{position:"fixed",top:0,left:0}}),i=60;"second"===t.granularity?i=1:"hour"===t.granularity&&(i=3600);let s="";t.value&&(s="day"===t.granularity?(0,nn.gw)(t.value).toString():(0,nn.tR)("timeZone"in t.value?(0,nn.Ou)(t.value):t.value).toString());let l="day"===t.granularity?"date":"datetime-local",u=["hour","minute","second"],c=0;return u.includes(t.granularity)&&(c=a4[t.granularity],u=u.slice(0,c)),{containerProps:{...o,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:r,disabled:n,type:l,form:"",name:a,step:i,value:s,onChange:e=>{let r=eH(e).value.toString();if(r)try{let e=(0,a2.DP)(r);if("day"===t.granularity&&(e=(0,a2._U)(r)),"setSegment"in t)for(let r in e)a3.includes(r)&&t.setSegment(r,e[r]),u.includes(r)&&t.setSegment(r,e[r]);t.setValue(e)}catch{}}}}}({...e},t);return b().createElement("div",{...r,"data-testid":"hidden-dateinput-container"},b().createElement("input",n))}let a6=(0,g.createContext)({}),a8=rt(function(e,t){[e,t]=ex(e,t,a6);let{elementType:r="label",...n}=e,a=ek[r];return b().createElement(a,{className:"react-aria-Label",...n,ref:t})}),a9=(0,g.createContext)({placement:"bottom"}),a7="u">typeof HTMLElement&&"inert"in HTMLElement.prototype,oe=new WeakMap,ot=[];function or(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function on(e,t){let r=e,n=0,a=t.toString(),o=a.toLowerCase().indexOf("e-");if(o>0)n=Math.abs(Math.floor(Math.log10(Math.abs(t))))+o;else{let e=a.indexOf(".");e>=0&&(n=a.length-e)}if(n>0){let e=Math.pow(10,n);r=Math.round(r*e)/e}return r}function oa(e,t,r,n){t=Number(t),r=Number(r);let a=(e-(isNaN(t)?0:t))%n,o=on(2*Math.abs(a)>=n?e+Math.sign(a)*(n-Math.abs(a)):e-a,n);return isNaN(t)?!isNaN(r)&&o>r&&(o=Math.floor(on(r/n,n))*n):o<t?o=t:!isNaN(r)&&o>r&&(o=t+Math.floor(on((r-t)/n,n))*n),o=on(o,n)}let oo={top:"top",bottom:"top",left:"left",right:"left"},oi={top:"bottom",bottom:"top",left:"right",right:"left"},os={top:"left",left:"top"},ol={top:"height",left:"width"},ou={width:"totalWidth",height:"totalHeight"},oc={};function od(e,t){let r=0,n=0,a=0,o=0,i=0,s=0,l={},u=(t?.scale??1)>1;if("BODY"===e.tagName||"HTML"===e.tagName){let u=document.documentElement;a=u.clientWidth,o=u.clientHeight,r=t?.width??a,n=t?.height??o,l.top=u.scrollTop||e.scrollTop,l.left=u.scrollLeft||e.scrollLeft,t&&(i=Math.max(0,t.pageTop-(l.top??0)),s=Math.max(0,t.pageLeft-(l.left??0)))}else({width:r,height:n,top:i,left:s}=ov(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,a=r,o=n;return tn()&&("BODY"===e.tagName||"HTML"===e.tagName)&&u&&(l.top=0,l.left=0,i=t?.pageTop??0,s=t?.pageLeft??0),{width:r,height:n,totalWidth:a,totalHeight:o,scroll:l,top:i,left:s}}function of(e,t,r,n,a,o,i){let s=a.scroll[e]??0,l=n[ol[e]],u=i[e]+n.scroll[oo[e]]+o,c=i[e]+n.scroll[oo[e]]+l-o,d=t-s+n.scroll[oo[e]]+i[e]-n[oo[e]],f=t-s+r+n.scroll[oo[e]]+i[e]-n[oo[e]];return d<u?u-d:f>c?Math.max(c-f,u-d):0}function op(e){if(oc[e])return oc[e];let[t,r]=e.split(" "),n=oo[t]||"right",a=os[n];oo[r]||(r="center");let o=ol[n],i=ol[a];return oc[e]={placement:t,crossPlacement:r,axis:n,crossAxis:a,size:o,crossSize:i},oc[e]}function om(e,t,r,n,a,o,i,s,l,u,c){let{placement:d,crossPlacement:f,axis:p,crossAxis:m,size:h,crossSize:y}=n,v={};v[m]=e[m]??0,"center"===f?v[m]+=((e[y]??0)-(r[y]??0))/2:f!==m&&(v[m]+=(e[y]??0)-(r[y]??0)),v[m]+=o;let g=e[m]-r[y]+l+u,b=e[m]+e[y]-l-u;if(v[m]=or(v[m],g,b),d===p){let t=s?c[h]:c[ou[h]];v[oi[p]]=Math.floor(t-e[p]+a)}else v[p]=Math.floor(e[p]+e[h]+a);return v}function oh(e,t,r,n,a,o,i,s){let{placement:l,axis:u,size:c}=o;return l===u?Math.max(0,r[u]-(i.scroll[u]??0)-(e[u]+(s?t[u]:0))-(n[u]??0)-n[oi[u]]-a):Math.max(0,e[c]+e[u]+(s?t[u]:0)-r[u]-r[c]+(i.scroll[u]??0)-(n[u]??0)-n[oi[u]]-a)}function oy(e,t){let{top:r,left:n,width:a,height:o}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(a=e.offsetWidth,o=e.offsetHeight),{top:r,left:n,width:a,height:o}}function ov(e,t,r){let{top:n,left:a,width:o,height:i}=r||oy(e,t),{scrollTop:s,scrollLeft:l,clientTop:u,clientLeft:c}=document.documentElement;return{top:n+s-u,left:a+l-c,width:o,height:i}}function og(e,t,r,n){let a,o=window.getComputedStyle(e);if("fixed"===o.position)a=n||oy(e,r);else{a=ov(e,r,n);let o=ov(t,r),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=o.top,a.left-=o.left}return a.top-=parseInt(o.marginTop,10)||0,a.left-=parseInt(o.marginLeft,10)||0,a}function ob(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}let ox=new WeakMap;function ow(e){let{ref:t,box:r,onResize:n}=e,a=tY(n);(0,g.useEffect)(()=>{let e=t?.current;if(e)if(void 0===window.ResizeObserver)return window.addEventListener("resize",a,!1),()=>{window.removeEventListener("resize",a,!1)};else{let t=new window.ResizeObserver(e=>{e.length&&a()});return t.observe(e,{box:r}),()=>{e&&t.unobserve(e)}}},[t,r])}let oj="u">typeof document?window.visualViewport:null;function oO(e,t){if(e.button>0)return!1;let r=eH(e);if(r){let e=r.ownerDocument;if(!e||!e$(e.documentElement,r)||r.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}let oS=[],ok=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function oE(e){return e instanceof HTMLInputElement&&!ok.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let oP="u">typeof document&&window.visualViewport,oA=0;function oD(e,t){t||!oP?oC(e):oP.addEventListener("resize",()=>oC(e),{once:!0})}function oC(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let e=r4(r);if(e!==document.documentElement&&e!==document.body&&e!==r){let t=e.getBoundingClientRect(),n=r.getBoundingClientRect();if(n.top<t.top||n.bottom>t.top+r.clientHeight){let r=t.bottom;oP&&(r=Math.min(r,oP.offsetTop+oP.height));let a=n.top-t.top-((r-t.top)/2-n.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+a)),behavior:"smooth"})}}r=e.parentElement}}var oT={};function oN(e){var t;let{onDismiss:r,...n}=e,a=r0(n,rG((t=oT)&&t.__esModule?t.default:t,"@react-aria/overlays").format("dismiss"));return b().createElement(nw,null,b().createElement("button",{...a,tabIndex:-1,onClick:()=>{r&&r()},style:{width:1,height:1}}))}function oR(e){let[t,r]=nf(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[n,a]=(0,g.useState)(null),o=(0,g.useCallback)(()=>{r(!0)},[r]),i=(0,g.useCallback)(()=>{r(!1)},[r]),s=(0,g.useCallback)(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:o,close:i,toggle:s,point:n,setPoint:a}}function oM(e,t,r){X(()=>{if(t&&e.current){if(!("getAnimations"in e.current))return void r();let t=e.current.getAnimations();if(0===t.length)return void r();let n=!1;return Promise.allSettled(t.map(e=>e.finished)).then(()=>{n||(0,tZ.flushSync)(()=>{r()})}),()=>{n=!0}}},[e,t,r])}oT={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schlie\xdfen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"L\xf5peta"},"fi-FI":{dismiss:"Hylk\xe4\xe4"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutas\xedt\xe1s"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}};let oI=(0,g.createContext)(null),o_=(0,g.createContext)(null),oL=(0,g.forwardRef)(function(e,t){[e,t]=ex(e,t,oI);let r=(0,g.useContext)(aX),n=oR(e),a=null==e.isOpen&&null==e.defaultOpen&&r?r:n,o=function(e,t){let[r,n]=(0,g.useState)(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open")}let a="exiting"===r;return oM(e,a,(0,g.useCallback)(()=>{n(e=>"exiting"===e?"closed":e)},[])),a}(t,a.isOpen),i=e.isExiting||!e.shouldSkipAnimation&&o||!1,s=(0,g.useContext)(re),{direction:l}=rC();if(s){let t=e.children;return"function"==typeof t&&(t=t({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),b().createElement(b().Fragment,null,t)}return!a||a.isOpen||i?b().createElement(oF,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:i,dir:l}):null});function oF({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...o}){let i=(0,g.useRef)(null),s=(0,g.useRef)(null),l=(0,g.useContext)(o_),u=l&&"SubmenuTrigger"===o.trigger,{popoverProps:c,underlayProps:d,arrowProps:f,placement:p,triggerAnchorPoint:m}=function(e,t){let{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:l,...u}=e,c="SubmenuTrigger"===u.trigger,{overlayProps:d,underlayProps:f}=function(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:a,isDismissable:o=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:s}=e,l=(0,g.useRef)(void 0);(0,g.useEffect)(()=>{if(a&&!oS.includes(t))return oS.push(t),()=>{let e=oS.indexOf(t);e>=0&&oS.splice(e,1)}},[a,t]);let u=()=>{oS[oS.length-1]===t&&r&&r()},{keyboardProps:c}=tL({shortcuts:{Escape:()=>!i&&void u()}});!function(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:a}=e,o=(0,g.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=tY(e=>{r&&oO(e,t)&&(a&&a(e),o.current.isPointerDown=!0)}),s=tY(e=>{r&&r(e)});(0,g.useEffect)(()=>{let e=o.current;if(n)return;let r=eB(t.current);if("u">typeof PointerEvent){let n=r=>{e.isPointerDown&&oO(r,t)&&s(r),e.isPointerDown=!1};return r.addEventListener("pointerdown",i,!0),r.addEventListener("click",n,!0),()=>{r.removeEventListener("pointerdown",i,!0),r.removeEventListener("click",n,!0)}}},[t,n])}({ref:t,onInteractOutside:o&&a?e=>{(!s||s(eH(e)))&&(oS[oS.length-1]===t&&e.stopPropagation(),l.current===t&&u()),l.current=void 0}:void 0,onInteractOutsideStart:e=>{let r=oS[oS.length-1];l.current=r,(!s||s(eH(e)))&&r===t&&e.stopPropagation()}});let{focusWithinProps:d}=rr({isDisabled:!n,onBlurWithin:e=>{!(!e.relatedTarget||nK(e.relatedTarget,nz))&&(!s||s(e.relatedTarget))&&r?.()}});return{overlayProps:{...c,...d},underlayProps:{}}}({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||c,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:l},o??n),{overlayProps:p,arrowProps:m,placement:h,triggerAnchorPoint:y}=function(e){var t;let{direction:r}=rC(),{arrowSize:n,targetRef:a,overlayRef:o,arrowRef:i,scrollRef:s=o,placement:l="bottom",containerPadding:u=12,shouldFlip:c=!0,boundaryElement:d="u">typeof document?document.body:null,offset:f=0,crossOffset:p=0,shouldUpdatePosition:m=!0,isOpen:h=!0,onClose:y,maxHeight:v,arrowBoundaryOffset:b=0,getTargetRect:x}=e,[w,j]=(0,g.useState)(null),O=[m,l,o.current,a.current,i?.current,s.current,u,c,d,f,p,h,r,v,b,n],S=(0,g.useRef)(oj?.scale);(0,g.useEffect)(()=>{h&&(S.current=oj?.scale)},[h]);let k=(0,g.useCallback)(()=>{var e;if(!1===m||!h||!o.current||!a.current||!d||oj?.scale!==S.current)return;let t=null;if(s.current&&eG(s.current)){let e=((e=document)=>e.activeElement)()?.getBoundingClientRect(),r=s.current.getBoundingClientRect();(t={type:"top",offset:(e?.top??0)-r.top}).offset>r.height/2&&(t.type="bottom",t.offset=(e?.bottom??0)-r.bottom)}let y=o.current;!v&&o.current&&(y.style.top="0px",y.style.bottom="",y.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let g=function(e){let t,r,{placement:n,targetNode:a,overlayNode:o,scrollNode:i,padding:s,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:f,arrowSize:p=0,arrowBoundaryOffset:m=0,targetRect:h}=e,y="u">typeof document?window.visualViewport:null,v=o instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!ob(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!ob(t);)t=t.parentElement;return t||document.documentElement}(o):document.documentElement,g=v===document.documentElement,b=window.getComputedStyle(v).position,x=g?ov(a,!1,h):og(a,v,!1,h);if(!g){let{marginTop:e,marginLeft:t}=window.getComputedStyle(a);x.top+=parseInt(e,10)||0,x.left+=parseInt(t,10)||0}let w=ov(o,!0),j={top:parseInt((t=window.getComputedStyle(o)).marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0};w.width+=(j.left??0)+(j.right??0),w.height+=(j.top??0)+(j.bottom??0),i.scrollTop,i.scrollLeft,i.scrollWidth,i.scrollHeight;let O=od(u,y),S=od(v,y);if("BODY"!==u.tagName&&"HTML"!==u.tagName||g)r=("BODY"===u.tagName||"HTML"===u.tagName)&&g?{top:0,left:0,width:0,height:0}:og(u,v,!1);else{let e=oy(v,!1);r={top:-(e.top-O.top),left:-(e.left-O.left),width:0,height:0}}return function(e,t,r,n,a,o,i,s,l,u,c,d,f,p,m,h,y){var v,g,b;let x,w,j,O=op(e),{size:S,crossAxis:k,crossSize:E,placement:P,crossPlacement:A}=O,D=om(t,i,r,O,u,c,l,d,p,m,s),C=u,T=oh(i,l,t,n,a+u,O,s,h);if(o&&r[S]>T){let e=op(`${oi[P]} ${A}`),o=om(t,i,r,e,u,c,l,d,p,m,s);oh(i,l,t,n,a+u,e,s,h)>T&&(O=e,D=o,C=u)}let N="bottom";"top"===O.axis?"top"===O.placement?N="top":"bottom"===O.placement&&(N="bottom"):"top"===O.crossAxis&&("top"===O.crossPlacement?N="bottom":"bottom"===O.crossPlacement&&(N="top"));let R=of(k,D[k],r[E],i,s,a,l);D[k]+=R;let M=(v=D,g=r.height,b=N,x=(null!=v.top?v.top:s[ou.height]-(v.bottom??0)-g)-(s.scroll.top??0),w=h?l.top:0,j={top:Math.max(i.top+w,(y?.offsetTop??i.top)+w),bottom:Math.min(i.top+i.height+w,(y?.offsetTop??0)+(y?.height??0))},"top"!==b?Math.max(0,j.bottom-x-((n.top??0)+(n.bottom??0)+a)):Math.max(0,x+g-j.top-((n.top??0)+(n.bottom??0)+a)));f&&f<M&&(M=f),r.height=Math.min(r.height,M),R=of(k,(D=om(t,i,r,O,C,c,l,d,p,m,s))[k],r[E],i,s,a,l),D[k]+=R;let I={},L=t[k]-D[k]-n[oo[k]],F=L+.5*t[E],B=p/2+m,V="left"===oo[k]?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),z=r[E]-V-p/2-m,W=or(F,t[k]+p/2-(D[k]+n[oo[k]]),t[k]+t[E]-p/2-(D[k]+n[oo[k]]));I[k]=or(W,B,z),({placement:P,crossPlacement:A}=O),p?L=I[k]:"right"===A?L+=t[E]:"center"===A&&(L+=t[E]/2);let U="left"===P||"top"===P?r[S]:0,$={x:"top"===P||"bottom"===P?L:U,y:"left"===P||"right"===P?L:U};return{position:D,maxHeight:M,arrowOffsetLeft:I.left,arrowOffsetTop:I.top,placement:P,triggerAnchorPoint:$}}(n,x,w,j,s,l,O,S,r,c,d,!!b&&"static"!==b,f,p,m,e$(u,v),y)}({placement:(e=l,"rtl"===r?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")),overlayNode:o.current,targetNode:a.current,scrollNode:s.current||o.current,padding:u,shouldFlip:c,boundaryElement:d,offset:f,crossOffset:p,maxHeight:v,arrowSize:n??(i?.current?oy(i.current,!0).width:0),arrowBoundaryOffset:b,targetRect:x?.(a.current)});if(!g.position)return;y.style.top="",y.style.bottom="",y.style.left="",y.style.right="",Object.keys(g.position).forEach(e=>y.style[e]=g.position[e]+"px"),y.style.maxHeight=null!=g.maxHeight?g.maxHeight+"px":"";let w=((e=document)=>e.activeElement)();if(t&&w&&s.current){let e=w.getBoundingClientRect(),r=s.current.getBoundingClientRect(),n=e[t.type]-r[t.type];s.current.scrollTop+=n-t.offset}j(g)},O);X(k,O),X(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t=k]),ow({ref:o,onResize:k}),ow({ref:a,onResize:k});let E=(0,g.useRef)(!1);X(()=>{let e,t=()=>{E.current=!0,clearTimeout(e),e=setTimeout(()=>{E.current=!1},500),k()},r=()=>{E.current&&t()};oj?.addEventListener("resize",t),oj?.addEventListener("scroll",r);let n=eW(eK(window),"scroll",r);return()=>{oj?.removeEventListener("resize",t),oj?.removeEventListener("scroll",r),n()}},[k]);let P=(0,g.useCallback)(()=>{E.current||y?.()},[y,E]);return!function(e){let{triggerRef:t,isOpen:r,onClose:n}=e;(0,g.useEffect)(()=>{if(r&&null!==n)return eW(eK(t.current),"scroll",e=>{let r=eH(e);if(!t.current||r instanceof Node&&!e$(r,t.current)||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement)return;let a=n||ox.get(t.current);a&&a()},!0)},[r,n,t])}({triggerRef:a,isOpen:h,onClose:y&&P}),{overlayProps:{style:{position:w?"absolute":"fixed",top:w?void 0:0,left:w?void 0:0,zIndex:1e5,...w?.position,maxHeight:w?.maxHeight??"100vh"}},placement:w?.placement??null,triggerAnchorPoint:w?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:w?.arrowOffsetLeft,top:w?.arrowOffsetTop}},updatePosition:k}}({...u,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:i&&!c?t.close:null,getTargetRect:u.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});!function(e={}){let{isDisabled:t}=e;X(()=>{if(!t){let e,t,r,n,o,i,s,l;return 1==++oA&&(a=tr()&&tn()?(t=eU(document.documentElement,"overflow","hidden"),r=!1,n=document.createElement("style"),(o=tK())&&(n.nonce=o),n.textContent=`
8
+ @layer {
9
+ * {
10
+ overscroll-behavior: contain;
11
+ }
12
+ }`.trim(),document.head.prepend(n),i=HTMLElement.prototype.focus,Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(e){let t=((e=document)=>e.activeElement)(),r=null!=t&&oE(t);i.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||oD(this,r)}}),s=Y(eW(document,"touchstart",t=>{let n=eH(t);e=r3(n)?n:r4(n,!0),r=!1;let a=n.ownerDocument.defaultView.getSelection();a&&!a.isCollapsed&&a.containsNode(n,!0)&&(r=!0),t.composedPath().some(e=>e instanceof HTMLInputElement&&"range"===e.type)&&(r=!0),"selectionStart"in n&&"selectionEnd"in n&&n.selectionStart<n.selectionEnd&&n.ownerDocument.activeElement===n&&(r=!0)},{passive:!1,capture:!0}),eW(document,"touchmove",t=>{if(2!==t.touches.length&&!r){if(!e||e===document.documentElement||e===document.body)return void t.preventDefault();e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()}},{passive:!1,capture:!0}),eW(document,"blur",e=>{let t=eH(e),r=e.relatedTarget;if(r&&oE(r))r.focus({preventScroll:!0}),oD(r,oE(t));else if(!r){let e=t.parentElement?.closest("[tabindex]");e?.focus({preventScroll:!0})}},!0)),()=>{t(),s(),n.remove(),Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:i})}):Y((l=window.innerWidth-document.documentElement.clientWidth)>0&&("scrollbarGutter"in document.documentElement.style?eU(document.documentElement,"scrollbar-gutter","stable"):eU(document.documentElement,"padding-right",`${l}px`)),eU(document.documentElement,"overflow","hidden"))),()=>{0==--oA&&a()}}},[t])}({isDisabled:i||!t.isOpen}),(0,g.useEffect)(()=>{if(t.isOpen&&n.current)if(i){var e,r,a=o?.current??n.current;let t=ot[ot.length-1];return t&&!t.visibleNodes.has(a)?(t.visibleNodes.add(a),()=>{t.visibleNodes.delete(a)}):void 0}else{let t,a,i,s,l,u,c,d,f,p,m;return e=[o?.current??n.current],a=(r={shouldUseInert:!0})instanceof(t=eV(e?.[0])).Element?{root:r}:r,i=a?.root??document.body,s=a?.shouldUseInert&&a7,l=new Set(e),u=new Set,c=(e,r)=>{s&&e instanceof t.HTMLElement?e.inert=r:r?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof t.HTMLElement&&(e.inert=!1))},d=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(t);let t=e=>{if(u.has(e)||l.has(e)||e.parentElement&&u.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of l)if(e$(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},r=nF(eB(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),n=t(e);if(n===NodeFilter.FILTER_ACCEPT&&f(e),n!==NodeFilter.FILTER_REJECT){let e=r.nextNode();for(;null!=e;)f(e),e=r.nextNode()}},f=e=>{let r=oe.get(e)??0;(s&&e instanceof t.HTMLElement?e.inert:"true"===e.getAttribute("aria-hidden"))&&0===r||(0===r&&c(e,!0),u.add(e),oe.set(e,r+1))},ot.length&&ot[ot.length-1].disconnect(),d(i),(p=new MutationObserver(e=>{for(let r of e)if("childList"===r.type&&r.target.isConnected&&![...l,...u].some(e=>e$(e,r.target)))for(let e of r.addedNodes){var t;(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===(t=e).dataset.liveAnnouncer||void 0!==t.dataset.reactAriaTopLayer)?l.add(e):e instanceof Element&&d(e)}})).observe(i,{childList:!0,subtree:!0}),m={visibleNodes:l,hiddenNodes:u,observe(){p.observe(i,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}},ot.push(m),()=>{for(let e of(p.disconnect(),u)){let t=oe.get(e);null!=t&&(1===t?(c(e,!1),oe.delete(e)):oe.set(e,t-1))}m===ot[ot.length-1]?(ot.pop(),ot.length&&ot[ot.length-1].observe()):ot.splice(ot.indexOf(m),1)}}},[i,t.isOpen,n,o]);let{focusWithinProps:v}=rr(e);return{popoverProps:em(d,p,v),arrowProps:m,underlayProps:f,placement:h,triggerAnchorPoint:y}}({...o,offset:o.offset??8,arrowRef:i,groupRef:u?l:s},e),h=o.popoverRef,y=function(e,t=!0){let[r,n]=(0,g.useState)(!0),a=r&&t;return X(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,a]),oM(e,a,(0,g.useCallback)(()=>n(!1),[])),a}(h,!!p),v=o.isEntering||!o.shouldSkipAnimation&&y||!1,x=eg({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:p,isEntering:v,isExiting:t}}),w=!o.isNonModal||"SubmenuTrigger"===o.trigger||"PreviewTrigger"===o.trigger,[j,O]=(0,g.useState)("PreviewTrigger"===o.trigger);X(()=>{h.current&&O(w&&!h.current.querySelector("[role=dialog]"))},[h,w]),(0,g.useEffect)(()=>{j&&"PreviewTrigger"!==o.trigger&&("SubmenuTrigger"!==o.trigger||"pointer"!==tu)&&h.current&&!eG(h.current)&&tD(h.current)},[j,h,o.trigger]);let S=(0,g.useMemo)(()=>{let e=x.children;if(n)for(let t of n)e=b().createElement(t.Provider,{value:null},e);return e},[x.children,n]),[k,E]=(0,g.useState)(null),P=(0,g.useCallback)(()=>{o.triggerRef.current&&E(o.triggerRef.current.getBoundingClientRect().width+"px")},[o.triggerRef]);X(P,[P]),ow({ref:x.style?.["--trigger-width"]?void 0:o.triggerRef,onResize:P});let A={...c.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...x.style,"--trigger-width":x.style?.["--trigger-width"]||k},D=b().createElement(ek.div,{...em(e_(o,{global:!0}),c),...x,id:j?o.id:void 0,role:j?"dialog":void 0,tabIndex:j?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:h,slot:o.slot||void 0,style:A,dir:o.dir,"data-trigger":o.trigger,"data-placement":p,"data-entering":v||void 0,"data-exiting":t||void 0},!o.isNonModal&&b().createElement(oN,{onDismiss:e.close}),b().createElement(a9.Provider,{value:{...f,placement:p,ref:i}},S),b().createElement(oN,{onDismiss:e.close}));return u?b().createElement(aq,{...o,shouldContainFocus:j&&"PreviewTrigger"!==o.trigger,isExiting:t,portalContainer:r??l?.current??void 0},D):b().createElement(aq,{...o,shouldContainFocus:j&&"PreviewTrigger"!==o.trigger,isExiting:t,portalContainer:r},!o.isNonModal&&e.isOpen&&b().createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),b().createElement("div",{ref:s,style:{display:"contents"}},b().createElement(o_.Provider,{value:s},D)))}function oB(e){return e?.start!=null&&null!=e.end}let oV=(0,g.createContext)(null),oz=(0,g.createContext)(null),oW=(0,g.createContext)(null),oU=(0,g.createContext)(null),o$=[nM,ru,a6,rp],oH=(0,g.forwardRef)(function(e,t){[e,t]=ex(e,t,oV);let{validationBehavior:r}=eb(a1)||{},n=e.validationBehavior??r??"native",a=function(e){let t=oR(e),[r,n]=nf(e.value,e.defaultValue||null,e.onChange),[a]=(0,g.useState)(r),o=r||e.placeholderValue||null,[i,s]=ak(o,e.granularity),l=null!=r?r.toDate(s??"UTC"):null,u="hour"===i||"minute"===i||"second"===i,c=e.shouldCloseOnSelect??!0,[d,f]=(0,g.useState)(null),[p,m]=(0,g.useState)(null);if(r&&(d=r,"hour"in r&&(p=r)),o&&!(i in o))throw Error("Invalid granularity "+i+" for value "+o.toString());let h=r?.calendar.identifier==="gregory"&&"BC"===r.era,y=(0,g.useMemo)(()=>({granularity:i,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:h}),[i,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,h]),{minValue:v,maxValue:b,isDateUnavailable:x}=e,w=(0,g.useMemo)(()=>ab(r,v,b,x,y),[r,v,b,x,y]),j=ad({...e,value:r,builtinValidation:w}),O=j.displayValidation.isInvalid,S=e.validationState||(O?"invalid":null),k=(e,t)=>{n("timeZone"in t?t.set((0,nn.gw)(e)):(0,nn.tR)(e,t)),f(null),m(null),j.commitValidation()};return{...j,value:r,defaultValue:e.defaultValue??a,setValue:n,dateValue:d,timeValue:p,setDateValue:r=>{let a="function"==typeof c?c():c;u?p||a?k(r,p||aO(e.defaultValue||e.placeholderValue)):f(r):(n(r),j.commitValidation()),a&&t.setOpen(!1)},setTimeValue:e=>{d&&e?k(d,e):m(e)},granularity:i,hasTime:u,...t,setOpen(n){!n&&!r&&d&&u&&k(d,p||aO(e.defaultValue||e.placeholderValue)),t.setOpen(n)},validationState:S,isInvalid:O,formatValue:(e,t)=>l?new rN(e,aj(t,y)).format(l):"",getDateFormatter:(e,t)=>new rN(e,aj({},{...y,...t}))}}({...e,validationBehavior:n}),o=(0,g.useRef)(null),[i,s]=ew(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:l,labelProps:u,fieldProps:c,buttonProps:d,dialogProps:f,calendarProps:p,descriptionProps:m,errorMessageProps:h,...y}=function(e,t,r){var n;let a=eu(),o=eu(),i=eu(),s=rG((n=n5)&&n.__esModule?n.default:n,"@react-aria/datepicker"),{isInvalid:l,validationErrors:u,validationDetails:c}=t.displayValidation,{labelProps:d,fieldProps:f,descriptionProps:p,errorMessageProps:m}=n9({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||u}),h=n6(t,r),y=f["aria-labelledby"]||f.id,{locale:v}=rC(),b=t.formatValue(v,{month:"long"}),x=ne(b?s.format("selectedDateDescription",{date:b}):""),w=[x["aria-describedby"],f["aria-describedby"]].filter(Boolean).join(" ")||void 0,j=e_(e),O=(0,g.useMemo)(()=>n0(r),[r]),S=(0,g.useRef)(!1),{focusWithinProps:k}=rr({...e,isDisabled:t.isOpen,onBlurWithin:t=>{e$(document.getElementById(o),t.relatedTarget)||(S.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{S.current||(S.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}});return{groupProps:em(j,h,f,x,k,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":y,"aria-describedby":w,onKeyDown(r){!t.isOpen&&e.onKeyDown&&e.onKeyDown(r)},onKeyUp(r){!t.isOpen&&e.onKeyUp&&e.onKeyUp(r)}}),labelProps:{...d,onClick:()=>{O.focusFirst()}},fieldProps:{...f,id:i,[ar]:"presentation","aria-describedby":w,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[ac]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:p,errorMessageProps:m,buttonProps:{...x,id:a,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${a} ${y}`,"aria-describedby":w,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:o,"aria-labelledby":`${a} ${y}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:l,validationErrors:u,validationDetails:c}}({...ej(e),label:s,validationBehavior:n},a,o),{focusProps:v,isFocused:x,isFocusVisible:w}=rn({within:!0}),j=eg({...e,values:{state:a,isFocusWithin:x,isFocusVisible:w,isDisabled:e.isDisabled||!1,isInvalid:a.isInvalid,isOpen:a.isOpen,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-DatePicker"}),O=e_(e,{global:!0});return delete O.id,b().createElement(ev,{values:[[oW,a],[nM,{...l,ref:o,isInvalid:a.isInvalid}],[aB,c],[ru,{...d,isPressed:a.isOpen}],[a6,{...u,ref:i,elementType:"span"}],[nj,p],[aX,a],[oI,{trigger:"DatePicker",triggerRef:o,placement:"bottom start",clearContexts:o$}],[aY,f],[rp,{slots:{description:m,errorMessage:h}}],[aQ,y]]},b().createElement(ek.div,{...em(O,j,v),ref:t,slot:e.slot||void 0,"data-focus-within":x||void 0,"data-invalid":a.isInvalid||void 0,"data-focus-visible":w||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-open":a.isOpen||void 0}),b().createElement(a5,{autoComplete:e.autoComplete,name:e.name,isDisabled:e.isDisabled,state:a}))}),oK=(0,g.forwardRef)(function(e,t){[e,t]=ex(e,t,oz);let{validationBehavior:r}=eb(a1)||{},n=e.validationBehavior??r??"native",a=function(e){let t=oR(e),[r,n]=nf(e.value,e.defaultValue||null,e.onChange),[a]=(0,g.useState)(r),[o,i]=(0,g.useState)(()=>r||{start:null,end:null});null==r&&o.start&&o.end&&i(o={start:null,end:null});let s=r||o,l=e=>{i(s=e||{start:null,end:null}),oB(s)?n(s):n(null)},[u,c]=ak(s?.start||s?.end||e.placeholderValue||null,e.granularity),d="hour"===u||"minute"===u||"second"===u,f=e.shouldCloseOnSelect??!0,[p,m]=(0,g.useState)(null),[h,y]=(0,g.useState)(null);s&&oB(s)&&(p=s,"hour"in s.start&&(h=s));let v=(e,t)=>{l({start:"timeZone"in t.start?t.start.set((0,nn.gw)(e.start)):(0,nn.tR)(e.start,t.start),end:"timeZone"in t.end?t.end.set((0,nn.gw)(e.end)):(0,nn.tR)(e.end,t.end)}),m(null),y(null),P.commitValidation()},b=r=>{let n="function"==typeof f?f():f;d?oB(r)&&(n||h?.start&&h?.end)?v(r,{start:h?.start||aO(e.placeholderValue),end:h?.end||aO(e.placeholderValue)}):m(r):oB(r)?(l(r),P.commitValidation()):m(r),n&&t.setOpen(!1)},x=e=>{oB(p)&&oB(e)?v(p,e):y(e)},w=s?.start?.calendar.identifier==="gregory"&&"BC"===s.start.era||s?.end?.calendar.identifier==="gregory"&&"BC"===s.end.era,j=(0,g.useMemo)(()=>({granularity:u,timeZone:c,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:w}),[u,e.hourCycle,e.shouldForceLeadingZeros,c,e.hideTimeZone,w]),{minValue:O,maxValue:S,isDateUnavailable:k}=e,E=(0,g.useMemo)(()=>{var e,t;let r;return e=s,t=k?e=>k(e,null):void 0,r=ah(ab(e?.start??null,O,S,t,j),ab(e?.end??null,O,S,t,j)),e?.end!=null&&null!=e.start&&0>e.end.compare(e.start)&&(r=ah(r,{isInvalid:!0,validationErrors:[(rz.getGlobalDictionaryForPackage("@react-stately/datepicker")||av).getStringForLocale("rangeReversed",ag())],validationDetails:{...ai,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),r},[s,O,S,k,j]),P=ad({...e,value:r,name:(0,g.useMemo)(()=>[e.startName,e.endName].filter(e=>null!=e),[e.startName,e.endName]),builtinValidation:E}),A=P.displayValidation.isInvalid,D=e.validationState||(A?"invalid":null);return{...P,value:s,defaultValue:e.defaultValue??a,setValue:l,dateRange:p,timeRange:h,granularity:u,hasTime:d,setDate(e,t){"start"===e?b({start:t,end:p?.end??null}):b({start:p?.start??null,end:t})},setTime(e,t){"start"===e?x({start:t,end:h?.end??null}):x({start:h?.start??null,end:t})},setDateTime(e,t){"start"===e?l({start:t,end:s?.end??null}):l({start:s?.start??null,end:t})},setDateRange:b,setTimeRange:x,...t,setOpen(r){!r&&!(s?.start&&s?.end)&&oB(p)&&d&&v(p,{start:h?.start||aO(e.placeholderValue),end:h?.end||aO(e.placeholderValue)}),t.setOpen(r)},validationState:D,isInvalid:A,formatValue(t,r){let n;if(!s||!s.start||!s.end)return null;let a="timeZone"in s.start?s.start.timeZone:void 0,o=e.granularity||(s.start&&"minute"in s.start?"minute":"day"),i="timeZone"in s.end?s.end.timeZone:void 0,l=e.granularity||(s.end&&"minute"in s.end?"minute":"day"),u=aj(r,{granularity:o,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===s.start.calendar.identifier&&"BC"===s.start.era||"gregory"===s.end.calendar.identifier&&"BC"===s.end.era}),c=s.start.toDate(a||"UTC"),d=s.end.toDate(i||"UTC"),f=new rN(t,u);if(a===i&&o===l&&0!==s.start.compare(s.end)){try{let e=f.formatRangeToParts(c,d),t=-1;for(let r=0;r<e.length;r++){let n=e[r];if("shared"===n.source&&"literal"===n.type)t=r;else if("endRange"===n.source)break}let r="",n="";for(let a=0;a<e.length;a++)a<t?r+=e[a].value:a>t&&(n+=e[a].value);return{start:r,end:n}}catch{}n=f}else n=new rN(t,aj(r,{granularity:l,timeZone:i,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle}));return{start:f.format(c),end:n.format(d)}},getDateFormatter:(e,t)=>new rN(e,aj({},{...j,...t}))}}({...e,validationBehavior:n}),o=(0,g.useRef)(null),[i,s]=ew(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:l,labelProps:u,startFieldProps:c,endFieldProps:d,buttonProps:f,dialogProps:p,calendarProps:m,descriptionProps:h,errorMessageProps:y,...v}=function(e,t,r){var n;let a=rG((n=n5)&&n.__esModule?n.default:n,"@react-aria/datepicker"),{isInvalid:o,validationErrors:i,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=n9({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),f=u["aria-labelledby"]||u.id,{locale:p}=rC(),m=t.formatValue(p,{month:"long"}),h=ne(m?a.format("selectedRangeDescription",{startDate:m.start,endDate:m.end}):""),y={"aria-label":a.format("startDate"),"aria-labelledby":f},v={"aria-label":a.format("endDate"),"aria-labelledby":f},b=eu(),x=eu(),w=n6(t,r),j=[h["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,O=(0,g.useMemo)(()=>n0(r,{accept:e=>e.id!==b}),[r,b]),S={[an]:O,[ar]:"presentation","aria-describedby":j,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},k=e_(e),E=(0,g.useRef)(!1),{focusWithinProps:P}=rr({...e,isDisabled:t.isOpen,onBlurWithin:t=>{e$(document.getElementById(x),t.relatedTarget)||(E.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{E.current||(E.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}}),A=(0,g.useRef)(al),D=(0,g.useRef)(al);return{groupProps:em(k,w,u,h,P,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":j,onKeyDown(r){!t.isOpen&&e.onKeyDown&&e.onKeyDown(r)},onKeyUp(r){!t.isOpen&&e.onKeyUp&&e.onKeyUp(r)}}),labelProps:{...l,onClick:()=>{O.focusFirst()}},buttonProps:{...h,id:b,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${b} ${f}`,"aria-describedby":j,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:x,"aria-labelledby":`${b} ${f}`},startFieldProps:{...y,...S,value:t.value?.start??null,defaultValue:t.defaultValue?.start,onChange:e=>t.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,form:e.form,[ac]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){A.current=e,t.updateValidation(ah(e,D.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...v,...S,value:t.value?.end??null,defaultValue:t.defaultValue?.end,onChange:e=>t.setDateTime("end",e),name:e.endName,form:e.form,[ac]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){D.current=e,t.updateValidation(ah(A.current,e))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:c,errorMessageProps:d,calendarProps:{autoFocus:!0,value:t.dateRange?.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:o,validationErrors:i,validationDetails:s}}({...ej(e),label:s,validationBehavior:n},a,o),{focusProps:x,isFocused:w,isFocusVisible:j}=rn({within:!0}),O=eg({...e,values:{state:a,isFocusWithin:w,isFocusVisible:j,isDisabled:e.isDisabled||!1,isInvalid:a.isInvalid,isOpen:a.isOpen,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-DateRangePicker"}),S=e_(e,{global:!0});return delete S.id,b().createElement(ev,{values:[[oU,a],[nM,{...l,ref:o,isInvalid:a.isInvalid}],[ru,{...f,isPressed:a.isOpen}],[a6,{...u,ref:i,elementType:"span"}],[nO,m],[aX,a],[oI,{trigger:"DateRangePicker",triggerRef:o,placement:"bottom start",clearContexts:o$}],[aY,p],[aB,{slots:{start:c,end:d}}],[rp,{slots:{description:h,errorMessage:y}}],[aQ,v]]},b().createElement(ek.div,{...em(S,O,x),ref:t,slot:e.slot||void 0,"data-focus-within":w||void 0,"data-invalid":a.isInvalid||void 0,"data-focus-visible":j||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-open":a.isOpen||void 0}))});function oG(e){return b().createElement(rD,e)}var oq=r(5350),oY=r.n(oq);function oX(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function oZ(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)return r?e:void 0;if("string"==typeof e&&!e)return r?null:void 0;if(oX(e,ay.ng)||oX(e,ay._l)||oX(e,ay.Ip))return t?(0,nn.yP)(e,t):e;var n=oY()(e).toDate(),a=new ay.ng(n.getFullYear(),n.getMonth()+1,n.getDate());return t?(0,nn.yP)(a,t):a}function oQ(e){if(e)return e.toDate((0,rq.Xj)())}var oJ=r(4232),o0=r(3903);function o1(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function o2(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var o3=(0,g.createContext)(null);function o4(){var e=(0,x.useConfig)({externalModuleName:"@egen-civitas/esm-styleguide"}).preferredDateLocale,t=(0,g.useMemo)(function(){var t=(0,oJ.J)();return e[t]&&(t=e[t]),t},[window.i18next.language]),r=(0,g.useMemo)(function(){var e=(0,o0.a7)(t);return void 0!==e?(0,nr.d)(e):void 0},[t]),n=(0,g.useMemo)(function(){return new Intl.Locale(t,{calendar:null==r?void 0:r.identifier})},[t,r]),a=(0,g.useMemo)(function(){return r?(0,nn.yP)((0,rq.Ec)((0,rq.Xj)()),r):(0,rq.Ec)((0,rq.Xj)())},[r]);return{calendar:r,intlLocale:n,today_:a}}var o5=new ay.ng(1793,1,1);function o6(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o8(e){if(Array.isArray(e))return e}function o9(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o7(e,t){if(e){if("string"==typeof e)return o6(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o6(e,t)}}var ie=["egen-icon-activity","egen-icon-add","egen-icon-arrow-down","egen-icon-arrow-left","egen-icon-arrow-right","egen-icon-arrow-up","egen-icon-calendar-heat-map","egen-icon-calendar","egen-icon-caret-down","egen-icon-caret-left","egen-icon-caret-right","egen-icon-caret-up","egen-icon-chart-average","egen-icon-chart-line","egen-icon-checkmark-filled","egen-icon-checkmark-outline","egen-icon-chevron-down","egen-icon-chevron-left","egen-icon-chevron-right","egen-icon-chevron-up","egen-icon-close","egen-icon-close-filled","egen-icon-close-outline","egen-icon-document","egen-icon-document-attachment","egen-icon-download","egen-icon-edit","egen-icon-event-schedule","egen-icon-events","egen-icon-group","egen-icon-group-access","egen-icon-information","egen-icon-information-filled","egen-icon-information-square","egen-icon-inventory-management","egen-icon-list-checked","egen-icon-location","egen-icon-maximize","egen-icon-message-queue","egen-icon-money","egen-icon-movement","egen-icon-overflow-menu--horizontal","egen-icon-overflow-menu--vertical","egen-icon-password","egen-icon-pedestrian-family","egen-icon-pen","egen-icon-printer","egen-icon-programs","egen-icon-renew","egen-icon-report","egen-icon-reset","egen-icon-save","egen-icon-search","egen-icon-settings","egen-icon-shopping-cart","egen-icon-shopping-cart--arrow-down","egen-icon-sticky-note-add","egen-icon-switcher","egen-icon-table-of-contents","egen-icon-table","egen-icon-time","egen-icon-tools","egen-icon-translate","egen-icon-trash-can","egen-icon-tree-view--alt","egen-icon-user-avatar","egen-icon-user-follow","egen-icon-user","egen-icon-view-off","egen-icon-view","egen-icon-warning"],it=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-activity",iconProps:e})})),ir=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-add",iconProps:e})})),ia=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-arrow-down",iconProps:e})})),io=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-arrow-left",iconProps:e})})),ii=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-arrow-right",iconProps:e})})),is=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-arrow-up",iconProps:e})})),il=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-calendar-heat-map",iconProps:e})})),iu=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-calendar",iconProps:e})})),ic=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-caret-down",iconProps:e})})),id=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-caret-left",iconProps:e})})),ip=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-caret-right",iconProps:e})})),im=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-caret-up",iconProps:e})})),ih=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-chart-average",iconProps:e})})),iy=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-chart-line",iconProps:e})})),iv=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-checkmark-filled",iconProps:e})})),ig=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-checkmark-outline",iconProps:e})})),ib=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-chevron-down",iconProps:e})})),ix=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-chevron-left",iconProps:e})})),iw=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-chevron-right",iconProps:e})})),ij=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-chevron-up",iconProps:e})})),iO=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-close",iconProps:e})})),iS=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-close-filled",iconProps:e})})),ik=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-close-outline",iconProps:e})})),iE=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-document",iconProps:e})})),iP=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-document-attachment",iconProps:e})})),iA=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-download",iconProps:e})})),iD=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-edit",iconProps:e})})),iC=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-event-schedule",iconProps:e})})),iT=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-events",iconProps:e})})),iN=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-group",iconProps:e})})),iR=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-group-access",iconProps:e})})),iM=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-information",iconProps:e})})),iI=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-information-filled",iconProps:e})})),i_=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-information-square",iconProps:e})})),iL=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-inventory-management",iconProps:e})})),iF=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-list-checked",iconProps:e})})),iB=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-location",iconProps:e})})),iV=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-maximize",iconProps:e})})),iz=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-message-queue",iconProps:e})})),iW=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-money",iconProps:e})})),iU=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-movement",iconProps:e})})),i$=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-overflow-menu--horizontal",iconProps:e})})),iH=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-overflow-menu--horizontal",iconProps:e})})),iK=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-password",iconProps:e})})),iG=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-pedestrian-family",iconProps:e})})),iq=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-pen",iconProps:e})})),iY=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-printer",iconProps:e})})),iX=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-programs",iconProps:e})})),iZ=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-renew",iconProps:e})})),iQ=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-report",iconProps:e})})),iJ=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-reset",iconProps:e})})),i0=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-save",iconProps:e})})),i1=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-search",iconProps:e})})),i2=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-settings",iconProps:e})})),i3=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-switcher",iconProps:e})})),i4=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-shopping-cart",iconProps:e})})),i5=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-shopping-cart--arrow-down",iconProps:e})})),i6=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-sticky-note-add",iconProps:e})})),i8=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-table-of-contents",iconProps:e})})),i9=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-table",iconProps:e})})),i7=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-time",iconProps:e})})),se=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-tools",iconProps:e})})),st=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-translate",iconProps:e})})),sr=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-trash-can",iconProps:e})})),sn=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-tree-view--alt",iconProps:e})})),sa=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-user-avatar",iconProps:e})})),so=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-user-follow",iconProps:e})})),si=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-user",iconProps:e})})),ss=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-view-off",iconProps:e})})),sl=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-view",iconProps:e})})),su=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-warning",iconProps:e})})),sc=iP,sd=i5,sf=(0,g.memo)((0,g.forwardRef)(function(e,t){var r,n=o8(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||o7(r)||o9(),a=n[0],o=n.slice(1),i=a.icon,s=a.fallback,l=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(a,["icon","fallback"]),u=(o8(o)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(o)||o7(o,1)||o9())[0],c=(0,g.useRef)(i?document.getElementById(i):void 0);return(0,g.useEffect)(function(){var e=document.getElementById("egen-svgs-container"),t=new MutationObserver(function(e){var t=!0,r=!1,n=void 0;try{for(var a,o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var s=a.value;"childList"===s.type&&(c.current=i?document.getElementById(i):void 0)}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[i]),(0,v.jsx)(x.RenderIfValueIsTruthy,{value:c.current,fallback:s,children:(0,v.jsx)(sp,{ref:u,icon:i,iconProps:l})})})),sp=(0,g.memo)((0,g.forwardRef)(function(e,t){var r=e.icon,n=Object.assign({},{fill:"currentColor",size:20},e.iconProps),a=n.className,o=n.fill,i=n.size;(i<=0||i>72)&&(console.error("Invalid size '".concat(i,"' specified for ").concat(r,". Defaulting to 20.")),i=20);var s=(0,g.useRef)(null);return(0,g.useImperativeHandle)(t,function(){return s.current}),(0,g.useEffect)(function(){s.current&&"currentColor"!==o&&s.current.style.setProperty("--egen-icon-fill",o)},[]),(0,v.jsx)("svg",{ref:s,className:S()("egen-icon","YZl-VwPvm6F9gS-HCqn68g==",a),height:i,width:i,viewBox:"0 0 16 16",children:(0,v.jsx)("use",{href:"#".concat(r)})})})),sm=function(e){var t=e.className,r=e.size,n=void 0===r?16:r;return(0,v.jsx)("svg",{className:t,width:n,height:n,viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",focusable:"false",children:(0,v.jsx)("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14S23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,23.5c-0.8,0-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5S16.8,23.5,16,23.5z"})})},sh={};function sy(){return"u">typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}function sv(e={}){let{locale:t}=rC();return(0,g.useMemo)(()=>new aM(t,e),[t,e])}sh={"ar-AE":{decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:"حقل رقمي"},"bg-BG":{decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:"Номер на полето"},"cs-CZ":{decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"et-EE":{decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xe4li"},"fi-FI":{decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:"Numerokentt\xe4"},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:"שדה מספר"},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:"Sz\xe1mmező"},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:"数値フィールド"},"ko-KR":{decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:"번호 필드"},"lt-LT":{decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:"Skaitļu lauks"},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xe9rico"},"ro-RO":{decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:"C\xe2mp numeric"},"ru-RU":{decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:"Числовое поле"},"sk-SK":{decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:"Številčno polje"},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:"Nummerf\xe4lt"},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:"Sayı alanı"},"uk-UA":{decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:"Поле номера"},"zh-CN":{decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:"数字字段"},"zh-TW":{decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:"數字欄位"}};var sg={};sg={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Pr\xe1zdn\xe9"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vac\xedo"},"et-EE":{Empty:"T\xfchjenda"},"fi-FI":{Empty:"Tyhj\xe4"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"\xdcres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Pr\xe1zdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};let sb=()=>{};function sx(e){var t;let r=(0,g.useRef)(void 0),{value:n,textValue:a,minValue:o,maxValue:i,isDisabled:s,isReadOnly:l,isRequired:u,onIncrement:c,onIncrementPage:d,onDecrement:f,onDecrementPage:p,onDecrementToMin:m,onIncrementToMax:h}=e,y=rG((t=sg)&&t.__esModule?t.default:t,"@react-aria/spinbutton"),v=(0,g.useRef)(!1),b=(0,g.useCallback)(()=>{clearTimeout(r.current),v.current=!1},[]),x=tY(()=>{b()});(0,g.useEffect)(()=>()=>x(),[]);let{keyboardProps:w}=tL({isDisabled:s||l,shortcuts:{PageUp:()=>d?void d():!!c&&void c(),ArrowUp:()=>!!c&&void c(),PageDown:()=>p?void p():!!f&&void f(),ArrowDown:()=>!!f&&void f(),Home:()=>!!m&&void m(),End:()=>!!h&&void h()},allowRepeats:!0}),j=(0,g.useRef)(!1),O=()=>{j.current=!0},S=()=>{j.current=!1},k=""===a?y.format("Empty"):(a||`${n}`).replace("-","−");(0,g.useEffect)(()=>{j.current&&(eP&&eP.clear("assertive"),eA(k,"assertive"))},[k]);let E=(0,g.useCallback)(()=>{b()},[b]),P=tY(c??sb),A=tY(f??sb),D=tY(()=>{(void 0===i||isNaN(i)||void 0===n||isNaN(n)||n<i)&&(P(),C(60))}),C=tY(e=>{x(),v.current=!0,r.current=window.setTimeout(D,e)}),T=tY(()=>{(void 0===o||isNaN(o)||void 0===n||isNaN(n)||n>o)&&(A(),N(60))}),N=tY(e=>{x(),v.current=!0,r.current=window.setTimeout(T,e)}),R=e=>{e.preventDefault()},{addGlobalListener:M,removeAllGlobalListeners:I}=tX(),L=(0,g.useRef)(!1),[F,B]=(0,g.useState)(null);(0,g.useEffect)(()=>{"touch"===F?C(600):F?C(400):F||x()},[F]);let[V,z]=(0,g.useState)(null);return(0,g.useEffect)(()=>{"touch"===V?N(600):V?N(400):V||x()},[V]),{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===n||isNaN(n)?void 0:n,"aria-valuetext":k,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":s||void 0,"aria-readonly":l||void 0,"aria-required":u||void 0,...w,onFocus:O,onBlur:S},incrementButtonProps:{onPressStart:e=>{b(),"touch"!==e.pointerType?(c?.(),B("mouse")):(M(window,"pointercancel",E,{capture:!0}),L.current=!1,B("touch")),M(window,"contextmenu",R)},onPressUp:e=>{b(),"touch"===e.pointerType&&(L.current=!0),I(),B(null)},onPressEnd:e=>{b(),"touch"===e.pointerType&&!v.current&&L.current&&c?.(),L.current=!1,B(null)},onFocus:O,onBlur:S},decrementButtonProps:{onPressStart:e=>{b(),"touch"!==e.pointerType?(f?.(),z("mouse")):(M(window,"pointercancel",E,{capture:!0}),L.current=!1,z("touch"))},onPressUp:e=>{b(),"touch"===e.pointerType&&(L.current=!0),I(),z(null)},onPressEnd:e=>{b(),"touch"===e.pointerType&&!v.current&&L.current&&f?.(),L.current=!1,z(null)},onFocus:O,onBlur:S}}}let sw=null,sj=RegExp("^.*\\(.*\\).*$"),sO=["latn","arab","hanidec","deva","beng","fullwide"];class sS{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return sE(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,r){return sE(this.locale,this.options,e).isValidPartialNumber(e,t,r)}getNumberingSystem(e){return sE(this.locale,this.options,e).options.numberingSystem}}let sk=new Map;function sE(e,t,r){let n=sP(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let a of sO)if(a!==n.options.numberingSystem){let n=sP(e+(e.includes("-u-")?"-nu-":"-u-nu-")+a,t);if(n.isValidPartialNumber(r))return n}}return n}function sP(e,t){let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),n=sk.get(r);return n||(n=new sA(e,t),sk.set(r,n)),n}class sA{constructor(e,t={}){this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,r,n){let a=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),o=a.formatToParts(-10000.111),i=a.formatToParts(10000.111),s=sC.map(e=>a.formatToParts(e)),l=s.map((e,t)=>{let r=e.find(e=>"unit"===e.type);return r&&!e.some(e=>"integer"===e.type||"fraction"===e.type)?{unit:r.value,value:sC[t]}:null}).filter(e=>!!e),u=o.find(e=>"minusSign"===e.type)?.value??"-",c=i.find(e=>"plusSign"===e.type)?.value;c||n?.signDisplay!=="exceptZero"&&n?.signDisplay!=="always"||(c="+");let d=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001),f=d.find(e=>"decimal"===e.type)?.value,p=o.find(e=>"group"===e.type)?.value,m=[...new Set([...o.filter(e=>!sD.has(e.type)).map(e=>sN(e.value)),...s.flatMap(e=>e.filter(e=>!sD.has(e.type)).map(e=>sN(e.value)))])].sort((e,t)=>t.length-e.length),h=0===m.length?RegExp("\\p{White_Space}|\\p{Cf}","gu"):RegExp(`${m.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),y=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(0x24cb016ea)].reverse(),v=new Map(y.map((e,t)=>[e,t]));return{minusSign:u,plusSign:c,decimal:f,group:p,literals:h,numeral:RegExp(`[${y.join("")}]`,"g"),numerals:y,index:e=>String(v.get(e)),noNumeralUnits:l}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(e){let t=this.formatter.resolvedOptions().useGrouping,r=this.sanitize(e);if(!t&&this.symbols.group&&r.includes(this.symbols.group))return NaN;if(this.symbols.group&&(r=r.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(r=r.replace(this.symbols.minusSign,"-")),r=r.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=r.indexOf("-"),t=(r=(r=r.replace("-","")).replace("+","")).indexOf(".");-1===t&&(t=r.length),r=r.replace(".",""),r=t-2==0?`0.${r}`:t-2==-1?`0.0${r}`:t-2==-2?"0.00":`${r.slice(0,t-2)}.${r.slice(t-2)}`,e>-1&&(r=`-${r}`)}let n=r?+r:NaN;if(isNaN(n))return NaN;if("percent"===this.options.style){let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new sS(this.locale,e).parse(new aM(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&sj.test(e)&&(n*=-1),n}sanitize(e){let t=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(t=>t.unit===e)?this.symbols.noNumeralUnits.find(t=>t.unit===e).value.toString():(e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=sT(e,",",this.symbols.decimal),e=sT(e,String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&t&&(e=sT(e,".",this.symbols.group))),"’"===this.symbols.group&&e.includes("'")&&t&&(e=sT(e,"'",this.symbols.group)),"'"===this.symbols.group&&e.includes("’")&&t&&(e=sT(e,"’",this.symbols.group)),"fr-FR"===this.options.locale&&this.symbols.group&&t&&(e=sT(e," ",this.symbols.group),e=sT(e,/\u00A0/g,this.symbols.group)),e)}isValidPartialNumber(e,t=-1/0,r=1/0){let n=this.formatter.resolvedOptions().useGrouping;return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&r>0&&(e=e.slice(this.symbols.plusSign.length)),(!(this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1)||0!==this.options.maximumFractionDigits)&&(this.symbols.group&&n&&(e=sT(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0===e.length)}}let sD=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),sC=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function sT(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function sN(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function sR(e,t,r){let n="+"===e?t+r:t-r;if(t%1!=0||r%1!=0){let a=t.toString().split("."),o=r.toString().split("."),i=Math.pow(10,Math.max(a[1]&&a[1].length||0,o[1]&&o[1].length||0));t=Math.round(t*i),r=Math.round(r*i),n=("+"===e?t+r:t-r)/i}return n}let sM=(0,g.createContext)(null),sI=(0,g.createContext)(null),s_=(0,g.forwardRef)(function(e,t){[e,t]=ex(e,t,sM);let{validationBehavior:r}=eb(a1)||{},n=e.validationBehavior??r??"native",{locale:a}=rC(),o=function(e){let{minValue:t,maxValue:r,step:n,formatOptions:a,value:o,defaultValue:i=NaN,onChange:s,locale:l,isDisabled:u,isReadOnly:c,commitBehavior:d="snap"}=e;null===o&&(o=NaN);let f=(0,g.useCallback)(e=>void 0===n||isNaN(n)?or(e,t,r):oa(e,t,r,n),[n,t,r]);void 0===o||isNaN(o)||"snap"!==d||(o=f(o)),isNaN(i)||"snap"!==d||(i=f(i));let[p,m]=nf(o,isNaN(i)?NaN:i,s),[h]=(0,g.useState)(p),[y,v]=(0,g.useState)(()=>isNaN(p)?"":new aM(l,a).format(p)),b=(0,g.useMemo)(()=>new sS(l,a),[l,a]),x=(0,g.useMemo)(()=>b.getNumberingSystem(y),[b,y]),w=(0,g.useMemo)(()=>new aM(l,{...a,numberingSystem:x}),[l,a,x]),j=(0,g.useMemo)(()=>w.resolvedOptions(),[w]),O=(0,g.useCallback)(e=>isNaN(e)||null===e?"":w.format(e),[w]),S=ad({...e,value:p}),k=void 0===n||isNaN(n)?1:n;"percent"===j.style&&(void 0===n||isNaN(n))&&(k=.01);let[E,P]=(0,g.useState)(p),[A,D]=(0,g.useState)(l),[C,T]=(0,g.useState)(a);Object.is(p,E)&&l===A&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(t[n]!==e[n])return!1;return!0}(a,C)||(v(O(p)),P(p),D(l),T(a));let N=(0,g.useMemo)(()=>b.parse(y),[b,y]),R=(e,n=0)=>{if(isNaN(N))return oa(isNaN(n)?0:n,t,r,k);{let n=oa(N,t,r,k);return"+"===e&&n>N||"-"===e&&n<N?n:oa(sR(e,N,k),t,r,k)}},M=(0,g.useMemo)(()=>!u&&!c&&(isNaN(N)||void 0===r||isNaN(r)||oa(N,t,r,k)>N||sR("+",N,k)<=r),[u,c,t,r,k,N]),I=(0,g.useMemo)(()=>!u&&!c&&(isNaN(N)||void 0===t||isNaN(t)||oa(N,t,r,k)<N||sR("-",N,k)>=t),[u,c,t,r,k,N]);return{...S,validate:e=>b.isValidPartialNumber(e,t,r),increment:()=>{let e=R("+",t);e===p&&v(O(e)),m(e),S.commitValidation()},incrementToMax:()=>{null!=r&&(m(oa(r,t,r,k)),S.commitValidation())},decrement:()=>{let e=R("-",r);e===p&&v(O(e)),m(e),S.commitValidation()},decrementToMin:()=>{null!=t&&(m(t),S.commitValidation())},canIncrement:M,canDecrement:I,minValue:t,maxValue:r,numberValue:N,defaultNumberValue:isNaN(i)?h:i,setNumberValue:m,setInputValue:v,inputValue:y,commit:e=>{let t=void 0===e?y:e,r=N;if(void 0!==e&&(r=b.parse(t)),!t.length){m(NaN),v(void 0===o?"":O(p));return}if(isNaN(r))return void v(O(p));let n="snap"===d?f(r):r,a=(n=b.parse(O(n)))!==p;m(n),v(O(void 0===o?n:p)),a&&S.commitValidation()}}}({...e,locale:a,validationBehavior:n}),i=(0,g.useRef)(null),[s,l]=ew(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:u,groupProps:c,inputProps:d,incrementButtonProps:f,decrementButtonProps:p,descriptionProps:m,errorMessageProps:h,...y}=function(e,t,r){var n,a,o,i,s,l,u,c,d;let f,{id:p,decrementAriaLabel:m,incrementAriaLabel:h,isDisabled:y,isReadOnly:v,isRequired:x,minValue:w,maxValue:j,autoFocus:O,label:S,formatOptions:k,onBlur:E=()=>{},onFocus:P,onFocusChange:A,onKeyDown:D,onKeyUp:C,description:T,errorMessage:N,isWheelDisabled:R,...M}=e,{increment:I,incrementToMax:L,decrement:F,decrementToMin:B,numberValue:V,inputValue:z,commit:W,commitValidation:U}=t,$=rG((n=sh)&&n.__esModule?n.default:n,"@react-aria/numberfield"),H=(0,g.useCallback)(()=>{let e=r.current?.value??"";(0,tZ.flushSync)(()=>{W()}),r.current?.value!==e&&eA(r.current?.value??"","assertive")},[W,r]),K=eu(p),{focusProps:G}=tC({onBlur(){H()}}),q=sv(k),Y=(0,g.useMemo)(()=>q.resolvedOptions(),[q]),Z=sv({...k,currencySign:void 0}),Q=(0,g.useMemo)(()=>isNaN(V)?"":Z.format(V),[Z,V]),{spinButtonProps:J,incrementButtonProps:ee,decrementButtonProps:et}=sx({isDisabled:y,isReadOnly:v,isRequired:x,maxValue:j,minValue:w,onIncrement:I,onIncrementToMax:L,onDecrement:F,onDecrementToMin:B,value:V,textValue:Q}),[er,en]=(0,g.useState)(!1),{focusWithinProps:ea}=rr({isDisabled:y,onFocusWithinChange:en});!function(e,t){let{onScroll:r,isDisabled:n}=e,a=(0,g.useCallback)(e=>{!e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),r&&r({deltaX:e.deltaX,deltaY:e.deltaY}))},[r]);nt(t,"wheel",n?void 0:a)}({onScroll:(0,g.useCallback)(e=>{!(Math.abs(e.deltaY)<=Math.abs(e.deltaX))&&(e.deltaY>0?I():e.deltaY<0&&F())},[F,I]),isDisabled:R||y||v||!er},r);let eo=(Y.maximumFractionDigits??0)>0,ei=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,es="numeric";te()?ei?es="text":eo&&(es="decimal"):to()&&(ei?es="numeric":eo&&(es="decimal"));let el=e_(e),{keyboardProps:ec}=tL({isDisabled:y||v,shortcuts:{Enter:()=>((0,tZ.flushSync)(()=>{W()}),U(),{shouldPreventDefault:!1})},onKeyDown:D,onKeyUp:C}),{isInvalid:ed,validationErrors:ef,validationDetails:ep}=t.displayValidation,{labelProps:eh,inputProps:ey,descriptionProps:ev,errorMessageProps:eg}=function(e,t,r){let n=tY(e=>{let n=r.current;if(!n)return;let a=null;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":a=n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd);break;case"deleteContentForward":a=n.selectionEnd===n.selectionStart?n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd+1):n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd);break;case"deleteContentBackward":a=n.selectionEnd===n.selectionStart?n.value.slice(0,n.selectionStart-1)+n.value.slice(n.selectionStart):n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":a=n.value.slice(n.selectionStart);break;default:null!=e.data&&(a=n.value.slice(0,n.selectionStart)+e.data+n.value.slice(n.selectionEnd))}null!=a&&t.validate(a)||e.preventDefault()});(0,g.useEffect)(()=>{if(!sy()||!r.current)return;let e=r.current;return e.addEventListener("beforeinput",n,!1),()=>{e.removeEventListener("beforeinput",n,!1)}},[r]);let a=sy()?null:e=>{let r=eH(e).value.slice(0,eH(e).selectionStart)+e.data+eH(e).value.slice(eH(e).selectionEnd);t.validate(r)||e.preventDefault()},{labelProps:o,inputProps:i,descriptionProps:s,errorMessageProps:l,...u}=function(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:a=!1,isReadOnly:o=!1,type:i="text",validationBehavior:s="aria"}=e,[l,u]=nf(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=tV(e,t),d=ad({...e,value:l}),{isInvalid:f,validationErrors:p,validationDetails:m}=d.displayValidation,{labelProps:h,fieldProps:y,descriptionProps:v,errorMessageProps:x}=n9({...e,isInvalid:f,errorMessage:e.errorMessage||p}),w=e_(e,{labelable:!0}),j={type:i,pattern:e.pattern},[O]=(0,g.useState)(l);return n7(t,e.defaultValue??O,u),ae(e,d,t),{labelProps:h,inputProps:em(w,"input"===r?j:void 0,{disabled:n,readOnly:o,required:a&&"native"===s,"aria-required":a&&"aria"===s||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:e=>u(eH(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(b().version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...y}),descriptionProps:v,errorMessageProps:x,isInvalid:f,validationErrors:p,validationDetails:m}}(e,r),c=(0,g.useRef)(null);return{inputProps:em(i,{onBeforeInput:a,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:n}=r.current;c.current={value:e,selectionStart:t,selectionEnd:n}},onCompositionEnd(){if(r.current&&!t.validate(r.current.value)){let{value:e,selectionStart:n,selectionEnd:a}=c.current;r.current.value=e,r.current.setSelectionRange(n,a),t.setInputValue(e)}}}),labelProps:o,descriptionProps:s,errorMessageProps:l,...u}}({...M,...el,name:void 0,form:void 0,label:S,autoFocus:O,isDisabled:y,isReadOnly:v,isRequired:x,validate:void 0,[ac]:t,value:z,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:K,type:"text",inputMode:es,onChange:e=>{t.validate(e)&&t.setInputValue(e)},onBlur:E,onFocus:P,onFocusChange:A,onPaste:t=>{e.onPaste?.(t);let r=eH(t);r&&(r.selectionEnd??-1)-(r.selectionStart??0)===r.value.length&&(t.preventDefault(),W(t.clipboardData?.getData?.("text/plain")?.trim()??""))},description:T,errorMessage:N},t,r),eb=em(ec,ey);n7(r,t.defaultNumberValue,t.setNumberValue),a=t,o=e.validationBehavior,i=e.commitBehavior,s=r,l=t.minValue,u=t.maxValue,c=e.step,d=t.numberValue,X(()=>{let e=s.current;if("validate"!==i||a.realtimeValidation.isInvalid||!e||e.disabled||(!sw&&"u">typeof document&&((sw=document.createElement("input")).type="number"),!sw))return;sw.min=null==l||isNaN(l)?"":String(l),sw.max=null==u||isNaN(u)?"":String(u),sw.step=null==c||isNaN(c)?"":String(c),sw.value=null==d||isNaN(d)?"":String(d);let t=e.validity.valid&&sw.validity.valid,r=e.validationMessage||sw.validationMessage,n={isInvalid:!t,validationErrors:r?[r]:[],validationDetails:{badInput:e.validity.badInput,customError:e.validity.customError,patternMismatch:e.validity.patternMismatch,rangeOverflow:sw.validity.rangeOverflow,rangeUnderflow:sw.validity.rangeUnderflow,stepMismatch:sw.validity.stepMismatch,tooLong:e.validity.tooLong,tooShort:e.validity.tooShort,typeMismatch:e.validity.typeMismatch,valueMissing:e.validity.valueMissing,valid:t}};a.updateValidation(n),"native"!==o||sw.validity.valid||e.setCustomValidity(sw.validationMessage)});let ex=em(J,G,eb,{role:null,"aria-roledescription":tr()?null:$.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(ex["aria-required"]=void 0);let ew=e=>{((e=document)=>e.activeElement)()!==r.current&&("mouse"===e.pointerType?r.current?.focus():e.target.focus())},ej=e["aria-label"]||("string"==typeof e.label?e.label:"");ej||(f=null!=e.label?eh.id:e["aria-labelledby"]);let eO=eu(),eS=eu(),ek=em(ee,{"aria-label":h||$.format("increase",{fieldLabel:ej}).trim(),id:f&&!h?eO:null,"aria-labelledby":f&&!h?`${eO} ${f}`:null,"aria-controls":K,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:ew}),eE=em(et,{"aria-label":m||$.format("decrease",{fieldLabel:ej}).trim(),id:f&&!m?eS:null,"aria-labelledby":f&&!m?`${eS} ${f}`:null,"aria-controls":K,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:ew});return{groupProps:{...ea,role:"group","aria-disabled":y,"aria-invalid":ed?"true":void 0},labelProps:eh,inputProps:ex,incrementButtonProps:ek,decrementButtonProps:eE,errorMessageProps:eg,descriptionProps:ev,isInvalid:ed,validationErrors:ef,validationDetails:ep}}({...ej(e),label:l,validationBehavior:n},o,i),v=eg({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1},defaultClassName:"react-aria-NumberField"}),x=e_(e,{global:!0});return delete x.id,b().createElement(ev,{values:[[sI,o],[nM,c],[n_,{...d,ref:i}],[a6,{...u,ref:s}],[ru,{slots:{increment:f,decrement:p}}],[rp,{slots:{description:m,errorMessage:h}}],[aQ,y]]},b().createElement(ek.div,{...x,...v,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-invalid":y.isInvalid||void 0}),e.name&&b().createElement("input",{type:"hidden",name:e.name,form:e.form,value:isNaN(o.numberValue)?"":o.numberValue,disabled:e.isDisabled||void 0}))});function sL(e,t){return Number.parseInt((0,o0.Yq)(e,{calendar:t.calendar,locale:t.baseName,day:!1,month:!1,noToday:!0,numberingSystem:"latn"}))}var sF=(0,g.forwardRef)(function(e,t){var r=e.className,n=(0,g.useContext)(nS),a=(0,g.useContext)(nk),o=null!=n?n:a,i=(0,g.useContext)(o3),s=(0,rq.Xj)(),l=(0,o0.Yq)(o.visibleRange.start.toDate(s),{calendar:i.calendar,locale:i.baseName,day:!1,year:!1,noToday:!0}),u=sL(o.visibleRange.start.toDate(s),i),c=o.maxValue?sL(o.maxValue.toDate(s),i):void 0,d=o.minValue?sL(o.minValue.toDate(s),i):void 0,f=(0,g.useCallback)(function(e){o.setFocusedDate(o.focusedDate.cycle("year",e-o.focusedDate.year))},[]);return o&&(0,v.jsxs)("span",{ref:t,className:r,children:[(0,v.jsx)("span",{children:l}),(0,v.jsxs)(s_,{formatOptions:{useGrouping:!1},maxValue:c,minValue:d,onChange:f,value:u,children:[(0,v.jsx)(nL,{}),(0,v.jsxs)(nI,{children:[(0,v.jsx)(rc,{slot:"increment",children:(0,v.jsx)(im,{size:8})}),(0,v.jsx)(rc,{slot:"decrement",children:(0,v.jsx)(ic,{size:8})})]})]})]})});let sB="QRspSXVpHV-MQ-LHdC13lg==",sV="QgeoU9KaEEc3FVbHF96CIg==",sz="JHpMykkAYVVvME0bJge4LQ==",sW="oe3ij5pim-upp19k7in+Cw==",sU="ytg1dY4d6dCggs1EVOa1ig==",s$="iJa+1qX+nsj1nDFdskKkfA==",sH="EhNe8AhsUJICGHMlVwVErQ==",sK="UILXRw6kVfriO3Hun04tnQ==",sG="i2esKp2hr+6SnFWEnWnnKQ==",sq="s9JgYEfjHYY9qTPiTt7wxQ==",sY="BRFjhXd6bXrgrAw-LysQWg==",sX="XwI7jVJ4dveeoEuyimGmmg==",sZ="menBg4QIS8hJiZN4SwTw-w==",sQ="JNFneLumtIVyAGpjrxva1g==";function sJ(e){var t=e.children,r=(0,g.useContext)(oW),n=(0,g.useContext)(oU),a=null!=r?r:n,o=(0,x.useOnClickOutside)(function(){return null==a?void 0:a.close()});return(0,v.jsx)(aZ,{className:"ZCd9CeXHRu+yZLpJP13qQQ==",ref:o,children:t})}function s0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s1=(0,g.forwardRef)(function(e,t){var r,n,a=e.variant,o=e.today_,i=e.minDate,s=e.maxDate,l="range"===a;return(0,v.jsx)(oL,{ref:t,className:"vwXhT0NiGDqTk0KQr--y-A==",placement:"bottom start",offset:1,isNonModal:!0,children:(0,v.jsx)(sJ,{children:(0,v.jsxs)(l?nP:nE,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){s0(e,t,r[t])})}return e}({},l?{minValue:void 0===i?void 0:i,maxValue:void 0===s?void 0:s,className:"CHnSScrg+J5H9XYKVQ6b7w=="}:{}),n=n={children:[(0,v.jsxs)("header",{className:"fy1GbKsCCZOK76Fd7eYDTg==",children:[(0,v.jsx)(rc,{className:S()(sY,sX),slot:"previous",children:(0,v.jsx)(ix,{size:16})}),(0,v.jsx)(sF,{className:"UZfvGYVohbWwjoys-e4WYw=="}),(0,v.jsx)(rc,{className:S()(sY,sX),slot:"next",children:(0,v.jsx)(iw,{size:16})})]}),(0,v.jsx)(nD,{className:"IinA8cwT+BxKUyh2pJlB4A==",children:function(e){return(0,v.jsx)(nR,{className:S()("konycu41DOXiCVqnpQSoCg==",s0({},"N32IzHfDfz2c8-T0FEeuHA==",0===o.compare(e))),date:e},e.toString())}})]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))})})});function s2(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s3(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function s4(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var s5=(0,g.forwardRef)(function(e,t){var r,n=(0,g.useContext)(oW),a=function(e){if(Array.isArray(e))return e}(r=ex({slot:e.slot},t,aB))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(r)||function(e){if(e){if("string"==typeof e)return s2(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s2(e,2)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=a[0],i=a[1],s=rC().locale,l=aF(s4(s3({},o),{locale:s,createCalendar:nr.d})),u=(0,g.useRef)(null),c=aa(s4(s3({},o),{inputRef:u}),l,i),d=c.fieldProps,f=c.inputProps,p=(0,g.useCallback)(function(){l.isDisabled||n.toggle()},[]);return(0,v.jsxs)(ev,{values:[[aV,l],[n_,s4(s3({},f),{ref:u})],[nM,s4(s3({},d),{ref:i,isInvalid:l.isInvalid})]],children:[(0,v.jsx)(nI,s4(s3({},e),{id:e.id,ref:t,slot:e.slot||void 0,className:e.className,isDisabled:l.isDisabled,isInvalid:l.isInvalid,onClick:p,children:l.segments.map(function(t,r){return(0,g.cloneElement)(e.children(t),{key:r})})})),(0,v.jsx)(nL,{})]})});function s6(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var s8=(0,g.forwardRef)(function(e,t){var r=(0,g.useContext)(oW),n=(0,g.useContext)(oU);return(null!=r?r:n).isInvalid?(0,v.jsx)(su,s6({ref:t,size:16},e)):(0,v.jsx)(iu,s6({ref:t,size:16},e))});class s9{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}}let s7=new Map;function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function lt(e){if(Array.isArray(e))return e}function lr(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ln(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function la(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function lo(e,t){if(e){if("string"==typeof e)return le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return le(e,t)}}var li=(0,g.forwardRef)(function(e,t){var r,n,a,o,i,s,l,u,c,d,f,p=lt(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||lo(r)||lr(),m=p[0],h=p.slice(1),y=m.segment,x=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(m,["segment"]),w=(lt(h)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(h)||lo(h,1)||lr())[0],j=(0,g.useContext)(aV),O=eh(w),S=function(e,t,r){let n,a,o,i,s=(0,g.useRef)(""),{locale:l,direction:u}=rC(),c=function(){var e;let{locale:t}=rC(),r=rK((e=n5)&&e.__esModule?e.default:e,"@react-aria/datepicker");return(0,g.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new s9(t,r)}},[t,r])}(),{ariaLabel:d,ariaLabelledBy:f,ariaDescribedBy:p,focusManager:m}=at.get(t),h=e.isPlaceholder?"":e.text,y=(0,g.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),v=rL({month:"long",timeZone:y.timeZone}),x=rL({hour:"numeric",hour12:y.hour12,timeZone:y.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(h=x.format(t.dateValue));else{let e=v.format(t.dateValue);h=e!==h?`${h} \u{2013} ${e}`:e}let{spinButtonProps:w}=sx({value:e.value??void 0,textValue:h,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{s.current="",t.increment(e.type)},onDecrement:()=>{s.current="",t.decrement(e.type)},onIncrementPage:()=>{s.current="",t.incrementPage(e.type)},onDecrementPage:()=>{s.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{s.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{s.current="",t.decrementToMin(e.type)}}),j=(0,g.useMemo)(()=>new sS(l,{maximumFractionDigits:0}),[l]),O=()=>{if(e.text===e.placeholder&&m.focusPrevious(),!j.isValidPartialNumber(e.text)||t.isReadOnly||e.isPlaceholder)("dayPeriod"===e.type||"era"===e.type)&&t.clearSegment(e.type);else{let r=e.text.slice(0,-1),n=j.parse(r);0===(r=0===n?"":r).length||0===n?t.clearSegment(e.type):t.setSegment(e.type,n),s.current=r}},{keyboardProps:S}=tL({shortcuts:{Backspace:()=>{O()},Delete:()=>{O()},"Mod+a":()=>{}},allowRepeats:!0}),{startsWith:k}=(n=function(e){let{locale:t}=rC(),r=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(s7.has(r))return s7.get(r);let n=new Intl.Collator(t,e);return s7.set(r,n),n}({usage:"search",sensitivity:"base"}),a=(0,g.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(0,t.length),t)),[n]),o=(0,g.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(-t.length),t)),[n]),i=(0,g.useCallback)((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let r=0,a=(t=t.normalize("NFC")).length;for(;r+a<=e.length;r++){let o=e.slice(r,r+a);if(0===n.compare(t,o))return!0}return!1},[n]),(0,g.useMemo)(()=>({startsWith:a,endsWith:o,contains:i}),[a,o,i])),E=rL({hour:"numeric",hour12:!0}),P=(0,g.useMemo)(()=>{let e=new Date;return e.setHours(0),E.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[E]),A=(0,g.useMemo)(()=>{let e=new Date;return e.setHours(12),E.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[E]),D=rL({year:"numeric",era:"narrow",timeZone:"UTC"}),C=(0,g.useMemo)(()=>{if("era"!==e.type)return[];let r=(0,nn.yP)(new(0,ay.ng)(1,1,1),t.calendar),n=t.calendar.getEras().map(e=>{let t=r.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:D.formatToParts(t).find(e=>"era"===e.type).value}}),a=function(e){e.sort();let t=e[0],r=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==r[e])return e;return 0}(n.map(e=>e.formatted));if(a)for(let e of n)e.formatted=e.formatted.slice(a);return n},[D,t.calendar,e.type]),T=r=>{if(t.isDisabled||t.isReadOnly)return;let n=s.current+r;switch(e.type){case"dayPeriod":if(k(P,r))t.setSegment("dayPeriod",0);else if(k(A,r))t.setSegment("dayPeriod",1);else break;m.focusNext();break;case"era":{let e=C.find(e=>k(e.formatted,r));e&&(t.setSegment("era",e.era),m.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!j.isValidPartialNumber(n))return;let a=j.parse(n),o=a;if(void 0!==e.maxValue&&a>e.maxValue&&(o=j.parse(r)),isNaN(a))return;t.setSegment(e.type,o),void 0!==e.maxValue&&(Number(a+"0")>e.maxValue||n.length>=String(e.maxValue).length)?(s.current="",m.focusNext()):s.current=n}}};nt((0,g.useRef)("u">typeof document?document:null),"selectionchange",()=>{let e=window.getSelection();e?.anchorNode&&e$(r.current,e?.anchorNode)&&((e=document)=>e.activeElement)()===r.current&&e.collapse(r.current)});let N=(0,g.useRef)("");nt(r,"beforeinput",n=>{if(r.current)switch(n.preventDefault(),n.inputType){case"deleteContentBackward":case"deleteContentForward":j.isValidPartialNumber(e.text)&&!t.isReadOnly&&O();break;case"insertCompositionText":N.current=r.current.textContent,r.current.textContent=r.current.textContent;break;default:null!=n.data&&T(n.data)}}),nt(r,"input",e=>{let{inputType:t,data:n}=e;"insertCompositionText"===t&&(r.current&&(r.current.textContent=N.current),null!=n&&(k(P,n)||k(A,n))&&T(n))}),X(()=>{let e=r.current;return()=>{((e=document)=>e.activeElement)()===e&&(m.focusPrevious()||m.focusNext())}},[r,m]);let R=tr()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e===(0,g.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])||t.isInvalid||(p=void 0);let M=eu(),I=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L="literal"===e.type?"":c.of(e.type),F=r0({"aria-label":`${L}${d?`, ${d}`:""}${f?", ":""}`,"aria-labelledby":f});if("literal"===e.type)return{segmentProps:{"aria-hidden":!0}};let B={caretColor:"transparent"};if("rtl"===u){B.unicodeBidi="embed";let t=y[e.type];("numeric"===t||"2-digit"===t)&&(B.direction="ltr")}return{segmentProps:em(w,F,{id:M,...R,...S,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":p,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:I,suppressContentEditableWarning:I,spellCheck:I?"false":void 0,autoCorrect:I?"off":void 0,[parseInt(b().version,10)>=17?"enterKeyHint":"enterkeyhint"]:I?"next":void 0,inputMode:t.isDisabled||"dayPeriod"===e.type||"era"===e.type||!I?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onFocus:()=>{s.current="",r.current&&r8(r.current,{containingElement:r4(r.current)});let e=window.getSelection();e?.collapse(r.current)},style:B,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}(y,j,O).segmentProps,k=rn(),E=k.focusProps,P=k.isFocused,A=k.isFocusVisible,D=rl(la(ln({},x),{isDisabled:j.isDisabled||"literal"===y.type})),C=D.hoverProps,T=D.isHovered,N=(a=(n=la(ln({},x),{values:la(ln({},y),{isReadOnly:!y.isEditable,isInvalid:j.isInvalid,isDisabled:j.isDisabled,isHovered:T,isFocused:P,isFocusVisible:A}),defaultChildren:y.text})).className,o=n.style,i=n.children,l=void 0===(s=n.defaultClassName)?void 0:s,c=void 0===(u=n.defaultChildren)?void 0:u,d=n.defaultStyle,f=n.values,(0,g.useMemo)(function(){var e,t,r;return e="function"==typeof a?a(o2(o1({},f),{defaultClassName:l})):a,t="function"==typeof o?o(o2(o1({},f),{defaultStyle:d||{}})):o,r="function"==typeof i?i(o2(o1({},f),{defaultChildren:c})):null==i?c:i,{className:null!=e?e:l,style:t||d?o1({},d,t):void 0,children:null!=r?r:c,"data-rac":""}},[a,o,i,l,c,d,f])),R=(0,g.useCallback)(function(e){e.stopPropagation()},[]);return(0,v.jsx)("span",la(ln({},em(e_(x),S,E,C),N),{ref:O,style:S.style,"data-placeholder":y.isPlaceholder||void 0,"data-invalid":j.isInvalid||void 0,"data-readonly":!y.isEditable||void 0,"data-disabled":j.isDisabled||void 0,"data-type":y.type,"data-hovered":T||void 0,"data-focused":P||void 0,"data-focus-visible":A||void 0,onClick:R}))});function ls(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ll(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){ls(e,t,r[t])})}return e}var lu={short:!1,size:"md"},lc=(0,g.forwardRef)(function(e,t){var r,n,a,o,i,s=ll({},lu,e),l=s.className,u=s.defaultValue,c=s.isDisabled,d=s.invalid,f=s.invalidText,p=s.isInvalid,m=s.label,h=s.labelText,y=s.light,x=s.maxDate,w=s.minDate,j=s.onChange,O=s.onChangeRaw,k=s.short,E=s.size,P=s.value,A=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(s,["className","defaultValue","isDisabled","invalid","invalidText","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","short","size","value"]),D=o4(),C=D.calendar,T=D.intlLocale,N=D.today_,R=(0,g.useId)(),M=!!(null!=h?h:m),I=(0,g.useMemo)(function(){return oZ(u,C)},[u,C]),L=(0,g.useMemo)(function(){return oZ(P,C,!0)},[P,C]),F=(0,g.useMemo)(function(){return oZ(x,C)},[x,C]),B=(0,g.useMemo)(function(){return oZ(null!=w?w:o5,C)},[w,C]),V=(0,g.useMemo)(function(){return d||p},[d,p]),z=(0,g.useMemo)(function(){return O&&j&&console.error("An EgenDatePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),null!=O?O:function(e){return null==j?void 0:j(oQ(e))}},[O,j]);return(0,v.jsx)(oG,{locale:T.toString(),children:(0,v.jsx)("div",{className:S()(sB,l),children:(0,v.jsx)(ev,{values:[[o3,T]],children:(0,v.jsxs)(oH,(r=ll({className:S()(sV,(ls(a={},"U-sr-DgqYDsEWS3ItmWepw==",k),ls(a,s$,y),a)),defaultValue:I,isDisabled:c,isInvalid:V,maxValue:F,minValue:B,value:L,shouldForceLeadingZeros:"en"===T.language||void 0},A),n=n={onChange:z,children:[(0,v.jsxs)("div",{className:sz,children:[M&&(0,v.jsx)(a8,{"data-slot":"date-label","data-disabled":c?"true":void 0,className:S()(sW,ls({},sU,c)),htmlFor:R,children:null!=h?h:m}),(0,v.jsxs)(nI,{className:sH,children:[(0,v.jsx)(s5,{"data-slot":"date-input-wrapper",id:M?R:void 0,ref:t,className:S()("D6LSoT6+ZzCa1bjNprIvQg==",(ls(o={},"N4xGg4wxkU8fN7F5eNg8tQ==","sm"===E),ls(o,"SHEHOUcjuc-unljYWWCsOw==","md"===E||!E||0===E.length),ls(o,"Tg7KMq6kBnhaudmREhqtWg==","lg"===E),o)),children:function(e){return"era"!==e.type?(0,v.jsx)(li,{className:sK,segment:e}):(0,v.jsx)(b().Fragment,{})}}),(0,v.jsx)(rc,{className:S()(sY,(ls(i={},sZ,"sm"===E),ls(i,sX,"md"===E||!E||0===E.length),ls(i,sQ,"lg"===E),i)),children:(0,v.jsx)(s8,{})})]}),(0,v.jsx)(aJ,{className:sq,children:f})]}),(0,v.jsx)(s1,{variant:"single",today_:N})]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))})})})});function ld(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function lf(e){if(Array.isArray(e))return e}function lp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lm(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lh(e,t){if(e){if("string"==typeof e)return ld(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ld(e,t)}}var ly=(0,g.forwardRef)(function(e,t){var r,n,a,o,i,s,l=lf(a=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||lh(a)||lm(),u=l[0],c=l.slice(1),d=u.className,f=u.defaultValue,p=u.invalid,m=u.invalidText,h=u.isDisabled,y=u.isInvalid,b=u.label,x=u.labelText,w=u.light,j=u.maxDate,O=u.minDate,k=u.onChange,E=u.onChangeRaw,P=u.size,A=void 0===P?"md":P,D=u.value,C=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(u,["className","defaultValue","invalid","invalidText","isDisabled","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","size","value"]),T=(lf(c)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(c)||lh(c,1)||lm())[0],N=o4(),R=N.calendar,M=N.intlLocale,I=N.today_,L=(0,g.useId)(),F=!!(null!=x?x:b),B=(0,g.useMemo)(function(){if(D)return{start:oZ(D[0],R,!1),end:oZ(D[1],R,!1)}},[D,R]),V=(0,g.useMemo)(function(){if(f)return{start:oZ(f[0],R,!1),end:oZ(f[1],R,!1)}},[f,R]),z=(0,g.useMemo)(function(){return oZ(null!=O?O:o5,R,!0)},[O,R]),W=(0,g.useMemo)(function(){return oZ(j,R,!0)},[j,R]),U=(0,g.useMemo)(function(){return p||y},[p,y]),$=(0,g.useMemo)(function(){return E&&k&&console.error("An EgenDateRangePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),null!=E?E:function(e){return null==k?void 0:k([oQ(e.start),oQ(e.end)])}},[E,k]);return(0,v.jsx)(oG,{locale:M.toString(),children:(0,v.jsx)("div",{className:S()(sB,d),children:(0,v.jsx)(ev,{values:[[o3,M]],children:(0,v.jsx)(oK,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){lp(e,t,r[t])})}return e}({id:F?L:void 0,className:S()(sV,(lp(o={},s$,w),lp(o,"RoTQ0MzT4otofOA0eOOr8g==",h),o)),isInvalid:U,shouldForceLeadingZeros:"en"===M.language||void 0,maxValue:W,minValue:z,value:B,defaultValue:V,ref:T,isDisabled:h},C),n=n={onChange:$,children:(0,v.jsxs)("div",{className:sz,children:[F&&(0,v.jsx)(a8,{"data-slot":"date-label","data-disabled":h?"true":void 0,className:S()(sW,lp({},sU,h)),htmlFor:L,children:null!=x?x:b}),(0,v.jsxs)(nI,{className:sH,children:[(0,v.jsxs)("div",{className:S()("+iZ1JKN+dyhQZnylixUspg==",(lp(i={},"gTbcXlUJmu8XgkTjaQyYeg==","sm"===A),lp(i,"_7zIbayzJVaxHgU4NSXs6ow==","md"===A||!A||0===A.length),lp(i,"XBsk0UJEMEpusGhEXXXq7g==","lg"===A),i)),children:[(0,v.jsx)(aW,{"data-slot":"date-input-wrapper",className:S()("fBASMUIVw7f+oFxNz02V7g==",sG),slot:"start",children:function(e){return(0,v.jsx)(li,{className:sK,segment:e})}}),(0,v.jsx)("div",{className:"XxQ0PDf+Iqe39Zzm2Yl5Tw==",children:(0,v.jsx)("span",{"aria-hidden":"true","data-readonly":!0,children:"–"})}),(0,v.jsx)(aW,{"data-slot":"date-input-wrapper",className:S()("ZvkgLhkuwikHh6yTNmN7MA==",sG),slot:"end",children:function(e){return(0,v.jsx)(li,{className:sK,segment:e})}})]}),(0,v.jsx)(rc,{className:S()(sY,(lp(s={},sZ,"sm"===A),lp(s,sX,"md"===A||!A||0===A.length),lp(s,sQ,"lg"===A),s)),children:(0,v.jsx)(s8,{})})]}),(0,v.jsx)(aJ,{className:sq,children:m}),(0,v.jsx)(s1,{variant:"range",today_:I,minDate:z,maxDate:W})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))})})})}),lv={red:"border-transparent bg-red-100 text-red-800 dark:bg-red-950 dark:text-red-200",magenta:"border-transparent bg-fuchsia-100 text-fuchsia-800 dark:bg-fuchsia-950 dark:text-fuchsia-200",purple:"border-transparent bg-purple-100 text-purple-800 dark:bg-purple-950 dark:text-purple-200",blue:"border-transparent bg-blue-100 text-blue-800 dark:bg-blue-950 dark:text-blue-200",cyan:"border-transparent bg-cyan-100 text-cyan-800 dark:bg-cyan-950 dark:text-cyan-200",teal:"border-transparent bg-teal-100 text-teal-800 dark:bg-teal-950 dark:text-teal-200",green:"border-transparent bg-green-100 text-green-800 dark:bg-green-950 dark:text-green-200",gray:"border-transparent bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-200","cool-gray":"border-transparent bg-slate-100 text-slate-800 dark:bg-slate-800 dark:text-slate-200","warm-gray":"border-transparent bg-stone-100 text-stone-800 dark:bg-stone-800 dark:text-stone-200","high-contrast":"border-transparent bg-foreground text-background",outline:"bg-transparent text-foreground"};function lg(e){var t=e.classifications,r=(0,x.useConfig)().classificationTags;return(null==t?void 0:t.length)?(0,v.jsx)("div",{className:"flex flex-wrap gap-1","aria-label":(0,V.V)("classificationTags","Classification tags"),children:t.map(function(e,t){var n,a,o,i="primary"===e.rank||1===e.rank,s="secondary"===e.rank||2===e.rank,l=i?null!=(n=null==r?void 0:r.primaryColor)?n:"red":s?null!=(a=null==r?void 0:r.secondaryColor)?a:"blue":"gray";return(0,v.jsx)(z.Ex,{variant:"outline",className:null!=(o=lv[l])?o:lv.gray,children:e.display},"".concat(e.display,"-").concat(t))})}):null}var lb=function(e){var t=e.width,r=e.height;return(0,v.jsx)("svg",{width:void 0===t?"64":t,height:void 0===r?"64":r,viewBox:"0 0 64 64",children:(0,v.jsx)("use",{href:"#egen-empty-data-illustration"})})},lx=function(e){var t="tablet"===(0,x.useLayoutType)(),r=e.launchForm;return(0,v.jsx)(z.Wd,{className:"bg-transparent",children:(0,v.jsxs)(z.FA,{className:"gap-0 rounded-none border-border py-0 text-center shadow-none",children:[(0,v.jsx)(j,{title:e.headerTitle}),(0,v.jsx)(lb,{}),(0,v.jsx)("p",{className:"mt-4 mb-2 text-sm font-semibold text-muted-foreground",children:(0,V.V)("emptyStateText","There are no {{displayText}} to display",{displayText:e.displayText})}),(0,v.jsx)("p",{className:"mb-2",children:r&&(0,v.jsx)(z.$n,{onClick:function(){return r()},variant:"ghost",size:t?"lg":"sm",children:(0,V.V)("recordNewEntry","Record {{ displayText }}",{displayText:e.displayText})})})]})})},lw=function(e){var t,r,n=e.error,a=e.headerTitle;return(0,v.jsx)(z.Wd,{className:"bg-transparent",children:(0,v.jsxs)(z.FA,{className:"gap-0 rounded-none border-border py-0 text-center shadow-none",children:[(0,v.jsx)(j,{title:a}),(0,v.jsxs)("p",{className:"mt-9 mb-2 text-sm font-semibold",children:[(0,V.V)("error","Error")," ","".concat(null==n||null==(t=n.response)?void 0:t.status,": "),null==n||null==(r=n.response)?void 0:r.statusText]}),(0,v.jsx)("p",{className:"mb-2 text-sm text-muted-foreground",children:(0,V.V)("errorCopy")})]})})},lj=lw;let lO={field:"_9oq3+KL10aiul31PaGyl1w==",fieldControl:"hXUjhushVnaJ061crr83jg==","field--sm":"GurSyAyT4zcSQ9PCPGB6-w==",input:"GZLUplmSEr4QuwprfKQ7Ow==","field--md":"lY4zysCavYxZv-oZa0ufiQ==","field--lg":"cDEtszzByVjBcgXxJbR2BA==","field--has-left-icon":"p0thzc8s+D4CqBMiFvWnFw==","field--has-validation-icon":"Hx86Md8wKfj2MHeYjv+jPg==",leftIcon:"_77vsrGw+eM+tfluiSvvaBg==",fieldIconGlyph:"yDJtgpEZ4Q0sdRhS3jPPEg==",label:"ZcOL8yvqSIZCwlal2wRMNg==",labelIconGlyph:"WpF835sK+GiPTOQaamsWaA==",labelText:"c0TOkha5fsQrKA0UAyslxw==",requiredMark:"RyOyavBDWHTageENO-wfmA==","field--outlined":"Diknt2LwZ5aTc7aBxYAVxw==","field--filled":"_7osREK9Ya2jWgTHQ8LbGxA==","field--standard":"CD9aYhpLjA5otZ3CM4SudA==","field--kinetic":"cs5NnBb4TcMznDdyDeYrlQ==",kineticLabelWrapper:"AJh1Pw52T2FVeWtbmSnYMw==",kineticLabel:"_9WJQIUQmN+8wexv2Qn7VhA==",kineticLetter:"TuyV+ZUFgJjF03vLHckqCg==","field--success":"DIeQvJ7QpiRYkKcopoJdrA==","field--warning":"lp-1BWp2G7W7NhqXVEiY6g==","field--error":"StGfiAKtpnJrwW0CZIYz8A==","field--animating":"aRnUpLNMvsK8aF0dzgBTJQ==","egen-field-shake":"nIa+3Fsazs-TrvGbS17y8A==",validationIcon:"NtgObVusHhYBGcYntQRK9g==","validationIcon--visible":"NBgQoaGbJ5Vd3x8HvRzHZA==","validationIcon--success":"wN2Yjw-Os695vzZwffQkiA==",validationIconGlyph:"rQ-AlKwwP2OzDHJ7KSkizA==","validationIcon--warning":"d8UT1h7nYUuqnN6uPYGP5A==","validationIcon--error":"WmYkdTBmxofbtwSX5RQYbA==",message:"nn2emktWP9LkG24IwCv8cw==","egen-field-message-in":"uG31soKrjaZCD2ybZ7w0jQ==",messageLead:"V02FhPeb1R0bNnG2uewpIQ==","field--disabled":"txwSDaVrpSevtmfAUo69Zg=="};var lS=function(e){var t=e.fieldIcon,r=e.className;if(!t)return null;var n=t.icon;return(0,v.jsx)(n,{className:[lO.fieldIconGlyph,r].filter(Boolean).join(" "),size:16})};function lk(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var lE={success:iv,warning:su,error:sm},lP=function(e){var t,r,n,a=e.currentValidation,o=e.showIcons,i=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return lk(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return lk(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=i[0],l=i[1];if((0,g.useEffect)(function(){if(a&&o){var e=setTimeout(function(){return l(!0)},50);return function(){return clearTimeout(e)}}l(!1)},[a,o]),!o||!a)return null;var u=lE[a.type];return u?(0,v.jsx)("div",{className:S()(lO.validationIcon,lO["validationIcon--".concat(a.type)],(r={},n=lO["validationIcon--visible"],n in r?Object.defineProperty(r,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[n]=s,r)),children:(0,v.jsx)(u,{className:lO.validationIconGlyph,size:16})}):null};let lA=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lD=new Set([...lA,"pathRotation"]),lC=(e,t,r)=>r>t?t:r<e?e:r,lT={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},lN={...lT,transform:e=>lC(0,1,e)},lR={...lT,default:1},lM=e=>Math.round(1e5*e)/1e5,lI=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,l_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,lL=(e,t)=>r=>!!("string"==typeof r&&l_.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),lF=(e,t,r)=>n=>{if("string"!=typeof n)return n;let[a,o,i,s]=n.match(lI);return{[e]:parseFloat(a),[t]:parseFloat(o),[r]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},lB={...lT,transform:e=>Math.round(lC(0,255,e))},lV={test:lL("rgb","red"),parse:lF("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+lB.transform(e)+", "+lB.transform(t)+", "+lB.transform(r)+", "+lM(lN.transform(n))+")"},lz={test:lL("#"),parse:function(e){let t="",r="",n="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,n+=n,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}},transform:lV.transform},lW=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),lU=lW("deg"),l$=lW("%"),lH=lW("px"),lK=lW("vh"),lG=lW("vw"),lq={...l$,parse:e=>l$.parse(e)/100,transform:e=>l$.transform(100*e)},lY={test:lL("hsl","hue"),parse:lF("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+l$.transform(lM(t))+", "+l$.transform(lM(r))+", "+lM(lN.transform(n))+")"},lX={test:e=>lV.test(e)||lz.test(e)||lY.test(e),parse:e=>lV.test(e)?lV.parse(e):lY.test(e)?lY.parse(e):lz.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?lV.transform(e):lY.transform(e),getAnimatableNone:e=>{let t=lX.parse(e);return t.alpha=0,lX.transform(t)}},lZ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,lQ="number",lJ="color",l0=/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 l1(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},a=[],o=0,i=t.replace(l0,e=>(lX.test(e)?(n.color.push(o),a.push(lJ),r.push(lX.parse(e))):e.startsWith("var(")?(n.var.push(o),a.push("var"),r.push(e)):(n.number.push(o),a.push(lQ),r.push(parseFloat(e))),++o,"${}")).split("${}");return{values:r,split:i,indexes:n,types:a}}function l2({split:e,types:t}){let r=e.length;return n=>{let a="";for(let o=0;o<r;o++)if(a+=e[o],void 0!==n[o]){let e=t[o];e===lQ?a+=lM(n[o]):e===lJ?a+=lX.transform(n[o]):a+=n[o]}return a}}let l3={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(lI)?.length||0)+(e.match(lZ)?.length||0)>0},parse:function(e){return l1(e).values},createTransformer:function(e){return l2(l1(e))},getAnimatableNone:function(e){let t=l1(e);return l2(t)(t.values.map((e,r)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:lX.test(e)?lX.getAnimatableNone(e):e)(e,t.split[r])))}},l4=new Set(["brightness","contrast","saturate","opacity"]);function l5(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(lI)||[];if(!n)return e;let a=r.replace(n,""),o=+!!l4.has(t);return n!==r&&(o*=100),t+"("+o+a+")"}let l6=/\b([a-z-]*)\(.*?\)/gu,l8={...l3,getAnimatableNone:e=>{let t=e.match(l6);return t?t.map(l5).join(" "):e}},l9={...l3,getAnimatableNone:e=>{let t=l3.parse(e);return l3.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},l7={...lT,transform:Math.round},ue={borderWidth:lH,borderTopWidth:lH,borderRightWidth:lH,borderBottomWidth:lH,borderLeftWidth:lH,borderRadius:lH,borderTopLeftRadius:lH,borderTopRightRadius:lH,borderBottomRightRadius:lH,borderBottomLeftRadius:lH,width:lH,maxWidth:lH,height:lH,maxHeight:lH,top:lH,right:lH,bottom:lH,left:lH,inset:lH,insetBlock:lH,insetBlockStart:lH,insetBlockEnd:lH,insetInline:lH,insetInlineStart:lH,insetInlineEnd:lH,padding:lH,paddingTop:lH,paddingRight:lH,paddingBottom:lH,paddingLeft:lH,paddingBlock:lH,paddingBlockStart:lH,paddingBlockEnd:lH,paddingInline:lH,paddingInlineStart:lH,paddingInlineEnd:lH,margin:lH,marginTop:lH,marginRight:lH,marginBottom:lH,marginLeft:lH,marginBlock:lH,marginBlockStart:lH,marginBlockEnd:lH,marginInline:lH,marginInlineStart:lH,marginInlineEnd:lH,fontSize:lH,backgroundPositionX:lH,backgroundPositionY:lH,rotate:lU,pathRotation:lU,rotateX:lU,rotateY:lU,rotateZ:lU,scale:lR,scaleX:lR,scaleY:lR,scaleZ:lR,skew:lU,skewX:lU,skewY:lU,distance:lH,translateX:lH,translateY:lH,translateZ:lH,x:lH,y:lH,z:lH,perspective:lH,transformPerspective:lH,opacity:lN,originX:lq,originY:lq,originZ:lH,zIndex:l7,fillOpacity:lN,strokeOpacity:lN,numOctaves:l7},ut={...ue,color:lX,backgroundColor:lX,outlineColor:lX,fill:lX,stroke:lX,borderColor:lX,borderTopColor:lX,borderRightColor:lX,borderBottomColor:lX,borderLeftColor:lX,filter:l8,WebkitFilter:l8,mask:l9,WebkitMask:l9},ur=e=>ut[e],un=()=>({translate:0,scale:1,origin:0,originPoint:0}),ua=()=>({x:un(),y:un()}),uo=()=>({min:0,max:0}),ui=()=>({x:uo(),y:uo()}),us=e=>!!(e&&e.getVelocity),ul=new Set(["width","height","top","left","right","bottom",...lA]),uu=e=>t=>t.test(e),uc=[lT,lH,l$,lU,lG,lK,{test:e=>"auto"===e,parse:e=>e}],ud=e=>uc.find(uu(e)),uf=()=>{},up=()=>{},um=e=>t=>"string"==typeof t&&t.startsWith(e),uh=um("--"),uy=um("var(--"),uv=e=>!!uy(e)&&ug.test(e.split("/*")[0].trim()),ug=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ub(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let ux=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,uw=e=>180*e/Math.PI,uj=e=>uS(uw(Math.atan2(e[1],e[0]))),uO={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:uj,rotateZ:uj,skewX:e=>uw(Math.atan(e[1])),skewY:e=>uw(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},uS=e=>((e%=360)<0&&(e+=360),e),uk=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),uE=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),uP={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:uk,scaleY:uE,scale:e=>(uk(e)+uE(e))/2,rotateX:e=>uS(uw(Math.atan2(e[6],e[5]))),rotateY:e=>uS(uw(Math.atan2(-e[2],e[0]))),rotateZ:uj,rotate:uj,skewX:e=>uw(Math.atan(e[4])),skewY:e=>uw(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function uA(e){return+!!e.includes("scale")}function uD(e,t){let r,n;if(!e||"none"===e)return uA(t);let a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(a)r=uP,n=a;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=uO,n=t}if(!n)return uA(t);let o=r[t],i=n[1].split(",").map(uC);return"function"==typeof o?o(i):i[o]}function uC(e){return parseFloat(e.trim())}let uT=e=>e===lT||e===lH,uN=new Set(["x","y","z"]),uR=lA.filter(e=>!uN.has(e)),uM={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:n})=>{let a=e.max-e.min;return"border-box"===n?a:a-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:n})=>{let a=e.max-e.min;return"border-box"===n?a:a-parseFloat(t)-parseFloat(r)},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:(e,{transform:t})=>uD(t,"x"),y:(e,{transform:t})=>uD(t,"y")};uM.translateX=uM.x,uM.translateY=uM.y;let uI=e=>e,u_={},uL=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function uF(e,t){let r=!1,n=!0,a={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,i=uL.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,a=!1,o=new WeakSet,i={delta:0,timestamp:0,isProcessing:!1};function s(t){o.has(t)&&(l.schedule(t),e()),t(i)}let l={schedule:(e,a=!1,i=!1)=>{let s=i&&n?t:r;return a&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(i=e,n){a=!0;return}n=!0;let o=t;t=r,r=o,t.forEach(s),t.clear(),n=!1,a&&(a=!1,l.process(e))}};return l}(o),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:p,postRender:m}=i,h=()=>{let o=u_.useManualTiming,i=o?a.timestamp:performance.now();r=!1,o||(a.delta=n?1e3/60:Math.max(Math.min(i-a.timestamp,40),1)),a.timestamp=i,a.isProcessing=!0,s.process(a),l.process(a),u.process(a),c.process(a),d.process(a),f.process(a),p.process(a),m.process(a),a.isProcessing=!1,r&&t&&(n=!1,e(h))};return{schedule:uL.reduce((t,o)=>{let s=i[o];return t[o]=(t,o=!1,i=!1)=>(!r&&(r=!0,n=!0,a.isProcessing||e(h)),s.schedule(t,o,i)),t},{}),cancel:e=>{for(let t=0;t<uL.length;t++)i[uL[t]].cancel(e)},state:a,steps:i}}let{schedule:uB,cancel:uV,state:uz,steps:uW}=uF("u">typeof requestAnimationFrame?requestAnimationFrame:uI,!0),uU=new Set,u$=!1,uH=!1,uK=!1;function uG(){if(uH){let e=Array.from(uU).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t,n=(t=[],uR.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),t);n.length&&(r.set(e,n),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}uH=!1,u$=!1,uU.forEach(e=>e.complete(uK)),uU.clear()}function uq(){uU.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(uH=!0)})}class uY{constructor(e,t,r,n,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(uU.add(this),u$||(u$=!0,uB.read(uq),uB.resolveKeyframes(uG))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;if(null===e[0]){let a=n?.get(),o=e[e.length-1];if(void 0!==a)e[0]=a;else if(r&&t){let n=r.readValue(t,o);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=o),n&&void 0===a&&n.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),uU.delete(this)}cancel(){"scheduled"===this.state&&(uU.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let uX=new Set([l8,l9]);function uZ(e,t){let r=ur(e);return uX.has(r)||(r=l3),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let uQ=new Set(["auto","none","0"]);class uJ extends uY{constructor(e,t,r,n,a){super(e,t,r,n,a,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&uv(n=n.trim())){let a=function e(t,r,n=1){up(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[a,o]=function(e){let t=ux.exec(e);if(!t)return[,];let[,r,n,a]=t;return[`--${r??n}`,a]}(t);if(!a)return;let i=window.getComputedStyle(r).getPropertyValue(a);if(i){let e=i.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return uv(o)?e(o,r,n+1):o}(n,t.current);void 0!==a&&(e[r]=a),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!ul.has(r)||2!==e.length)return;let[n,a]=e,o=ud(n),i=ud(a);if(ub(n)!==ub(a)&&uM[r]){this.needsMeasurement=!0;return}if(o!==i)if(uT(o)&&uT(i))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else uM[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&r.push(t);r.length&&function(e,t,r){let n,a=0;for(;a<e.length&&!n;){let t=e[a];"string"==typeof t&&!uQ.has(t)&&l1(t).values.length&&(n=e[a]),a++}if(n&&r)for(let a of t)e[a]=uZ(r,n)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=uM[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let a=r.length-1,o=r[a];r[a]=uM[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,r])=>{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}let u0=e=>1e3*e;function u1(e,t){-1===e.indexOf(t)&&e.push(t)}function u2(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class u3{constructor(){this.subscriptions=[]}add(e){return u1(this.subscriptions,e),()=>u2(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let a=0;a<n;a++){let n=this.subscriptions[a];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function u4(e,t,r){t.startsWith("--")?e.style.setProperty(t,r):e.style[t]=r}function u5(e){let t;return()=>(void 0===t&&(t=e()),t)}let u6={};function u8(e,t){let r=u5(e);return()=>u6[t]??r()}let u9=u8(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),u7=e=>null!==e;function ce(e,{repeat:t,repeatType:r="loop"},n,a=1){let o=e.filter(u7),i=a<0||t&&"loop"!==r&&t%2==1?0:o.length-1;return i&&void 0!==n?n:o[i]}class ct{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let cr=e=>Array.isArray(e)&&"number"==typeof e[0],cn=u8(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),ca=(e,t,r=10)=>{let n="",a=Math.max(Math.round(t/r),2);for(let t=0;t<a;t++)n+=Math.round(1e4*e(t/(a-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},co=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,ci={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:co([0,.65,.55,1]),circOut:co([.55,0,1,.45]),backIn:co([.31,.01,.66,-.59]),backOut:co([.33,1.53,.69,.99])};function cs(e){return"function"==typeof e&&"applyToOptions"in e}class cl extends ct{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:r,keyframes:n,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:i,onComplete:s}=e;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=e,up("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return cs(e)&&cn()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,r,{delay:n=0,duration:a=300,repeat:o=0,repeatType:i="loop",ease:s="easeOut",times:l}={},u){let c={[t]:r};l&&(c.offset=l);let d=function e(t,r){if(t)return"function"==typeof t?cn()?ca(t,r):"ease-out":cr(t)?co(t):Array.isArray(t)?t.map(t=>e(t,r)||ci.easeOut):ci[t]}(s,a);Array.isArray(d)&&(c.easing=d);let f={delay:n,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===i?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}(t,r,n,l,a),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let e=ce(n,this.options,i,this.speed);this.updateMotionValue&&this.updateMotionValue(e),u4(t,r,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=u0(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:r,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&u9())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),r&&(this.animation.rangeEnd=r),uI):n(this)}}let cu=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:cc}=uF(queueMicrotask,!1);function cd(){o=void 0}let cf={now:()=>(void 0===o&&cf.set(uz.isProcessing||u_.useManualTiming?uz.timestamp:performance.now()),o),set:e=>{o=e,queueMicrotask(cd)}},cp=(e,t)=>t?1e3/t*e:0,cm;class ch{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=cf.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=cf.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}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 u3);let r=this.events[e].add(t);return"change"===e?()=>{r(),uB.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return cm&&cm.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=cf.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return cp(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function cy(e,t){return new ch(e,t)}let cv=[...uc,lX,l3],cg=new WeakMap;function cb(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function cx(e){return"string"==typeof e||Array.isArray(e)}let cw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cj=["initial",...cw];function cO(e){return cb(e.animate)||cj.some(t=>cx(e[t]))}function cS(e){return!!(cO(e)||e.variants)}let ck={current:null},cE={current:!1},cP="u">typeof window;function cA(){if(cE.current=!0,cP)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ck.current=e.matches;e.addEventListener("change",t),t()}else ck.current=!1}function cD(e){let t=[{},{}];return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function cC(e,t,r,n){if("function"==typeof t){let[a,o]=cD(n);t=t(void 0!==r?r:e.custom,a,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[a,o]=cD(n);t=t(void 0!==r?r:e.custom,a,o)}return t}let cT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],cN={};class cR{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,skipAnimations:a,blockInitialAnimation:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=uY,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=()=>{let e=cf.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,uB.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=a,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=cO(t),this.isVariantNode=cS(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&us(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,cg.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)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(cE.current||cA(),this.shouldReduceMotion=ck.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),uV(this.notifyUpdate),uV(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let r;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&cu.has(e)&&this.current instanceof HTMLElement){let{factory:r,keyframes:n,times:a,ease:o,duration:i}=t.accelerate,s=new cl({element:this.current,name:e,keyframes:n,times:a,ease:o,duration:u0(i)}),l=r(s);this.valueSubscriptions.set(e,()=>{l(),s.cancel()});return}let n=lD.has(e);n&&this.onBindTransform&&this.onBindTransform();let a=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&uB.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{a(),r&&r()})}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 cN){let t=cN[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let 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):ui()}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<cT.length;t++){let r=cT[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(let n in t){let a=t[n],o=r[n];if(us(a))e.addValue(n,a);else if(us(o))e.addValue(n,cy(a,{owner:e}));else if(o!==a)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(a):t.hasAnimated||t.set(a)}else{let t=e.getStaticValue(n);e.addValue(n,cy(void 0!==t?t:a,{owner:e}))}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let 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 r=this.values.get(e);return void 0===r&&void 0!==t&&(r=cy(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){let n,a;if("string"==typeof r&&(n=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(a=r,/^0[^.\s]+$/u.test(a))))r=parseFloat(r);else{let n;n=r,!cv.find(uu(n))&&l3.test(t)&&(r=uZ(e,t))}this.setBaseTarget(e,us(r)?r.get():r)}return us(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=cC(this.props,r,this.presenceContext?.custom);n&&(t=n[e])}if(r&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||us(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new u3),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){cc.render(this.render)}}class cM extends cR{constructor(){super(...arguments),this.KeyframeResolver=uJ}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let r=e.style;return r?r[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;us(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function cI(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let c_=(e,t)=>t&&"number"==typeof e?t.transform(e):e,cL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cF=lA.length;function cB(e,t,r){let{style:n,vars:a,transformOrigin:o}=e,i=!1,s=!1;for(let e in t){let r=t[e];if(lD.has(e)){i=!0;continue}if(uh(e)){a[e]=r;continue}{let t=c_(r,ue[e]);e.startsWith("origin")?(s=!0,o[e]=t):n[e]=t}}if(!t.transform&&(i||r?n.transform=function(e,t,r){let n="",a=!0;for(let o=0;o<cF;o++){let i=lA[o],s=e[i];if(void 0===s)continue;let l=!0;if("number"==typeof s)l=s===+!!i.startsWith("scale");else{let e=parseFloat(s);l=i.startsWith("scale")?1===e:0===e}if(!l||r){let e=c_(s,ue[i]);if(!l){a=!1;let t=cL[i]||i;n+=`${t}(${e}) `}r&&(t[i]=e)}}let o=e.pathRotation;return o&&(a=!1,n+=`rotate(${c_(o,ue.pathRotation)}) `),n=n.trim(),r?n=r(t,a?"":n):a&&(n="none"),n}(t,e.transform,r):n.transform&&(n.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:r=0}=o;n.transformOrigin=`${e} ${t} ${r}`}}let cV={offset:"stroke-dashoffset",array:"stroke-dasharray"},cz={offset:"strokeDashoffset",array:"strokeDasharray"},cW=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function cU(e,{attrX:t,attrY:r,attrScale:n,pathLength:a,pathSpacing:o=1,pathOffset:i=0,...s},l,u,c){if(cB(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of(d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),cW))void 0!==d[e]&&(f[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==n&&(d.scale=n),void 0!==a&&function(e,t,r=1,n=0,a=!0){e.pathLength=1;let o=a?cV:cz;e[o.offset]=`${-n}`,e[o.array]=`${t} ${r}`}(d,a,o,i,!1)}let c$=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"]),cH=e=>"string"==typeof e&&"svg"===e.toLowerCase();function cK(e,{style:t,vars:r},n,a){let o,i=e.style;for(o in t)i[o]=t[o];for(o in a?.applyProjectionStyles(i,n),r)i.setProperty(o,r[o])}let cG=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function cq(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let cY={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!lH.test(e))return e;else e=parseFloat(e);let r=cq(e,t.target.x),n=cq(e,t.target.y);return`${r}% ${n}%`}},cX=(e,t,r)=>e+(t-e)*r,cZ={borderRadius:{...cY,applyTo:[...cG]},borderTopLeftRadius:cY,borderTopRightRadius:cY,borderBottomLeftRadius:cY,borderBottomRightRadius:cY,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=l3.parse(e);if(n.length>5)return e;let a=l3.createTransformer(e),o=+("number"!=typeof n[0]),i=r.x.scale*t.x,s=r.y.scale*t.y;n[0+o]/=i,n[1+o]/=s;let l=cX(i,s,.5);return"number"==typeof n[2+o]&&(n[2+o]/=l),"number"==typeof n[3+o]&&(n[3+o]/=l),a(n)}}};function cQ(e,{layout:t,layoutId:r}){return lD.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!cZ[e]||"opacity"===e)}function cJ(e,t,r){let n=e.style,a=t?.style,o={};if(!n)return o;for(let t in n)(us(n[t])||a&&us(a[t])||cQ(t,e)||r?.getValue(t)?.liveStyle!==void 0)&&(o[t]=n[t]);return o}function c0(e,t,r){let n=cJ(e,t,r);for(let r in e)(us(e[r])||us(t[r]))&&(n[-1!==lA.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}class c1 extends cM{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ui}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(lD.has(t)){let e=ur(t);return e&&e.default||0}return t=c$.has(t)?t:cI(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return c0(e,t,r)}build(e,t,r){cU(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){for(let r in cK(e,t,void 0,n),t.attrs)e.setAttribute(c$.has(r)?r:cI(r),t.attrs[r])}mount(e){this.isSVGTag=cH(e.tagName),super.mount(e)}}function c2({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function c3(e){return void 0===e||1===e}function c4({scale:e,scaleX:t,scaleY:r}){return!c3(e)||!c3(t)||!c3(r)}function c5(e){return c4(e)||c6(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function c6(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function c8(e,t,r,n,a){return void 0!==a&&(e=n+a*(e-n)),n+r*(e-n)+t}function c9(e,t=0,r=1,n,a){e.min=c8(e.min,t,r,n,a),e.max=c8(e.max,t,r,n,a)}function c7(e,{x:t,y:r}){c9(e.x,t.translate,t.scale,t.originPoint),c9(e.y,r.translate,r.scale,r.originPoint)}function de(e,t){e.min+=t,e.max+=t}function dt(e,t,r,n,a=.5){let o=cX(e.min,e.max,a);c9(e,t,r,o,n)}function dr(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function dn(e,t,r){let n=r??e;dt(e.x,dr(t.x,n.x),t.scaleX,t.scale,t.originX),dt(e.y,dr(t.y,n.y),t.scaleY,t.scale,t.originY)}function da(e,t){return c2(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}class di extends cM{constructor(){super(...arguments),this.type="html",this.renderInstance=cK}mount(e){up(!!e.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(e)}readValueFromInstance(e,t){if(lD.has(t))return this.projection?.isProjecting?uA(t):((e,t)=>{let{transform:r="none"}=getComputedStyle(e);return uD(r,t)})(e,t);{let r=window.getComputedStyle(e),n=(uh(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return da(e,t)}build(e,t,r){cB(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return cJ(e,t,r)}}let ds=["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 dl(e){if("string"!=typeof e||e.includes("-"));else if(ds.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let du=(0,g.createContext)({}),dc=(0,g.createContext)({strict:!1}),dd=(0,g.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),df=(0,g.createContext)({});function dp(e){return Array.isArray(e)?e.join(" "):e}let dm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function dh(e,t,r){for(let n in t)us(t[n])||cQ(n,r)||(e[n]=t[n])}let dy=()=>({...dm(),attrs:{}}),dv=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","propagate","ignoreStrict","viewport"]);function dg(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dv.has(e)}let db=e=>!dg(e);try{gU=require("@emotion/is-prop-valid").default,"function"==typeof gU&&(db=e=>e.startsWith("on")?!dg(e):gU(e))}catch{}function dx(e){return us(e)?e.get():e}let dw=(0,g.createContext)(null);function dj(e){let t=(0,g.useRef)(null);return null===t.current&&(t.current=e()),t.current}let dO=e=>(t,r)=>{let n=(0,g.useContext)(df),a=(0,g.useContext)(dw),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,a){return{latestValues:function(e,t,r,n){let a={},o=n(e,{});for(let e in o)a[e]=dx(o[e]);let{initial:i,animate:s}=e,l=cO(e),u=cS(e);t&&u&&!l&&!1!==e.inherit&&(void 0===i&&(i=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial,d=(c=c||!1===i)?s:i;if(d&&"boolean"!=typeof d&&!cb(d)){let t=Array.isArray(d)?d:[d];for(let r=0;r<t.length;r++){let n=cC(e,t[r]);if(n){let{transitionEnd:e,transition:t,...r}=n;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(a[e]=t)}for(let t in e)a[t]=e[t]}}}return a}(r,n,a,e),renderState:t()}})(e,t,n,a);return r?o():dj(o)},dS=dO({scrapeMotionValuesFromProps:cJ,createRenderState:dm}),dk=dO({scrapeMotionValuesFromProps:c0,createRenderState:dy}),dE={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"]},dP=!1;function dA(){return!function(){if(dP)return;let e={};for(let t in dE)e[t]={isEnabled:e=>dE[t].some(t=>!!e[t])};cN=e,dP=!0}(),cN}let dD=Symbol.for("motionComponentSymbol"),dC="data-"+cI("framerAppearId"),dT=(0,g.createContext)({});function dN(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let dR="u">typeof window?g.useLayoutEffect:g.useEffect;function dM(e,{forwardMotionProps:t=!1,type:r}={},n,a){n&&function(e){let t=dA();for(let r in e)t[r]={...t[r],...e[r]};cN=t}(n);let o=r?"svg"===r:dl(e),i=o?dk:dS;function s(r,n){var s;let l,u,c,d={...(0,g.useContext)(dd),...r,layoutId:function({layoutId:e}){let t=(0,g.useContext)(du).id;return t&&void 0!==e?t+"-"+e:e}(r)},{isStatic:f}=d,p=function(e){let{initial:t,animate:r}=function(e,t){if(cO(e)){let{initial:t,animate:r}=e;return{initial:!1===t||cx(t)?t:void 0,animate:cx(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,g.useContext)(df));return(0,g.useMemo)(()=>({initial:t,animate:r}),[dp(t),dp(r)])}(r),m=i(r,f);if(!f&&"u">typeof window){(0,g.useContext)(dc).strict;let t=function(e){let{drag:t,layout:r}=dA();if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(d);l=t.MeasureLayout,p.visualElement=function(e,t,r,n,a,o){let{visualElement:i}=(0,g.useContext)(df),s=(0,g.useContext)(dc),l=(0,g.useContext)(dw),u=(0,g.useContext)(dd),c=u.reducedMotion,d=u.skipAnimations,f=(0,g.useRef)(null),p=(0,g.useRef)(!1);n=n||s.renderer,!f.current&&n&&(f.current=n(e,{visualState:t,parent:i,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c,skipAnimations:d,isSVG:o}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,g.useContext)(dT);m&&!m.projection&&a&&("html"===m.type||"svg"===m.type)&&function(e,t,r,n){let{layoutId:a,layout:o,drag:i,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!i||s&&dN(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(f.current,r,a,h);let y=(0,g.useRef)(!1);(0,g.useInsertionEffect)(()=>{m&&y.current&&m.update(r,l)});let v=r[dC],b=(0,g.useRef)(!!v&&"u">typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return dR(()=>{p.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),b.current&&m.animationState&&m.animationState.animateChanges())}),(0,g.useEffect)(()=>{m&&(!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),m.enteringChildren=void 0)}),m}(e,m,d,a,t.ProjectionNode,o)}return(0,v.jsxs)(df.Provider,{value:p,children:[l&&p.visualElement?(0,v.jsx)(l,{visualElement:p.visualElement,...d}):null,function(e,t,r,{latestValues:n},a,o=!1,i){let s=(i??dl(e)?function(e,t,r,n){let a=(0,g.useMemo)(()=>{let r=dy();return cU(r,t,cH(n),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};dh(t,e.style,e),a.style={...t,...a.style}}return a}:function(e,t){let r,n,a={},o=(r=e.style||{},dh(n={},r,e),Object.assign(n,function({transformTemplate:e},t){return(0,g.useMemo)(()=>{let r=dm();return cB(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),n);return e.drag&&!1!==e.dragListener&&(a.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=o,a})(t,n,a,e),l=function(e,t,r){let n={};for(let a in e)("values"!==a||"object"!=typeof e.values)&&!us(e[a])&&(db(a)||!0===r&&dg(a)||!t&&!dg(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}(t,"string"==typeof e,o),u=e!==g.Fragment?{...l,...s,ref:r}:{},{children:c}=t,d=(0,g.useMemo)(()=>us(c)?c.get():c,[c]);return(0,g.createElement)(e,{...u,children:d})}(e,r,(s=p.visualElement,u=(0,g.useRef)(n),(0,g.useInsertionEffect)(()=>{u.current=n}),c=(0,g.useRef)(null),(0,g.useCallback)(e=>{e&&m.onMount?.(e),s&&(e?s.mount(e):s.unmount());let t=u.current;if("function"==typeof t)if(e){let r=t(e);"function"==typeof r&&(c.current=r)}else c.current?(c.current(),c.current=null):t(e);else t&&(t.current=e)},[s])),m,f,t,o)]})}s.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,g.forwardRef)(s);return l[dD]=e,l}class dI{constructor(e){this.isMounted=!1,this.node=e}update(){}}function d_(e,t,r){let n=e.getProps();return cC(n,t,void 0!==r?r:n.custom,e)}function dL(e,t){if(e?.inherit&&t){let{inherit:r,...n}=e;return{...t,...n}}return e}function dF(e,t){let r=e?.[t]??e?.default??e;return r!==e?dL(r,e):r}let dB=e=>Array.isArray(e);function dV(e,t){let{transitionEnd:r={},transition:n={},...a}=d_(e,t)||{};for(let t in a={...a,...r}){var o;let r=dB(o=a[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,cy(r))}}function dz(e,t){let r=e.getValue("willChange");if(us(r)&&r.add)return r.add(t);if(!r&&u_.WillChange){let r=new u_.WillChange("auto");e.addValue("willChange",r),r.add(t)}}let dW=(...e)=>e.reduce((e,t)=>r=>t(e(r)));function dU(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function d$(e,t){return r=>r>0?t:e}let dH=(e,t,r)=>{let n=e*e,a=r*(t*t-n)+n;return a<0?0:Math.sqrt(a)},dK=[lz,lV,lY];function dG(e){let t=dK.find(t=>t.test(e));if(uf(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===lY&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let a=0,o=0,i=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;a=dU(s,n,e+1/3),o=dU(s,n,e),i=dU(s,n,e-1/3)}else a=o=i=r;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*i),alpha:n}}(r)),r}let dq=(e,t)=>{let r=dG(e),n=dG(t);if(!r||!n)return d$(e,t);let a={...r};return e=>(a.red=dH(r.red,n.red,e),a.green=dH(r.green,n.green,e),a.blue=dH(r.blue,n.blue,e),a.alpha=cX(r.alpha,n.alpha,e),lV.transform(a))},dY=new Set(["none","hidden"]);function dX(e,t){return r=>cX(e,t,r)}function dZ(e){return"number"==typeof e?dX:"string"==typeof e?uv(e)?d$:lX.test(e)?dq:d0:Array.isArray(e)?dQ:"object"==typeof e?lX.test(e)?dq:dJ:d$}function dQ(e,t){let r=[...e],n=r.length,a=e.map((e,r)=>dZ(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=a[t](e);return r}}function dJ(e,t){let r={...e,...t},n={};for(let a in r)void 0!==e[a]&&void 0!==t[a]&&(n[a]=dZ(e[a])(e[a],t[a]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let d0=(e,t)=>{let r=l3.createTransformer(t),n=l1(e),a=l1(t);if(!(n.indexes.var.length===a.indexes.var.length&&n.indexes.color.length===a.indexes.color.length&&n.indexes.number.length>=a.indexes.number.length))return uf(!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.`,"complex-values-different"),d$(e,t);if(dY.has(e)&&!a.values.length||dY.has(t)&&!n.values.length)return dY.has(e)?r=>r<=0?e:t:r=>r>=1?t:e;return dW(dQ(function(e,t){let r=[],n={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let o=t.types[a],i=e.indexes[o][n[o]],s=e.values[i]??0;r[a]=s,n[o]++}return r}(n,a),a.values),r)};function d1(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?cX(e,t,r):dZ(e)(e,t)}let d2=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>uB.update(t,e),stop:()=>uV(t),now:()=>uz.isProcessing?uz.timestamp:cf.now()}};function d3(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}let d4=.01,d5=2,d6=.005,d8=.5;function d9(e,t){return e*Math.sqrt(1-t*t)}let d7=["duration","bounce"],fe=["stiffness","damping","mass"];function ft(e,t){return t.some(t=>void 0!==e[t])}function fr(e=.3,t=.3){let r,n,a,o,i,s,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:c}=l,d=l.keyframes[0],f=l.keyframes[l.keyframes.length-1],p={done:!1,value:d},{stiffness:m,damping:h,mass:y,duration:v,velocity:g,isResolvedFromDuration:b}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ft(e,fe)&&ft(e,d7))if(t.velocity=0,e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),n=r*r,a=2*lC(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:1,stiffness:n,damping:a}}else{let r=function({duration:e=800,bounce:t=.3,velocity:r=0,mass:n=1}){let a,o;uf(e<=u0(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=lC(.05,1,i),e=lC(.01,10,e/1e3),i<1?(a=t=>{let n=t*i,a=n*e;return .001-(n-r)/d9(t,i)*Math.exp(-a)},o=t=>{let n=t*i*e,o=Math.pow(i,2)*Math.pow(t,2)*e,s=Math.exp(-n),l=d9(Math.pow(t,2),i);return(n*r+r-o)*s*(-a(t)+.001>0?-1:1)/l}):(a=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),o=t=>e*e*(r-t)*Math.exp(-t*e));let s=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(a,o,5/e);if(e=u0(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*n;return{stiffness:t,damping:2*i*Math.sqrt(n*t),duration:e}}}({...e,velocity:0});(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),x=g||0,w=h/(2*Math.sqrt(m*y)),j=f-d,O=Math.sqrt(m/y)/1e3,S=5>Math.abs(j);if(u||(u=S?d4:d5),c||(c=S?d6:d8),w<1)a=d9(O,w),o=(x+w*O*j)/a,r=e=>f-Math.exp(-w*O*e)*(o*Math.sin(a*e)+j*Math.cos(a*e)),i=w*O*o+j*a,s=w*O*j-o*a,n=e=>Math.exp(-w*O*e)*(i*Math.sin(a*e)+s*Math.cos(a*e));else if(1===w){r=e=>f-Math.exp(-O*e)*(j+(x+O*j)*e);let e=x+O*j;n=t=>Math.exp(-O*t)*(O*e*t-x)}else{let e=O*Math.sqrt(w*w-1);r=t=>{let r=Math.exp(-w*O*t),n=Math.min(e*t,300);return f-r*((x+w*O*j)*Math.sinh(n)+e*j*Math.cosh(n))/e};let t=(x+w*O*j)/e,a=w*O*t-j*e,o=w*O*j-t*e;n=t=>{let r=Math.exp(-w*O*t),n=Math.min(e*t,300);return r*(a*Math.sinh(n)+o*Math.cosh(n))}}let k={calculatedDuration:b&&v||null,velocity:e=>u0(n(e)),next:e=>{if(!b&&w<1){let t=Math.exp(-w*O*e),r=Math.sin(a*e),n=Math.cos(a*e),l=f-t*(o*r+j*n);return p.done=Math.abs(u0(t*(i*r+s*n)))<=u&&Math.abs(f-l)<=c,p.value=p.done?f:l,p}let t=r(e);return b?p.done=e>=v:p.done=Math.abs(u0(n(e)))<=u&&Math.abs(f-t)<=c,p.value=p.done?f:t,p},toString:()=>{let e=Math.min(d3(k),2e4),t=ca(t=>k.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return k}function fn(e,t,r){let n=Math.max(t-5,0);return cp(r-e(n),t-n)}function fa({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:i,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,f,p=e[0],m={done:!1,value:p},h=r*t,y=p+h,v=void 0===i?y:i(y);v!==y&&(h=v-p);let g=e=>-h*Math.exp(-e/n),b=e=>v+g(e),x=e=>{let t=g(e),r=b(e);m.done=Math.abs(t)<=u,m.value=m.done?v:r},w=e=>{let t;if(t=m.value,void 0!==s&&t<s||void 0!==l&&t>l){var r;d=e,f=fr({keyframes:[m.value,(r=m.value,void 0===s?l:void 0===l||Math.abs(s-r)<Math.abs(l-r)?s:l)],velocity:fn(b,e,m.value),damping:a,stiffness:o,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,x(e),w(e)),void 0!==d&&e>=d)?f.next(e-d):(t||x(e),m)}}}fr.applyToOptions=e=>{let t=function(e,t=100,r){let n=r({...e,keyframes:[0,t]}),a=Math.min(d3(n),2e4);return{type:"keyframes",ease:e=>n.next(a*e).value/t,duration:a/1e3}}(e,100,fr);return e.ease=t.ease,e.duration=u0(t.duration),e.type="keyframes",e};let fo=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function fi(e,t,r,n){return e===t&&r===n?uI:a=>0===a||1===a?a:fo(function(e,t,r,n,a){let o,i,s=0;do(o=fo(i=t+(r-t)/2,n,a)-e)>0?r=i:t=i;while(Math.abs(o)>1e-7&&++s<12);return i}(a,0,1,e,r),t,n)}let fs=fi(.42,0,1,1),fl=fi(0,0,.58,1),fu=fi(.42,0,.58,1),fc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fd=e=>t=>1-e(1-t),ff=fi(.33,1.53,.69,.99),fp=fd(ff),fm=fc(fp),fh=e=>e>=1?1:(e*=2)<1?.5*fp(e):.5*(2-Math.pow(2,-10*(e-1))),fy=e=>1-Math.sin(Math.acos(e)),fv=fd(fy),fg=fc(fy),fb={linear:uI,easeIn:fs,easeInOut:fu,easeOut:fl,circIn:fy,circInOut:fg,circOut:fv,backIn:fp,backInOut:fm,backOut:ff,anticipate:fh},fx=e=>{if(cr(e)){up(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,n,a]=e;return fi(t,r,n,a)}return"string"==typeof e?(up(void 0!==fb[e],`Invalid easing type '${e}'`,"invalid-easing-type"),fb[e]):e},fw=(e,t,r)=>{let n=t-e;return n?(r-e)/n:1};function fj({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){var a;let o,i=Array.isArray(n)&&"number"!=typeof n[0]?n.map(fx):fx(n),s={done:!1,value:t[0]},l=function(e,t,{clamp:r=!0,ease:n,mixer:a}={}){let o=e.length;if(up(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let i=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,r){let n=[],a=r||u_.mix||d1,o=e.length-1;for(let r=0;r<o;r++){let o=a(e[r],e[r+1]);t&&(o=dW(Array.isArray(t)?t[r]||uI:t,o)),n.push(o)}return n}(t,n,a),l=s.length,u=r=>{if(i&&r<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(r<e[n+1]);n++);let a=fw(e[n],e[n+1],r);return s[n](a)};return r?t=>u(lC(e[0],e[o-1],t)):u}((a=r&&r.length===t.length?r:(!function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let a=fw(0,t,n);e.push(cX(r,1,a))}}(o=[0],t.length-1),o),a.map(t=>t*e)),t,{ease:Array.isArray(i)?i:t.map(()=>i||fu).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}let fO={decay:fa,inertia:fa,tween:fj,keyframes:fj,spring:fr};function fS(e){"string"==typeof e.type&&(e.type=fO[e.type])}let fk=e=>e/100;class fE extends ct{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==cf.now()&&this.tick(cf.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;fS(e);let{type:t=fj,repeat:r=0,repeatDelay:n=0,repeatType:a,velocity:o=0}=e,{keyframes:i}=e,s=t||fj;s!==fj&&"number"!=typeof i[0]&&(this.mixKeyframes=dW(fk,d1(i[0],i[1])),i=[0,100]);let l=s({...e,keyframes:i});"mirror"===a&&(this.mirroredGenerator=s({...e,keyframes:[...i].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=d3(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let r,{generator:n,totalDuration:a,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:s,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:h,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-a/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>a;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=a);let b=this.currentTime,x=n;if(d){let e=Math.min(this.currentTime,a)/s,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,d+1))%2&&("reverse"===f?(r=1-r,p&&(r-=p/s)):"mirror"===f&&(x=i)),b=lC(0,1,r)*s}g?(this.delayState.value=c[0],r=this.delayState):r=x.next(b),o&&!g&&(r.value=o(r.value));let{done:w}=r;g||null===l||(w=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);let j=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return j&&m!==fa&&(r.value=ce(c,this.options,y,this.speed)),h&&h(r.value),j&&this.finish(),r}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=u0(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return fn(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(cf.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=d2,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(cf.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let fP={anticipate:fh,backInOut:fm,circInOut:fg};class fA extends cl{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in fP&&(e.ease=fP[e.ease])}(e),fS(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:r,onComplete:n,element:a,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let i=new fE({...o,autoplay:!1}),s=Math.max(10,cf.now()-this.startTime),l=lC(0,10,s-10),u=i.sample(s).value,{name:c}=this.options;a&&c&&u4(a,c,u),t.setWithVelocity(i.sample(Math.max(0,s-l)).value,u,l),i.stop()}}let fD=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(l3.test(e)||"0"===e)&&!e.startsWith("url("));function fC(e){e.duration=0,e.type="keyframes"}let fT=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,fN=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),fR=u5(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class fM extends ct{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:o="loop",keyframes:i,name:s,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=cf.now();const d={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:a,repeatType:o,name:s,motionValue:l,element:u,...c},f=u?.KeyframeResolver||uY;this.keyframeResolver=new f(i,(e,t,r)=>this.onKeyframesResolved(e,t,d,!r),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,n){let a;this.keyframeResolver=void 0;let{name:o,type:i,velocity:s,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=cf.now();let d=!0;!function(e,t,r,n){let a=e[0];if(null===a)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],i=fD(a,t),s=fD(o,t);return uf(i===s,`You are trying to animate ${t} from "${a}" to "${o}". "${i?o:a}" is not an animatable value.`,"value-not-animatable"),!!i&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||cs(r))&&n)}(e,o,i,s)&&(d=!1,(u_.instantAnimations||!l)&&c?.(ce(e,r,t)),e[0]=e[e.length-1],fC(r),r.repeat=0);let f={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},p=d&&!u&&function(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:a,damping:o,type:i,keyframes:s}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return fR()&&r&&(cu.has(r)||fN.has(r)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&fT.test(e[t]))return!0;return!1}(s))&&("transform"!==r||!c)&&!u&&!n&&"mirror"!==a&&0!==o&&"inertia"!==i}(f),m=f.motionValue?.owner?.current;if(p)try{a=new fA({...f,element:m})}catch{a=new fE(f)}else a=new fE(f);a.finished.then(()=>{this.notifyFinished()}).catch(uI),this.pendingTimeline&&(this.stopTimeline=a.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=a}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),uK=!0,uq(),uG(),uK=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let fI={type:"spring",stiffness:500,damping:25,restSpeed:10},f_={type:"keyframes",duration:.8},fL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fF=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),fB=(e,t,r,n={},a,o)=>i=>{let s=dF(n,e)||{},l=s.delay||n.delay||0,{elapsed:u=0}=n;u-=u0(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:a};!function(e){for(let t in e)if(!fF.has(t))return!0;return!1}(s)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?f_:lD.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:fI:fL)(e,c)),c.duration&&(c.duration=u0(c.duration)),c.repeatDelay&&(c.repeatDelay=u0(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(fC(c),0===c.delay&&(d=!0)),(u_.instantAnimations||u_.skipAnimations||a?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,fC(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!o&&void 0!==t.get()){let e=ce(c.keyframes,s);if(void 0!==e)return void uB.update(()=>{c.onUpdate(e),c.onComplete()})}return s.isSync?new fE(c):new fM(c)};function fV(e,t,{delay:r=0,transitionOverride:n,type:a}={}){let{transition:o,transitionEnd:i,...s}=t,l=e.getDefaultTransition();o=o?dL(o,l):l;let u=o?.reduceMotion,c=o?.skipAnimations;n&&(o=n);let d=[],f=a&&e.animationState&&e.animationState.getState()[a],p=o?.path;for(let t in p&&p.animateVisualElement(e,s,o,r,d),s){let n=e.getValue(t,e.latestValues[t]??null),a=s[t];if(void 0===a||f&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(f,t))continue;let i={delay:r,...dF(o||{},t)};c&&(i.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(a)&&a===l&&!i.velocity){uB.update(()=>n.set(a));continue}let p=!1;if(window.MotionHandoffAnimation){let r=e.props[dC];if(r){let e=window.MotionHandoffAnimation(r,t,uB);null!==e&&(i.startTime=e,p=!0)}}dz(e,t);let m=u??e.shouldReduceMotion;n.start(fB(t,n,a,m&&ul.has(t)?{type:!1}:i,e,p));let h=n.animation;h&&d.push(h)}if(i){let t=()=>uB.update(()=>{i&&dV(e,i)});d.length?Promise.all(d).then(t):t()}return d}function fz(e,t,r,n=0,a=1){let o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),i=e.size,s=(i-1)*n;return"function"==typeof r?r(o,i):1===a?o*n:s-o*n}function fW(e,t,r={}){let n=d_(e,t,"exit"===r.type?e.presenceContext?.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(a=r.transitionOverride);let o=n?()=>Promise.all(fV(e,n,r)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:i,staggerDirection:s}=a;return function(e,t,r=0,n=0,a=0,o=1,i){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(fW(l,t,{...i,delay:r+("function"==typeof n?0:n)+fz(e.variantChildren,l,n,a,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,n,o,i,s,r)}:()=>Promise.resolve(),{when:s}=a;if(!s)return Promise.all([o(),i(r.delay)]);{let[e,t]="beforeChildren"===s?[o,i]:[i,o];return e().then(()=>t())}}function fU(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>fW(e,t,r)));else if("string"==typeof t)n=fW(e,t,r);else{let a="function"==typeof t?d_(e,t,r.custom):t;n=Promise.all(fV(e,a,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}let f$=cj.length;function fH(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}let fK=[...cw].reverse(),fG=cw.length;function fq(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fY(){return{animate:fq(!0),whileInView:fq(),whileHover:fq(),whileTap:fq(),whileDrag:fq(),whileFocus:fq(),exit:fq()}}let fX=0,fZ={x:!1,y:!1};function fQ(e){return[e("x"),e("y")]}function fJ(e){return e.max-e.min}function f0(e,t,r,n=.5){e.origin=n,e.originPoint=cX(t.min,t.max,e.origin),e.scale=fJ(r)/fJ(t),e.translate=cX(r.min,r.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 f1(e,t,r,n){f0(e.x,t.x,r.x,n?n.originX:void 0),f0(e.y,t.y,r.y,n?n.originY:void 0)}function f2(e,t,r,n=0){e.min=(n?cX(r.min,r.max,n):r.min)+t.min,e.max=e.min+fJ(t)}function f3(e,t,r,n=0){let a=n?cX(r.min,r.max,n):r.min;e.min=t.min-a,e.max=e.min+fJ(t)}function f4(e,t,r,n){f3(e.x,t.x,r.x,n?.x),f3(e.y,t.y,r.y,n?.y)}let f5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),f6=new Set(["INPUT","SELECT","TEXTAREA"]);function f8(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}let f9=e=>"object"==typeof e&&null!==e;function f7(e){return f9(e)&&"ownerSVGElement"in e}function pe(e,t,r){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let a=r?.[e]??n.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(e=>null!=e)}let pt=new WeakMap,pr=(e,t,r)=>(n,a)=>a&&a[0]?a[0][e+"Size"]:f7(n)&&"getBBox"in n?n.getBBox()[t]:n[r],pn=pr("inline","width","offsetWidth"),pa=pr("block","height","offsetHeight");function po({target:e,borderBoxSize:t}){pt.get(e)?.forEach(r=>{r(e,{get width(){return pn(e,t)},get height(){return pa(e,t)}})})}function pi(e){e.forEach(po)}let ps=new Set;function pl(e,t){let r;return"function"==typeof e?(ps.add(e),s||(s=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ps.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{ps.delete(e),ps.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(pi)),(r=pe(e)).forEach(e=>{let r=pt.get(e);r||(r=new Set,pt.set(e,r)),r.add(t),i?.observe(e)}),()=>{r.forEach(e=>{let r=pt.get(e);r?.delete(t),r?.size||i?.unobserve(e)})})}let pu=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function pc(e){return{point:{x:e.pageX,y:e.pageY}}}function pd(e,t,r,n){return f8(e,t,e=>pu(e)&&r(e,pc(e)),n)}let pf=({current:e})=>e?e.ownerDocument.defaultView:null,pp=(e,t)=>Math.abs(e-t),pm=new Set(["auto","scroll"]);class ph{constructor(e,t,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:a=!1,distanceThreshold:o=3,element:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=py(this.lastRawMoveEventInfo,this.transformPagePoint));let r=pg(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,a=(e=r.offset,t={x:0,y:0},Math.sqrt(pp(e.x,t.x)**2+pp(e.y,t.y)**2)>=this.distanceThreshold);if(!n&&!a)return;let{point:o}=r,{timestamp:i}=uz;this.history.push({...o,timestamp:i});let{onStart:s,onMove:l}=this.handlers;n||(s&&s(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=py(t,this.transformPagePoint),uB.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:a}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&a&&a(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=pg("pointercancel"===e.type?this.lastMoveEventInfo:py(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!pu(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=n||window;const s=py(pc(e),this.transformPagePoint),{point:l}=s,{timestamp:u}=uz;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,pg(s,this.history));const d={passive:!0,capture:!0};this.removeListeners=dW(pd(this.contextWindow,"pointermove",this.handlePointerMove,d),pd(this.contextWindow,"pointerup",this.handlePointerUp,d),pd(this.contextWindow,"pointercancel",this.handlePointerUp,d)),i&&this.startScrollTracking(i)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(pm.has(e.overflowX)||pm.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let r=e===window,n=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},a={x:n.x-t.x,y:n.y-t.y};(0!==a.x||0!==a.y)&&(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(e,n),uB.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),uV(this.updatePoint)}}function py(e,t){return t?{point:t(e.point)}:e}function pv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pg({point:e},t){return{point:e,delta:pv(e,pb(t)),offset:pv(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,r=null,n=pb(e);for(;t>=0&&(r=e[t],!(n.timestamp-r.timestamp>u0(.1)));)t--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&n.timestamp-r.timestamp>2*u0(.1)&&(r=e[1]);let a=(n.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};let o={x:(n.x-r.x)/a,y:(n.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t)}}function pb(e){return e[e.length-1]}function px(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function pw(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function pj(e,t,r){return{min:pO(e,t),max:pO(e,r)}}function pO(e,t){return"number"==typeof e?e:e[t]||0}let pS=new WeakMap;class pk{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=ui(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:r}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let a=e=>{t&&this.snapToCursor(pc(e).point),this.stopAnimation()},o=(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:a}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(fZ[e])return null;else return fZ[e]=!0,()=>{fZ[e]=!1};return fZ.x||fZ.y?null:(fZ.x=fZ.y=!0,()=>{fZ.x=fZ.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fQ(e=>{let t=this.getAxisMotionValue(e).get()||0;if(l$.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];n&&(t=fJ(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),a&&uB.update(()=>a(e,t),!1,!0),dz(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},i=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:a,onDrag:o}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:i}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(i),null!==this.currentDirection&&a&&a(this.currentDirection);return}this.updateAxis("x",t.point,i),this.updateAxis("y",t.point,i),this.visualElement.render(),o&&uB.update(()=>o(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new ph(e,{onSessionStart:a,onStart:o,onMove:i,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:pf(this.visualElement),element:this.visualElement.current})}stop(e,t){let r=e||this.latestPointerEvent,n=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!n||!r)return;let{velocity:o}=n;this.startAnimation(o);let{onDragEnd:i}=this.getProps();i&&uB.postRender(()=>i(r,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!pP(e,n,this.currentDirection))return;let a=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?cX(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?cX(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),a.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&dN(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:n,right:a}){return{x:px(e.x,r,a),y:px(e.y,t,n)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:pj(e,"left","right"),y:pj(e,"top","bottom")}}(t),n!==this.constraints&&!dN(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&fQ(e=>{var t,n;let a;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=r.layoutBox[e],n=this.constraints[e],a={},void 0!==n.min&&(a.min=n.min-t.min),void 0!==n.max&&(a.max=n.max-t.min),a))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!dN(t))return!1;let n=t.current;up(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:a}=this.visualElement;if(!a||!a.layout)return!1;a.root&&(a.root.scroll=void 0,a.root.updateScroll());let o=function(e,t,r){let n=da(e,r),{scroll:a}=t;return a&&(de(n.x,a.offset.x),de(n.y,a.offset.y)),n}(n,a.root,this.visualElement.getTransformPagePoint()),i=(e=a.layout.layoutBox,{x:pw(e.x,o.x),y:pw(e.y,o.y)});if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=c2(e))}return i}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:i}=this.getProps(),s=this.constraints||{};return Promise.all(fQ(i=>{if(!pP(i,t,this.currentDirection))return;let l=s&&s[i]||{};(!0===o||o===i)&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[i]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(i,u)})).then(i)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return dz(this.visualElement,e),r.start(fB(e,r,0,t,this.visualElement,!1))}stopAnimation(){fQ(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){fQ(t=>{let{drag:r}=this.getProps();if(!pP(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,a=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.layoutBox[t],i=a.get()||0;a.set(e[t]-cX(r,o,.5)+i)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!dN(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};fQ(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var r,a;let o,i,s,l=t.get();n[e]=(r={min:l,max:l},a=this.constraints[e],o=.5,i=fJ(r),(s=fJ(a))>i?o=fw(a.min,a.max-i,r.min):i>s&&(o=fw(r.min,r.max-s,a.min)),lC(0,1,o))}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),fQ(t=>{if(!pP(t,e,null))return;let r=this.getAxisMotionValue(t),{min:a,max:o}=this.constraints[t];r.set(cX(a,o,n[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;pS.set(this.visualElement,this);let t=this.visualElement.current,r=pd(t,"pointerdown",e=>{let{drag:r,dragListener:n=!0}=this.getProps(),a=e.target,o=a!==t&&(f6.has(a.tagName)||!0===a.isContentEditable);r&&n&&!o&&this.start(e)}),n=()=>{var r,n,a;let o,i,{dragConstraints:s}=this.getProps();dN(s)&&s.current&&(this.constraints=this.resolveRefConstraints(),e||(r=t,n=s.current,o=pl(r,pE(a=()=>this.scalePositionWithinConstraints())),i=pl(n,pE(a)),e=()=>{o(),i()}))},{projection:a}=this.visualElement,o=a.addEventListener("measure",n);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),uB.read(n);let i=f8(window,"resize",()=>this.scalePositionWithinConstraints()),s=a.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(fQ(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),r(),o(),s&&s(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:a=!1,dragElastic:o=.35,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:a,dragElastic:o,dragMomentum:i}}}function pE(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function pP(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}let pA=e=>(t,r)=>{e&&uB.update(()=>e(t,r),!1,!0)},pD={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pC(e=!0){let t=(0,g.useContext)(dw);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:n,register:a}=t,o=(0,g.useId)();(0,g.useEffect)(()=>{if(e)return a(o)},[e]);let i=(0,g.useCallback)(()=>e&&n&&n(o),[o,n,e]);return!r&&n?[!1,i]:[!0]}let pT=!1;class pN extends g.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:a}=e;a&&(t.group&&t.group.add(a),r&&r.register&&n&&r.register(a),pT&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),pD.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),pT=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||uB.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:r}=e;r&&(r.options.layoutAnchor=t,r.root.didUpdate(),cc.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;pT=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function pR(e){let[t,r]=pC(),n=(0,g.useContext)(du);return(0,v.jsx)(pN,{...e,layoutGroup:n,switchLayoutGroup:(0,g.useContext)(dT),isPresent:t,safeToRemove:r})}let pM=cG.length,pI=e=>"string"==typeof e?parseFloat(e):e,p_=e=>"number"==typeof e||lH.test(e);function pL(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let pF=pV(0,.5,fv),pB=pV(.5,.95,uI);function pV(e,t,r){return n=>n<e?0:n>t?1:r(fw(e,t,n))}function pz(e,t){e.min=t.min,e.max=t.max}function pW(e,t){pz(e.x,t.x),pz(e.y,t.y)}function pU(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function p$(e,t,r,n,a){return e-=t,e=n+1/r*(e-n),void 0!==a&&(e=n+1/a*(e-n)),e}function pH(e,t,[r,n,a],o,i){!function(e,t=0,r=1,n=.5,a,o=e,i=e){if(l$.test(t)&&(t=parseFloat(t),t=cX(i.min,i.max,t/100)-i.min),"number"!=typeof t)return;let s=cX(o.min,o.max,n);e===o&&(s-=t),e.min=p$(e.min,t,r,s,a),e.max=p$(e.max,t,r,s,a)}(e,t[r],t[n],t[a],t.scale,o,i)}let pK=["x","scaleX","originX"],pG=["y","scaleY","originY"];function pq(e,t,r,n){pH(e.x,t,pK,r?r.x:void 0,n?n.x:void 0),pH(e.y,t,pG,r?r.y:void 0,n?n.y:void 0)}function pY(e){return 0===e.translate&&1===e.scale}function pX(e){return pY(e.x)&&pY(e.y)}function pZ(e,t){return e.min===t.min&&e.max===t.max}function pQ(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function pJ(e,t){return pQ(e.x,t.x)&&pQ(e.y,t.y)}function p0(e){return fJ(e.x)/fJ(e.y)}function p1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class p2{constructor(){this.members=[]}add(e){u1(this.members,e);for(let t=this.members.length-1;t>=0;t--){let r=this.members[t];if(r===e||r===this.lead||r===this.prevLead)continue;let n=r.instance;n&&!1!==n.isConnected||r.snapshot||(u2(this.members,r),r.unmount())}e.scheduleRender()}remove(e){if(u2(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.updateSnapshot(),e.scheduleRender();let{layoutDependency:n}=r.options,{layoutDependency:a}=e.options;(void 0===n||n!==a)&&(e.resumeFrom=r,t&&(r.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let p3=(e,t)=>e.depth-t.depth;class p4{constructor(){this.children=[],this.isDirty=!1}add(e){u1(this.children,e),this.isDirty=!0}remove(e){u2(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(p3),this.isDirty=!1,this.children.forEach(e)}}let p5=["","X","Y","Z"],p6=0;function p8(e,t,r,n){let{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),n&&(n[e]=0))}function p9({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(e={},r=t?.()){this.id=p6++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(mt),this.nodes.forEach(mc),this.nodes.forEach(md),this.nodes.forEach(mr)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new p4)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new u3),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=f7(t)&&!(f7(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:r,layout:n,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||r)&&(this.isLayoutDirty=!0),e){let r,n=0,a=()=>this.root.updateBlockedByResize=!1;uB.read(()=>{n=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==n){let t,o;n=e,this.root.updateBlockedByResize=!0,r&&r(),t=cf.now(),o=({timestamp:e})=>{let r=e-t;r>=250&&(uV(o),a(r-250))},uB.setup(o,!0),r=()=>uV(o),pD.hasAnimatedSinceResize&&(pD.hasAnimatedSinceResize=!1,this.nodes.forEach(mu))}})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&a&&(r||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||a.getDefaultTransition()||mv,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!pJ(this.targetLayout,n),u=!t&&r;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...dF(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||mu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),uV(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(mf),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let n=r.props[dC];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",uB,!(e||r))}let{parent:a}=t;a&&!a.hasCheckedOptimisedAppear&&e(a)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(mo),this.nodes.forEach(ma);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(mi);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ms),this.nodes.forEach(ml),this.nodes.forEach(p7),this.nodes.forEach(me)):this.nodes.forEach(mi),this.clearAllSnapshots();let e=cf.now();uz.delta=lC(0,1e3/60,e-uz.timestamp),uz.timestamp=e,uz.isProcessing=!0,uW.update.process(uz),uW.preRender.process(uz),uW.render.process(uz),uz.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mn),this.sharedNodes.forEach(mp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,uB.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){uB.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||fJ(this.snapshot.measuredBox.x)||fJ(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(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();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ui()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!a)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!pX(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||c5(this.latestValues)||o)&&(a(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),mx((t=n).x),mx(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return ui();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(mj))){let{scroll:e}=this.root;e&&(de(t.x,e.offset.x),de(t.y,e.offset.y))}return t}removeElementScroll(e){let t=ui();if(pW(t,e),this.scroll?.wasRoot)return t;for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:a,options:o}=n;n!==this.root&&a&&o.layoutScroll&&(a.wasRoot&&pW(t,e),de(t.x,a.offset.x),de(t.y,a.offset.y))}return t}applyTransform(e,t=!1,r){let n=r||ui();pW(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(de(n.x,-r.scroll.offset.x),de(n.y,-r.scroll.offset.y)),c5(r.latestValues)&&dn(n,r.latestValues,r.layout?.layoutBox)}return c5(this.latestValues)&&dn(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(e){let t=ui();pW(t,e);for(let e=0;e<this.path.length;e++){let r,n=this.path[e];c5(n.latestValues)&&(n.instance&&(c4(n.latestValues)&&n.updateSnapshot(),pW(r=ui(),n.measurePageBox())),pq(t,n.latestValues,n.snapshot?.layoutBox,r))}return c5(this.latestValues)&&pq(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!==uz.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==t;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:a}=this.options;if(!this.layout||!(n||a))return;this.resolvedRelativeTargetAt=uz.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=ui(),this.targetWithTransforms=ui()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var i,s,l,u;this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,f2(i.x,s.x,l.x,u?.x),f2(i.y,s.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):pW(this.target,this.layout.layoutBox),c7(this.target,this.targetDelta)):pW(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||c4(this.parent.latestValues)||c6(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,r){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ui(),this.relativeTargetOrigin=ui(),f4(this.relativeTargetOrigin,t,r,this.options.layoutAnchor||void 0),pW(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===uz.timestamp&&(r=!1),r)return;let{layout:n,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||a))return;pW(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,i=this.treeScale.y;!function(e,t,r,n=!1){let a,o,i=r.length;if(i){t.x=t.y=1;for(let s=0;s<i;s++){o=(a=r[s]).projectionDelta;let{visualElement:i}=a.options;(!i||!i.props.style||"contents"!==i.props.style.display)&&(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(de(e.x,-a.scroll.offset.x),de(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,c7(e,o)),n&&c5(a.latestValues)&&dn(e,a.latestValues,a.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=ui());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(pU(this.prevProjectionDelta.x,this.projectionDelta.x),pU(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),f1(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===o&&this.treeScale.y===i&&p1(this.projectionDelta.x,this.prevProjectionDelta.x)&&p1(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ua(),this.projectionDelta=ua(),this.projectionDeltaWithTransform=ua()}setAnimationOrigin(e,t=!1,r){let n,a=this.snapshot,o=a?a.latestValues:{},i={...this.latestValues},s=ua();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=ui(),u=(a?a.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,f=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(my));this.animationProgress=0;let p=r?.interpolateProjection(e);this.mixTargetDelta=t=>{let r=t/1e3,a=p?.(r);if(a?(s.x.translate=a.x,s.x.scale=cX(e.x.scale,1,r),s.x.origin=e.x.origin,s.x.originPoint=e.x.originPoint,s.y.translate=a.y,s.y.scale=cX(e.y.scale,1,r),s.y.origin=e.y.origin,s.y.originPoint=e.y.originPoint):(mm(s.x,e.x,r),mm(s.y,e.y,r)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,m,h,y,v,g;f4(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),h=this.relativeTarget,y=this.relativeTargetOrigin,v=l,g=r,mh(h.x,y.x,v.x,g),mh(h.y,y.y,v.y,g),n&&(c=this.relativeTarget,m=n,pZ(c.x,m.x)&&pZ(c.y,m.y))&&(this.isProjectionDirty=!1),n||(n=ui()),pW(n,this.relativeTarget)}u&&(this.animationValues=i,function(e,t,r,n,a,o){a?(e.opacity=cX(0,r.opacity??1,pF(n)),e.opacityExit=cX(t.opacity??1,0,pB(n))):o&&(e.opacity=cX(t.opacity??1,r.opacity??1,n));for(let a=0;a<pM;a++){let o=cG[a],i=pL(t,o),s=pL(r,o);(void 0!==i||void 0!==s)&&(i||(i=0),s||(s=0),0===i||0===s||p_(i)===p_(s)?(e[o]=Math.max(cX(pI(i),pI(s),n),0),(l$.test(s)||l$.test(i))&&(e[o]+="%")):e[o]=s)}(t.rotate||r.rotate)&&(e.rotate=cX(t.rotate||0,r.rotate||0,n))}(i,o,this.latestValues,r,f,d)),a&&void 0!==a.rotate&&(this.animationValues||(this.animationValues=i),this.animationValues.pathRotation=a.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(uV(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=uB.update(()=>{var t,r,n;let a;pD.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=cy(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,r=[0,1e3],n={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(a=us(t)?t:cy(t)).start(fB("",a,r,n)),a.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let 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(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:a}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&mw(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||ui();let t=fJ(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=fJ(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}pW(t,r),dn(t,a),f1(this.projectionDeltaWithTransform,this.layoutCorrected,t,a)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new p2),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&p8("z",e,n,this.animationValues);for(let t=0;t<p5.length;t++)p8(`rotate${p5[t]}`,e,n,this.animationValues),p8(`skew${p5[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=dx(t?.pointerEvents)||"",e.transform=r?r(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=dx(t?.pointerEvents)||""),this.hasProjected&&!c5(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1);return}e.visibility="";let a=n.animationValues||n.latestValues;this.applyTransformsToTarget();let o=function(e,t,r){let n="",a=e.x.translate/t.x,o=e.y.translate/t.y,i=r?.z||0;if((a||o||i)&&(n=`translate3d(${a}px, ${o}px, ${i}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,pathRotation:a,rotateX:o,rotateY:i,skewX:s,skewY:l}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),a&&(n+=`rotate(${a}deg) `),o&&(n+=`rotateX(${o}deg) `),i&&(n+=`rotateY(${i}deg) `),s&&(n+=`skewX(${s}deg) `),l&&(n+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(n+=`scale(${s}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,a);r&&(o=r(a,o)),e.transform=o;let{x:i,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*i.origin}% ${100*s.origin}% 0`,n.animationValues?e.opacity=n===this?a.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:e.opacity=n===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,cZ){if(void 0===a[t])continue;let{correct:r,applyTo:i,isCSSVariable:s}=cZ[t],l="none"===o?a[t]:r(a[t],n);if(i){let t=i.length;for(let r=0;r<t;r++)e[i[r]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?dx(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(ma),this.root.sharedNodes.clear()}}}function p7(e){e.updateLayout()}function me(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:n}=e.layout,{animationType:a}=e.options,o=t.source!==e.layout.source;if("size"===a)fQ(e=>{let n=o?t.measuredBox[e]:t.layoutBox[e],a=fJ(n);n.min=r[e].min,n.max=n.min+a});else if("x"===a||"y"===a){let e="x"===a?"y":"x";pz(o?t.measuredBox[e]:t.layoutBox[e],r[e])}else mw(a,t.layoutBox,r)&&fQ(n=>{let a=o?t.measuredBox[n]:t.layoutBox[n],i=fJ(r[n]);a.max=a.min+i,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+i)});let i=ua();f1(i,r,t.layoutBox);let s=ua();o?f1(s,e.applyTransform(n,!0),t.measuredBox):f1(s,r,t.layoutBox);let l=!pX(i),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:a,layout:o}=n;if(a&&o){let i=e.options.layoutAnchor||void 0,s=ui();f4(s,t.layoutBox,a.layoutBox,i);let l=ui();f4(l,r,o.layoutBox,i),pJ(s,l)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:i,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function mt(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function mr(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mn(e){e.clearSnapshot()}function ma(e){e.clearMeasurements()}function mo(e){e.isLayoutDirty=!0,e.updateLayout()}function mi(e){e.isLayoutDirty=!1}function ms(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function ml(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function mu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mc(e){e.resolveTargetDelta()}function md(e){e.calcProjection()}function mf(e){e.resetSkewAndRotation()}function mp(e){e.removeLeadSnapshot()}function mm(e,t,r){e.translate=cX(t.translate,0,r),e.scale=cX(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function mh(e,t,r,n){e.min=cX(t.min,r.min,n),e.max=cX(t.max,r.max,n)}function my(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let mv={duration:.45,ease:[.4,0,.1,1]},mg=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),mb=mg("applewebkit/")&&!mg("chrome/")?Math.round:uI;function mx(e){e.min=mb(e.min),e.max=mb(e.max)}function mw(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(p0(t)-p0(r)))}function mj(e){return e!==e.root&&e.scroll?.wasRoot}let mO=p9({attachResizeListener:(e,t)=>f8(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),mS={current:void 0},mk=p9({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!mS.current){let e=new mO({});e.mount(window),e.setOptions({layoutScroll:!0}),mS.current=e}return mS.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function mE(e,t){let r=pe(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function mP(e,t,r){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);let a=n["onHover"+r];a&&uB.postRender(()=>a(t,pc(t)))}function mA(e){return f9(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}let mD=(e,t)=>!!t&&(e===t||mD(e,t.parentElement)),mC=new WeakSet;function mT(e){return t=>{"Enter"===t.key&&e(t)}}function mN(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function mR(e){return pu(e)&&!(fZ.x||fZ.y)}let mM=new WeakSet;function mI(e,t,r){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===r);let a=n["onTap"+("End"===r?"":r)];a&&uB.postRender(()=>a(t,pc(t)))}let m_=new WeakMap,mL=new WeakMap,mF=e=>{let t=m_.get(e.target);t&&t(e)},mB=e=>{e.forEach(mF)},mV={some:0,all:1},mz=function(e,t){if("u"<typeof Proxy)return dM;let r=new Map,n=(r,n)=>dM(r,n,e,t);return new Proxy((e,t)=>n(e,t),{get:(a,o)=>"create"===o?n:(r.has(o)||r.set(o,dM(o,void 0,e,t)),r.get(o))})}({animation:{Feature:class extends dI{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>fU(e,t,r))),r=fY(),n=!0,a=!1,o=t=>(r,n)=>{let a=d_(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(a){let{transition:e,transitionEnd:t,...n}=a;r={...r,...n,...t}}return r};function i(i){let{props:s}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<f$;e++){let n=cj[e],a=t.props[n];(cx(a)||!1===a)&&(r[n]=a)}return r}(e.parent)||{},u=[],c=new Set,d={},f=1/0;for(let t=0;t<fG;t++){var p,m;let h=fK[t],y=r[h],v=void 0!==s[h]?s[h]:l[h],g=cx(v),b=h===i?y.isActive:null;!1===b&&(f=t);let x=v===l[h]&&v!==s[h]&&g;if(x&&(n||a)&&e.manuallyAnimateOnMount&&(x=!1),y.protectedKeys={...d},!y.isActive&&null===b||!v&&!y.prevProp||cb(v)||"boolean"==typeof v)continue;if("exit"===h&&y.isActive&&!0!==b){y.prevResolvedValues&&(d={...d,...y.prevResolvedValues});continue}let w=(p=y.prevProp,"string"==typeof(m=v)?m!==p:!!Array.isArray(m)&&!fH(m,p)),j=w||h===i&&y.isActive&&!x&&g||t>f&&g,O=!1,S=Array.isArray(v)?v:[v],k=S.reduce(o(h),{});!1===b&&(k={});let{prevResolvedValues:E={}}=y,P={...E,...k},A=t=>{j=!0,c.has(t)&&(O=!0,c.delete(t)),y.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in P){let t=k[e],r=E[e];if(!d.hasOwnProperty(e))(dB(t)&&dB(r)?!fH(t,r)||w:t!==r)?null!=t?A(e):c.add(e):void 0!==t&&c.has(e)?A(e):y.protectedKeys[e]=!0}y.prevProp=v,y.prevResolvedValues=k,y.isActive&&(d={...d,...k}),(n||a)&&e.blockInitialAnimation&&(j=!1);let D=x&&w,C=!D||O;j&&C&&u.push(...S.map(t=>{let r={type:h};if("string"==typeof t&&(n||a)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:n}=e,a=d_(n,t);if(n.enteringChildren&&a){let{delayChildren:t}=a.transition||{};r.delay=fz(n.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(c.size){let t={};if("boolean"!=typeof s.initial){let r=d_(e,Array.isArray(s.initial)?s.initial[0]:s.initial);r&&r.transition&&(t.transition=r.transition)}c.forEach(r=>{let n=e.getBaseTarget(r),a=e.getValue(r);a&&(a.liveStyle=!0),t[r]=n??null}),u.push({animation:t})}let h=!!u.length;return n&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(h=!1),n=!1,a=!1,h?t(u):Promise.resolve()}return{animateChanges:i,setActive:function(t,n){if(r[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),r[t].isActive=n;let a=i(t);for(let e in r)r[e].protectedKeys={};return a},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=fY(),a=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();cb(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends dI{constructor(){super(...arguments),this.id=fX++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;if(e&&!1===r){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let r=d_(this.node,e,t);if(r){let{transition:e,transitionEnd:t,...n}=r;for(let e in n)this.node.getValue(e)?.jump(n[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends dI{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:r={}}=this.node.getProps(),{root:n,margin:a,amount:o="some",once:i}=r,s={root:n?n.current:void 0,rootMargin:a,threshold:"number"==typeof o?o:mV[o]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),a=t?r:n;a&&a(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let r=e||document;mL.has(r)||mL.set(r,{});let n=mL.get(r),a=JSON.stringify(t);return n[a]||(n[a]=new IntersectionObserver(mB,{root:e,...t})),n[a]}(s),m_.set(e,l),t.observe(e),()=>{m_.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends dI{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:r}=this.node.props;this.unmount=function(e,t,r={}){let[n,a,o]=mE(e,r),i=e=>{let n=e.currentTarget;if(!mR(e)||mM.has(e))return;mC.add(n),r.stopPropagation&&mM.add(e);let o=t(n,e),i={...a,capture:!0},s=(e,t)=>{window.removeEventListener("pointerup",l,i),window.removeEventListener("pointercancel",u,i),mC.has(n)&&mC.delete(n),mR(e)&&"function"==typeof o&&o(e,{success:t})},l=e=>{s(e,n===window||n===document||r.useGlobalTarget||mD(n,e.target))},u=e=>{s(e,!1)};window.addEventListener("pointerup",l,i),window.addEventListener("pointercancel",u,i)};return n.forEach(e=>{((r.useGlobalTarget?window:e).addEventListener("pointerdown",i,a),mA(e))&&(e.addEventListener("focus",e=>((e,t)=>{let r=e.currentTarget;if(!r)return;let n=mT(()=>{if(mC.has(r))return;mN(r,"down");let e=mT(()=>{mN(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>mN(r,"cancel"),t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)})(e,a)),f5.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(mI(this.node,t,"Start"),(e,{success:t})=>mI(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:r?.tap===!1})}unmount(){}}},focus:{Feature:class extends dI{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=dW(f8(this.node.current,"focus",()=>this.onFocus()),f8(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends dI{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,a,o]=mE(e,r);return n.forEach(e=>{let r,n=!1,o=!1,i=t=>{r&&(r(t),r=void 0),e.removeEventListener("pointerleave",l)},s=e=>{n=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),o&&(o=!1,i(e))},l=e=>{if("touch"!==e.pointerType){if(n){o=!0;return}i(e)}};e.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||fZ.x||fZ.y)return;o=!1;let i=t(e,n);"function"==typeof i&&(r=i,e.addEventListener("pointerleave",l,a))},a),e.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",s,a),window.addEventListener("pointercancel",s,a)},a)}),o}(e,(e,t)=>(mP(this.node,t,"Start"),e=>mP(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends dI{constructor(){super(...arguments),this.removePointerDownListener=uI}onPointerDown(e){this.session=new ph(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pf(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:pA(e),onStart:pA(t),onMove:pA(r),onEnd:(e,t)=>{delete this.session,n&&uB.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=pd(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 dI{constructor(e){super(e),this.removeGroupControls=uI,this.removeListeners=uI,this.controls=new pk(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||uI}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:mk,MeasureLayout:pR},layout:{ProjectionNode:mk,MeasureLayout:pR}},(e,t)=>t.isSVG??dl(e)?new c1(t):new di(t,{allowProjection:e!==g.Fragment}));var mW={initial:{},animate:{transition:{staggerChildren:.05}}},mU={initial:{y:0,color:"var(--colors-surface-foreground)"},animate:{y:"-120%",color:"var(--colors-surface-muted-foreground)",transition:{type:"spring",stiffness:300,damping:20}}},m$=function(e){var t=e.label,r=e.active,n=e.required;return(0,v.jsxs)(mz.span,{className:lO.kineticLabel,variants:mW,initial:"initial",animate:r?"animate":"initial","aria-hidden":"true",children:[t.split("").map(function(e,t){return(0,v.jsx)(mz.span,{className:lO.kineticLetter,variants:mU,style:{willChange:"transform"},children:" "===e?"\xa0":e},t)}),n&&(0,v.jsx)("span",{className:lO.requiredMark,children:" *"})]})};function mH(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mK(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mH(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mH(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var mG={error:[100,50,100],warning:[50,30,50],success:[30]},mq={rules:[],realTimeValidation:!0,triggerVibration:!0,showIcons:!0,showMessages:!0};function mY(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mX(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mZ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mY(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var mQ=function(e){var t,r,n,a,o,i,s,l,u=e.variant,c=void 0===u?"outlined":u,d=e.size,f=e.label,p=e.placeholder,m=e.type,h=e.value,y=void 0===h?"":h,b=e.onChange,x=e.className,w=e.disabled,j=void 0!==w&&w,O=e.required,k=void 0!==O&&O,E=e.autoComplete,P=e.autoFocus,A=e.id,D=e.name,C=e.fieldIcon,T=e.validation,N=void 0===T?mq:T,R=e.onFocus,M=e.onBlur,I=e.onValidationChange,L=(0,g.useId)(),F=null!=A?A:"egen-field-".concat(L),B="".concat(F,"-help"),V=mZ((0,g.useState)(y),2),z=V[0],W=V[1],U=mZ((0,g.useState)(!1),2),$=U[0],H=U[1],K=(0,g.useRef)(null),G=(r=(t=mK((0,g.useState)(null),2))[0],n=t[1],o=(a=mK((0,g.useState)(!1),2))[0],i=a[1],s=function(e){N.triggerVibration&&(i(!0),"u">typeof navigator&&navigator.vibrate&&navigator.vibrate(mG[e]),setTimeout(function(){return i(!1)},600))},(0,g.useEffect)(function(){if(!N.realTimeValidation||!z||0===N.rules.length){n(null),null==I||I(null);return}var e=N.rules.find(function(e){return!e.regex.test(z)});if(e){(null==r?void 0:r.type)!==e.type&&s(e.type),n(e),null==I||I(e);return}var t=N.rules.find(function(e){return"success"===e.type&&e.regex.test(z)});if(t){(null==r?void 0:r.type)!=="success"&&s("success"),n(t),null==I||I(t);return}n(null),null==I||I(null)},[z,N.rules,N.realTimeValidation,null==r?void 0:r.type,I]),{currentValidation:r,isAnimating:o}),q=G.currentValidation,Y=G.isAnimating;(0,g.useEffect)(function(){y!==z&&W(y)},[y]);var X=(null==C?void 0:C.position)==="left",Z=(null==C?void 0:C.position)==="label",Q=!!N.showIcons&&!!q,J=S()(lO.field,lO["field--".concat(c)],lO["field--".concat(void 0===d?"md":d)],(mX(l={},lO["field--disabled"],j),mX(l,lO["field--animating"],Y),mX(l,lO["field--has-left-icon"],X),mX(l,lO["field--has-validation-icon"],Q),l),q&&lO["field--".concat(q.type)],x);return(0,v.jsxs)("div",{className:J,children:[(0,v.jsxs)("div",{className:lO.fieldControl,ref:K,children:[X&&(0,v.jsx)("div",{className:lO.leftIcon,children:(0,v.jsx)(lS,{fieldIcon:C})}),(0,v.jsx)("input",{type:void 0===m?"text":m,id:F,name:D,value:z,onChange:function(e){var t=e.target.value;W(t),null==b||b(t)},onFocus:function(e){H(!0),null==R||R(e)},onBlur:function(e){H(!1),null==M||M(e)},disabled:j,required:k,autoComplete:E,autoFocus:P,className:lO.input,placeholder:void 0===p?" ":p,"aria-describedby":N.showMessages&&q?B:void 0,"aria-invalid":(null==q?void 0:q.type)==="error"||void 0}),f&&"kinetic"===c&&(0,v.jsx)("label",{htmlFor:F,className:lO.kineticLabelWrapper,children:(0,v.jsx)(m$,{label:f,active:$||z.length>0,required:k})}),f&&"kinetic"!==c&&(0,v.jsxs)("label",{htmlFor:F,className:lO.label,children:[Z&&(0,v.jsx)(lS,{fieldIcon:C,className:lO.labelIconGlyph}),(0,v.jsxs)("span",{className:lO.labelText,children:[f,k&&(0,v.jsxs)("span",{className:lO.requiredMark,"aria-hidden":"true",children:[" ","*"]})]})]}),(0,v.jsx)(lP,{currentValidation:q,showIcons:!!N.showIcons})]}),N.showMessages&&q&&(0,v.jsxs)("p",{id:B,className:lO.message,role:"error"===q.type?"alert":void 0,children:[(0,v.jsxs)("span",{className:lO.messageLead,children:["success"===q.type&&"Parfait !","error"===q.type&&"Erreur —","warning"===q.type&&"Attention —"]})," ",q.message]})]})},mJ=r(9250),m0=r(1442),m1=r(7267),m2=r(8507);function m3(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m4(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function m5(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function m6(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function m8(e,t){if(e){if("string"==typeof e)return m3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m3(e,t)}}var m9=(0,m0.createGlobalStore)("modalState",{modalContainer:null,modalStack:[]}),m7={xs:"24rem",sm:"32rem",md:"42rem",lg:"56rem"},he=0,ht=window.getComputedStyle(document.body).overflow;function hr(e){var t=e.modalStack,r=e.modalContainer;r&&(t.length?(r.style.visibility||(addEventListener("keydown",ha),document.body.style.overflow="hidden",r.style.visibility="unset"),t.forEach(function(e,n){switch(e.state){case"NEW":var a,o,i,s,l,u,c,d,f=(o=({size:null!=(c=null==(d=e.props)?void 0:d.size)?c:"md"}).size,(i=document.createElement("div")).className="egen-modal-frame",Object.assign(i.style,{display:"flex",flexDirection:"column",boxSizing:"border-box",width:"calc(100% - 2rem)",maxWidth:null!=(a=m7[o])?a:m7.md,maxHeight:"90vh",overflow:"hidden",borderRadius:"var(--border-radius-lg, 0.75rem)",border:"1px solid var(--colors-border-default, #cbd5e1)",background:"var(--colors-surface-card, #ffffff)",color:"var(--colors-surface-card-foreground, #0f172a)",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.25)",outline:"none"}),i.setAttribute("role","dialog"),i.setAttribute("tabindex","-1"),i.setAttribute("aria-modal","true"),i);e.container=f,(function(e,t){var r;return(r=function(e,t){var r,n,a,o,i,s=arguments;return function(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(l){switch(l.label){case 0:if(r=s.length>2&&void 0!==s[2]?s[2]:{},n=(0,m1.Fg)(t),a=null,!e)return[3,2];if(!n)throw Error("No modal named '".concat(t,"' has been registered."));return[4,(0,n.load)()];case 1:return o=l.sent(),i=he++,a=(0,mJ.mountRootParcel)(m6(m5({},o),{name:"".concat(t,"-").concat(i)}),m6(m5({},r),{domElement:e})),[3,3];case 2:(0,m2.N)("Failed to launch modal. Please notify your administrator. Modal name: ".concat(t)),l.label=3;case 3:return[2,a]}})},function(){var e=this,t=arguments;return new Promise(function(n,a){var o=r.apply(e,t);function i(e){m4(o,n,a,i,s,"next",e)}function s(e){m4(o,n,a,i,s,"throw",e)}i(void 0)})}).apply(this,arguments)})(f,e.modalName,e.props).then(function(t){e.parcel=t,e.state="MOUNTED",r.prepend(f),f.style.visibility="unset"});break;case"MOUNTED":e.container&&(e.container.style.visibility=n?"hidden":"unset");break;case"TO_BE_DELETED":e.onClose(),null==(l=e.parcel)||null==(s=l.unmount)||s.call(l),null==(u=e.container)||u.remove(),setTimeout(function(){m9.setState({modalContainer:r,modalStack:t.filter(function(t){return t!==e})})},0)}})):(r.style.removeProperty("visibility"),document.body.style.overflow=ht,removeEventListener("keydown",ha)))}function hn(e){var t=m9.getState(),r=t.modalStack.map(function(t){return t===e?m6(m5({},t),{state:"TO_BE_DELETED"}):t});m9.setState(m6(m5({},t),{modalStack:r}))}function ha(e){var t,r;"Escape"===e.key&&(r=(function(e){if(Array.isArray(e))return e}(t=m9.getState().modalStack)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||m8(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0])&&hn(r)}function ho(e){m9.subscribe(hr),m9.setState(m6(m5({},m9.getState()),{modalContainer:e}))}function hi(e){var t,r,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=function(){var e=m9.getState().modalStack.find(function(e){return e.onClose===o});e&&hn(e)};return(0,m1.Fg)(e)?(n=[{state:"NEW",onClose:o,modalName:e,props:m5({close:i},a)}].concat(function(e){if(Array.isArray(e))return m3(e)}(r=(t=m9.getState()).modalStack)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||m8(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m9.setState(m6(m5({},t),{modalStack:n}))):(0,m2.N)('Failed to launch modal. Please notify your administrator. Modal name: "'.concat(e,'"')),i}var hs=r(919),hl=function(e){var t=e.notification,r=t.description,n=t.action,a=t.kind,o=(t.critical,t.title),i=t.onAction;return(0,v.jsx)(z.Ad,{kind:a||"info",title:o||void 0,subtitle:r,actionLabel:n,onAction:i})};function hu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function hc(e,t){if(e){if("string"==typeof e)return hu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hu(e,t)}}let hd=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||hc(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=n[0],o=n[1];return(0,g.useEffect)(function(){var e=r.subscribe(function(e){return o(function(t){var r;return((function(e){if(Array.isArray(e))return hu(e)})(r=t.filter(function(t){return t.description!==e.description||t.action!==e.action||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||hc(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[r]),(0,v.jsx)(v.Fragment,{children:a.map(function(e){return(0,v.jsx)(hl,{notification:e},e.id)})})};function hf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var hp=function(e){var t,r=e.notification,n=r.actionButtonLabel,a=r.onActionButtonClick,o=void 0===a?function(){}:a,i=r.subtitle,s=r.kind,l=r.title,u=(r.critical,r.progressActionLabel),c=(r.id,function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(r,["actionButtonLabel","onActionButtonClick","subtitle","kind","title","critical","progressActionLabel","id"])),d=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(n))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return hf(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return hf(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),f=d[0],p=d[1];return(0,v.jsx)(z.Ad,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({kind:s||"info",actionLabel:f,onAction:function(){o(),u&&p(u)},statusLabel:(0,V.V)("actionableNotification","Actionable notification"),subtitle:i,title:l},c))};function hm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function hh(e,t){if(e){if("string"==typeof e)return hm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hm(e,t)}}let hy=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||hh(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=n[0],o=n[1];return(0,g.useEffect)(function(){var e=r.subscribe(function(e){return o(function(t){var r;return((function(e){if(Array.isArray(e))return hm(e)})(r=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||hh(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[r]),(0,v.jsx)(v.Fragment,{children:a.map(function(e){return(0,v.jsx)(hp,{notification:e},e.id)})})};var hv=r(5217),hg=r(72),hb=r(2797),hx=r(8206),hw=r(3497),hj=r(8134),hO=r(4666),hS=r(7931),hk=Object.prototype.hasOwnProperty;let hE=function(e){if(null==e)return!0;if((0,hw.A)(e)&&((0,hx.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,hj.A)(e)||(0,hS.A)(e)||(0,hb.A)(e)))return!e.length;var t=(0,hg.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,hO.A)(e))return!(0,hv.A)(e).length;for(var r in e)if(hk.call(e,r))return!1;return!0};var hP=r(8279);function hA(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function hD(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function hC(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function hT(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var hN=new hs.Subject,hR=0,hM=new hs.Subject,hI=0;function h_(e){e&&(0,hP.createRoot)(e).render((0,v.jsx)(hd,{subject:hN}))}function hL(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":hT(t))==="object"&&(hA(t,Error)||!hE(t)))?(hA(e.description,Error)&&(e.description=e.description.toLocaleString()),setTimeout(function(){hN.next(hC(hD({},e),{id:hR++}))},0)):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function hF(e){e&&(0,hP.createRoot)(e).render((0,v.jsx)(hy,{subject:hM}))}function hB(e){var t;e&&("string"==typeof(t=e.actionButtonLabel)?t.trim().length>0:(void 0===t?"undefined":hT(t))==="object"&&!hE(t))?setTimeout(function(){hM.next(hC(hD({},e),{id:hI++}))},0):console.error("showActionableNotification must be called with an actionButtonLabel that is a non-empty string")}function hV(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function hz(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function hW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function hU(e,t,r){return t&&hW(e.prototype,t),r&&hW(e,r),e}function h$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hV(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hV(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hH(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var hK=function(){function e(t){hz(this,e),hH(this,"canvas",void 0),hH(this,"gl",void 0),hH(this,"meshes",[]),hH(this,"commonUniforms",void 0),hH(this,"width",void 0),hH(this,"height",void 0),hH(this,"Material",void 0),hH(this,"Uniform",void 0),hH(this,"PlaneGeometry",void 0),hH(this,"Mesh",void 0),hH(this,"Attribute",void 0),this.canvas=t;var r=this.canvas.getContext("webgl",{antialias:!0});if(!r)throw Error("WebGL not supported");this.gl=r;var n=this.gl,a=this;this.Uniform=function(){function e(t){hz(this,e),hH(this,"type","float"),hH(this,"value",void 0),hH(this,"typeFn",void 0),hH(this,"excludeFrom",void 0),hH(this,"transpose",void 0),Object.assign(this,t),this.typeFn=({float:"1f",int:"1i",vec2:"2fv",vec3:"3fv",vec4:"4fv",mat4:"Matrix4fv"})[this.type]||"1f"}return hU(e,[{key:"update",value:function(e){if(void 0!==this.value&&null!==e){var t=0===this.typeFn.indexOf("Matrix"),r="uniform".concat(this.typeFn);t?n[r](e,this.transpose||!1,this.value):n[r](e,this.value)}}},{key:"getDeclaration",value:function(e,t,r){if(this.excludeFrom===t)return"";if("array"===this.type)return this.value[0].getDeclaration(e,t,this.value.length)+"\nconst int ".concat(e,"_length = ").concat(this.value.length,";");if("struct"===this.type){var n=e.replace("u_","");n=n.charAt(0).toUpperCase()+n.slice(1);var a=Object.entries(this.value).map(function(e){var r=h$(e,2),n=r[0];return r[1].getDeclaration(n,t).replace(/^uniform/,"")}).join("");return"uniform struct ".concat(n," \n{\n").concat(a,"\n} ").concat(e).concat(r?"[".concat(r,"]"):"",";")}return"uniform ".concat(this.type," ").concat(e).concat(r?"[".concat(r,"]"):"",";")}}]),e}(),this.Attribute=function(){function e(t){hz(this,e),hH(this,"type",n.FLOAT),hH(this,"normalized",!1),hH(this,"buffer",void 0),hH(this,"target",void 0),hH(this,"size",void 0),hH(this,"values",void 0),this.buffer=n.createBuffer(),Object.assign(this,t)}return hU(e,[{key:"update",value:function(){this.values&&(n.bindBuffer(this.target,this.buffer),n.bufferData(this.target,this.values,n.STATIC_DRAW))}},{key:"attach",value:function(e,t){var r=n.getAttribLocation(t,e);return this.target===n.ARRAY_BUFFER&&(n.bindBuffer(this.target,this.buffer),n.enableVertexAttribArray(r),n.vertexAttribPointer(r,this.size,this.type,this.normalized,0,0)),r}},{key:"use",value:function(e){n.bindBuffer(this.target,this.buffer),this.target===n.ARRAY_BUFFER&&(n.enableVertexAttribArray(e),n.vertexAttribPointer(e,this.size,this.type,this.normalized,0,0))}}]),e}(),this.Material=function(){function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};hz(this,e);var i=function(e,t){var r=n.createShader(e);if(n.shaderSource(r,t),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS))throw console.error(n.getShaderInfoLog(r)),Error("Shader compilation error");return r},s=function(e,t){return Object.entries(e).map(function(e){var r=h$(e,2),n=r[0];return r[1].getDeclaration(n,t)}).join("\n")};hH(this,"uniforms",void 0),hH(this,"uniformInstances",[]),hH(this,"program",void 0),this.uniforms=o;var l="precision highp float;",u="\n ".concat(l,"\n attribute vec4 position;\n attribute vec2 uv;\n attribute vec2 uvNorm;\n ").concat(s(a.commonUniforms,"vertex"),"\n ").concat(s(o,"vertex"),"\n ").concat(t,"\n "),c="\n ".concat(l,"\n ").concat(s(a.commonUniforms,"fragment"),"\n ").concat(s(o,"fragment"),"\n ").concat(r,"\n ");if(this.program=n.createProgram(),n.attachShader(this.program,i(n.VERTEX_SHADER,u)),n.attachShader(this.program,i(n.FRAGMENT_SHADER,c)),n.linkProgram(this.program),!n.getProgramParameter(this.program,n.LINK_STATUS))throw console.error(n.getProgramInfoLog(this.program)),Error("Program linking error");n.useProgram(this.program),this.attachUniforms(void 0,a.commonUniforms),this.attachUniforms(void 0,this.uniforms)}return hU(e,[{key:"attachUniforms",value:function(e,t){var r=this;void 0===e?Object.entries(t).forEach(function(e){var t=h$(e,2),n=t[0],a=t[1];return r.attachUniforms(n,a)}):"array"===t.type?t.value.forEach(function(t,n){return r.attachUniforms("".concat(e,"[").concat(n,"]"),t)}):"struct"===t.type?Object.entries(t.value).forEach(function(t){var n=h$(t,2),a=n[0],o=n[1];return r.attachUniforms("".concat(e,".").concat(a),o)}):this.uniformInstances.push({uniform:t,location:n.getUniformLocation(this.program,e)})}}]),e}(),this.PlaneGeometry=function(){function e(){hz(this,e),hH(this,"width",1),hH(this,"height",1),hH(this,"attributes",void 0),hH(this,"vertexCount",0),hH(this,"xSegCount",0),hH(this,"ySegCount",0),this.attributes={position:new a.Attribute({target:n.ARRAY_BUFFER,size:3}),uv:new a.Attribute({target:n.ARRAY_BUFFER,size:2}),uvNorm:new a.Attribute({target:n.ARRAY_BUFFER,size:2}),index:new a.Attribute({target:n.ELEMENT_ARRAY_BUFFER,size:3,type:n.UNSIGNED_SHORT})}}return hU(e,[{key:"setTopology",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.xSegCount=e,this.ySegCount=t,this.vertexCount=(this.xSegCount+1)*(this.ySegCount+1);var r=this.xSegCount*this.ySegCount*2;this.attributes.uv.values=new Float32Array(2*this.vertexCount),this.attributes.uvNorm.values=new Float32Array(2*this.vertexCount),this.attributes.index.values=new Uint16Array(3*r);for(var n=0;n<=this.ySegCount;n++)for(var a=0;a<=this.xSegCount;a++){var o=n*(this.xSegCount+1)+a;if(this.attributes.uv.values[2*o]=a/this.xSegCount,this.attributes.uv.values[2*o+1]=1-n/this.ySegCount,this.attributes.uvNorm.values[2*o]=a/this.xSegCount*2-1,this.attributes.uvNorm.values[2*o+1]=1-n/this.ySegCount*2,a<this.xSegCount&&n<this.ySegCount){var i=n*this.xSegCount+a;this.attributes.index.values[6*i]=o,this.attributes.index.values[6*i+1]=o+1+this.xSegCount,this.attributes.index.values[6*i+2]=o+1,this.attributes.index.values[6*i+3]=o+1,this.attributes.index.values[6*i+4]=o+1+this.xSegCount,this.attributes.index.values[6*i+5]=o+2+this.xSegCount}}this.attributes.uv.update(),this.attributes.uvNorm.update(),this.attributes.index.update()}},{key:"setSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.width=e,this.height=t,this.attributes.position.values=new Float32Array(3*this.vertexCount);for(var r=-(e/2),n=-(t/2),a=e/this.xSegCount,o=t/this.ySegCount,i=0;i<=this.ySegCount;i++)for(var s=n+i*o,l=0;l<=this.xSegCount;l++){var u=r+l*a,c=i*(this.xSegCount+1)+l;this.attributes.position.values[3*c]=u,this.attributes.position.values[3*c+1]=-s,this.attributes.position.values[3*c+2]=0}this.attributes.position.update()}}]),e}(),this.Mesh=function(){function e(t,r){var n=this;hz(this,e),hH(this,"geometry",void 0),hH(this,"material",void 0),hH(this,"attributeInstances",[]),this.geometry=t,this.material=r,Object.entries(this.geometry.attributes).forEach(function(e){var t=h$(e,2),r=t[0],a=t[1];n.attributeInstances.push({attribute:a,location:a.attach(r,n.material.program)})}),a.meshes.push(this)}return hU(e,[{key:"draw",value:function(){n.useProgram(this.material.program),this.material.uniformInstances.forEach(function(e){var t=e.uniform,r=e.location;return t.update(r)}),this.attributeInstances.forEach(function(e){var t=e.attribute,r=e.location;return t.use(r)}),n.drawElements(n.TRIANGLES,this.geometry.attributes.index.values.length,n.UNSIGNED_SHORT,0)}}]),e}();var o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];this.commonUniforms={projectionMatrix:new this.Uniform({type:"mat4",value:o}),modelViewMatrix:new this.Uniform({type:"mat4",value:o}),resolution:new this.Uniform({type:"vec2",value:[1,1]}),aspectRatio:new this.Uniform({type:"float",value:1})}}return hU(e,[{key:"setSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:640,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:480;this.width=e,this.height=t,this.canvas.width=e,this.canvas.height=t,this.gl.viewport(0,0,e,t),this.commonUniforms.resolution.value=[e,t],this.commonUniforms.aspectRatio.value=e/t}},{key:"setOrthographicCamera",value:function(){this.commonUniforms.projectionMatrix.value=[2/this.width,0,0,0,0,2/this.height,0,0,0,0,-.001,0,0,0,0,1]}},{key:"render",value:function(){this.gl.clearColor(0,0,0,0),this.gl.clearDepth(1),this.meshes.forEach(function(e){return e.draw()})}}]),e}(),hG=function(){function e(t,r){var n=this;hz(this,e),hH(this,"canvas",void 0),hH(this,"colors",void 0),hH(this,"minigl",void 0),hH(this,"mesh",void 0),hH(this,"time",0),hH(this,"last",0),hH(this,"animationId",void 0),hH(this,"isPlaying",!1),hH(this,"animate",function(e){if(n.isPlaying){n.last||(n.last=e);var t=e-n.last;n.last=e,n.time+=Math.min(t,1e3/15),n.mesh.material.uniforms.u_time.value=n.time,n.minigl.render(),n.animationId=requestAnimationFrame(n.animate)}}),hH(this,"handleResize",function(){n.resize()}),this.canvas=t,this.colors=r,this.minigl=new hK(t),this.init()}return hU(e,[{key:"init",value:function(){for(var e=this.colors.map(function(e){var t;return[((t=parseInt(e.replace("#","0x"),16))>>16&255)/255,(t>>8&255)/255,(255&t)/255]}),t={u_time:new this.minigl.Uniform({value:0}),u_shadow_power:new this.minigl.Uniform({value:5}),u_darken_top:new this.minigl.Uniform({value:0}),u_active_colors:new this.minigl.Uniform({value:[1,1,1,1],type:"vec4"}),u_global:new this.minigl.Uniform({value:{noiseFreq:new this.minigl.Uniform({value:[14e-5,29e-5],type:"vec2"}),noiseSpeed:new this.minigl.Uniform({value:5e-6})},type:"struct"}),u_vertDeform:new this.minigl.Uniform({value:{incline:new this.minigl.Uniform({value:0}),offsetTop:new this.minigl.Uniform({value:-.5}),offsetBottom:new this.minigl.Uniform({value:-.5}),noiseFreq:new this.minigl.Uniform({value:[3,4],type:"vec2"}),noiseAmp:new this.minigl.Uniform({value:320}),noiseSpeed:new this.minigl.Uniform({value:10}),noiseFlow:new this.minigl.Uniform({value:3}),noiseSeed:new this.minigl.Uniform({value:5})},type:"struct",excludeFrom:"fragment"}),u_baseColor:new this.minigl.Uniform({value:e[0],type:"vec3",excludeFrom:"fragment"}),u_waveLayers:new this.minigl.Uniform({value:[],excludeFrom:"fragment",type:"array"})},r=1;r<e.length;r++)t.u_waveLayers.value.push(new this.minigl.Uniform({value:{color:new this.minigl.Uniform({value:e[r],type:"vec3"}),noiseFreq:new this.minigl.Uniform({value:[2+r/e.length,3+r/e.length],type:"vec2"}),noiseSpeed:new this.minigl.Uniform({value:11+.3*r}),noiseFlow:new this.minigl.Uniform({value:6.5+.3*r}),noiseSeed:new this.minigl.Uniform({value:5+10*r}),noiseFloor:new this.minigl.Uniform({value:.1}),noiseCeil:new this.minigl.Uniform({value:.63+.07*r})},type:"struct"}));var n=new this.minigl.Material("\nvec3 mod289(vec3 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }\nvec4 mod289(vec4 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }\nvec4 permute(vec4 x) { return mod289(((x*34.0)+1.0)*x); }\nvec4 taylorInvSqrt(vec4 r) { return 1.79284291400159 - 0.85373472095314 * r; }\n\nfloat snoise(vec3 v) {\n const vec2 C = vec2(1.0/6.0, 1.0/3.0);\n const vec4 D = vec4(0.0, 0.5, 1.0, 2.0);\n vec3 i = floor(v + dot(v, C.yyy));\n vec3 x0 = v - i + dot(i, C.xxx);\n vec3 g = step(x0.yzx, x0.xyz);\n vec3 l = 1.0 - g;\n vec3 i1 = min(g.xyz, l.zxy);\n vec3 i2 = max(g.xyz, l.zxy);\n vec3 x1 = x0 - i1 + C.xxx;\n vec3 x2 = x0 - i2 + C.yyy;\n vec3 x3 = x0 - D.yyy;\n i = mod289(i);\n vec4 p = permute(permute(permute(i.z + vec4(0.0, i1.z, i2.z, 1.0)) + i.y + vec4(0.0, i1.y, i2.y, 1.0)) + i.x + vec4(0.0, i1.x, i2.x, 1.0));\n float n_ = 0.142857142857;\n vec3 ns = n_ * D.wyz - D.xzx;\n vec4 j = p - 49.0 * floor(p * ns.z * ns.z);\n vec4 x_ = floor(j * ns.z);\n vec4 y_ = floor(j - 7.0 * x_);\n vec4 x = x_ *ns.x + ns.yyyy;\n vec4 y = y_ *ns.x + ns.yyyy;\n vec4 h = 1.0 - abs(x) - abs(y);\n vec4 b0 = vec4(x.xy, y.xy);\n vec4 b1 = vec4(x.zw, y.zw);\n vec4 s0 = floor(b0)*2.0 + 1.0;\n vec4 s1 = floor(b1)*2.0 + 1.0;\n vec4 sh = -step(h, vec4(0.0));\n vec4 a0 = b0.xzyw + s0.xzyw*sh.xxyy;\n vec4 a1 = b1.xzyw + s1.xzyw*sh.zzww;\n vec3 p0 = vec3(a0.xy,h.x);\n vec3 p1 = vec3(a0.zw,h.y);\n vec3 p2 = vec3(a1.xy,h.z);\n vec3 p3 = vec3(a1.zw,h.w);\n vec4 norm = taylorInvSqrt(vec4(dot(p0,p0), dot(p1,p1), dot(p2, p2), dot(p3,p3)));\n p0 *= norm.x; p1 *= norm.y; p2 *= norm.z; p3 *= norm.w;\n vec4 m = max(0.6 - vec4(dot(x0,x0), dot(x1,x1), dot(x2,x2), dot(x3,x3)), 0.0);\n m = m * m;\n return 42.0 * dot(m*m, vec4(dot(p0,x0), dot(p1,x1), dot(p2,x2), dot(p3,x3)));\n}\n\nvec3 blendNormal(vec3 base, vec3 blend) { return blend; }\nvec3 blendNormal(vec3 base, vec3 blend, float opacity) { return (blend * opacity + base * (1.0 - opacity)); }\n\nvarying vec3 v_color;\n\nvoid main() {\n float time = u_time * u_global.noiseSpeed;\n vec2 noiseCoord = resolution * uvNorm * u_global.noiseFreq;\n float tilt = resolution.y / 2.0 * uvNorm.y;\n float incline = resolution.x * uvNorm.x / 2.0 * u_vertDeform.incline;\n float offset = resolution.x / 2.0 * u_vertDeform.incline * mix(u_vertDeform.offsetBottom, u_vertDeform.offsetTop, uv.y);\n \n float noise = snoise(vec3(\n noiseCoord.x * u_vertDeform.noiseFreq.x + time * u_vertDeform.noiseFlow,\n noiseCoord.y * u_vertDeform.noiseFreq.y,\n time * u_vertDeform.noiseSpeed + u_vertDeform.noiseSeed\n )) * u_vertDeform.noiseAmp;\n \n noise *= 1.0 - pow(abs(uvNorm.y), 2.0);\n noise = max(0.0, noise);\n \n vec3 pos = vec3(position.x, position.y + tilt + incline + noise - offset, position.z);\n \n v_color = u_baseColor;\n \n for (int i = 0; i < u_waveLayers_length; i++) {\n if (u_active_colors[i + 1] == 1.) {\n WaveLayers layer = u_waveLayers[i];\n float layerNoise = smoothstep(\n layer.noiseFloor,\n layer.noiseCeil,\n snoise(vec3(\n noiseCoord.x * layer.noiseFreq.x + time * layer.noiseFlow,\n noiseCoord.y * layer.noiseFreq.y,\n time * layer.noiseSpeed + layer.noiseSeed\n )) / 2.0 + 0.5\n );\n v_color = blendNormal(v_color, layer.color, pow(layerNoise, 4.));\n }\n }\n \n gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);\n}","\nvarying vec3 v_color;\n\nvoid main() {\n vec3 color = v_color;\n if (u_darken_top == 1.0) {\n vec2 st = gl_FragCoord.xy/resolution.xy;\n color.g -= pow(st.y + sin(-12.0) * st.x, u_shadow_power) * 0.4;\n }\n gl_FragColor = vec4(color, 1.0);\n}",t),a=new this.minigl.PlaneGeometry;this.mesh=new this.minigl.Mesh(a,n),this.resize(),window.addEventListener("resize",this.handleResize)}},{key:"resize",value:function(){var e=window.innerWidth,t=window.innerHeight;this.minigl.setSize(e,t),this.minigl.setOrthographicCamera();var r=Math.ceil(.02*e),n=Math.ceil(.05*t);this.mesh.geometry.setTopology(r,n),this.mesh.geometry.setSize(e,t),this.mesh.material.uniforms.u_shadow_power.value=e<600?5:6}},{key:"start",value:function(){this.isPlaying||(this.isPlaying=!0,this.last=performance.now(),this.animationId=requestAnimationFrame(this.animate))}},{key:"stop",value:function(){this.isPlaying=!1,this.animationId&&(cancelAnimationFrame(this.animationId),this.animationId=void 0)}},{key:"destroy",value:function(){this.stop(),window.removeEventListener("resize",this.handleResize)}}]),e}();function hq(e){var t=e.colors,r=void 0===t?["#008080","#0b192c","#0ea5e9","#042f2e","#0284c7","#064e3b"]:t,n=e.isPlaying,a=void 0===n||n,o=e.className,i=e.shadowPower,s=void 0===i?8:i,l=e.darkenTop,u=void 0!==l&&l,c=e.noiseSpeed,d=void 0===c?1e-5:c,f=e.noiseFrequency,p=void 0===f?[1e-4,9e-4]:f,m=e.deform,h=void 0===m?{incline:.5,noiseAmp:250,noiseFlow:5}:m,y=(0,g.useRef)(null),b=(0,g.useRef)(null);return(0,g.useEffect)(function(){if(y.current){var e=document.createElement("canvas");Object.assign(e.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",display:"block"}),y.current.appendChild(e);try{var t=new hG(e,r);b.current=t,t.mesh.material.uniforms.u_shadow_power.value=s,t.mesh.material.uniforms.u_darken_top.value=+!!u,t.mesh.material.uniforms.u_global.value.noiseFreq.value=p,t.mesh.material.uniforms.u_global.value.noiseSpeed.value=d,Object.assign(t.mesh.material.uniforms.u_vertDeform.value,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},t.mesh.material.uniforms.u_vertDeform.value,h)),a&&t.start()}catch(e){console.error("Failed to initialize gradient:",e)}return function(){b.current&&(b.current.destroy(),b.current=null),e.parentNode&&e.parentNode.removeChild(e)}}},[]),(0,g.useEffect)(function(){b.current&&(a?b.current.start():b.current.stop())},[a]),(0,v.jsx)("div",{ref:y,className:"absolute inset-0 z-0 w-full h-full overflow-hidden ".concat(void 0===o?"":o)})}var hY=(0,m0.getGlobalStore)("pageBackground",{config:null,owner:null});function hX(e){hY.setState({config:e,owner:null})}function hZ(e){var t=e.children;return(0,v.jsx)(v.Fragment,{children:t})}var hQ=function(){return hY.getState().config};function hJ(){var e=(0,g.useSyncExternalStore)(hY.subscribe,hQ,hQ);return(0,g.useMemo)(function(){return{config:e,setPageBackground:hX}},[e])}var h0=["#008080","#0b192c","#0ea5e9","#042f2e","#0284c7","#064e3b"];function h1(e){var t=e.className;return(0,v.jsxs)("div",{className:(0,w.cn)("fixed inset-0 w-full h-full pointer-events-none z-0 overflow-hidden select-none bg-[#030708]",t),children:[(0,v.jsx)(hq,{colors:h0,isPlaying:!0,shadowPower:8,darkenTop:!1,noiseSpeed:1e-5,noiseFrequency:[1e-4,9e-4],deform:{incline:.5,noiseAmp:250,noiseFlow:5}}),(0,v.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/20 via-transparent to-black/60 pointer-events-none"}),(0,v.jsx)("div",{className:"absolute bottom-[-10%] left-[10%] w-[80%] h-[350px] rounded-full opacity-30 blur-[120px] pointer-events-none",style:{background:"radial-gradient(ellipse at center, rgba(16,185,129,0.3) 0%, rgba(6,78,59,0.12) 50%, transparent 80%)"}})]})}function h2(e){var t=e.imageSrc,r=e.imageAlt,n=e.imageFit,a=void 0===n?"cover":n,o=e.className,i=e.imageClassName,s=e.overlayClassName,l=e.glowClassName,u=e.showAtmosphere,c=e.showGlow,d=e.showDarkWash,f=void 0===d||d,p=e.accent,m=e.children;return t?(0,v.jsxs)("div",{className:(0,w.cn)("fixed inset-0 pointer-events-none overflow-hidden z-0 select-none",!(null==o?void 0:o.includes("bg-"))&&"bg-[#030708]",o),children:[(0,v.jsx)("img",{src:t,alt:void 0===r?"Arri\xe8re-plan immersif":r,className:(0,w.cn)("absolute inset-0 w-full h-full select-none transition-all duration-700 ease-out","fill"===a?"object-fill":"contain"===a?"object-contain object-center":"object-cover object-center","fill"===a?"opacity-100":"opacity-95",i),referrerPolicy:"no-referrer"},t),p&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"absolute inset-0 pointer-events-none transition-colors duration-700",style:{backgroundColor:p,mixBlendMode:"color",opacity:.35}}),(0,v.jsx)("div",{className:"absolute inset-0 pointer-events-none transition-colors duration-700",style:{backgroundColor:p,mixBlendMode:"multiply",opacity:.2}})]}),f&&(0,v.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none bg-gradient-to-b from-black/55 via-black/15 via-25% to-transparent transition-opacity duration-700"}),f&&(0,v.jsx)("div",{className:(0,w.cn)("absolute inset-0 pointer-events-none bg-gradient-to-b from-black/45 via-black/20 to-black/70 transition-opacity duration-700",s)}),(0,v.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 opacity-[0.12] mix-blend-overlay",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E\")",backgroundSize:"180px 180px"}}),void 0!==u&&u&&s&&(0,v.jsx)("div",{className:(0,w.cn)("absolute inset-0 pointer-events-none transition-all duration-500",s)}),(void 0===c||c)&&(0,v.jsx)("div",{className:(0,w.cn)("absolute bottom-[-10%] left-[10%] w-[80%] h-[350px] rounded-full opacity-35 blur-[120px] pointer-events-none transition-all duration-700",l),style:{background:p?"radial-gradient(ellipse at center, ".concat(p,"66 0%, ").concat(p,"22 50%, transparent 80%)"):"radial-gradient(ellipse at center, rgba(16,185,129,0.3) 0%, rgba(6,78,59,0.12) 50%, transparent 80%)"}}),m]}):(0,v.jsx)(h1,{className:o})}function h3(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=n.fallback,o=hJ().config;return(null==o?void 0:o.customComponent)?(0,v.jsx)("div",{className:(0,w.cn)("fixed inset-0 pointer-events-none overflow-hidden z-0 select-none bg-[#030708]",o.className),children:o.customComponent}):(null==o?void 0:o.imageSrc)?(0,v.jsx)(h2,{imageSrc:o.imageSrc,imageAlt:o.imageAlt,imageFit:o.imageFit,className:o.className,imageClassName:o.imageClassName,overlayClassName:o.overlayClassName,glowClassName:o.glowClassName,showAtmosphere:null!=(e=o.showAtmosphere)&&e,showGlow:null==(t=o.showGlow)||t,showDarkWash:null==(r=o.showDarkWash)||r,accent:o.accent,children:o.children}):"none"===(void 0===a?"animated":a)?null:(0,v.jsx)(h1,{className:null==o?void 0:o.className})}function h4(e){var t=e.customComponent,r=e.imageSrc,n=e.imageAlt,a=e.imageFit,o=e.className,i=e.imageClassName,s=e.overlayClassName,l=e.glowClassName,u=e.showAtmosphere,c=e.showGlow,d=e.showDarkWash,f=e.accent,p=e.children,m=(0,g.useRef)({});return(0,g.useEffect)(function(){var e;e=m.current,hY.setState({config:{customComponent:t,imageSrc:r,imageAlt:n,imageFit:a,className:o,imageClassName:i,overlayClassName:s,glowClassName:l,showAtmosphere:u,showGlow:c,showDarkWash:d,accent:f,children:p},owner:e})},[t,r,n,a,o,i,s,l,u,c,d,f,p]),(0,g.useEffect)(function(){var e=m.current;return function(){hY.getState().owner===e&&hY.setState({config:null,owner:null})}},[]),null}function h5(e){e&&(0,hP.createRoot)(e).render((0,v.jsx)(h3,{fallback:"none"}))}var h6=r(3645);let h8="EXPHgi8ygojxjWpSa-PxoQ==";function h9(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function h7(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function ye(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function yt(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}var yr=function(e){if("children"in e){var t=e.children,r=e.className,n=yt(e,["children","className"]);return(0,v.jsx)("div",ye(h7({className:S()(h8,r)},n),{children:t}))}var a=e.title,o=e.illustration,i=e.className,s=yt(e,["title","illustration","className"]);return(0,v.jsx)("div",ye(h7({className:S()(h8,i)},s),{children:(0,v.jsx)(yn,{title:a,illustration:o})}))},yn=function(e){var t,r=e.title,n=e.illustration,a=e.className,o=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(null))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return h9(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return h9(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],s=o[1];return(0,g.useEffect)(function(){(0,h6.getConfig)("@egen-civitas/esm-styleguide").then(function(e){s(e)})},[]),(0,v.jsxs)("div",{className:S()("B7ftiqKWP2aYNeHDIPSb7w==",a),children:[n,(0,v.jsxs)("div",{className:"WVfMf3IxIYB4RqiS2p5hTw==",children:[(null==i?void 0:i.implementationName)&&(0,v.jsx)("p",{children:(0,V.V)(i.implementationName)}),(0,v.jsx)("p",{className:"-QtMd8fN+FFchDvCJoWbXA==",children:r})]})]})},ya=r(4347),yo=(0,ya.A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),yi=r(7190),ys=function(e){var t=e.totalItems,r=e.pageSize,n=e.onPageNumberChange,a=e.pageNumber,o=e.dashboardLinkUrl,i=e.currentItems,s=e.dashboardLinkLabel,l=(0,x.usePaginationInfo)(r,t,a,i),u=l.pageSizes,c=l.pageItemsCount,d="tablet"===(0,x.useLayoutType)(),f=(0,V.V)("paginationItemsCount","{{pageItemsCount}} / {{totalItems}} items",{totalItems:t,pageItemsCount:c}),p=Math.max(1,Math.ceil(t/r)),m=function(e){return null==n?void 0:n({page:Math.min(Math.max(e,1),p),pageSize:r})},h=d?"h-12":"h-8";return t<=0?null:(0,v.jsxs)("div",{className:(0,w.cn)("flex items-center justify-between border-t border-border bg-card pl-4 text-sm text-muted-foreground",d&&"min-h-12"),children:[(0,v.jsxs)("div",{children:[f,o&&(0,v.jsx)(x.ConfigurableLink,{to:o,className:"ml-4 text-sm text-primary hover:underline",children:null!=s?s:(0,V.V)("seeAll","See all")})]}),(0,v.jsxs)("div",{className:"flex items-center gap-2",children:[(0,v.jsxs)("label",{className:"flex items-center gap-2",children:[(0,v.jsx)("span",{className:"sr-only",children:(0,V.V)("itemsPerPage","Items per page")}),(0,v.jsx)("select",{className:(0,w.cn)("rounded-md border border-input bg-transparent px-2 text-sm text-foreground",h),value:r,onChange:function(e){return null==n?void 0:n({page:1,pageSize:Number(e.target.value)})},children:u.map(function(e){return(0,v.jsx)("option",{value:e,children:e},e)})})]}),(0,v.jsxs)("label",{className:"flex items-center gap-2",children:[(0,v.jsx)("span",{className:"sr-only",children:(0,V.V)("pageNumber","Page number")}),(0,v.jsx)("select",{className:(0,w.cn)("rounded-md border border-input bg-transparent px-2 text-sm text-foreground",h),value:a,onChange:function(e){return m(Number(e.target.value))},children:Array.from({length:p},function(e,t){return(0,v.jsx)("option",{value:t+1,children:t+1},t+1)})})]}),(0,v.jsx)("span",{children:(0,V.V)("paginationOfPages","of {{count}} pages",{count:p})}),(0,v.jsx)(z.$n,{type:"button",variant:"ghost",size:"icon",className:d?"size-12":void 0,disabled:a<=1,"aria-label":(0,V.V)("previousPage","Previous page"),onClick:function(){return m(a-1)},children:(0,v.jsx)(yo,{"aria-hidden":"true"})}),(0,v.jsx)(z.$n,{type:"button",variant:"ghost",size:"icon",className:d?"size-12":void 0,disabled:a>=p,"aria-label":(0,V.V)("nextPage","Next page"),onClick:function(){return m(a+1)},children:(0,v.jsx)(yi.A,{"aria-hidden":"true"})})]})]})};function yl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yu(e){if(Array.isArray(e))return e}function yc(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yd(e,t){if(e){if("string"==typeof e)return yl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yl(e,t)}}var yf=["egen-pict-home","egen-pict-payments-desk","egen-pict-service-queues","egen-pict-stock-management","egen-pict-transfer"],yp=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(yb,{ref:t,pictogram:"egen-pict-payments-desk",pictogramProps:e})})),ym=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(yb,{ref:t,pictogram:"egen-pict-service-queues",pictogramProps:e})})),yh=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(yb,{ref:t,pictogram:"egen-pict-stock-management",pictogramProps:e})})),yy=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(yb,{ref:t,pictogram:"egen-pict-transfer",pictogramProps:e})})),yv=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(yb,{ref:t,pictogram:"egen-pict-home",pictogramProps:e})})),yg=(0,g.memo)((0,g.forwardRef)(function(e,t){var r,n=yu(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||yd(r)||yc(),a=n[0],o=n.slice(1),i=a.pictogram,s=a.fallback,l=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(a,["pictogram","fallback"]),u=(yu(o)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(o)||yd(o,1)||yc())[0],c=(0,g.useRef)(document.getElementById(i));return(0,g.useEffect)(function(){var e=document.getElementById("egen-svgs-container"),t=new MutationObserver(function(e){var t=!0,r=!1,n=void 0;try{for(var a,o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var s=a.value;"childList"===s.type&&(c.current=document.getElementById(i))}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[i]),(0,v.jsx)(x.RenderIfValueIsTruthy,{value:c.current,fallback:s,children:(0,v.jsx)(yb,{ref:u,pictogram:i,pictogramProps:l})})})),yb=(0,g.memo)((0,g.forwardRef)(function(e,t){var r=e.pictogram,n=Object.assign({},{size:92},e.pictogramProps),a=n.className,o=n.size;return(o<=26||o>144)&&(console.error("Invalid size '".concat(o,"' specified for ").concat(r,". Defaulting to 92.")),o=92),(0,v.jsx)("svg",{ref:t,className:S()("qYHeMwyr4Ks9pPsUbPwqyA==",a),height:o,width:o,children:(0,v.jsx)("use",{href:"#".concat(r)})})})),yx=function(e){var t=e.children;return"tablet"===(0,x.useLayoutType)()?(0,v.jsx)(z.Wd,{className:"bg-transparent",children:t}):(0,v.jsx)(v.Fragment,{children:t})};function yw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yj(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yw(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var yS=function(e){var t,r=e.snackbar,n=e.closeSnackbar,a=r.actionButtonLabel,o=r.kind,i=void 0===o?"success":o,s=r.onActionButtonClick,l=void 0===s?function(){}:s,u=(r.isLowContrast,r.progressActionLabel),c=r.subtitle,d=r.timeoutInMs,f=void 0===d?5e3:d,p=r.autoClose,m=void 0===p?"error"!==i:p,h=r.title;r.id,function(e,t){if(null!=e){var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}}(r,["actionButtonLabel","kind","onActionButtonClick","isLowContrast","progressActionLabel","subtitle","timeoutInMs","autoClose","title","id"]);var y=yO((0,g.useState)(void 0===a?"":a),2),b=y[0],x=y[1],w=yO((0,g.useState)(!0),2),j=w[0],O=w[1],k=yO((0,g.useState)(!1),2),E=k[0],P=k[1],A=(0,g.useCallback)(function(){setTimeout(n,250)},[n]),D=(0,g.useCallback)(function(){P(!0),A()},[A]);return(0,g.useEffect)(function(){if(m){var e=setTimeout(D,f);return function(){return clearTimeout(e)}}},[f,m,D]),(0,g.useEffect)(function(){O(!1),window.setTimeout(function(){O(!0)},0)},[]),(0,v.jsx)(z.Ad,{actionLabel:b,statusLabel:(0,V.V)("closeSnackbar","Close snackbar"),closeLabel:(0,V.V)("closeSnackbar","Close snackbar"),className:S()("V4kr+nokmSk8JcHrWRqlDA==",(yj(t={},"_1V5JFfapu2dE0Evaj4Z0Yw==",j),yj(t,"j4OWdiEKzeDPPuV7vEIFvg==",E),t)),kind:i,onAction:function(){l(),D(),u&&x(u)},onClose:A,subtitle:void 0===c?"":c,title:h})};function yk(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yE(e,t){if(e){if("string"==typeof e)return yk(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yk(e,t)}}let yP=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||yE(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=n[0],o=n[1],i=(0,g.useCallback)(function(e){o(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,g.useEffect)(function(){var e=r.subscribe(function(e){return o(function(t){var r;return((function(e){if(Array.isArray(e))return yk(e)})(r=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||yE(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[r]),(0,v.jsx)(v.Fragment,{children:a.map(function(e){return(0,v.jsx)(yS,{snackbar:e,closeSnackbar:function(){return i(e)}},e.id)})})};var yA=new hs.Subject,yD=0;function yC(e){e&&(0,hP.createRoot)(e).render((0,v.jsx)(yP,{subject:yA}))}function yT(e){var t;e&&"string"==typeof(t=e.title)&&t.trim().length>0?setTimeout(function(){var t,r;yA.next((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={id:yD++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))},0):console.error("showSnackbar must be called with an object having a 'title' property that is a non-empty string")}var yN="m 164,100 c 0,-35.346224 -28.65378,-64 -64,-64 -35.346224,0 -64,28.653776 -64,64 0,35.34622 28.653776,64 64,64 35.34622,0 64,-26.21502 64,-64 0,-37.784981 -26.92058,-64 -64,-64 -37.079421,0 -65.267479,26.922736 -64,64 1.267479,37.07726 26.703171,65.05317 64,64 37.29683,-1.05317 64,-64 64,-64";function yR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:160,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chargement en cours";return'<div class="egen-loader">\n <svg class="egen-loader__defs" aria-hidden="true" focusable="false"><defs>\n <filter id="egen-loader-goo">\n <feGaussianBlur in="SourceGraphic" stdDeviation="7" result="blur" />\n <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -10" result="goo" />\n <feComposite in="SourceGraphic" in2="goo" operator="atop" />\n </filter>\n </defs></svg>\n <svg class="egen-loader__shadow" width="'.concat(e,'" height="').concat(e,'" viewBox="0 0 200 200" aria-hidden="true" focusable="false">\n <path class="egen-loader__arc" d="').concat(yN,'" />\n <circle class="egen-loader__ring" cx="100" cy="100" r="64" />\n </svg>\n <svg class="egen-loader__spin" width="').concat(e,'" height="').concat(e,'" viewBox="0 0 200 200" role="status" aria-label="').concat(t,'">\n <defs>\n <linearGradient id="egen-loader-gradient" gradientUnits="userSpaceOnUse" x1="40" y1="40" x2="160" y2="160">\n <stop class="egen-loader__stop-from" offset="0" />\n <stop class="egen-loader__stop-to" offset="1" />\n </linearGradient>\n </defs>\n <path class="egen-loader__arc" d="').concat(yN,'" />\n <circle class="egen-loader__ring" cx="100" cy="100" r="64" />\n </svg>\n</div>')}function yM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yI(e){var t,r=e.visible,n=void 0===r||r,a=e.local,o=e.size,i=e.label,s=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(n))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return yM(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yM(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=s[0],u=s[1];return((0,g.useEffect)(function(){if(n)return void u(!0);var e=window.setTimeout(function(){return u(!1)},300);return function(){return window.clearTimeout(e)}},[n]),l)?(0,v.jsx)("div",{className:"egen-loader-overlay ".concat(void 0!==a&&a?"egen-loader-overlay--local ":"").concat(n?"egen-anim-fade-in":"egen-anim-fade-out"),dangerouslySetInnerHTML:{__html:yR(void 0===o?160:o,i)}}):null}var y_=0,yL=null;function yF(){if(window.clearTimeout(g6),null==yL?void 0:yL.isConnected){yL.className="egen-loader-overlay egen-anim-fade-in";return}(yL=document.createElement("div")).id="egen-page-loader",yL.className="egen-loader-overlay egen-anim-fade-in",yL.innerHTML=yR(),document.body.appendChild(yL)}function yB(){var e=!1;return 1===(y_+=1)&&(window.clearTimeout(g5),g5=window.setTimeout(yF,120)),function(){if(!e&&(e=!0,0===(y_=Math.max(0,y_-1)))){var t;window.clearTimeout(g5),(t=yL)&&(t.className="egen-loader-overlay egen-anim-fade-out",g6=window.setTimeout(function(){t.remove(),yL===t&&(yL=null)},300))}}}function yV(e){(0,g.useEffect)(function(){if(e)return yB()},[e])}var yz="egen-anim-page-enter";function yW(){var e,t,r,n=document.getElementById("egen-apps-container");!n||null!=(e=null==(t=(r=window).matchMedia)?void 0:t.call(r,"(prefers-reduced-motion: reduce)").matches)&&e||(n.classList.remove(yz),n.offsetWidth,n.classList.add(yz),n.addEventListener("animationend",function(e){e.target===n&&n.classList.remove(yz)},{once:!1}))}function yU(){var e=null,t=function(t){var r=t.detail;(null==r?void 0:r.totalAppChanges)&&(null==e||e(),e=yB())},r=function(){null==e||e(),e=null,yW()};return window.addEventListener("single-spa:before-routing-event",t),window.addEventListener("single-spa:routing-event",r),function(){window.removeEventListener("single-spa:before-routing-event",t),window.removeEventListener("single-spa:routing-event",r),null==e||e()}}function y$(e){var t=document.createElement("div");return t.className="egen-loader-overlay egen-anim-fade-in",t.innerHTML=yR(),e.appendChild(t),function(){t.className="egen-loader-overlay egen-anim-fade-out",window.setTimeout(function(){return t.remove()},300)}}let yH={hiddenFilterSvg:"Ur3or2KbVxZjj2Cafuwo9A==",card:"dFdKFfmC2hKI699E0Ps5oQ==","card--draggable":"oQ6j4C7EnUyLtorSZhJIsg==","card--expandable":"vFQpx9hTzaON8EHLfu60Ig==",bendLayer:"e3Ij34vFJRFZDN8fjm9kRg==",faceLayer:"UZz778ZdsCvMWit4YSS4+g==",edgeLayer:"vuSykMDKHAeb7D8v95gu3g==",content:"FYjjz7Ph7-2ilN0aBhipUg==","blur--sm":"kMbXQ-rYyIpKPPOaF7HA-w==","blur--md":"AawaQLofhafI8GVdBbfXcQ==","blur--lg":"cXiwFQzV9jTEWhw0BTDDMQ==","blur--xl":"nLej-y9-mqHmdypyNsscWA==","glow--none":"_8Mwyae2UN5qvhEWc1Sx8hg==","glow--xs":"mCcleJoEFG2fjcGZb79VqA==","glow--sm":"zYIGPfuZZAmujpAa9lAgQA==","glow--md":"UX3T+QmYz8lldPwNccpAgQ==","glow--lg":"dCy1WIeQxbTF0mprMkSwRQ==","glow--xl":"LilnUiLkXEQs+7zzv93Exg==","glow--2xl":"kQnQXKxE-8AYEPe-AVkitg==","shadow--none":"O6r+GYFAmfevMNIrnoltaA==","shadow--xs":"p4V2QgNpXMIXxS6mUbUtvQ==","shadow--sm":"jwgEkVpYeNO9GP5lPKIU9Q==","shadow--md":"KCunvPwQTaUnwuIFEGrRHA==","shadow--lg":"ETfPuDpx4ttbClSgrf7qLw==","shadow--xl":"aASsy+6fRR2YJNe8D5D2tA==","shadow--2xl":"RAN3salmlVulM+n57Kvxxw=="};function yK(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yG(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yq(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){yG(e,t,r[t])})}return e}var yY=function(e){var t,r,n,a,o=e.children,i=e.className,s=e.draggable,l=void 0!==s&&s,u=e.expandable,c=void 0!==u&&u,d=e.width,f=e.height,p=e.expandedWidth,m=e.expandedHeight,h=e.blurIntensity,y=e.shadowIntensity,b=e.glowIntensity,x=e.borderRadius,w=void 0===x?"0px":x,j=e.style,O=e.onClick,k=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return yK(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yK(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),E=k[0],P=k[1],A="egen-glass-blur-".concat((0,g.useId)().replace(/:/g,"")),D=l||c,C=D?mz.div:"div",T=D?{variants:c&&c?{collapsed:{width:d||"auto",height:f||"auto",transition:{duration:.4,ease:[.5,1.5,.5,1]}},expanded:{width:p||"auto",height:m||"auto",transition:{duration:.4,ease:[.5,1.5,.5,1]}}}:void 0,animate:c?E?"expanded":"collapsed":void 0,onClick:c?function(e){!c||e.target.closest("a, button, input, select, textarea")||P(function(e){return!e})}:O,drag:l,dragConstraints:l?{left:0,right:0,top:0,bottom:0}:void 0,dragElastic:l?.3:void 0,dragTransition:l?{bounceStiffness:300,bounceDamping:10,power:.3}:void 0,whileDrag:l?{scale:1.02}:void 0,whileHover:{scale:1.01},whileTap:{scale:.98}}:{onClick:O};return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("svg",{className:yH.hiddenFilterSvg,"aria-hidden":"true",children:(0,v.jsx)("defs",{children:(0,v.jsxs)("filter",{id:A,x:"0",y:"0",width:"100%",height:"100%",filterUnits:"objectBoundingBox",children:[(0,v.jsx)("feTurbulence",{type:"fractalNoise",baseFrequency:"0.003 0.007",numOctaves:1,result:"turbulence"}),(0,v.jsx)("feDisplacementMap",{in:"SourceGraphic",in2:"turbulence",scale:"200",xChannelSelector:"R",yChannelSelector:"G"})]})})}),(0,v.jsxs)(C,(r=yq({className:S()(yH.card,(yG(a={},yH["card--draggable"],l),yG(a,yH["card--expandable"],c),a),i),style:yq({borderRadius:w},d&&!c?{width:d}:void 0,f&&!c?{height:f}:void 0,j)},T),n=n={children:[(0,v.jsx)("div",{className:S()(yH.bendLayer,yH["blur--".concat(void 0===h?"xl":h)]),style:{borderRadius:w,filter:"url(#".concat(A,")")}}),(0,v.jsx)("div",{className:S()(yH.faceLayer,yH["glow--".concat(void 0===b?"sm":b)]),style:{borderRadius:w}}),(0,v.jsx)("div",{className:S()(yH.edgeLayer,yH["shadow--".concat(void 0===y?"md":y)]),style:{borderRadius:w}}),(0,v.jsx)("div",{className:yH.content,children:o})]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))]})},yX={success:{icon:iv,defaultEyebrow:"Succ\xe8s",colorToken:"success"},error:{icon:sm,defaultEyebrow:"Erreur",colorToken:"error"},warning:{icon:su,defaultEyebrow:"Avertissement",colorToken:"warning"},"warning-alt":{icon:su,defaultEyebrow:"Avertissement",colorToken:"warning"},info:{icon:iI,defaultEyebrow:"Information",colorToken:"info"},"info-square":{icon:i_,defaultEyebrow:"Information",colorToken:"info"}};let yZ={wrapper:"ignQiomtgNS7jbbvvsbc-Q==",card:"_5q8G4Vn5ZDCv2FiBCFTqUA==","card--success":"z4IrtTzP7aIoaFlztnw8bQ==","card--error":"bGCX1fmv5mrnbrz9BHyTEA==","card--warning":"_2lDb1NDFqCUwGWBqj8Tgqw==","card--info":"+GDp3HpRlxunEJzZFZQZgg==",body:"UOqbnZ919uIuEGAPxSXJIQ==",icon:"IETMGW47EVpRbNqOOnYhAw==",textArea:"mncyHBy-u1uqJfACkBjSWg==",eyebrow:"Pi2H8-SIJv5xD6MVNCL1IA==",title:"_3Di2cV+4H4KQHMz3ysqrYw==",description:"ebiDRCQuN+3Oy3HHjtGE6w==",closeButton:"OF3q37FROPdOJVkhRDnQrA==",actionsRow:"iSkGpQDQEQ84Qb2TBB-fUw==",actionButton:"lGbxmFRnC9Tc3nhdvJyHqw==","actionButton--primary":"+P-xaceN38ARSbO2WHnw4A==","actionButton--secondary":"rYoizhQ3M+F7PFrIuyv-SA==","actionButton--danger":"_5ZXorKAn6TkuxfLvrdGTYw==",progressTrack:"_0dM7LttUAEmFiok6mf7jLQ==",progressFill:"_0RSHVmBFM05OaxEVxMaWoQ=="};var yQ=function(e){var t=e.colorVar,r=e.mode,n=e.durationMs,a=e.value;return(0,v.jsx)("div",{className:yZ.progressTrack,children:"countdown"===r?(0,v.jsx)(mz.div,{className:yZ.progressFill,style:{background:t},initial:{width:"100%"},animate:{width:"0%"},transition:{duration:(null!=n?n:4e3)/1e3,ease:"linear"}}):(0,v.jsx)(mz.div,{className:yZ.progressFill,style:{background:t},initial:!1,animate:{width:"".concat(Math.max(0,Math.min(100,null!=a?a:0)),"%")},transition:{duration:.3,ease:"easeOut"}})})},yJ=function(e){var t,r=e.toast,n=e.closeToast,a=r.description,o=r.kind,i=r.critical,s=r.title,l=r.actionButtonLabel,u=r.onActionButtonClick,c=r.variant,d=void 0===c?"default":c,f=r.eyebrow,p=r.progress,m=r.actions,h=r.duration;r.toastKey;var y=yX[void 0===o?"info":o],b=y.icon,x="var(--colors-".concat(y.colorToken,"-500)"),w=(0,g.useMemo)(function(){return(null==m?void 0:m.length)?m:l&&u?[{label:l,onClick:u,kind:"primary"}]:[]},[m,l,u]),j=(0,g.useCallback)(function(e){e.onClick(),!1!==e.closeOnClick&&n()},[n]),O=null!=h?h:"default"===d&&0===w.length?4e3:void 0;(0,g.useEffect)(function(){if("transfer"===d){if((null!=p?p:0)>=100){var e=setTimeout(n,1200);return function(){return clearTimeout(e)}}return}if(O){var t=setTimeout(n,O);return function(){return clearTimeout(t)}}},[d,p,O,n]);var k=null!=f?f:y.defaultEyebrow,E=(null!=(t=Error)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](a):a instanceof t)?a.message:a;return(0,v.jsx)(mz.div,{initial:{opacity:0,y:30,scale:.9,filter:"blur(4px)"},animate:{opacity:1,y:0,scale:1,filter:"blur(0px)"},exit:{opacity:0,y:-15,scale:.95,filter:"blur(2px)",transition:{duration:.18}},layout:!0,className:yZ.wrapper,children:(0,v.jsxs)(yY,{blurIntensity:"xl",glowIntensity:i?"lg":"sm",shadowIntensity:"md",borderRadius:"var(--border-radius-lg)",className:S()(yZ.card,yZ["card--".concat(y.colorToken)]),children:[(0,v.jsxs)("div",{className:yZ.body,children:[(0,v.jsx)(b,{className:yZ.icon,size:20}),(0,v.jsxs)("div",{className:yZ.textArea,children:[(0,v.jsx)("span",{className:yZ.eyebrow,children:k}),s&&(0,v.jsx)("p",{className:yZ.title,children:s}),(0,v.jsx)("div",{className:yZ.description,children:E})]}),(0,v.jsx)("button",{type:"button",onClick:n,className:yZ.closeButton,"aria-label":"Fermer",children:(0,v.jsx)(iO,{size:14})})]}),w.length>0&&(0,v.jsx)("div",{className:yZ.actionsRow,children:w.map(function(e,t){var r,n;return(0,v.jsx)("button",{type:"button",className:S()(yZ.actionButton,yZ["actionButton--".concat(null!=(r=e.kind)?r:"primary")]),onClick:function(){return j(e)},children:e.label},null!=(n=e.id)?n:t)})}),"transfer"===d?(0,v.jsx)(yQ,{colorVar:x,mode:"progress",value:p}):O&&(0,v.jsx)(yQ,{colorVar:x,mode:"countdown",durationMs:O})]})})};function y0(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y1(e,t){if(e){if("string"==typeof e)return y0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y0(e,t)}}let y2=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||y1(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=n[0],o=n[1],i=(0,g.useCallback)(function(e){o(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,g.useEffect)(function(){var e=r.subscribe(function(e){return o(function(t){var r;return((function(e){if(Array.isArray(e))return y0(e)})(r=t.filter(function(t){return e.toastKey?t.toastKey!==e.toastKey:t.description!==e.description||t.kind!==e.kind||t.title!==e.title||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||y1(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[r]),(0,v.jsx)(v.Fragment,{children:a.map(function(e){var t;return(0,v.jsx)(yJ,{toast:e,closeToast:function(){return i(e)}},null!=(t=e.toastKey)?t:e.id)})})};var y3=new hs.Subject,y4=0;function y5(e){e&&(0,hP.createRoot)(e).render((0,v.jsx)(y2,{subject:y3}))}function y6(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"&&!hE(t))?setTimeout(function(){var t,r;y3.next((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={id:y4++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))},0):console.error("showToast must be called with an object having a 'description' property that is a non-empty string or object")}var y8=r(7774);function y9(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y7(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function ve(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function vt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return!0;var r=vi[e];return!r||!r()}function vr(e,t){var r,n=null==(r=vm.getState())?void 0:r.workspaceGroup,a=null==n?void 0:n.name;a&&e===a&&vg(function(){var r=vO(e);r&&(r.setState({},!0),r.subscribe(function(){})()),"function"==typeof(null==n?void 0:n.cleanup)&&n.cleanup(),vm.setState(function(e){return ve(y7({},e),{workspaceGroup:void 0})}),"function"==typeof t&&t()},a?function(e){return e.currentWorkspaceGroup===a}:function(){return!0})}function vn(e,t){var r,n=t.name,a=t.additionalProps;(0,m1.Xb)(n);var o=function(){vd(e.name,{ignoreChanges:!0,onWorkspaceClose:function(){return va(n,a)},closeWorkspaceGroup:!1})};vt(e.name)?o():vx("closing-workspace-launching-new-workspace",o,null!=(r=e.title)?r:e.name)}function va(e,t){var r,n,a=(0,m1.Xb)(e),o=vm.getState().workspaceGroup;if(o&&!(null==(r=o.members)?void 0:r.includes(e)))return void vr(o.name,function(){va(e,t)});var i=null==(n=vm.getState().workspaceGroup)?void 0:n.name,s=ve(y7({},a),{title:vw(a,t),closeWorkspace:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return vd(e,t)},closeWorkspaceWithSavedChanges:function(t){return vd(e,y7({ignoreChanges:!0},t))},promptBeforeClosing:function(t){var r,n;return r=e,n=t,void(vi[r]=n)},setTitle:function(t,r){s.title=t,s.titleNode=r,vm.setState(function(t){var r=t.openWorkspaces.map(function(t){return t.name===e?s:t});return ve(y7({},t),{openWorkspaces:r})})},currentWorkspaceGroup:i,additionalProps:null!=t?t:{}});function l(e,t){vm.setState(function(r){var n,a=[e].concat(function(e){if(Array.isArray(e))return y9(e)}(n=null!=t?t:r.openWorkspaces)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e){if(e){if("string"==typeof e)return y9(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return y9(e,void 0)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=vv(e);return ve(y7({},r),{openWorkspaces:a,workspaceWindowState:o})})}i&&vO(i,t);var u=vm.getState().openWorkspaces,c=u.findIndex(function(t){return t.name===e}),d=u.find(function(e){return e.type==s.type});if(0===u.length)l(s);else if(u[0].canHide||0===c)if(c>=0){var f=u[c];l(y7(ve(y7({},f),{additionalProps:s.additionalProps}),f.title===vw(f,f.additionalProps)&&{title:vw(s,s.additionalProps)}),u.filter(function(t){return t.name!=e}))}else d?(l(d,vm.getState().openWorkspaces.filter(function(e){return e.type!=s.type})),vn(d,{name:e,additionalProps:t})):l(s);else vn(u[0],{name:e,additionalProps:t})}function vo(e){var t=e.targetUrl,r=e.contextKey,n=e.workspaceName,a=e.additionalProps;vf(r),va(n,a),(0,y8.oo)({to:t})}var vi={};function vs(e,t){vi[e]=t}function vl(e){return vi[e]}function vu(){var e=vm.getState();vm.setState(ve(y7({},e),{prompt:null}))}var vc={ignoreChanges:!1,onWorkspaceClose:function(){},closeWorkspaceGroup:!0};function vd(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=y7({},vc,r);var n=function(){var t,n,a=vm.getState();a.openWorkspaces.find(function(t){return t.name===e});var o=a.openWorkspaces.filter(function(t){return t.name!=e}),i=null==(t=vm.getState().workspaceGroup)?void 0:t.name;i&&r.closeWorkspaceGroup&&vr(i),vi[e]=function(){return!1},vm.setState(function(e){return ve(y7({},e),{prompt:null,openWorkspaces:o,workspaceWindowState:vv(null==o?void 0:o[0])})}),null==r||null==(n=r.onWorkspaceClose)||n.call(r)};return vt(e,null==r?void 0:r.ignoreChanges)?(n(),!0):(vx("closing-workspace",n,null!=(t=(0,m1.Xb)(e).title)?t:e),!1)}function vf(e){vm.getState().context!=e&&vm.setState({context:e,openWorkspaces:[],prompt:null})}var vp={context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0},vm=(0,m0.createGlobalStore)("workspace",vp);function vh(){return vm}function vy(e){var t=vm.getState();vm.setState(ve(y7({},t),{workspaceWindowState:e}))}function vv(e){var t;return null!=(t=null==e?void 0:e.preferredWindowSize)?t:"normal"}function vg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},r=vm.getState().openWorkspaces.filter(t).every(function(e){return vt(e.name)}),n=function(){vj(),null==e||e()};r?n():vx("closing-all-workspaces",n)}function vb(){var e=(0,x.useStore)(vm),t=e.workspaceWindowState,r=e.openWorkspaces,n=e.prompt,a=e.workspaceGroup;return(0,g.useMemo)(function(){return{active:r.length>0,prompt:n,workspaceWindowState:t,workspaces:r,workspaceGroup:a}},[r,t,n,a])}function vx(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";switch(e){case"closing-workspace":t={title:(0,V.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,V.V)("unsavedChangesInOpenedWorkspace","You may have unsaved changes in the opened workspace. Do you want to discard these changes?"),onConfirm:function(){null==r||r()},confirmText:(0,V.V)("discard","Discard")};break;case"closing-all-workspaces":var a=vm.getState().openWorkspaces.filter(function(e){return!vt(e.name)}).map(function(e,t){var r=e.title;return"".concat(t+1,". ").concat(r)});t={title:(0,V.V)("closingAllWorkspacesPromptTitle","You have unsaved changes"),body:(0,V.V)("closingAllWorkspacesPromptBody","There may be unsaved changes in the following workspaces. Do you want to discard changes in the following workspaces? {{workspaceNames}}",{workspaceNames:a.join(",")}),onConfirm:function(){null==r||r()},confirmText:(0,V.V)("closeAllOpenedWorkspaces","Discard changes in {{count}} workspaces",{count:a.length})};break;case"closing-workspace-launching-new-workspace":t={title:(0,V.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,V.V)("unsavedChangesInWorkspace",'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',{workspaceName:n}),onConfirm:function(){vm.setState(function(e){return ve(y7({},e),{prompt:null})}),null==r||r()},confirmText:(0,V.V)("openAnyway","Open anyway")};break;default:console.error('Workspace system trying to open unknown prompt type "'.concat(e,'" in function "showWorkspacePrompts"')),null==r||r();return}vm.setState(function(e){return ve(y7({},e),{prompt:t})})}function vw(e,t){var r;return null!=(r=null==t?void 0:t.workspaceTitle)?r:e.title}function vj(){vm.setState(vp)}function vO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&"default"!==e){var r=(0,m0.getGlobalStore)(e,{});return t&&r.setState(function(e){return y7({},e,t)}),r}}let vS="_7StGWy3N5f5i7jpO7yIu6g==",vk="b+MEwp+WNcsDW9H35oDNVg==",vE="_68yuYMLA0bmANwyOJ7AoUA==";function vP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vA(e){var t=e.getIcon,r=e.formOpenInTheBackground,n=e.tagContent;return(0,v.jsxs)(v.Fragment,{children:[t({size:16}),r?(0,v.jsx)("span",{className:"UObaJ2ypIZBkpb6ieTrGKg==",children:"!"}):(0,v.jsx)("span",{className:"Sdxo-8meH3FOAxP6q35qwg==",children:n})]})}var vD=function(e){var t,r=e.getIcon,n=e.label,a=e.iconDescription,o=e.handler,i=e.type,s=e.tagContent,l=(0,x.useLayoutType)(),u=vb(),c=u.workspaces,d=u.workspaceWindowState,f=null!=(t=null==c?void 0:c.findIndex(function(e){return e.type===i}))?t:-1,p="hidden"!==d&&0===f,m=f>0||0===f&&"hidden"===d;return"tablet"===l||"phone"===l?(0,v.jsxs)(z.$n,{className:S()(vS,vP({},vE,p)),variant:"ghost",onClick:o,role:"button",tabIndex:0,children:[(0,v.jsx)("span",{className:vk,children:(0,v.jsx)(vA,{formOpenInTheBackground:m,getIcon:r,tagContent:s})}),(0,v.jsx)("span",{children:n})]}):(0,v.jsx)(z.K0,{"aria-label":a,className:S()(vS,vP({},vE,p)),tooltipSide:"left",label:n,onClick:o,icon:(0,v.jsx)("div",{className:vk,children:(0,v.jsx)(vA,{formOpenInTheBackground:m,getIcon:r,tagContent:s})})})};function vC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vT(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vN(e){var t,r,n=e.isWithinWorkspace,a=e.name,o=e.actionMenuProps,i=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return vC(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return vC(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=i[0],l=i[1],u=(0,g.useRef)(window.innerHeight),c=(0,g.useContext)(x.ComponentContext).featureName,d=(0,x.useLayoutType)();return(0,g.useEffect)(function(){var e=function(){l(!(0,x.isDesktop)(d)&&u.current>window.innerHeight),u.current!=window.innerHeight&&(u.current=window.innerHeight)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[u]),(0,v.jsx)("aside",{className:S()("uL7KmSdUiYCOmuH9esA5eg==",(vT(r={},"SkkRiDqIS88jXmEj6DobJg==",n),vT(r,"Pds0Ed+BSWUqwGwtGD0uoQ==",s),vT(r,"-zpefiU1E0pIMPJlCXtN4Q==",!s),r)),children:(0,v.jsx)("div",{className:"_6Sao440QO1zaPGyiHkMkpw==",children:(0,v.jsx)(x.ExtensionSlot,{className:"KJYaqpDN0P77v7LSctM26Q==",name:"action-menu-".concat(a&&"default"!=a?a:c,"-items-slot"),state:void 0===o?{}:o})})})}var vR=r(3511),vM=(0,ya.A)("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]),vI=(0,ya.A)("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]),v_=(0,ya.A)("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]),vL=r(2768),vF=/[\\^$.*+?()[\]{}|]/g,vB=RegExp(vF.source);let vV=function(e){return(e=(0,vL.A)(e))&&vB.test(e)?e.replace(vF,"\\$&"):e};function vz(e){var t,r,n=e.contextKey,a=vb().prompt;return(0,g.useEffect)(function(){new RegExp("/".concat(vV(n),"(/|$)")).test(window.location.pathname)||console.warn('WorkspaceContainer has provided an invalid context key: "'.concat(n,'". The context key must be part of the URL path, with no initial or trailing slash.'))},[]),(0,g.useEffect)(function(){return vf(n),function(){vf(null)}},[n]),(0,g.useEffect)(function(){var e=function(e){var t=e.detail,r=t.cancelNavigation,a=t.newUrl,o=new RegExp("/".concat(vV(n),"(/|$)")),i=new URL(a),s=o.test(i.pathname),l=vm.getState().openWorkspaces.every(function(e){return vt(e.name)});s||(l?vj():(null==r||r(),vg(function(){(0,y8.oo)({to:a})})))};return window.addEventListener("single-spa:before-routing-event",e),function(){window.removeEventListener("single-spa:before-routing-event",e)}},[]),null!=a?(0,v.jsx)(z.lG,{open:!0,onOpenChange:function(e){return!e&&vu()},children:(0,v.jsxs)(z.Cf,{showCloseButton:!1,children:[(0,v.jsxs)(z.c7,{children:[(0,v.jsx)(z.L3,{children:a.title}),(0,v.jsx)(z.rr,{className:"text-sm font-semibold text-foreground",children:a.body})]}),(0,v.jsxs)(z.Es,{children:[(0,v.jsx)(z.$n,{variant:"secondary",onClick:vu,children:null!=(t=a.cancelText)?t:(0,V.V)("cancel")}),(0,v.jsx)(z.$n,{variant:"destructive",onClick:a.onConfirm,children:null!=(r=a.confirmText)?r:(0,V.V)("confirm")})]})]})}):null}var vW=r(2879);function vU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v$(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vU(Object(r),!0).forEach(function(t){vK(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vU(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function vH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vK(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vG(e){return(vG=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vq(e,t){return(vq=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vY(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var vX=function(e){var t=g.Component;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),t&&vq(i,t);var r,n,a,o=(r=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=vG(i);e=r?Reflect.construct(t,arguments,vG(this).constructor):t.apply(this,arguments);if(e&&("object"==(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return vY(this)});function i(e){var t;if(function(e,t){if(null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!t[Symbol.hasInstance](e):!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),vK(vY(t=o.call(this,e)),"handleRef",function(e){t.el=e}),vK(vY(t),"addThingToDo",function(e,r){t.state.hasError&&"unmount"!==e||(t.nextThingToDo=(t.nextThingToDo||Promise.resolve()).then(function(){if(!t.unmounted||"unmount"===e)return r.apply(void 0,arguments)}).catch(function(r){throw t.nextThingToDo=Promise.resolve(),t.setState({hasError:!0}),r&&r.message&&(r.message="During '".concat(e,"', parcel threw an error: ").concat(r.message)),t.props.handleError?t.props.handleError(r):setTimeout(function(){throw r}),r}))}),vK(vY(t),"getParcelProps",function(){var e=v$(v$({},t.props),{},{domElement:t.el});return delete e.mountParcel,delete e.config,delete e.wrapWith,delete e.wrapStyle,delete e.appendTo,delete e.handleError,delete e.parcelDidMount,e}),t.state={hasError:!1},!e.config)throw Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return t}return n=[{key:"componentDidMount",value:function(){var e=this;this.unmounted=!1,this.addThingToDo("mount",function(){var t,r=e.props.mountParcel||e.mountParcel;if(!r)throw Error("\n <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop \n ");return e.el?t=e.el:(e.createdDomElement=t=document.createElement(e.props.wrapWith),Object.keys(e.props.wrapStyle).forEach(function(r){t.style[r]=e.props.wrapStyle[r]}),e.props.appendTo.appendChild(t)),e.parcel=r(e.props.config,v$({domElement:t},e.getParcelProps())),e.parcel.mountPromise.then(e.props.parcelDidMount),e.parcel.mountPromise})}},{key:"componentDidUpdate",value:function(){var e=this;this.addThingToDo("update",function(){if(e.parcel&&e.parcel.update)return e.parcel.update(e.getParcelProps())})}},{key:"componentWillUnmount",value:function(){var e=this;this.addThingToDo("unmount",function(){if(e.parcel&&"MOUNTED"===e.parcel.getStatus())return e.parcel.unmount()}),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var e=this;if(this.props.appendTo)return vW.i&&vW.i.Consumer?g.createElement(vW.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):null;var t=vW.i&&vW.i.Consumer?g.createElement(vW.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):void 0;return g.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},t)}}],vH(i.prototype,n),a&&vH(i,a),i}();vK(vX,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}});function vZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vZ(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vZ(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function v0(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function v1(e){var t,r,n,a,o,i,s,l,u=e.workspace,c=e.additionalPropsFromPage,d=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)())||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return vJ(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return vJ(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),f=d[0],p=d[1],m=(r=u.currentWorkspaceGroup,a=(n=vQ((0,g.useState)({}),2))[0],o=n[1],s=(i=vQ((0,g.useState)(r),2))[0],l=i[1],(0,g.useEffect)(function(){s!==r&&l(r)},[r]),(0,g.useEffect)(function(){var e,t=vO(s);return t&&(o(t.getState()),e=t.subscribe(o)),function(){t&&(null==e||e())}},[s]),a);(0,g.useEffect)(function(){var e=!0;return u.load().then(function(t){e&&p(t)}),function(){e=!1}},[u]);var h=(0,g.useMemo)(function(){return u&&v0({closeWorkspace:u.closeWorkspace,closeWorkspaceWithSavedChanges:u.closeWorkspaceWithSavedChanges,promptBeforeClosing:u.promptBeforeClosing,setTitle:u.setTitle},c,m,u.additionalProps)},[u,c,m]);return f?(0,v.jsx)(vX,v0({config:f,mountParcel:mJ.mountRootParcel},h),u.name):(0,v.jsx)(z.Ou,{className:"_5-K99Z57rmAplSw63E3sFA==",description:"".concat((0,V.V)("loading","Loading")," ...")})}function v2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v3(e){var t,r,n,a=e.contextKey,o=e.overlay,i=e.showSiderailAndBottomNav,s=e.additionalWorkspaceProps,l=e.actionMenuProps,u=(0,x.useLayoutType)(),c=vb(),d=c.workspaces,f=c.workspaceWindowState,p=c.workspaceGroup,m=null==p?void 0:p.name,h=d[0],y="hidden"===f||null==h,b=null!=(t=null==h?void 0:h.width)?t:o?"wider":"narrow",w=(0,g.useMemo)(function(){return i||m&&!y},[m,y,i]);return(0,x.useBodyScrollLock)(!y&&!(0,x.isDesktop)(u)),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{className:i?"_7sGa-EsounXZYrjH1LvhxA==":"yEXhNSHd7gMVIhwzx4saBg==",children:[(0,v.jsx)("aside",{className:S()(o?"f8+uxrl+Z--mzp9Sr-vLqA==":"smINkGwmK8NixRDyPhSuqA==",(v2(r={},"V1VIoUnGQaAnlbpMizrWMw==",y),v2(r,"_6WIdFgnEAVkrZp0rvSZmzg==","narrow"===b),v2(r,"RuuhavUwE2m5iShqBCophw==","wider"===b),v2(r,"iDzep-m3rE8wYMVi7d5QEQ==","extra-wide"===b),r)),children:(0,v.jsx)("div",{className:S()("xZ5hRoBAF-UBwODdP9FkEw==",(v2(n={},"kNWfvLvNjy572Rz0AMaDCw==","maximized"===f),v2(n,"awvnOJtfvMzZNUZF-nLB0w==",y),n)),children:d.map(function(e,t){return(0,v.jsx)("div",{className:S()("tBhwyjNkzh4EzBKDhFlUiw==",v2({},"PSyEjtxYG3HouKLc5zofpQ==",0!==t)),children:(0,v.jsx)(g.Suspense,{fallback:null,children:(0,v.jsx)(vR.I18nextProvider,{i18n:window.i18next,defaultNS:e.moduleName,children:(0,v.jsx)(v4,{workspaceInstance:e,additionalWorkspaceProps:s})})})},"workspace-container-".concat(e?e.name:"empty-".concat(t)))})})}),(0,v.jsx)(vz,{contextKey:a})]}),w&&(0,v.jsx)(vN,{name:m,isWithinWorkspace:!i,actionMenuProps:l})]})}function v4(e){var t,r=e.workspaceInstance,n=e.additionalWorkspaceProps,a=(0,vR.useTranslation)().t,o=(0,x.useLayoutType)(),i=vb(),s=i.workspaceWindowState,l=i.workspaceGroup,u=null==l?void 0:l.name,c="maximized"===s;(0,g.useEffect)(function(){var e=a(r.title);e!==r.title&&r.setTitle(e)},[r.title,a,r.setTitle]);var d=(0,g.useContext)(x.ComponentContext).featureName,f=(0,g.useCallback)(function(){vy(c?"normal":"maximized")},[c]),p=(0,g.useMemo)(function(){return null!=r?r:{}},[r]),m=p.canHide,h=void 0!==m&&m,y=p.canMaximize,b=p.currentWorkspaceGroup,w=p.closeWorkspace,j=(0,g.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){v2(e,t,r[t])})}return e}({},n,null==r?void 0:r.additionalProps)},[n,r]);return r&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(z.jJ,{"aria-label":(0,V.V)("workspaceHeader","Workspace Header"),className:"vpI6OSow7gjTjzbbscna+Q==",children:[!(0,x.isDesktop)(o)&&!h&&(0,v.jsx)(z.tD,{"aria-label":(0,V.V)("close","Close"),onClick:function(){return w()},children:(0,v.jsx)(io,{})}),(0,v.jsx)(z.ul,{children:null!=(t=r.titleNode)?t:a(r.title)}),(0,v.jsx)("div",{className:"mC+q825YZ637TRsst-AM0Q=="}),(0,v.jsxs)(z.ci,{className:"UdI9QChyuGxbzAVXE9Zvpg==",children:[(0,v.jsx)(x.ExtensionSlot,{name:"workspace-header-group-".concat(r.currentWorkspaceGroup,"-slot"),state:j}),(0,v.jsx)(x.ExtensionSlot,{name:"workspace-header-type-".concat(r.type,"-slot"),state:j}),(0,v.jsx)(x.ExtensionSlot,{name:"workspace-header-".concat(d,"-slot"),state:j}),(0,x.isDesktop)(o)&&(0,v.jsxs)(v.Fragment,{children:[(void 0!==y&&y||c)&&(0,v.jsx)(z.tD,{"aria-label":c?(0,V.V)("minimize","Minimize"):(0,V.V)("maximize","Maximize"),onClick:f,children:c?(0,v.jsx)(vM,{}):(0,v.jsx)(vI,{})}),h&&!u?(0,v.jsx)(z.tD,{"aria-label":(0,V.V)("hide","Hide"),onClick:function(){return vy("hidden")},children:(0,v.jsx)(ii,{})}):(0,v.jsx)(z.tD,{"aria-label":(0,V.V)("close","Close"),onClick:function(){return null==w?void 0:w()},children:(0,v.jsx)(iO,{})})]}),"tablet"===o&&h&&(0,v.jsx)(z.tD,{"aria-label":(0,V.V)("close","Close"),onClick:function(){return null==w?void 0:w()},children:(0,v.jsx)(v_,{})})]})]}),(0,v.jsx)("div",{className:S()("IndBGWv0XMsmQXrXoJVfJQ==",v2({},"INGjX5x22G6-CtWL6eWbhg==",!!(void 0===b?"":b))),children:(0,v.jsx)(v1,{workspace:r,additionalPropsFromPage:n},r.name)})]})}var v5=r(1400),v6=r(8254);function v8(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function v9(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function v7(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(e){v9(o,n,a,i,s,"next",e)}function s(e){v9(o,n,a,i,s,"throw",e)}i(void 0)})}}function ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function gt(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function gr(e){return function(e){if(Array.isArray(e))return v8(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return v8(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v8(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gn(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function ga(e,t){return v7(function(){var r;return gn(this,function(n){switch(n.label){case 0:if(!(r=m1.J_.getState().openedGroup))return[3,3];if(!(r.groupName!==e||!gs(r.props,t)))return[3,2];return[4,gl({reason:"CLOSE_WORKSPACE_GROUP",explicit:!1})];case 1:if(!n.sent())return[2,!1];return[3,3];case 2:return[2,!0];case 3:return m1.J_.setState(function(r){return gt(ge({},r),{openedGroup:{groupName:e,props:t},openedWindows:[]})}),[2,!0]}})})()}function go(e){return v7(function(){var t,r,n,a;return gn(this,function(o){switch(o.label){case 0:if(r=(t=m1.J_.getState()).openedGroup,n=t.openedWindows,!r)return[3,4];if(!(n.length>0))return[3,3];if(a=e)return[3,2];return[4,gl({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})];case 1:a=o.sent(),o.label=2;case 2:if(!a)return[2,!1];o.label=3;case 3:return m1.J_.setState(function(e){return gt(ge({},e),{openedGroup:null,openedWindows:[]})}),[2,!0];case 4:return[2,!0]}})})()}function gi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return v7(function(){var a,o,i,s,l,u,c,d,f,p,m,h,y,v,g,b,x,w,j,O,S,k;return gn(this,function(E){switch(E.label){case 0:if(!(a=m1.J_.getState()).registeredWorkspacesByName[e])throw Error("Unable to launch workspace ".concat(e,". Workspace is not registered"));if(!(o=(0,m1.Ml)(e)))throw Error("Unable to launch workspace ".concat(e,". Workspace is not registered to a workspace window"));if(i=a.openedGroup,s=o.name,!(l=(0,m1.o1)(s)))throw Error("Unable to launch workspace ".concat(e,". Workspace window ").concat(o.name," is not registered to a workspace group"));if(c=(u=(0,m1.YX)(e))>=0,!(i&&(i.groupName!==l.name||!gs(i.props,n))))return[3,2];return[4,gl({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})];case 1:if(E.sent())return m1.J_.setState(gt(ge({},a),{openedGroup:{groupName:l.name,props:n},openedWindows:[{windowName:s,openedWorkspaces:[gp(e,t)],props:r,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 2:if(!c)return[3,9];if(p=a.openedWindows[u],m=null!=(d=null==(f=a.openedGroup)?void 0:f.props)?d:{},h=a.isMostRecentlyOpenedWindowHidden,y=p.openedWorkspaces,!gs(p.props,r))return[3,6];if(!((v=y.find(function(t){return t.workspaceName===e}))&&gs(v.props,t)))return[3,3];return(h||u!==a.openedWindows.length-1)&&m1.J_.setState(gu.restoreWindow(a,s)),[2,!0];case 3:return[4,gl({reason:"CLOSE_WORKSPACE",explicit:!1,windowName:s,workspaceName:e})];case 4:if(E.sent())return m1.J_.setState(gt(ge({},a),{openedGroup:{groupName:l.name,props:null!=(g=null==a||null==(x=a.openedGroup)?void 0:x.props)?g:m},openedWindows:gr(a.openedWindows.filter(function(e,t){return t!==u})).concat([{windowName:s,openedWorkspaces:[gp(e,t)],props:null!=(b=null==p?void 0:p.props)?b:r,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 5:return[3,8];case 6:return[4,gl({reason:"CLOSE_WINDOW",explicit:!1,windowName:s})];case 7:if(E.sent())return m1.J_.setState(gt(ge({},a),{openedGroup:{groupName:l.name,props:null!=m?m:null==a||null==(w=a.openedGroup)?void 0:w.props},openedWindows:gr(a.openedWindows.filter(function(e,t){return t!==u})).concat([{windowName:s,openedWorkspaces:[gp(e,t)],props:r,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 8:return[3,12];case 9:if("closable"!=l.persistence)return[3,11];return[4,gl({reason:"CLOSE_OTHER_WINDOWS",explicit:!1,windowNameToSpare:o.name})];case 10:if(E.sent())return m1.J_.setState(gt(ge({},a),{openedGroup:{groupName:l.name,props:null!=(j=null!=n?n:null==a||null==(O=a.openedGroup)?void 0:O.props)?j:null},openedWindows:[{windowName:s,openedWorkspaces:[gp(e,t)],props:r,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 11:return m1.J_.setState(gt(ge({},a),{openedGroup:{groupName:l.name,props:null!=(S=null!=n?n:null==a||null==(k=a.openedGroup)?void 0:k.props)?S:null},openedWindows:gr(a.openedWindows).concat([{windowName:s,openedWorkspaces:[gp(e,t)],props:r,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];case 12:return[2]}})})()}function gs(e,t){return null==e||null==t||(0,v6.b)(e,t)}function gl(e){function t(e,t){for(var r=[],n=e.openedWorkspaces.length-1;n>=0;n--){var a=e.openedWorkspaces[n];if(a.hasUnsavedChanges&&r.push(a),t&&a.workspaceName===t)break}return r}var r=m1.J_.getState(),n=r.openedWindows,a=r.workspaceTitleByWorkspaceName,o=[];switch(e.reason){case"CLOSE_WORKSPACE_GROUP":o=n.flatMap(function(e){return t(e)});break;case"CLOSE_WINDOW":var i=n.find(function(t){return t.windowName===e.windowName});if(!i)throw Error("Window ".concat(e.windowName," not found in opened windows."));o=t(i);break;case"CLOSE_WORKSPACE":var s=n.find(function(t){return t.windowName===e.windowName});if(!s)throw Error("Window ".concat(e.windowName," not found in opened windows."));o=t(s,e.workspaceName);break;case"CLOSE_OTHER_WINDOWS":o=n.filter(function(t){return t.windowName!==e.windowNameToSpare}).flatMap(function(e){return t(e)})}return 0===o.length?Promise.resolve(!0):new Promise(function(e){var t=hi("workspace2-close-prompt",{onConfirm:function(){t(),e(!0)},onCancel:function(){t(),e(!1)},affectedWorkspaceTitles:o.map(function(e){return a[e.workspaceName]})})})}var gu={setWindowMaximized:function(e,t,r){var n=e.openedWindows.findIndex(function(e){return e.windowName===t}),a=gr(e.openedWindows),o=gt(ge({},a[n]),{maximized:r});return a[n]=o,gt(ge({},e),{openedWindows:a})},hideWindow:function(e){return gt(ge({},e),{isMostRecentlyOpenedWindowHidden:!0})},restoreWindow:function(e,t){var r=e.openedWindows.findIndex(function(e){return e.windowName===t}),n=e.openedWindows[r],a=gr(e.openedWindows.filter(function(e,t){return t!==r})).concat([n]);return gt(ge({},e),{openedWindows:a,isMostRecentlyOpenedWindowHidden:!1})},closeWorkspace:function(e,t){var r=(0,m1.YX)(t);if(r<0)return e;var n=ge({},e.openedWindows[r]),a=n.openedWorkspaces.findIndex(function(e){return e.workspaceName===t}),o=gr(e.openedWindows);n.openedWorkspaces=n.openedWorkspaces.slice(0,a);var i=e.isMostRecentlyOpenedWindowHidden;if(0===n.openedWorkspaces.length){var s=r===e.openedWindows.length-1;o.splice(r,1),s&&o.length>0&&(i=!1)}else o[r]=n;return gt(ge({},e),{openedWindows:o,isMostRecentlyOpenedWindowHidden:i})},openChildWorkspace:function(e,t,r,n){var a=e.registeredWorkspacesByName[r];if(!a)throw Error('No workspace named "'.concat(r,'" registered'));var o=e.registeredWorkspacesByName[t];if(!o)throw Error('No workspace named "'.concat(t,'" registered'));if(o.window!==a.window)throw Error("Child workspace ".concat(r," does not belong to the same workspace window as parent workspace ").concat(t));var i=e.openedWindows.findIndex(function(e){return e.windowName===a.window});if(-1==i)throw Error("Cannot open child workspace ".concat(r," as window ").concat(a.window," is not opened"));var s=e.openedWindows[i].openedWorkspaces,l=s.findIndex(function(e){return e.workspaceName===t});if(-1===l)throw Error("Cannot open child workspace ".concat(r," from parent workspace ").concat(t," as the parent is not opened within the workspace window"));var u=s.slice(0,l+1);return{openedWindows:e.openedWindows.map(function(e,t){return t==i?gt(ge({},e),{openedWorkspaces:gr(u).concat([gp(r,n)])}):e})}},setHasUnsavedChanges:function(e,t,r){var n=(0,m1.YX)(t);if(n<0)return e;var a=ge({},e.openedWindows[n]),o=a.openedWorkspaces.findIndex(function(e){return e.workspaceName===t});if(o<0)return e;a.openedWorkspaces[o]=gt(ge({},a.openedWorkspaces[o]),{hasUnsavedChanges:r});var i=gr(e.openedWindows);return i[n]=a,gt(ge({},e),{openedWindows:i})},setWorkspaceTitle:function(e,t,r){var n=ge({},e.workspaceTitleByWorkspaceName);return null===r?delete n[t]:n[t]=r,gt(ge({},e),{workspaceTitleByWorkspaceName:n})}};function gc(){return(0,x.useStoreWithActions)(m1.J_,gu)}var gd=function(){return(0,g.useContext)(vW.i)},gf=function(){return Object.keys(m1.J_.getState().registeredWorkspacesByName)};function gp(e,t){return{workspaceName:e,props:null!=t?t:{},hasUnsavedChanges:!1,uuid:(0,v5.A)()}}let gm={workspaceOuterContainer:"_8Ux5UoxXloTclIvl2atNVQ==",narrowWorkspace:"YTaErtOiYyTkVwRBUICjTg==",widerWorkspace:"LxJGJVlpOmmpFLr1ua8zCw==",extraWideWorkspace:"DVWN+9pag9-F+lkzbs13ew==",workspaceMiddleContainer:"V0oPTsItmkg6EQVj-up5PA==",maximized:"L2iAVySBIj04S11Gi0nqwQ==",hidden:"ukTDRUPT0d1mnf-5+NJr5g==",workspaceInnerContainer:"sBNknZXyiAHr4F30xqpsNA==",workspaceSpacer:"nqy2xFP2Ppa92YLJ7dbh7Q==",loader:"tdTQIjLepgEIKb8Pe2Fbng==",hiddenExtraWorkspace:"_4nveSM-CaCOcycv3VN6fpA==",header:"r2FxWB84dCtTNaKPlIvURQ==",headerButtons:"golPs2Alb1K-A0dUSNK7MQ==",workspaceContent:"GYY2Oap7kDfccPvdbJnMfQ==",overlayHeaderSpacer:"_653hfk0+MXGS0o+g+6WTaw==",isActionMenuOpened:"j4Vjd2+3JYMnL9iYN2lTAg==",showActionMenu:"+OF8CTA98QjTqcHYqOdDTw==",marginWorkspaceContent:"Gkoro2Q1pf9jXQ5cxhjZEg==",workspaceContainerWithActionMenu:"FAlT1ZGUWd+3mPPEcel6Jw==",workspaceFixedContainer:"udMDM9yr6T2bjtnLrrG4fw==",workspaceContainerWithoutActionMenu:"AR2+ClxrDGWjBqsegtMN5Q=="};function gh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gy=function(e){var t,r,n,a,o=e.title,i=e.children,s=e.hasUnsavedChanges,l=void 0!==s&&s,u=(0,x.useLayoutType)(),c=gc(),d=c.setWindowMaximized,f=c.hideWindow,p=c.setHasUnsavedChanges,m=c.openedWindows,h=c.openedGroup,y=c.registeredGroupsByName,b=c.registeredWindowsByName,w=c.registeredWorkspacesByName,j=c.workspaceTitleByWorkspaceName,O=c.setWorkspaceTitle,k=c.isMostRecentlyOpenedWindowHidden,E=gd(),P=E.workspaceName,A=E.isRootWorkspace,D=E.closeWorkspace,C=E.showActionMenu,T=(0,m1.YX)(P),N=m[T],R=null==N?void 0:N.openedWorkspaces.find(function(e){return e.workspaceName===P});if((0,g.useEffect)(function(){(null==R?void 0:R.hasUnsavedChanges)!=l&&p(P,null!=l&&l)},[null==R?void 0:R.hasUnsavedChanges,l,P,p]),(0,g.useEffect)(function(){j[P]!==o&&O(P,o)},[j,P,o,O]),T<0||null==h||null==R)return null;var M=y[h.groupName];if(!M)throw Error("Cannot find registered workspace group ".concat(h.groupName));var I=w[P].window,L=b[I];if(!L)throw Error("Cannot find registered workspace window ".concat(I));var F=L.icon,B=L.canMaximize,W="closable"===M.persistence,U=!!F&&!W,$=N.maximized,H=null!=(t=null==L?void 0:L.width)?t:"narrow",K=Object.values(b).some(function(e){return e.group===h.groupName&&void 0!==e.icon}),G=T<m.length-1||k;return(0,v.jsxs)("div",{className:S()(gm.workspaceOuterContainer,(gh(r={},gm.narrowWorkspace,"narrow"===H),gh(r,gm.widerWorkspace,"wider"===H),gh(r,gm.extraWideWorkspace,"extra-wide"===H),gh(r,gm.isActionMenuOpened,K),r)),children:[(0,v.jsx)("div",{className:S()(gm.workspaceSpacer,gh({},gm.hidden,G))}),(0,v.jsx)("div",{className:S()(gm.workspaceMiddleContainer,(gh(n={},gm.maximized,$),gh(n,gm.hidden,G),gh(n,gm.isRootWorkspace,A),gh(n,gm.showActionMenu,C),n)),children:(0,v.jsxs)("div",{className:S()(gm.workspaceInnerContainer,(gh(a={},gm.maximized,$),gh(a,gm.hidden,G),gh(a,gm.isRootWorkspace,A),a)),children:[(0,v.jsxs)(z.jJ,{"aria-label":(0,V.V)("workspaceHeader"),className:gm.header,children:[(0,v.jsx)(z.ul,{children:o}),(0,v.jsx)("div",{className:gm.overlayHeaderSpacer}),(0,v.jsx)(z.ci,{className:gm.headerButtons,children:(0,x.isDesktop)(u)?(0,v.jsxs)(v.Fragment,{children:[(B||$)&&(0,v.jsx)(z.tD,{"aria-label":$?(0,V.V)("minimize"):(0,V.V)("maximize"),onClick:function(){return d(I,!$)},children:$?(0,v.jsx)(vM,{}):(0,v.jsx)(vI,{})}),U&&(0,v.jsx)(z.tD,{"aria-label":(0,V.V)("hide"),onClick:function(){return f()},children:(0,v.jsx)(ii,{})}),!W&&(0,v.jsx)(z.tD,{"aria-label":(0,V.V)("close"),onClick:function(){return D({closeWindow:!0})},children:(0,v.jsx)(iO,{})})]}):(0,v.jsxs)(v.Fragment,{children:[U&&(0,v.jsx)(z.tD,{"aria-label":(0,V.V)("hide"),onClick:function(){return f()},children:(0,v.jsx)(v_,{})}),(0,v.jsx)(z.tD,{"aria-label":(0,V.V)("close"),onClick:function(){W?go():D({closeWindow:!0})},children:(0,v.jsx)(iO,{})})]})})]}),(0,v.jsx)("div",{className:S()(gm.workspaceContent),children:i})]})})]})};let gv="qqmzT31QIsSI+wV2XD8ZvQ==",gg="hNTbRRUHI63Xwi5s2L+Nwg==",gb="xQpVN+cyEtB1NEITUSyMjA==",gx="zgChpHyuVCB97kNP8OFlUQ==";function gw(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function gj(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gO(e){var t=e.getIcon,r=e.hasUnsavedChanges,n=e.tagContent;return(0,v.jsxs)(v.Fragment,{children:[t({size:16}),r?(0,v.jsx)("span",{className:"_5d1zFH1kAZ+WtuogIZyIog==",children:"!"}):(0,v.jsx)("span",{className:"JT35qWagVMKpeh2Ra9CU0w==",children:n})]})}var gS=function(e){var t,r,n,a=e.icon,o=e.label,i=e.tagContent,s=e.workspaceToLaunch,l=e.onBeforeWorkspaceLaunch,u=(0,x.useLayoutType)(),c=gc(),d=c.openedWindows,f=c.restoreWindow,p=c.hideWindow,m=c.isMostRecentlyOpenedWindowHidden,h=(0,g.useContext)(x.ComponentContext).extension,y=d.findIndex(function(e){return e.windowName===(null==h?void 0:h.extensionId)}),b=d[y],w=null!=b,j=w&&(y<d.length-1||m),O=w&&!j,k=null!=(t=null==b?void 0:b.openedWorkspaces.some(function(e){return e.hasUnsavedChanges}))&&t,E=function(){var e;return(e=function(){var e,t;return function(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(r){switch(r.label){case 0:if(!w)return[3,1];return j?f(b.windowName):p(),[3,3];case 1:return[4,null==(e=null==l?void 0:l())||e];case 2:r.sent()&&(t=s.workspaceName,gi(t,s.workspaceProps,s.windowProps)),r.label=3;case 3:return[2]}})},function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(e){gw(o,n,a,i,s,"next",e)}function s(e){gw(o,n,a,i,s,"throw",e)}i(void 0)})})()};return"tablet"===u||"phone"===u?(0,v.jsxs)(z.$n,{className:S()(gv,(gj(r={},gb,w&&!O),gj(r,gx,O),r)),variant:"ghost",onClick:E,role:"button",tabIndex:0,children:[(0,v.jsx)("span",{className:gg,children:(0,v.jsx)(gO,{hasUnsavedChanges:k,getIcon:a,tagContent:i})}),(0,v.jsx)("span",{children:o})]}):(0,v.jsx)(z.K0,{"aria-label":o,className:S()(gv,(gj(n={},gb,w&&!O),gj(n,gx,O),n)),tooltipSide:"left",label:o,onClick:E,icon:(0,v.jsx)("div",{className:gg,children:(0,v.jsx)(gO,{hasUnsavedChanges:k,getIcon:a,tagContent:i})})})},gk=r(3400);let gE="_61usX0Jf4QOQkeaSzRGYAQ==";function gP(e){var t=e.workspaceGroup,r=e.groupProps,n=(0,x.useLayoutType)(),a=t.persistence;return(0,v.jsx)("aside",{className:"fKZr0gLKafzBwe8witq4oQ==",children:(0,v.jsxs)("div",{className:gE,children:["closable"==a&&(0,x.isDesktop)(n)&&(0,v.jsx)(z.K0,{tooltipSide:"left",onClick:function(){return go()},label:(0,V.V)("close"),icon:(0,v.jsx)(iO,{})}),(0,v.jsx)(x.ComponentContext.Provider,{value:{moduleName:t.moduleName,featureName:t.name},children:(0,v.jsx)(x.ExtensionSlot,{className:gE,name:t.name,state:{groupProps:r}})})]})})}var gA=r(8148);function gD(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gC(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function gT(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(e){gC(o,n,a,i,s,"next",e)}function s(e){gC(o,n,a,i,s,"throw",e)}i(void 0)})}}function gN(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gR(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var gM=function(e){var t=e.lifeCycle,r=e.openedWorkspace,n=e.openedWindow,a=e.isRootWorkspace,o=e.isLeafWorkspace,i=e.showActionMenu,s=gc(),l=s.openedGroup,u=s.closeWorkspace,c=s.openChildWorkspace,d=(0,g.useMemo)(function(){return r&&{closeWorkspace:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return gT(function(){var t,a,o,i,s,l;return gR(this,function(c){switch(c.label){case 0:if(a=void 0!==(t=e.closeWindow)&&t,i=void 0!==(o=e.discardUnsavedChanges)&&o,!a)return[3,3];if(s=i)return[3,2];return[4,gl({reason:"CLOSE_WINDOW",explicit:!0,windowName:n.windowName})];case 1:s=c.sent(),c.label=2;case 2:if(s)return u(n.openedWorkspaces[0].workspaceName),[2,!0];return[2,!1];case 3:if(l=i)return[3,5];return[4,gl({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:n.windowName,workspaceName:r.workspaceName})];case 4:l=c.sent(),c.label=5;case 5:if(l)return u(r.workspaceName),[2,!0];return[2,!1];case 6:return[2]}})})()},launchChildWorkspace:function(e,t){return gT(function(){var a,o,i;return gR(this,function(s){switch(s.label){case 0:if(a=r.workspaceName,-1===(i=(o=n.openedWorkspaces).findIndex(function(e){return e.workspaceName===a})))return[2];if(i===o.length-1||!o.slice(i+1).some(function(e){return e.hasUnsavedChanges}))return[3,2];return[4,gl({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:n.windowName,workspaceName:o[i+1].workspaceName})];case 1:if(!s.sent())return[2];s.label=2;case 2:return c(a,e,t||{}),[2]}})})()},workspaceName:r.workspaceName,workspaceProps:r.props,windowProps:n.props,groupProps:l&&l.props?l.props:null,isRootWorkspace:a,isLeafWorkspace:o,windowName:n.windowName,showActionMenu:i}},[r,u,l,n]);if(!t){var f,p,m=m1.J_.getState().registeredWorkspacesByName[r.workspaceName],h=m&&m.window?m.window:void 0,y=m1.J_.getState().registeredWindowsByName,b=h?y[h]:void 0,x=b&&b.width?b.width:"narrow",w=Object.values(y).some(function(e){return e.group===(null==l?void 0:l.groupName)&&void 0!==e.icon});return(0,v.jsxs)("div",{className:S()(gm.workspaceOuterContainer,(gN(f={},gm.narrowWorkspace,"narrow"===x),gN(f,gm.widerWorkspace,"wider"===x),gN(f,gm.extraWideWorkspace,"extra-wide"===x),gN(f,gm.isActionMenuOpened,w),f)),children:[(0,v.jsx)("div",{className:gm.workspaceSpacer}),(0,v.jsx)("div",{className:S()(gm.workspaceMiddleContainer,(gN(p={},gm.isRootWorkspace,a),gN(p,gm.showActionMenu,i),p)),children:(0,v.jsx)("div",{className:S()(gm.workspaceInnerContainer,gN({},gm.isRootWorkspace,a)),children:(0,v.jsx)(z.Ou,{className:gm.loader,description:"".concat((0,V.V)("loading")," ...")})})})]})}return(0,v.jsx)(vX,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){gN(e,t,r[t])})}return e}({config:t,mountParcel:mJ.mountRootParcel},d),r.workspaceName)};let gI=function(e){var t,r=e.openedWindow,n=e.showActionMenu,a=r.openedWorkspaces,o=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)())||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return gD(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return gD(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],s=o[1],l=m1.J_.getState().registeredWorkspacesByName;return(0,g.useEffect)(function(){Promise.all(a.map(function(e){var t=l[e.workspaceName],r=t.moduleName,n=t.component;return(0,gA.o)(r,n)})).then(s)},[a]),(0,v.jsx)(v.Fragment,{children:a.map(function(e,t){return(0,v.jsx)(gM,{openedWorkspace:e,openedWindow:r,lifeCycle:i&&i[t]?i[t]:void 0,isRootWorkspace:0===t,isLeafWorkspace:t===a.length-1,showActionMenu:n},e.uuid)})})};function g_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gL(e){e&&(0,hP.createRoot)(e).render((0,v.jsx)(gF,{}))}function gF(){var e,t=gc(),r=t.openedGroup,n=t.openedWindows,a=t.registeredGroupsByName,o=t.registeredWindowsByName;if((0,g.useEffect)(function(){return(0,gk.mI)("before-page-changed",function(e){var t=e.newPage,n=e.cancelNavigation,o=e.oldUrl,i=e.newUrl;if(r){if(t)return void n(go().then(function(e){return!e}));var s=a[r.groupName],l=null==s?void 0:s.scopePattern;l&&function(e,t,r){try{var n=new URL(t,window.location.origin).pathname,a=new URL(r,window.location.origin).pathname,o=new RegExp(e),i=n.match(o),s=a.match(o);if(!i||!s)return!0;if(i.length>1)return!i.slice(1).every(function(e,t){return e===s[t+1]});return!1}catch(e){return!0}}(l,o,i)&&n(go().then(function(e){return!e}))}})},[r,a]),!r)return null;var i=a[r.groupName],s=n.some(function(e){return e.maximized}),l=i.name,u=Object.values(o).filter(function(e){return e.group===l&&void 0!==e.icon}).sort(function(e,t){var r,n;return(null!=(r=e.order)?r:Number.MAX_VALUE)-(null!=(n=t.order)?n:Number.MAX_VALUE)}).length>0;return(0,v.jsxs)("div",{className:S()("NKC0QXgF9MasMTLQ5F8+4A==",(g_(e={},"L4kodgkz2RvEM7MarumhRA==",i.overlay),g_(e,"XoPNqJNUpuafdjRmkpVkmg==",s),e)),children:[(0,v.jsx)("div",{className:"XbZrXo9fc5nahWNImpCIsA==",children:n.map(function(e){return(0,v.jsx)(gI,{openedWindow:e,showActionMenu:u},e.windowName)})}),u&&(0,v.jsx)(gP,{workspaceGroup:i,groupProps:r.props})]})}function gB(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function gV(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var gW,gU,g$,gH,gK,gG,gq,gY,gX,gZ,gQ,gJ,g0,g1,g2,g3,g4,g5,g6,g8,g9,g7,be,bt,br,bn,ba,bo,bi,bs,bl={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},bu={duration:.5,overwrite:!1,delay:0},bc=2*Math.PI,bd=bc/4,bf=0,bp=Math.sqrt,bm=Math.cos,bh=Math.sin,by=function(e){return"string"==typeof e},bv=function(e){return"function"==typeof e},bg=function(e){return"number"==typeof e},bb=function(e){return void 0===e},bx=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"},bw=function(e){return!1!==e},bj=function(){return"u">typeof window},bO=function(e){return bv(e)||by(e)},bS="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},bk=Array.isArray,bE=/random\([^)]+\)/g,bP=/,\s*/g,bA=/(?:-?\.?\d|\.)+/gi,bD=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,bC=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,bT=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,bN=/[+-]=-?[.\d]+/,bR=/[^,'"\[\]\s]+/gi,bM=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,bI={},b_={},bL=function(e){return(b_=xn(e,bI))&&w4},bF=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},bB=function(e,t){return!t&&console.warn(e)},bV=function(e,t){return e&&(bI[e]=t)&&b_&&(b_[e]=t)||bI},bz=function(){return 0},bW={suppressEvents:!0,isStart:!0,kill:!1},bU={suppressEvents:!0,kill:!1},b$={suppressEvents:!0},bH={},bK=[],bG={},bq={},bY={},bX=30,bZ=[],bQ="",bJ=function(e){var t,r,n=e[0];if(bx(n)||bv(n)||(e=[e]),!(t=(n._gsap||{}).harness)){for(r=bZ.length;r--&&!bZ[r].targetTest(n););t=bZ[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new wc(e[r],t)))||e.splice(r,1);return e},b0=function(e){return e._gsap||bJ(xL(e))[0]._gsap},b1=function(e,t,r){return(r=e[t])&&bv(r)?e[t]():bb(r)&&e.getAttribute&&e.getAttribute(t)||r},b2=function(e,t){return(e=e.split(",")).forEach(t)||e},b3=function(e){return Math.round(1e5*e)/1e5||0},b4=function(e){return Math.round(1e7*e)/1e7||0},b5=function(e,t){var r=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),"+"===r?e+n:"-"===r?e-n:"*"===r?e*n:e/n},b6=function(e,t){for(var r=t.length,n=0;0>e.indexOf(t[n])&&++n<r;);return n<r},b8=function(){var e,t,r=bK.length,n=bK.slice(0);for(e=0,bG={},bK.length=0;e<r;e++)(t=n[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},b9=function(e){return!!(e._initted||e._startAt||e.add)},b7=function(e,t,r,n){bK.length&&!g9&&b8(),e.render(t,r,n||!!(g9&&t<0&&b9(e))),bK.length&&!g9&&b8()},xe=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(bR).length<2?t:by(e)?e.trim():e},xt=function(e){return e},xr=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},xn=function(e,t){for(var r in t)e[r]=t[r];return e},xa=function e(t,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(t[n]=bx(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},xo=function(e,t){var r,n={};for(r in e)r in t||(n[r]=e[r]);return n},xi=function(e){var t,r=e.parent||be,n=e.keyframes?(t=bk(e.keyframes),function(e,r){for(var n in r)n in e||"duration"===n&&t||"ease"===n||(e[n]=r[n])}):xr;if(bw(e.inherit))for(;r;)n(e,r.vars.defaults),r=r.parent||r._dp;return e},xs=function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0},xl=function(e,t,r,n,a){void 0===r&&(r="_first"),void 0===n&&(n="_last");var o,i=e[n];if(a)for(o=t[a];i&&i[a]>o;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=i,t.parent=t._dp=e,t},xu=function(e,t,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var a=t._prev,o=t._next;a?a._next=o:e[r]===t&&(e[r]=o),o?o._prev=a:e[n]===t&&(e[n]=a),t._next=t._prev=t.parent=null},xc=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},xd=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},xf=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},xp=function(e,t,r,n){return e._startAt&&(g9?e._startAt.revert(bU):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},xm=function(e){return e._repeat?xh(e._tTime,e=e.duration()+e._rDelay)*e:0},xh=function(e,t){var r=Math.floor(e=b4(e/t));return e&&r===e?r-1:r},xy=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},xv=function(e){return e._end=b4(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},xg=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=b4(r._time-(e._ts>0?t/e._ts:-(((e._dirty?e.totalDuration():e._tDur)-t)/e._ts))),xv(e),r._dirty||xd(r,e)),e},xb=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=xy(e.rawTime(),t),(!t._dur||xR(0,t.totalDuration(),r)-t._tTime>1e-8)&&t.render(r,!0)),xd(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-1e-8}},xx=function(e,t,r,n){return t.parent&&xc(t),t._start=b4((bg(r)?r:r||e!==be?xC(e,r,t):e._time)+t._delay),t._end=b4(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),xl(e,t,"_first","_last",e._sort?"_start":0),xS(t)||(e._recent=t),n||xb(e,t),e._ts<0&&xg(e,e._tTime),e},xw=function(e,t){return(bI.ScrollTrigger||bF("scrollTrigger",t))&&bI.ScrollTrigger.create(t,e)},xj=function(e,t,r,n,a){return(wO(e,t,a),e._initted)?!r&&e._pt&&!g9&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&bo!==x6.frame?(bK.push(e),e._lazy=[a,n],1):void 0:1},xO=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(0>r.rawTime()||e(r))},xS=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},xk=function(e,t,r,n){var a,o,i,s=e.ratio,l=t<0||!t&&(!e._start&&xO(e)&&!(!e._initted&&xS(e))||(e._ts<0||e._dp._ts<0)&&!xS(e))?0:1,u=e._rDelay,c=0;if(u&&e._repeat&&(o=xh(c=xR(0,e._tDur,t),u),e._yoyo&&1&o&&(l=1-l),o!==xh(e._tTime,u)&&(s=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==s||g9||n||1e-8===e._zTime||!t&&e._zTime){if(!e._initted&&xj(e,t,n,r,c))return;for(i=e._zTime,e._zTime=t||1e-8*!!r,r||(r=t&&!i),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=c,a=e._pt;a;)a.r(l,a.d),a=a._next;t<0&&xp(e,t,r,!0),e._onUpdate&&!r&&xq(e,"onUpdate"),c&&e._repeat&&!r&&e.parent&&xq(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&xc(e,1),r||g9||(xq(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},xE=function(e,t,r){var n;if(r>t)for(n=e._first;n&&n._start<=r;){if("isPause"===n.data&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=r;){if("isPause"===n.data&&n._start<t)return n;n=n._prev}},xP=function(e,t,r,n){var a=e._repeat,o=b4(t)||0,i=e._tTime/e._tDur;return i&&!n&&(e._time*=o/e._dur),e._dur=o,e._tDur=a?a<0?1e10:b4(o*(a+1)+e._rDelay*a):o,i>0&&!n&&xg(e,e._tTime=e._tDur*i),e.parent&&xv(e),r||xd(e.parent,e),e},xA=function(e){return gB(e,wf)?xd(e):xP(e,e._dur)},xD={_start:0,endTime:bz,totalDuration:bz},xC=function e(t,r,n){var a,o,i,s=t.labels,l=t._recent||xD,u=t.duration()>=1e8?l.endTime(!1):t._dur;return by(r)&&(isNaN(r)||r in s)?(o=r.charAt(0),i="%"===r.substr(-1),a=r.indexOf("="),"<"===o||">"===o)?(a>=0&&(r=r.replace(/=/,"")),("<"===o?l._start:l.endTime(l._repeat>=0))+(parseFloat(r.substr(1))||0)*(i?(a<0?l:n).totalDuration()/100:1)):a<0?(r in s||(s[r]=u),s[r]):(o=parseFloat(r.charAt(a-1)+r.substr(a+1)),i&&n&&(o=o/100*(bk(n)?n[0]:n).totalDuration()),a>1?e(t,r.substr(0,a-1),n)+o:u+o):null==r?u:+r},xT=function(e,t,r){var n,a,o=bg(t[1]),i=(o?2:1)+(e<2?0:1),s=t[i];if(o&&(s.duration=t[1]),s.parent=r,e){for(n=s,a=r;a&&!("immediateRender"in n);)n=a.vars.defaults||{},a=bw(a.vars.inherit)&&a.parent;s.immediateRender=bw(n.immediateRender),e<2?s.runBackwards=1:s.startAt=t[i-1]}return new wC(t[0],s,t[i+1])},xN=function(e,t){return e||0===e?t(e):t},xR=function(e,t,r){return r<e?e:r>t?t:r},xM=function(e,t){return by(e)&&(t=bM.exec(e))?t[1]:""},xI=[].slice,x_=function(e,t){return e&&bx(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&bx(e[0]))&&!e.nodeType&&e!==bt},xL=function(e,t,r){var n;return g7&&!t&&g7.selector?g7.selector(e):by(e)&&!r&&(br||!x8())?xI.call((t||bn).querySelectorAll(e),0):bk(e)?(void 0===n&&(n=[]),e.forEach(function(e){var t;return by(e)&&!r||x_(e,1)?(t=n).push.apply(t,xL(e)):n.push(e)})||n):x_(e)?xI.call(e,0):e?[e]:[]},xF=function(e){return e=xL(e)[0]||bB("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return xL(t,r.querySelectorAll?r:r===e?bB("Invalid scope")||bn.createElement("div"):e)}},xB=function(e){return e.sort(function(){return .5-Math.random()})},xV=function(e){if(bv(e))return e;var t=bx(e)?e:{each:e},r=wo(t.ease),n=t.from||0,a=parseFloat(t.base)||0,o={},i=n>0&&n<1,s=isNaN(n)||i,l=t.axis,u=n,c=n;return by(n)?u=c=({center:.5,edges:.5,end:1})[n]||0:!i&&s&&(u=n[0],c=n[1]),function(e,i,d){var f,p,m,h,y,v,g,b,x,w=(d||t).length,j=o[w];if(!j){if(!(x="auto"===t.grid?0:(t.grid||[1,1e8])[1])){for(g=-1e8;g<(g=d[x++].getBoundingClientRect().left)&&x<w;);x<w&&x--}for(v=0,j=o[w]=[],f=s?Math.min(x,w)*u-.5:n%x,p=1e8===x?0:s?w*c/x-.5:n/x|0,g=0,b=1e8;v<w;v++)m=v%x-f,h=p-(v/x|0),j[v]=y=l?Math.abs("y"===l?h:m):bp(m*m+h*h),y>g&&(g=y),y<b&&(b=y);"random"===n&&xB(j),j.max=g-b,j.min=b,j.v=w=(parseFloat(t.amount)||parseFloat(t.each)*(x>w?w-1:l?"y"===l?w/x:x:Math.max(x,w/x))||0)*("edges"===n?-1:1),j.b=w<0?a-w:a,j.u=xM(t.amount||t.each)||0,r=r&&w<0?wa(r):r}return w=(j[e]-j.min)/j.max||0,b4(j.b+(r?r(w):w)*j.v)+j.u}},xz=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var n=b4(Math.round(parseFloat(r)/e)*e*t);return(n-n%1)/t+(bg(r)?0:xM(r))}},xW=function(e,t){var r,n,a=bk(e);return!a&&bx(e)&&(r=a=e.radius||1e8,e.values?(n=!bg((e=xL(e.values))[0]))&&(r*=r):e=xz(e.increment)),xN(t,a?bv(e)?function(t){return Math.abs((n=e(t))-t)<=r?n:t}:function(t){for(var a,o,i=parseFloat(n?t.x:t),s=parseFloat(n?t.y:0),l=1e8,u=0,c=e.length;c--;)(a=n?(a=e[c].x-i)*a+(o=e[c].y-s)*o:Math.abs(e[c]-i))<l&&(l=a,u=c);return u=!r||l<=r?e[u]:t,n||u===t||bg(t)?u:u+xM(t)}:xz(e))},xU=function(e,t,r,n){return xN(bk(e)?!t:!0===r?(r=0,!1):!n,function(){return bk(e)?e[~~(Math.random()*e.length)]:(n=(r=r||1e-5)<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+.99*r))/r)*r*n)/n})},x$=function(e,t,r){return xN(r,function(r){return e[~~t(r)]})},xH=function(e){return e.replace(bE,function(e){var t=e.indexOf("[")+1,r=e.substring(t||7,t?e.indexOf("]"):e.length-1).split(bP);return xU(t?r:+r[0],t?0:+r[1],+r[2]||1e-5)})},xK=function(e,t,r,n,a){var o=t-e,i=n-r;return xN(a,function(t){return r+((t-e)/o*i||0)})},xG=function(e,t,r){var n,a,o,i=e.labels,s=1e8;for(n in i)(a=i[n]-t)<0==!!r&&a&&s>(a=Math.abs(a))&&(o=n,s=a);return o},xq=function(e,t,r){var n,a,o,i=e.vars,s=i[t],l=g7,u=e._ctx;if(s)return n=i[t+"Params"],a=i.callbackScope||e,r&&bK.length&&b8(),u&&(g7=u),o=n?s.apply(a,n):s.call(a),g7=l,o},xY=function(e){return xc(e),e.scrollTrigger&&e.scrollTrigger.kill(!!g9),1>e.progress()&&xq(e,"onInterrupt"),e},xX=[],xZ=function(e){if(e)if(e=!e.name&&e.default||e,bj()||e.headless){var t=e.name,r=bv(e),n=t&&!r&&e.init?function(){this._props=[]}:e,a={init:bz,render:wB,add:wx,kill:wz,modifier:wV,rawVars:0},o={targetTest:0,get:0,getSetter:wI,aliases:{},register:0};if(x8(),e!==n){if(bq[t])return;xr(n,xr(xo(e,a),o)),xn(n.prototype,xn(a,xo(e,o))),bq[n.prop=t]=n,e.targetTest&&(bZ.push(n),bH[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}bV(t,n),e.register&&e.register(w4,n,w$)}else xX.push(e)},xQ={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},xJ=function(e,t,r){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(r-t)*e*6:e<.5?r:3*e<2?t+(r-t)*(2/3-e)*6:t)*255+.5|0},x0=function(e,t,r){var n,a,o,i,s,l,u,c,d,f,p=e?bg(e)?[e>>16,e>>8&255,255&e]:0:xQ.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),xQ[e])p=xQ[e];else if("#"===e.charAt(0)){if(e.length<6&&(n=e.charAt(1),e="#"+n+n+(a=e.charAt(2))+a+(o=e.charAt(3))+o+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&255,255&p,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]}else if("hsl"===e.substr(0,3))if(p=f=e.match(bA),t){if(~e.indexOf("="))return p=e.match(bD),r&&p.length<4&&(p[3]=1),p}else i=p[0]%360/360,s=p[1]/100,a=(l=p[2]/100)<=.5?l*(s+1):l+s-l*s,n=2*l-a,p.length>3&&(p[3]*=1),p[0]=xJ(i+1/3,n,a),p[1]=xJ(i,n,a),p[2]=xJ(i-1/3,n,a);else p=e.match(bA)||xQ.transparent;p=p.map(Number)}return t&&!f&&(n=p[0]/255,l=((u=Math.max(n,a=p[1]/255,o=p[2]/255))+(c=Math.min(n,a,o)))/2,u===c?i=s=0:(d=u-c,s=l>.5?d/(2-u-c):d/(u+c),i=(u===n?(a-o)/d+6*(a<o):u===a?(o-n)/d+2:(n-a)/d+4)*60),p[0]=~~(i+.5),p[1]=~~(100*s+.5),p[2]=~~(100*l+.5)),r&&p.length<4&&(p[3]=1),p},x1=function(e){var t=[],r=[],n=-1;return e.split(x3).forEach(function(e){var a=e.match(bC)||[];t.push.apply(t,a),r.push(n+=a.length+1)}),t.c=r,t},x2=function(e,t,r){var n,a,o,i,s="",l=(e+s).match(x3),u=t?"hsla(":"rgba(",c=0;if(!l)return e;if(l=l.map(function(e){return(e=x0(e,t,1))&&u+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),r&&(o=x1(e),(n=r.c).join(s)!==o.c.join(s)))for(i=(a=e.replace(x3,"1").split(bC)).length-1;c<i;c++)s+=a[c]+(~n.indexOf(c)?l.shift()||u+"0,0,0,0)":(o.length?o:l.length?l:r).shift());if(!a)for(i=(a=e.split(x3)).length-1;c<i;c++)s+=a[c]+l[c];return s+a[i]},x3=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in xQ)t+="|"+e+"\\b";return RegExp(t+")","gi")}(),x4=/hsl[a]?\(/,x5=function(e){var t,r=e.join(" ");if(x3.lastIndex=0,x3.test(r))return t=x4.test(r),e[1]=x2(e[1],t),e[0]=x2(e[0],t,x1(e[1])),!0},x6=(gX=Date.now,gZ=500,gQ=33,g0=gJ=gX(),g1=1e3/240,g2=1e3/240,g3=[],g4=function e(t){var r,n,a,o,i=gX()-g0,s=!0===t;if((i>gZ||i<0)&&(gJ+=i-gQ),g0+=i,((r=(a=g0-gJ)-g2)>0||s)&&(o=++gG.frame,gq=a-1e3*gG.time,gG.time=a/=1e3,g2+=r+(r>=g1?4:g1-r),n=1),s||(g$=gH(e)),n)for(gY=0;gY<g3.length;gY++)g3[gY](a,gq,o,t)},gG={time:0,frame:0,tick:function(){g4(!0)},deltaRatio:function(e){return gq/(1e3/(e||60))},wake:function(){ba&&(!br&&bj()&&(bn=(bt=br=window).document||{},bI.gsap=w4,(bt.gsapVersions||(bt.gsapVersions=[])).push(w4.version),bL(b_||bt.GreenSockGlobals||!bt.gsap&&bt||{}),xX.forEach(xZ)),gK="u">typeof requestAnimationFrame&&requestAnimationFrame,g$&&gG.sleep(),gH=gK||function(e){return setTimeout(e,g2-1e3*gG.time+1|0)},bs=1,g4(2))},sleep:function(){(gK?cancelAnimationFrame:clearTimeout)(g$),bs=0,gH=bz},lagSmoothing:function(e,t){gQ=Math.min(t||33,gZ=e||1/0)},fps:function(e){g1=1e3/(e||240),g2=1e3*gG.time+g1},add:function(e,t,r){var n=t?function(t,r,a,o){e(t,r,a,o),gG.remove(n)}:e;return gG.remove(e),g3[r?"unshift":"push"](n),x8(),n},remove:function(e,t){~(t=g3.indexOf(e))&&g3.splice(t,1)&&gY>=t&&gY--},_listeners:g3}),x8=function(){return!bs&&x6.wake()},x9={},x7=/^[\d.\-M][\d.\-,\s]/,we=/["']/g,wt=function(e){for(var t,r,n,a={},o=e.substr(1,e.length-3).split(":"),i=o[0],s=1,l=o.length;s<l;s++)r=o[s],t=s!==l-1?r.lastIndexOf(","):r.length,n=r.substr(0,t),a[i]=isNaN(n)?n.replace(we,"").trim():+n,i=r.substr(t+1).trim();return a},wr=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n<r?e.indexOf(")",r+1):r)},wn=function(e){var t=(e+"").split("("),r=x9[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[wt(t[1])]:wr(e).split(",").map(xe)):x9._CE&&x7.test(e)?x9._CE("",e):r},wa=function(e){return function(t){return 1-e(1-t)}},wo=function(e,t){return e&&(bv(e)?e:x9[e]||wn(e))||t},wi=function(e,t,r,n){void 0===r&&(r=function(e){return 1-t(1-e)}),void 0===n&&(n=function(e){return e<.5?t(2*e)/2:1-t((1-e)*2)/2});var a,o={easeIn:t,easeOut:r,easeInOut:n};return b2(e,function(e){for(var t in x9[e]=bI[e]=o,x9[a=e.toLowerCase()]=r,o)x9[a+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=x9[e+"."+t]=o[t]}),o},ws=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e((t-.5)*2)/2}},wl=function e(t,r,n){var a=r>=1?r:1,o=(n||(t?.3:.45))/(r<1?r:1),i=o/bc*(Math.asin(1/a)||0),s=function(e){return 1===e?1:a*Math.pow(2,-10*e)*bh((e-i)*o)+1},l="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:ws(s);return o=bc/o,l.config=function(r,n){return e(t,r,n)},l},wu=function e(t,r){void 0===r&&(r=1.70158);var n=function(e){return e?--e*e*((r+1)*e+r)+1:0},a="out"===t?n:"in"===t?function(e){return 1-n(1-e)}:ws(n);return a.config=function(r){return e(t,r)},a};b2("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;wi(e+",Power"+(r-1),t?function(e){return Math.pow(e,r)}:function(e){return e},function(e){return 1-Math.pow(1-e,r)},function(e){return e<.5?Math.pow(2*e,r)/2:1-Math.pow((1-e)*2,r)/2})}),x9.Linear.easeNone=x9.none=x9.Linear.easeIn,wi("Elastic",wl("in"),wl("out"),wl()),wm=2*(wp=1/2.75),wh=2.5*wp,wi("Bounce",function(e){return 1-wy(1-e)},wy=function(e){return e<wp?7.5625*e*e:e<wm?7.5625*Math.pow(e-1.5/2.75,2)+.75:e<wh?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*Math.pow(e-2.625/2.75,2)+.984375}),wi("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),wi("Circ",function(e){return-(bp(1-e*e)-1)}),wi("Sine",function(e){return 1===e?1:-bm(e*bd)+1}),wi("Back",wu("in"),wu("out"),wu()),x9.SteppedEase=x9.steps=bI.SteppedEase={config:function(e,t){void 0===e&&(e=1);var r=1/e,n=e+ +!t,a=+!!t,o=.99999999;return function(e){return((n*xR(0,o,e)|0)+a)*r}}},bu.ease=x9["quad.out"],b2("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return bQ+=e+","+e+"Params,"});var wc=function(e,t){this.id=bf++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:b1,this.set=t?t.getSetter:wI},wd=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,xP(this,+e.duration,1,1),this.data=e.data,g7&&(this._ctx=g7,g7.data.push(this)),bs||x6.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,xP(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(x8(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(xg(this,e),!r._dp||r.parent||xb(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:-((r.totalDuration()-r._tTime)/r._ts))&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&xx(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&1e-8===Math.abs(this._zTime)||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),b7(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+xm(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(1&this.iteration())?1-e:e)+xm(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*r,t):this._repeat?xh(this._tTime,r)+1:1},t.timeScale=function(e,t){if(!arguments.length)return -1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var r=this.parent&&this._ts?xy(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(xR(-Math.abs(this._delay),this.totalDuration(),r),!1!==t),xv(this),xf(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(x8(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=b4(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&xx(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(bw(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&1>this.totalProgress())?this._tTime%(this._dur+this._rDelay):this._ts?xy(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=b$);var t=g9;return g9=e,b9(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),g9=t,this},t.globalTime=function(e){for(var t=this,r=arguments.length?e:t.rawTime();t;)r=t._start+r/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):r},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,xA(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,xA(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(xC(this,e),bw(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,bw(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,r=this._start;return!!(!t||this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=r&&e<this.endTime(!0)-1e-8)},t.eventCallback=function(e,t,r){var n=this.vars;return arguments.length>1?(t?(n[e]=t,r&&(n[e+"Params"]=r),"onUpdate"===e&&(this._onUpdate=t)):delete n[e],this):n[e]},t.then=function(e){var t=this,r=t._prom;return new Promise(function(n){var a=bv(e)?e:xt,o=function(){var e=t.then;t.then=null,r&&r(),bv(a)&&(a=a(t))&&(a.then||a===t)&&(t.then=e),n(a),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?o():t._prom=o})},t.kill=function(){xY(this)},e}();xr(wd.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var wf=function(e){function t(t,r){var n;return void 0===t&&(t={}),(n=e.call(this,t)||this).labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=bw(t.sortChildren),be&&xx(t.parent||be,gV(n),r),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&xw(gV(n),t.scrollTrigger),n}gz(t,e);var r=t.prototype;return r.to=function(e,t,r){return xT(0,arguments,this),this},r.from=function(e,t,r){return xT(1,arguments,this),this},r.fromTo=function(e,t,r,n){return xT(2,arguments,this),this},r.set=function(e,t,r){return t.duration=0,t.parent=this,xi(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new wC(e,t,xC(this,r),1),this},r.call=function(e,t,r){return xx(this,wC.delayedCall(0,e,t),r)},r.staggerTo=function(e,t,r,n,a,o,i){return r.duration=t,r.stagger=r.stagger||n,r.onComplete=o,r.onCompleteParams=i,r.parent=this,new wC(e,r,xC(this,a)),this},r.staggerFrom=function(e,t,r,n,a,o,i){return r.runBackwards=1,xi(r).immediateRender=bw(r.immediateRender),this.staggerTo(e,t,r,n,a,o,i)},r.staggerFromTo=function(e,t,r,n,a,o,i,s){return n.startAt=r,xi(n).immediateRender=bw(n.immediateRender),this.staggerTo(e,t,n,a,o,i,s)},r.render=function(e,t,r){var n,a,o,i,s,l,u,c,d,f,p,m,h=this._time,y=this._dirty?this.totalDuration():this._tDur,v=this._dur,g=e<=0?0:b4(e),b=this._zTime<0!=e<0&&(this._initted||!v);if(this!==be&&g>y&&e>=0&&(g=y),g!==this._tTime||r||b){if(h!==this._time&&v&&(g+=this._time-h,e+=this._time-h),n=g,d=this._start,l=!(c=this._ts),b&&(v||(h=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(p=this._yoyo,s=v+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*s+e,t,r);if(n=b4(g%s),g===y?(i=this._repeat,n=v):((i=~~(f=b4(g/s)))&&i===f&&(n=v,i--),n>v&&(n=v)),f=xh(this._tTime,s),!h&&this._tTime&&f!==i&&this._tTime-f*s-this._dur<=0&&(f=i),p&&1&i&&(n=v-n,m=1),i!==f&&!this._lock){var x=p&&1&f,w=x===(p&&1&i);if(i<f&&(x=!x),h=x?0:g%v?v:g,this._lock=1,this.render(h||(m?0:b4(i*s)),t,!v)._lock=0,this._tTime=g,!t&&this.parent&&xq(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1,f=i),h&&h!==this._time||!this._ts!==l||this.vars.onRepeat&&!this.parent&&!this._act||(v=this._dur,y=this._tDur,w&&(this._lock=2,h=x?v:-1e-4,this.render(h,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!l))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=xE(this,b4(h),b4(n)))&&(g-=n-(n=u._start)),this._tTime=g,this._time=n,this._act=!!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,h=0),!h&&g&&v&&!t&&!f&&(xq(this,"onStart"),this._tTime!==g))return this;if(n>=h&&e>=0)for(a=this._first;a;){if(o=a._next,(a._act||n>=a._start)&&a._ts&&u!==a){if(a.parent!==this)return this.render(e,t,r);if(a.render(a._ts>0?(n-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(n-a._start)*a._ts,t,r),n!==this._time||!this._ts&&!l){u=0,o&&(g+=this._zTime=-1e-8);break}}a=o}else{a=this._last;for(var j=e<0?e:n;a;){if(o=a._prev,(a._act||j<=a._end)&&a._ts&&u!==a){if(a.parent!==this)return this.render(e,t,r);if(a.render(a._ts>0?(j-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(j-a._start)*a._ts,t,r||g9&&b9(a)),n!==this._time||!this._ts&&!l){u=0,o&&(g+=this._zTime=j?-1e-8:1e-8);break}}a=o}}if(u&&!t&&(this.pause(),u.render(n>=h?0:-1e-8)._zTime=n>=h?1:-1,this._ts))return this._start=d,xv(this),this.render(e,t,r);this._onUpdate&&!t&&xq(this,"onUpdate",!0),(g===y&&this._tTime>=this.totalDuration()||!g&&h)&&(d===this._start||Math.abs(c)!==Math.abs(this._ts))&&!this._lock&&((e||!v)&&(g===y&&this._ts>0||!g&&this._ts<0)&&xc(this,1),t||e<0&&!h||!g&&!h&&y||(xq(this,g===y&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(g<y&&this.timeScale()>0)&&this._prom()))}return this},r.add=function(e,t){var r=this;if(bg(t)||(t=xC(this,t,e)),!gB(e,wd)){if(bk(e))return e.forEach(function(e){return r.add(e,t)}),this;if(by(e))return this.addLabel(e,t);if(!bv(e))return this;e=wC.delayedCall(0,e)}return this!==e?xx(this,e,t):this},r.getChildren=function(e,t,r,n){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===r&&(r=!0),void 0===n&&(n=-1e8);for(var a=[],o=this._first;o;)o._start>=n&&(gB(o,wC)?t&&a.push(o):(r&&a.push(o),e&&a.push.apply(a,o.getChildren(!0,t,r)))),o=o._next;return a},r.getById=function(e){for(var t=this.getChildren(1,1,1),r=t.length;r--;)if(t[r].vars.id===e)return t[r]},r.remove=function(e){return by(e)?this.removeLabel(e):bv(e)?this.killTweensOf(e):(e.parent===this&&xu(this,e),e===this._recent&&(this._recent=this._last),xd(this))},r.totalTime=function(t,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=b4(x6.time-(this._ts>0?t/this._ts:-((this.totalDuration()-t)/this._ts)))),e.prototype.totalTime.call(this,t,r),this._forcing=0,this):this._tTime},r.addLabel=function(e,t){return this.labels[e]=xC(this,t),this},r.removeLabel=function(e){return delete this.labels[e],this},r.addPause=function(e,t,r){var n=wC.delayedCall(0,t||bz,r);return n.data="isPause",this._hasPause=1,xx(this,n,xC(this,e))},r.removePause=function(e){var t=this._first;for(e=xC(this,e);t;)t._start===e&&"isPause"===t.data&&xc(t),t=t._next},r.killTweensOf=function(e,t,r){for(var n=this.getTweensOf(e,r),a=n.length;a--;)wv!==n[a]&&n[a].kill(e,t);return this},r.getTweensOf=function(e,t){for(var r,n=[],a=xL(e),o=this._first,i=bg(t);o;)gB(o,wC)?b6(o._targets,a)&&(i?(!wv||o._initted&&o._ts)&&o.globalTime(0)<=t&&o.globalTime(o.totalDuration())>t:!t||o.isActive())&&n.push(o):(r=o.getTweensOf(a,t)).length&&n.push.apply(n,r),o=o._next;return n},r.tweenTo=function(e,t){t=t||{};var r,n=this,a=xC(n,e),o=t,i=o.startAt,s=o.onStart,l=o.onStartParams,u=o.immediateRender,c=wC.to(n,xr({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:t.duration||Math.abs((a-(i&&"time"in i?i.time:n._time))/n.timeScale())||1e-8,onStart:function(){if(n.pause(),!r){var e=t.duration||Math.abs((a-(i&&"time"in i?i.time:n._time))/n.timeScale());c._dur!==e&&xP(c,e,0,1).render(c._time,!0,!0),r=1}s&&s.apply(c,l||[])}},t));return u?c.render(0):c},r.tweenFromTo=function(e,t,r){return this.tweenTo(t,xr({startAt:{time:xC(this,e)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(e){return void 0===e&&(e=this._time),xG(this,xC(this,e))},r.previousLabel=function(e){return void 0===e&&(e=this._time),xG(this,xC(this,e),1)},r.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},r.shiftChildren=function(e,t,r){void 0===r&&(r=0);var n,a=this._first,o=this.labels;for(e=b4(e);a;)a._start>=r&&(a._start+=e,a._end+=e),a=a._next;if(t)for(n in o)o[n]>=r&&(o[n]+=e);return xd(this)},r.invalidate=function(t){var r=this._first;for(this._lock=0;r;)r.invalidate(t),r=r._next;return e.prototype.invalidate.call(this,t)},r.clear=function(e){void 0===e&&(e=!0);for(var t,r=this._first;r;)t=r._next,this.remove(r),r=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),xd(this)},r.totalDuration=function(e){var t,r,n,a=0,o=this._last,i=1e8;if(arguments.length)return this.timeScale((this._repeat<0?this.duration():this.totalDuration())/(this.reversed()?-e:e));if(this._dirty){for(n=this.parent;o;)t=o._prev,o._dirty&&o.totalDuration(),(r=o._start)>i&&this._sort&&o._ts&&!this._lock?(this._lock=1,xx(this,o,r-o._delay,1)._lock=0):i=r,r<0&&o._ts&&(a-=r,(!n&&!this._dp||n&&n.smoothChildTiming)&&(this._start+=b4(r/this._ts),this._time-=r,this._tTime-=r),this.shiftChildren(-r,!1,-Infinity),i=0),o._end>a&&o._ts&&(a=o._end),o=t;xP(this,this===be&&this._time>a?this._time:a,1,1),this._dirty=0}return this._tDur},t.updateRoot=function(e){if(be._ts&&(b7(be,xy(e,be)),bo=x6.frame),x6.frame>=bX){bX+=bl.autoSleep||120;var t=be._first;if((!t||!t._ts)&&bl.autoSleep&&x6._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||x6.sleep()}}},t}(wd);xr(wf.prototype,{_lock:0,_hasPause:0,_forcing:0});var wp,wm,wh,wy,wv,wg,wb=function(e,t,r,n,a,o,i){var s,l,u,c,d,f,p,m,h=new w$(this._pt,e,t,0,1,wF,null,a),y=0,v=0;for(h.b=r,h.e=n,r+="",n+="",(p=~n.indexOf("random("))&&(n=xH(n)),o&&(o(m=[r,n],e,t),r=m[0],n=m[1]),l=r.match(bT)||[];s=bT.exec(n);)c=s[0],d=n.substring(y,s.index),u?u=(u+1)%5:"rgba("===d.substr(-5)&&(u=1),c!==l[v++]&&(f=parseFloat(l[v-1])||0,h._pt={_next:h._pt,p:d||1===v?d:",",s:f,c:"="===c.charAt(1)?b5(f,c)-f:parseFloat(c)-f,m:u&&u<4?Math.round:0},y=bT.lastIndex);return h.c=y<n.length?n.substring(y,n.length):"",h.fp=i,(bN.test(n)||p)&&(h.e=0),this._pt=h,h},wx=function(e,t,r,n,a,o,i,s,l,u){bv(n)&&(n=n(a||0,e,o));var c,d=e[t],f="get"!==r?r:bv(d)?l?e[t.indexOf("set")||!bv(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():d,p=bv(d)?l?wR:wN:wT;if(by(n)&&(~n.indexOf("random(")&&(n=xH(n)),"="===n.charAt(1)&&((c=b5(f,n)+(xM(f)||0))||0===c)&&(n=c)),!u||f!==n||wg)return isNaN(f*n)||""===n?(d||t in e||bF(t,n),wb.call(this,e,t,f,n,p,s||bl.stringFilter,l)):(c=new w$(this._pt,e,t,+f||0,n-(f||0),"boolean"==typeof d?wL:w_,0,p),l&&(c.fp=l),i&&c.modifier(i,this,e),this._pt=c)},ww=function(e,t,r,n,a){if(bv(e)&&(e=wP(e,a,t,r,n)),!bx(e)||e.style&&e.nodeType||bk(e)||bS(e))return by(e)?wP(e,a,t,r,n):e;var o,i={};for(o in e)i[o]=wP(e[o],a,t,r,n);return i},wj=function(e,t,r,n,a,o){var i,s,l,u;if(bq[e]&&!1!==(i=new bq[e]).init(a,i.rawVars?t[e]:ww(t[e],n,a,o,r),r,n,o)&&(r._pt=s=new w$(r._pt,a,e,0,1,i.render,i,0,i.priority),r!==bi))for(l=r._ptLookup[r._targets.indexOf(a)],u=i._props.length;u--;)l[i._props[u]]=s;return i},wO=function e(t,r,n){var a,o,i,s,l,u,c,d,f,p,m,h,y,v=t.vars,g=v.ease,b=v.startAt,x=v.immediateRender,w=v.lazy,j=v.onUpdate,O=v.runBackwards,S=v.yoyoEase,k=v.keyframes,E=v.autoRevert,P=t._dur,A=t._startAt,D=t._targets,C=t.parent,T=C&&"nested"===C.data?C.vars.targets:D,N="auto"===t._overwrite&&!g8,R=t.timeline,M=v.easeReverse||S;if(!R||k&&g||(g="none"),t._ease=wo(g,bu.ease),t._rEase=M&&(wo(M)||t._ease),t._from=!R&&!!v.runBackwards,t._from&&(t.ratio=1),!R||k&&!v.stagger){if(h=(d=D[0]?b0(D[0]).harness:0)&&v[d.prop],a=xo(v,bH),A&&(A._zTime<0&&A.progress(1),r<0&&O&&x&&!E?A.render(-1,!0):A.revert(O&&P?bU:bW),A._lazy=0),b){if(xc(t._startAt=wC.set(D,xr({data:"isStart",overwrite:!1,parent:C,immediateRender:!0,lazy:!A&&bw(w),startAt:null,delay:0,onUpdate:j&&function(){return xq(t,"onUpdate")},stagger:0},b))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(g9||!x&&!E)&&t._startAt.revert(bU),x&&P&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(O&&P&&!A)if(r&&(x=!1),i=xr({overwrite:!1,data:"isFromStart",lazy:x&&!A&&bw(w),immediateRender:x,stagger:0,parent:C},a),h&&(i[d.prop]=h),xc(t._startAt=wC.set(D,i)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(g9?t._startAt.revert(bU):t._startAt.render(-1,!0)),t._zTime=r,x){if(!r)return}else e(t._startAt,1e-8,1e-8);for(o=0,t._pt=t._ptCache=0,w=P&&bw(w)||w&&!P;o<D.length;o++){if(c=(l=D[o])._gsap||bJ(D)[o]._gsap,t._ptLookup[o]=p={},bG[c.id]&&bK.length&&b8(),m=T===D?o:T.indexOf(l),d&&!1!==(f=new d).init(l,h||a,t,m,T)&&(t._pt=s=new w$(t._pt,l,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(e){p[e]=s}),f.priority&&(u=1)),!d||h)for(i in a)bq[i]&&(f=wj(i,a,t,m,l,T))?f.priority&&(u=1):p[i]=s=wx.call(t,l,i,"get",a[i],m,T,0,v.stringFilter);t._op&&t._op[o]&&t.kill(l,t._op[o]),N&&t._pt&&(wv=t,be.killTweensOf(l,p,t.globalTime(r)),y=!t.parent,wv=0),t._pt&&w&&(bG[c.id]=1)}u&&wU(t),t._onInit&&t._onInit(t)}t._onUpdate=j,t._initted=(!t._op||t._pt)&&!y,k&&r<=0&&R.render(1e8,!0,!0)},wS=function(e,t,r,n,a,o,i,s){var l,u,c,d,f=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!f)for(f=e._ptCache[t]=[],c=e._ptLookup,d=e._targets.length;d--;){if((l=c[d][t])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return wg=1,e.vars[t]="+=0",wO(e,i),wg=0,s?bB(t+" not eligible for reset. Try splitting into individual properties"):1;f.push(l)}for(d=f.length;d--;)(l=(u=f[d])._pt||u).s=(n||0===n)&&!a?n:l.s+(n||0)+o*l.c,l.c=r-l.s,u.e&&(u.e=b3(r)+xM(u.e)),u.b&&(u.b=l.s+xM(u.b))},wk=function(e,t){var r,n,a,o,i=e[0]?b0(e[0]).harness:0,s=i&&i.aliases;if(!s)return t;for(n in r=xn({},t),s)if(n in r)for(a=(o=s[n].split(",")).length;a--;)r[o[a]]=r[n];return r},wE=function(e,t,r,n){var a,o,i=t.ease||n||"power1.inOut";if(bk(t))o=r[e]||(r[e]=[]),t.forEach(function(e,r){return o.push({t:r/(t.length-1)*100,v:e,e:i})});else for(a in t)o=r[a]||(r[a]=[]),"ease"===a||o.push({t:parseFloat(e),v:t[a],e:i})},wP=function(e,t,r,n,a){return bv(e)?e.call(t,r,n,a):by(e)&&~e.indexOf("random(")?xH(e):e},wA=bQ+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",wD={};b2(wA+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return wD[e]=1});var wC=function(e){function t(t,r,n,a){"number"==typeof r&&(n.duration=r,r=n,n=null);var o,i,s,l,u,c,d,f,p=e.call(this,a?r:xi(r))||this,m=p.vars,h=m.duration,y=m.delay,v=m.immediateRender,g=m.stagger,b=m.overwrite,x=m.keyframes,w=m.defaults,j=m.scrollTrigger,O=r.parent||be,S=(bk(t)||bS(t)?bg(t[0]):"length"in r)?[t]:xL(t);if(p._targets=S.length?bJ(S):bB("GSAP target "+t+" not found. https://gsap.com",!bl.nullTargetWarn)||[],p._ptLookup=[],p._overwrite=b,x||g||bO(h)||bO(y)){var k=(r=p.vars).easeReverse||r.yoyoEase;if((o=p.timeline=new wf({data:"nested",defaults:w||{},targets:O&&"nested"===O.data?O.vars.targets:S})).kill(),o.parent=o._dp=gV(p),o._start=0,g||bO(h)||bO(y)){if(l=S.length,d=g&&xV(g),bx(g))for(u in g)~wA.indexOf(u)&&(f||(f={}),f[u]=g[u]);for(i=0;i<l;i++)(s=xo(r,wD)).stagger=0,k&&(s.easeReverse=k),f&&xn(s,f),c=S[i],s.duration=+wP(h,gV(p),i,c,S),s.delay=(+wP(y,gV(p),i,c,S)||0)-p._delay,!g&&1===l&&s.delay&&(p._delay=y=s.delay,p._start+=y,s.delay=0),o.to(c,s,d?d(i,c,S):0),o._ease=x9.none;o.duration()?h=y=0:p.timeline=0}else if(x){xi(xr(o.vars.defaults,{ease:"none"})),o._ease=wo(x.ease||r.ease||"none");var E,P,A,D=0;if(bk(x))x.forEach(function(e){return o.to(S,e,">")}),o.duration();else{for(u in s={},x)"ease"===u||"easeEach"===u||wE(u,x[u],s,x.easeEach);for(u in s)for(i=0,E=s[u].sort(function(e,t){return e.t-t.t}),D=0;i<E.length;i++)(A={ease:(P=E[i]).e,duration:(P.t-(i?E[i-1].t:0))/100*h})[u]=P.v,o.to(S,A,D),D+=A.duration;o.duration()<h&&o.to({},{duration:h-o.duration()})}}h||p.duration(h=o.duration())}else p.timeline=0;return!0!==b||g8||(wv=gV(p),be.killTweensOf(S),wv=0),xx(O,gV(p),n),r.reversed&&p.reverse(),r.paused&&p.paused(!0),(v||!h&&!x&&p._start===b4(O._time)&&bw(v)&&function e(t){return!t||t._ts&&e(t.parent)}(gV(p))&&"nested"!==O.data)&&(p._tTime=-1e-8,p.render(Math.max(0,-y)||0)),j&&xw(gV(p),j),p}gz(t,e);var r=t.prototype;return r.render=function(e,t,r){var n,a,o,i,s,l,u,c,d=this._time,f=this._tDur,p=this._dur,m=e<0,h=e>f-1e-8&&!m?f:e<1e-8?0:e;if(p){if(h!==this._tTime||!e||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m||this._lazy){if(n=h,c=this.timeline,this._repeat){if(i=p+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*i+e,t,r);if(n=b4(h%i),h===f?(o=this._repeat,n=p):(o=~~(s=b4(h/i)))&&o===s?(n=p,o--):n>p&&(n=p),(l=this._yoyo&&1&o)&&(n=p-n),s=xh(this._tTime,i),n===d&&!r&&this._initted&&o===s)return this._tTime=h,this;o!==s&&this.vars.repeatRefresh&&!l&&!this._lock&&n!==i&&this._initted&&(this._lock=r=1,this.render(b4(i*o),!0).invalidate()._lock=0)}if(!this._initted){if(xj(this,m?e:n,r,t,h))return this._tTime=0,this;if(d!==this._time&&!(r&&this.vars.repeatRefresh&&o!==s))return this;if(p!==this._dur)return this.render(e,t,r)}if(this._rEase){var y=n<d;if(y!==this._inv){var v=y?d:p-d;this._inv=y,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=d,this._invRecip=v?(y?-1:1)/v:0,this._invScale=y?-this.ratio:1-this.ratio,this._invEase=y?this._rEase:this._ease}this.ratio=u=this._invRatio+this._invScale*this._invEase((n-this._invTime)*this._invRecip)}else this.ratio=u=this._ease(n/p);if(this._from&&(this.ratio=u=1-u),this._tTime=h,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!d&&h&&!t&&!s&&(xq(this,"onStart"),this._tTime!==h))return this;for(a=this._pt;a;)a.r(u,a.d),a=a._next;c&&c.render(e<0?e:c._dur*c._ease(n/this._dur),t,r)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(m&&xp(this,e,t,r),xq(this,"onUpdate")),this._repeat&&o!==s&&this.vars.onRepeat&&!t&&this.parent&&xq(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(m&&!this._onUpdate&&xp(this,e,!0,!0),(e||!p)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&xc(this,1),!t&&!(m&&!d)&&(h||d||l)&&(xq(this,h===f?"onComplete":"onReverseComplete",!0),this._prom&&!(h<f&&this.timeScale()>0)&&this._prom()))}}else xk(this,e,t,r);return this},r.targets=function(){return this._targets},r.invalidate=function(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},r.resetTo=function(e,t,r,n,a){bs||x6.wake(),this._ts||this.play();var o=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||wO(this,o),wS(this,e,t,r,n,this._ease(o/this._dur),o,a))?this.resetTo(e,t,r,n,1):(xg(this,0),this.parent||xl(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(e,t){if(void 0===t&&(t="all"),!e&&(!t||"all"===t))return this._lazy=this._pt=0,this.parent?xY(this):this.scrollTrigger&&this.scrollTrigger.kill(!!g9),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,wv&&!0!==wv.vars.overwrite)._first||xY(this),this.parent&&r!==this.timeline.totalDuration()&&xP(this,this._dur*this.timeline._tDur/r,0,1),this}var n,a,o,i,s,l,u,c=this._targets,d=e?xL(e):c,f=this._ptLookup,p=this._pt;if((!t||"all"===t)&&xs(c,d))return"all"===t&&(this._pt=0),xY(this);for(n=this._op=this._op||[],"all"!==t&&(by(t)&&(s={},b2(t,function(e){return s[e]=1}),t=s),t=wk(c,t)),u=c.length;u--;)if(~d.indexOf(c[u]))for(s in a=f[u],"all"===t?(n[u]=t,i=a,o={}):(o=n[u]=n[u]||{},i=t),i)(l=a&&a[s])&&("kill"in l.d&&!0!==l.d.kill(s)||xu(this,l,"_pt"),delete a[s]),"all"!==o&&(o[s]=1);return this._initted&&!this._pt&&p&&xY(this),this},t.to=function(e,r){return new t(e,r,arguments[2])},t.from=function(e,t){return xT(1,arguments)},t.delayedCall=function(e,r,n,a){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:a})},t.fromTo=function(e,t,r){return xT(2,arguments)},t.set=function(e,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(e,r)},t.killTweensOf=function(e,t,r){return be.killTweensOf(e,t,r)},t}(wd);xr(wC.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),b2("staggerTo,staggerFrom,staggerFromTo",function(e){wC[e]=function(){var t=new wf,r=xI.call(arguments,0);return r.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,r)}});var wT=function(e,t,r){return e[t]=r},wN=function(e,t,r){return e[t](r)},wR=function(e,t,r,n){return e[t](n.fp,r)},wM=function(e,t,r){return e.setAttribute(t,r)},wI=function(e,t){return bv(e[t])?wN:bb(e[t])&&e.setAttribute?wM:wT},w_=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},wL=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},wF=function(e,t){var r=t._pt,n="";if(!e&&t.b)n=t.b;else if(1===e&&t.e)n=t.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+n,r=r._next;n+=t.c}t.set(t.t,t.p,n,t)},wB=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},wV=function(e,t,r,n){for(var a,o=this._pt;o;)a=o._next,o.p===n&&o.modifier(e,t,r),o=a},wz=function(e){for(var t,r,n=this._pt;n;)r=n._next,(n.p!==e||n.op)&&n.op!==e?n.dep||(t=1):xu(this,n,"_pt"),n=r;return!t},wW=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},wU=function(e){for(var t,r,n,a,o=e._pt;o;){for(t=o._next,r=n;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:a)?o._prev._next=o:n=o,(o._next=r)?r._prev=o:a=o,o=t}e._pt=n},w$=function(){function e(e,t,r,n,a,o,i,s,l){this.t=t,this.s=n,this.c=a,this.p=r,this.r=o||w_,this.d=i||this,this.set=s||wT,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,r){this.mSet=this.mSet||this.set,this.set=wW,this.m=e,this.mt=r,this.tween=t},e}();b2(bQ+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(e){return bH[e]=1}),bI.TweenMax=bI.TweenLite=wC,bI.TimelineLite=bI.TimelineMax=wf,be=new wf({sortChildren:!1,defaults:bu,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),bl.stringFilter=x5;var wH=[],wK={},wG=[],wq=0,wY=0,wX=function(e){return(wK[e]||wG).map(function(e){return e()})},wZ=function(){var e=Date.now(),t=[];e-wq>2&&(wX("matchMediaInit"),wH.forEach(function(e){var r,n,a,o,i=e.queries,s=e.conditions;for(n in i)(r=bt.matchMedia(i[n]).matches)&&(a=1),r!==s[n]&&(s[n]=r,o=1);o&&(e.revert(),a&&t.push(e))}),wX("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),wq=e,wX("matchMedia"))},wQ=function(){function e(e,t){this.selector=t&&xF(t),this.data=[],this._r=[],this.isReverted=!1,this.id=wY++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,r){bv(e)&&(r=t,t=e,e=bv);var n=this,a=function(){var e,a=g7,o=n.selector;return a&&a!==n&&a.data.push(n),r&&(n.selector=xF(r)),g7=n,e=t.apply(n,arguments),bv(e)&&n._r.push(e),g7=a,n.selector=o,n.isReverted=!1,e};return n.last=a,e===bv?a(n,function(e){return n.add(null,e)}):e?n[e]=a:a},t.ignore=function(e){var t=g7;g7=null,e(this),g7=t},t.getTweens=function(){var t=[];return this.data.forEach(function(r){return gB(r,e)?t.push.apply(t,r.getTweens()):gB(r,wC)&&!(r.parent&&"nested"===r.parent.data)&&t.push(r)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var r=this;if(e){for(var n,a=r.getTweens(),o=r.data.length;o--;)"isFlip"===(n=r.data[o]).data&&(n.revert(),n.getChildren(!0,!0,!1).forEach(function(e){return a.splice(a.indexOf(e),1)}));for(a.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),o=r.data.length;o--;)gB(n=r.data[o],wf)?"nested"!==n.data&&(n.scrollTrigger&&n.scrollTrigger.revert(),n.kill()):!gB(n,wC)&&n.revert&&n.revert(e);r._r.forEach(function(t){return t(e,r)}),r.isReverted=!0}else this.data.forEach(function(e){return e.kill&&e.kill()});if(this.clear(),t)for(var i=wH.length;i--;)wH[i].id===this.id&&wH.splice(i,1)},t.revert=function(e){this.kill(e||{})},e}(),wJ=function(){function e(e){this.contexts=[],this.scope=e,g7&&g7.data.push(this)}var t=e.prototype;return t.add=function(e,t,r){bx(e)||(e={matches:e});var n,a,o,i=new wQ(0,r||this.scope),s=i.conditions={};for(a in g7&&!i.selector&&(i.selector=g7.selector),this.contexts.push(i),t=i.add("onMatch",t),i.queries=e,e)"all"===a?o=1:(n=bt.matchMedia(e[a]))&&(0>wH.indexOf(i)&&wH.push(i),(s[a]=n.matches)&&(o=1),n.addListener?n.addListener(wZ):n.addEventListener("change",wZ));return o&&t(i,function(e){return i.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),w0={registerPlugin:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(e){return xZ(e)})},timeline:function(e){return new wf(e)},getTweensOf:function(e,t){return be.getTweensOf(e,t)},getProperty:function(e,t,r,n){by(e)&&(e=xL(e)[0]);var a=b0(e||{}).get,o=r?xt:xe;return"native"===r&&(r=""),e?t?o((bq[t]&&bq[t].get||a)(e,t,r,n)):function(t,r,n){return o((bq[t]&&bq[t].get||a)(e,t,r,n))}:e},quickSetter:function(e,t,r){if((e=xL(e)).length>1){var n=e.map(function(e){return w4.quickSetter(e,t,r)}),a=n.length;return function(e){for(var t=a;t--;)n[t](e)}}e=e[0]||{};var o=bq[t],i=b0(e),s=i.harness&&(i.harness.aliases||{})[t]||t,l=o?function(t){var n=new o;bi._pt=0,n.init(e,r?t+r:t,bi,0,[e]),n.render(1,n),bi._pt&&wB(1,bi)}:i.set(e,s);return o?l:function(t){return l(e,s,r?t+r:t,i,1)}},quickTo:function(e,t,r){var n,a=w4.to(e,xr(((n={})[t]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),o=function(e,r,n){return a.resetTo(t,e,r,n)};return o.tween=a,o},isTweening:function(e){return be.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=wo(e.ease,bu.ease)),xa(bu,e||{})},config:function(e){return xa(bl,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.plugins,a=e.defaults,o=e.extendTimeline;(n||"").split(",").forEach(function(e){return e&&!bq[e]&&!bI[e]&&bB(t+" effect requires "+e+" plugin.")}),bY[t]=function(e,t,n){return r(xL(e),xr(t||{},a),n)},o&&(wf.prototype[t]=function(e,r,n){return this.add(bY[t](e,bx(r)?r:(n=r)&&{},this),n)})},registerEase:function(e,t){x9[e]=wo(t)},parseEase:function(e,t){return arguments.length?wo(e,t):x9},getById:function(e){return be.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var r,n,a=new wf(e);for(a.smoothChildTiming=bw(e.smoothChildTiming),be.remove(a),a._dp=0,a._time=a._tTime=be._time,r=be._first;r;)n=r._next,(t||!(!r._dur&&gB(r,wC)&&r.vars.onComplete===r._targets[0]))&&xx(a,r,r._start-r._delay),r=n;return xx(be,a,0),a},context:function(e,t){return e?new wQ(e,t):g7},matchMedia:function(e){return new wJ(e)},matchMediaRefresh:function(){return wH.forEach(function(e){var t,r,n=e.conditions;for(r in n)n[r]&&(n[r]=!1,t=1);t&&e.revert()})||wZ()},addEventListener:function(e,t){var r=wK[e]||(wK[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=wK[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},utils:{wrap:function e(t,r,n){var a=r-t;return bk(t)?x$(t,e(0,t.length),r):xN(n,function(e){return(a+(e-t)%a)%a+t})},wrapYoyo:function e(t,r,n){var a=r-t,o=2*a;return bk(t)?x$(t,e(0,t.length-1),r):xN(n,function(e){return e=(o+(e-t)%o)%o||0,t+(e>a?o-e:e)})},distribute:xV,random:xU,snap:xW,normalize:function(e,t,r){return xK(e,t,0,1,r)},getUnit:xM,clamp:function(e,t,r){return xN(r,function(r){return xR(e,t,r)})},splitColor:x0,toArray:xL,selector:xF,mapRange:xK,pipe:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduce(function(e,t){return t(e)},e)}},unitize:function(e,t){return function(r){return e(parseFloat(r))+(t||xM(r))}},interpolate:function e(t,r,n,a){var o=isNaN(t+r)?0:function(e){return(1-e)*t+e*r};if(!o){var i,s,l,u,c,d=by(t),f={};if(!0===n&&(a=1)&&(n=null),d)t={p:t},r={p:r};else if(bk(t)&&!bk(r)){for(s=1,l=[],c=(u=t.length)-2;s<u;s++)l.push(e(t[s-1],t[s]));u--,o=function(e){var t=Math.min(c,~~(e*=u));return l[t](e-t)},n=r}else a||(t=xn(bk(t)?[]:{},t));if(!l){for(i in r)wx.call(f,t,i,"get",r[i]);o=function(e){return wB(e,f)||(d?t.p:t)}}}return xN(n,o)},shuffle:xB},install:bL,effects:bY,ticker:x6,updateRoot:wf.updateRoot,plugins:bq,globalTimeline:be,core:{PropTween:w$,globals:bV,Tween:wC,Timeline:wf,Animation:wd,getCache:b0,_removeLinkedListItem:xu,reverting:function(){return g9},context:function(e){return e&&g7&&(g7.data.push(e),e._ctx=g7),g7},suppressOverwrites:function(e){return g8=e}}};b2("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return w0[e]=wC[e]}),x6.add(wf.updateRoot),bi=w0.to({},{duration:0});var w1=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},w2=function(e,t){var r,n,a,o=e._targets;for(r in t)for(n=o.length;n--;)(a=e._ptLookup[n][r])&&(a=a.d)&&(a._pt&&(a=w1(a,r)),a&&a.modifier&&a.modifier(t[r],e,o[n],r))},w3=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,r,n){n._onInit=function(e){var n,a;if(by(r)&&(n={},b2(r,function(e){return n[e]=1}),r=n),t){for(a in n={},r)n[a]=t(r[a]);r=n}w2(e,r)}}}},w4=w0.registerPlugin({name:"attr",init:function(e,t,r,n,a){var o,i,s;for(o in this.tween=r,t)s=e.getAttribute(o)||"",(i=this.add(e,"setAttribute",(s||0)+"",t[o],n,a,0,0,o)).op=o,i.b=s,this._props.push(o)},render:function(e,t){for(var r=t._pt;r;)g9?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},w3("roundProps",xz),w3("modifiers"),w3("snap",xW))||w0;function w5(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}wC.version=wf.version=w4.version="3.15.0",ba=1,bj()&&x8(),x9.Power0,x9.Power1,x9.Power2,x9.Power3,x9.Power4,x9.Linear,x9.Quad,x9.Cubic,x9.Quart,x9.Quint,x9.Strong,x9.Elastic,x9.Back,x9.SteppedEase,x9.Bounce,x9.Sine,x9.Expo,x9.Circ;var w6,w8,w9,w7,je,jt,jr,jn={},ja=180/Math.PI,jo=Math.PI/180,ji=Math.atan2,js=/([A-Z])/g,jl=/(left|right|width|margin|padding|x)/i,ju=/[\s,\(]\S/,jc={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},jd=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},jf=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},jp=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},jm=function(e,t){return t.set(t.t,t.p,1===e?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},jh=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},jy=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},jv=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},jg=function(e,t,r){return e.style[t]=r},jb=function(e,t,r){return e.style.setProperty(t,r)},jx=function(e,t,r){return e._gsap[t]=r},jw=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},jj=function(e,t,r,n,a){var o=e._gsap;o.scaleX=o.scaleY=r,o.renderTransform(a,o)},jO=function(e,t,r,n,a){var o=e._gsap;o[t]=r,o.renderTransform(a,o)},jS="transform",jk=jS+"Origin",jE=function e(t,r){var n=this,a=this.target,o=a.style,i=a._gsap;if(t in jn&&o){if(this.tfm=this.tfm||{},"transform"===t)return jc.transform.split(",").forEach(function(t){return e.call(n,t,r)});if(~(t=jc[t]||t).indexOf(",")?t.split(",").forEach(function(e){return n.tfm[e]=j$(a,e)}):this.tfm[t]=i.x?i[t]:j$(a,t),t===jk&&(this.tfm.zOrigin=i.zOrigin),this.props.indexOf(jS)>=0)return;i.svg&&(this.svgo=a.getAttribute("data-svg-origin"),this.props.push(jk,r,"")),t=jS}(o||r)&&this.props.push(t,r,o[t])},jP=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},jA=function(){var e,t,r=this.props,n=this.target,a=n.style,o=n._gsap;for(e=0;e<r.length;e+=3)r[e+1]?2===r[e+1]?n[r[e]](r[e+2]):n[r[e]]=r[e+2]:r[e+2]?a[r[e]]=r[e+2]:a.removeProperty("--"===r[e].substr(0,2)?r[e]:r[e].replace(js,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)o[t]=this.tfm[t];o.svg&&(o.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(e=jt())&&e.isStart||a[jS]||(jP(a),o.zOrigin&&a[jk]&&(a[jk]+=" "+o.zOrigin+"px",o.zOrigin=0,o.renderTransform()),o.uncache=1)}},jD=function(e,t){var r={target:e,props:[],revert:jA,save:jE};return e._gsap||w4.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return r.save(e)}),r},jC=function(e,t){var r=w6.createElementNS?w6.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):w6.createElement(e);return r&&r.style?r:w6.createElement(e)},jT=function e(t,r,n){var a=getComputedStyle(t);return a[r]||a.getPropertyValue(r.replace(js,"-$1").toLowerCase())||a.getPropertyValue(r)||!n&&e(t,jR(r)||r,1)||""},jN="O,Moz,ms,Ms,Webkit".split(","),jR=function(e,t,r){var n=(t||w7).style,a=5;if(e in n&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(jN[a]+e in n););return a<0?null:(3===a?"ms":a>=0?jN[a]:"")+e},jM=function(){"u">typeof window&&window.document&&(w8=(w6=window.document).documentElement,w7=jC("div")||{style:{}},jC("div"),jk=(jS=jR(jS))+"Origin",w7.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",jr=!!jR("perspective"),jt=w4.core.reverting,w9=1)},jI=function(e){var t,r=e.ownerSVGElement,n=jC("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),a=e.cloneNode(!0);a.style.display="block",n.appendChild(a),w8.appendChild(n);try{t=a.getBBox()}catch(e){}return n.removeChild(a),w8.removeChild(n),t},j_=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},jL=function(e){var t,r;try{t=e.getBBox()}catch(n){t=jI(e),r=1}return t&&(t.width||t.height)||r||(t=jI(e)),!t||t.width||t.x||t.y?t:{x:+j_(e,["x","cx","x1"])||0,y:+j_(e,["y","cy","y1"])||0,width:0,height:0}},jF=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&jL(e))},jB=function(e,t){if(t){var r,n=e.style;t in jn&&t!==jk&&(t=jS),n.removeProperty?(("ms"===(r=t.substr(0,2))||"webkit"===t.substr(0,6))&&(t="-"+t),n.removeProperty("--"===r?t:t.replace(js,"-$1").toLowerCase())):n.removeAttribute(t)}},jV=function(e,t,r,n,a,o){var i=new w$(e._pt,t,r,0,1,o?jv:jy);return e._pt=i,i.b=n,i.e=a,e._props.push(r),i},jz={deg:1,rad:1,turn:1},jW={grid:1,flex:1},jU=function e(t,r,n,a){var o,i,s,l,u=parseFloat(n)||0,c=(n+"").trim().substr((u+"").length)||"px",d=w7.style,f=jl.test(r),p="svg"===t.tagName.toLowerCase(),m=(p?"client":"offset")+(f?"Width":"Height"),h="px"===a,y="%"===a;if(a===c||!u||jz[a]||jz[c])return u;if("px"===c||h||(u=e(t,r,n,"px")),l=t.getCTM&&jF(t),(y||"%"===c)&&(jn[r]||~r.indexOf("adius")))return o=l?t.getBBox()[f?"width":"height"]:t[m],b3(y?u/o*100:u/100*o);if(d[f?"width":"height"]=100+(h?c:a),i="rem"!==a&&~r.indexOf("adius")||"em"===a&&t.appendChild&&!p?t:t.parentNode,l&&(i=(t.ownerSVGElement||{}).parentNode),i&&i!==w6&&i.appendChild||(i=w6.body),(s=i._gsap)&&y&&s.width&&f&&s.time===x6.time&&!s.uncache)return b3(u/s.width*100);if(y&&("height"===r||"width"===r)){var v=t.style[r];t.style[r]=100+a,o=t[m],v?t.style[r]=v:jB(t,r)}else(y||"%"===c)&&!jW[jT(i,"display")]&&(d.position=jT(t,"position")),i===t&&(d.position="static"),i.appendChild(w7),o=w7[m],i.removeChild(w7),d.position="absolute";return f&&y&&((s=b0(i)).time=x6.time,s.width=i[m]),b3(h?o*u/100:o&&u?100/o*u:0)},j$=function(e,t,r,n){var a;return w9||jM(),t in jc&&"transform"!==t&&~(t=jc[t]).indexOf(",")&&(t=t.split(",")[0]),jn[t]&&"transform"!==t?(a=j2(e,n),a="transformOrigin"!==t?a[t]:a.svg?a.origin:j3(jT(e,jk))+" "+a.zOrigin+"px"):(!(a=e.style[t])||"auto"===a||n||~(a+"").indexOf("calc("))&&(a=jY[t]&&jY[t](e,t,r)||jT(e,t)||b1(e,t)||+("opacity"===t)),r&&!~(a+"").trim().indexOf(" ")?jU(e,t,a,r)+r:a},jH=function(e,t,r,n){if(!r||"none"===r){var a=jR(t,e,1),o=a&&jT(e,a,1);o&&o!==r?(t=a,r=o):"borderColor"===t&&(r=jT(e,"borderTopColor"))}var i,s,l,u,c,d,f,p,m,h,y,v=new w$(this._pt,e.style,t,0,1,wF),g=0,b=0;if(v.b=r,v.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=jT(e,n.substring(4,n.indexOf(")")))),"auto"===n&&(d=e.style[t],e.style[t]=n,n=jT(e,t)||n,d?e.style[t]=d:jB(e,t)),x5(i=[r,n]),r=i[0],n=i[1],l=r.match(bC)||[],(n.match(bC)||[]).length){for(;s=bC.exec(n);)f=s[0],m=n.substring(g,s.index),c?c=(c+1)%5:("rgba("===m.substr(-5)||"hsla("===m.substr(-5))&&(c=1),f!==(d=l[b++]||"")&&(u=parseFloat(d)||0,y=d.substr((u+"").length),"="===f.charAt(1)&&(f=b5(u,f)+y),p=parseFloat(f),h=f.substr((p+"").length),g=bC.lastIndex-h.length,h||(h=h||bl.units[t]||y,g===n.length&&(n+=h,v.e+=h)),y!==h&&(u=jU(e,t,d,h)||0),v._pt={_next:v._pt,p:m||1===b?m:",",s:u,c:p-u,m:c&&c<4||"zIndex"===t?Math.round:0});v.c=g<n.length?n.substring(g,n.length):""}else v.r="display"===t&&"none"===n?jv:jy;return bN.test(n)&&(v.e=0),this._pt=v,v},jK={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},jG=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return("top"===r||"bottom"===r||"left"===n||"right"===n)&&(e=r,r=n,n=e),t[0]=jK[r]||r,t[1]=jK[n]||n,t.join(" ")},jq=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r,n,a,o=t.t,i=o.style,s=t.u,l=o._gsap;if("all"===s||!0===s)i.cssText="",n=1;else for(a=(s=s.split(",")).length;--a>-1;)jn[r=s[a]]&&(n=1,r="transformOrigin"===r?jk:jS),jB(o,r);n&&(jB(o,jS),l&&(l.svg&&o.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",j2(o,1),l.uncache=1,jP(i)))}},jY={clearProps:function(e,t,r,n,a){if("isFromStart"!==a.data){var o=e._pt=new w$(e._pt,t,r,0,0,jq);return o.u=n,o.pr=-10,o.tween=a,e._props.push(r),1}}},jX=[1,0,0,1,0,0],jZ={},jQ=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},jJ=function(e){var t=jT(e,jS);return jQ(t)?jX:t.substr(7).match(bD).map(b3)},j0=function(e,t){var r,n,a,o,i=e._gsap||b0(e),s=e.style,l=jJ(e);return i.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(a=e.transform.baseVal.consolidate().matrix).a,a.b,a.c,a.d,a.e,a.f]).join(",")?jX:l:(l!==jX||e.offsetParent||e===w8||i.svg||(a=s.display,s.display="block",(r=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(o=1,n=e.nextElementSibling,w8.appendChild(e)),l=jJ(e),a?s.display=a:jB(e,"display"),o&&(n?r.insertBefore(e,n):r?r.appendChild(e):w8.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},j1=function(e,t,r,n,a,o){var i,s,l,u,c=e._gsap,d=a||j0(e,!0),f=c.xOrigin||0,p=c.yOrigin||0,m=c.xOffset||0,h=c.yOffset||0,y=d[0],v=d[1],g=d[2],b=d[3],x=d[4],w=d[5],j=t.split(" "),O=parseFloat(j[0])||0,S=parseFloat(j[1])||0;r?d!==jX&&(s=y*b-v*g)&&(l=b/s*O+-g/s*S+(g*w-b*x)/s,u=-v/s*O+y/s*S-(y*w-v*x)/s,O=l,S=u):(O=(i=jL(e)).x+(~j[0].indexOf("%")?O/100*i.width:O),S=i.y+(~(j[1]||j[0]).indexOf("%")?S/100*i.height:S)),n||!1!==n&&c.smooth?(c.xOffset=m+((x=O-f)*y+(w=S-p)*g)-x,c.yOffset=h+(x*v+w*b)-w):c.xOffset=c.yOffset=0,c.xOrigin=O,c.yOrigin=S,c.smooth=!!n,c.origin=t,c.originIsAbsolute=!!r,e.style[jk]="0px 0px",o&&(jV(o,c,"xOrigin",f,O),jV(o,c,"yOrigin",p,S),jV(o,c,"xOffset",m,c.xOffset),jV(o,c,"yOffset",h,c.yOffset)),e.setAttribute("data-svg-origin",O+" "+S)},j2=function(e,t){var r=e._gsap||new wc(e);if("x"in r&&!t&&!r.uncache)return r;var n,a,o,i,s,l,u,c,d,f,p,m,h,y,v,g,b,x,w,j,O,S,k,E,P,A,D,C,T,N,R,M,I=e.style,L=r.scaleX<0,F=getComputedStyle(e),B=jT(e,jk)||"0";return n=a=o=l=u=c=d=f=p=0,i=s=1,r.svg=!!(e.getCTM&&jF(e)),F.translate&&(("none"!==F.translate||"none"!==F.scale||"none"!==F.rotate)&&(I[jS]=("none"!==F.translate?"translate3d("+(F.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==F.rotate?"rotate("+F.rotate+") ":"")+("none"!==F.scale?"scale("+F.scale.split(" ").join(",")+") ":"")+("none"!==F[jS]?F[jS]:"")),I.scale=I.rotate=I.translate="none"),y=j0(e,r.svg),r.svg&&(r.uncache?(P=e.getBBox(),B=r.xOrigin-P.x+"px "+(r.yOrigin-P.y)+"px",E=""):E=!t&&e.getAttribute("data-svg-origin"),j1(e,E||B,!!E||r.originIsAbsolute,!1!==r.smooth,y)),m=r.xOrigin||0,h=r.yOrigin||0,y!==jX&&(x=y[0],w=y[1],j=y[2],O=y[3],n=S=y[4],a=k=y[5],6===y.length?(i=Math.sqrt(x*x+w*w),s=Math.sqrt(O*O+j*j),l=x||w?ji(w,x)*ja:0,(d=j||O?ji(j,O)*ja+l:0)&&(s*=Math.abs(Math.cos(d*jo))),r.svg&&(n-=m-(m*x+h*j),a-=h-(m*w+h*O))):(M=y[6],N=y[7],D=y[8],C=y[9],T=y[10],R=y[11],n=y[12],a=y[13],o=y[14],u=(v=ji(M,T))*ja,v&&(E=S*(g=Math.cos(-v))+D*(b=Math.sin(-v)),P=k*g+C*b,A=M*g+T*b,D=-(S*b)+D*g,C=-(k*b)+C*g,T=-(M*b)+T*g,R=-(N*b)+R*g,S=E,k=P,M=A),c=(v=ji(-j,T))*ja,v&&(E=x*(g=Math.cos(-v))-D*(b=Math.sin(-v)),P=w*g-C*b,A=j*g-T*b,R=O*b+R*g,x=E,w=P,j=A),l=(v=ji(w,x))*ja,v&&(E=x*(g=Math.cos(v))+w*(b=Math.sin(v)),P=S*g+k*b,w=w*g-x*b,k=k*g-S*b,x=E,S=P),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),i=b3(Math.sqrt(x*x+w*w+j*j)),s=b3(Math.sqrt(k*k+M*M)),d=Math.abs(v=ji(S,k))>2e-4?v*ja:0,p=R?1/(R<0?-R:R):0),r.svg&&(E=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!jQ(jT(e,jS)),E&&e.setAttribute("transform",E))),Math.abs(d)>90&&270>Math.abs(d)&&(L?(i*=-1,d+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,d+=d<=0?180:-180)),t=t||r.uncache,r.x=n-((r.xPercent=n&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-n)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+"px",r.y=a-((r.yPercent=a&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-a)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+"px",r.z=o+"px",r.scaleX=b3(i),r.scaleY=b3(s),r.rotation=b3(l)+"deg",r.rotationX=b3(u)+"deg",r.rotationY=b3(c)+"deg",r.skewX=d+"deg",r.skewY=f+"deg",r.transformPerspective=p+"px",(r.zOrigin=parseFloat(B.split(" ")[2])||!t&&r.zOrigin||0)&&(I[jk]=j3(B)),r.xOffset=r.yOffset=0,r.force3D=bl.force3D,r.renderTransform=r.svg?j9:jr?j8:j5,r.uncache=0,r},j3=function(e){return(e=e.split(" "))[0]+" "+e[1]},j4=function(e,t,r){var n=xM(t);return b3(parseFloat(t)+parseFloat(jU(e,"x",r+"px",n)))+n},j5=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,j8(e,t)},j6="0deg",j8=function(e,t){var r=t||this,n=r.xPercent,a=r.yPercent,o=r.x,i=r.y,s=r.z,l=r.rotation,u=r.rotationY,c=r.rotationX,d=r.skewX,f=r.skewY,p=r.scaleX,m=r.scaleY,h=r.transformPerspective,y=r.force3D,v=r.target,g=r.zOrigin,b="",x="auto"===y&&e&&1!==e||!0===y;if(g&&(c!==j6||u!==j6)){var w,j=parseFloat(u)*jo,O=Math.sin(j),S=Math.cos(j);o=j4(v,o,-(O*(w=Math.cos(j=parseFloat(c)*jo))*g)),i=j4(v,i,-(-Math.sin(j)*g)),s=j4(v,s,-(S*w*g)+g)}"0px"!==h&&(b+="perspective("+h+") "),(n||a)&&(b+="translate("+n+"%, "+a+"%) "),(x||"0px"!==o||"0px"!==i||"0px"!==s)&&(b+="0px"!==s||x?"translate3d("+o+", "+i+", "+s+") ":"translate("+o+", "+i+") "),l!==j6&&(b+="rotate("+l+") "),u!==j6&&(b+="rotateY("+u+") "),c!==j6&&(b+="rotateX("+c+") "),(d!==j6||f!==j6)&&(b+="skew("+d+", "+f+") "),(1!==p||1!==m)&&(b+="scale("+p+", "+m+") "),v.style[jS]=b||"translate(0, 0)"},j9=function(e,t){var r,n,a,o,i,s=t||this,l=s.xPercent,u=s.yPercent,c=s.x,d=s.y,f=s.rotation,p=s.skewX,m=s.skewY,h=s.scaleX,y=s.scaleY,v=s.target,g=s.xOrigin,b=s.yOrigin,x=s.xOffset,w=s.yOffset,j=s.forceCSS,O=parseFloat(c),S=parseFloat(d);f=parseFloat(f),p=parseFloat(p),(m=parseFloat(m))&&(p+=m=parseFloat(m),f+=m),f||p?(f*=jo,p*=jo,r=Math.cos(f)*h,n=Math.sin(f)*h,a=-(Math.sin(f-p)*y),o=Math.cos(f-p)*y,p&&(m*=jo,a*=i=Math.sqrt(1+(i=Math.tan(p-m))*i),o*=i,m&&(r*=i=Math.sqrt(1+(i=Math.tan(m))*i),n*=i)),r=b3(r),n=b3(n),a=b3(a),o=b3(o)):(r=h,o=y,n=a=0),(O&&!~(c+"").indexOf("px")||S&&!~(d+"").indexOf("px"))&&(O=jU(v,"x",c,"px"),S=jU(v,"y",d,"px")),(g||b||x||w)&&(O=b3(O+g-(g*r+b*a)+x),S=b3(S+b-(g*n+b*o)+w)),(l||u)&&(O=b3(O+l/100*(i=v.getBBox()).width),S=b3(S+u/100*i.height)),i="matrix("+r+","+n+","+a+","+o+","+O+","+S+")",v.setAttribute("transform",i),j&&(v.style[jS]=i)},j7=function(e,t,r,n,a){var o,i,s=by(a),l=parseFloat(a)*(s&&~a.indexOf("rad")?ja:1)-n,u=n+l+"deg";return s&&("short"===(o=a.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===o&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===o&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),e._pt=i=new w$(e._pt,t,r,n,l,jf),i.e=u,i.u="deg",e._props.push(r),i},Oe=function(e,t){for(var r in t)e[r]=t[r];return e},Ot=function(e,t,r){var n,a,o,i,s,l,u,c=Oe({},r._gsap),d=r.style;for(a in c.svg?(o=r.getAttribute("transform"),r.setAttribute("transform",""),d[jS]=t,n=j2(r,1),jB(r,jS),r.setAttribute("transform",o)):(o=getComputedStyle(r)[jS],d[jS]=t,n=j2(r,1),d[jS]=o),jn)(o=c[a])!==(i=n[a])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(a)&&(s=xM(o)!==(u=xM(i))?jU(r,a,o,u):parseFloat(o),l=parseFloat(i),e._pt=new w$(e._pt,n,a,s,l-s,jd),e._pt.u=u||0,e._props.push(a));Oe(n,c)};b2("padding,margin,Width,Radius",function(e,t){var r="Right",n="Bottom",a="Left",o=(t<3?["Top",r,n,a]:["Top"+a,"Top"+r,n+r,n+a]).map(function(r){return t<2?e+r:"border"+r+e});jY[t>1?"border"+e:e]=function(e,t,r,n,a){var i,s;if(arguments.length<4)return 5===(s=(i=o.map(function(t){return j$(e,t,r)})).join(" ")).split(i[0]).length?i[0]:s;i=(n+"").split(" "),s={},o.forEach(function(e,t){return s[e]=i[t]=i[t]||i[(t-1)/2|0]}),e.init(t,s,a)}});var Or={name:"css",register:jM,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,a){var o,i,s,l,u,c,d,f,p,m,h,y,v,g,b,x,w,j=this._props,O=e.style,S=r.vars.startAt;for(d in w9||jM(),this.styles=this.styles||jD(e),x=this.styles.props,this.tween=r,t)if("autoRound"!==d&&(i=t[d],!(bq[d]&&wj(d,t,r,n,e,a)))){if(u=void 0===i?"undefined":w5(i),c=jY[d],"function"===u&&(u=void 0===(i=i.call(r,n,e,a))?"undefined":w5(i)),"string"===u&&~i.indexOf("random(")&&(i=xH(i)),c)c(this,e,d,i,r)&&(b=1);else if("--"===d.substr(0,2))o=(getComputedStyle(e).getPropertyValue(d)+"").trim(),i+="",x3.lastIndex=0,!x3.test(o)&&(f=xM(o),(p=xM(i))?f!==p&&(o=jU(e,d,o,p)+p):f&&(i+=f)),this.add(O,"setProperty",o,i,n,a,0,0,d),j.push(d),x.push(d,0,O[d]);else if("undefined"!==u){if(S&&d in S?(by(o="function"==typeof S[d]?S[d].call(r,n,e,a):S[d])&&~o.indexOf("random(")&&(o=xH(o)),xM(o+"")||"auto"===o||(o+=bl.units[d]||xM(j$(e,d))||""),"="===(o+"").charAt(1)&&(o=j$(e,d))):o=j$(e,d),l=parseFloat(o),(m="string"===u&&"="===i.charAt(1)&&i.substr(0,2))&&(i=i.substr(2)),s=parseFloat(i),d in jc&&("autoAlpha"===d&&(1===l&&"hidden"===j$(e,"visibility")&&s&&(l=0),x.push("visibility",0,O.visibility),jV(this,O,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==d&&"transform"!==d&&~(d=jc[d]).indexOf(",")&&(d=d.split(",")[0])),h=d in jn){if(this.styles.save(d),w=i,"string"===u&&"var(--"===i.substring(0,6)){if("calc("===(i=jT(e,i.substring(4,i.indexOf(")")))).substring(0,5)){var k=e.style.perspective;e.style.perspective=i,i=jT(e,"perspective"),k?e.style.perspective=k:jB(e,"perspective")}s=parseFloat(i)}if(y||((v=e._gsap).renderTransform&&!t.parseTransform||j2(e,t.parseTransform),g=!1!==t.smoothOrigin&&v.smooth,(y=this._pt=new w$(this._pt,O,jS,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===d)this._pt=new w$(this._pt,v,"scaleY",v.scaleY,(m?b5(v.scaleY,m+s):s)-v.scaleY||0,jd),this._pt.u=0,j.push("scaleY",d),d+="X";else if("transformOrigin"===d){x.push(jk,0,O[jk]),i=jG(i),v.svg?j1(e,i,0,g,0,this):((p=parseFloat(i.split(" ")[2])||0)!==v.zOrigin&&jV(this,v,"zOrigin",v.zOrigin,p),jV(this,O,d,j3(o),j3(i)));continue}else if("svgOrigin"===d){j1(e,i,1,g,0,this);continue}else if(d in jZ){j7(this,v,d,l,m?b5(l,m+i):i);continue}else if("smoothOrigin"===d){jV(this,v,"smooth",v.smooth,i);continue}else if("force3D"===d){v[d]=i;continue}else if("transform"===d){Ot(this,i,e);continue}}else d in O||(d=jR(d)||d);if(h||(s||0===s)&&(l||0===l)&&!ju.test(i)&&d in O)f=(o+"").substr((l+"").length),s||(s=0),p=xM(i)||(d in bl.units?bl.units[d]:f),f!==p&&(l=jU(e,d,o,p)),this._pt=new w$(this._pt,h?v:O,d,l,(m?b5(l,m+s):s)-l,!h&&("px"===p||"zIndex"===d)&&!1!==t.autoRound?jh:jd),this._pt.u=p||0,h&&w!==i?(this._pt.b=o,this._pt.e=w,this._pt.r=jm):f!==p&&"%"!==p&&(this._pt.b=o,this._pt.r=jp);else if(d in O)jH.call(this,e,d,o,m?m+i:i);else if(d in e)this.add(e,d,o||e[d],m?m+i:i,n,a);else if("parseTransform"!==d){bF(d,i);continue}h||(d in O?x.push(d,0,O[d]):"function"==typeof e[d]?x.push(d,2,e[d]()):x.push(d,1,o||e[d])),j.push(d)}}b&&wU(this)},render:function(e,t){if(t.tween._time||!jt())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:j$,aliases:jc,getSetter:function(e,t,r){var n=jc[t];return n&&0>n.indexOf(",")&&(t=n),t in jn&&t!==jk&&(e._gsap.x||j$(e,"x"))?r&&je===r?"scale"===t?jw:jx:(je=r||{},"scale"===t?jj:jO):e.style&&!bb(e.style[t])?jg:~t.indexOf("-")?jb:wI(e,t)},core:{_removeProperty:jB,_getMatrix:j0}};w4.utils.checkPrefix=jR,w4.core.getStyleSaver=jD,Ad=b2("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(Ac="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){jn[e]=1}),b2(Ac,function(e){bl.units[e]="deg",jZ[e]=1}),jc[Ad[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Ac,b2("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");jc[t[1]]=Ad[t[0]]}),b2("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){bl.units[e]="px"}),w4.registerPlugin(Or);var On=w4.registerPlugin(Or)||w4;function Oa(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Oo(e,t){if(e){if("string"==typeof e)return Oa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oa(e,t)}}On.core.Tween;var Oi=/-page-\d+$/;function Os(){return new Set((0,mJ.getMountedApps)().map(function(e){return e.replace(Oi,"")}))}function Ol(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,g.useState)(Os))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(e)||Oo(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=t[0],n=t[1];return(0,g.useEffect)(function(){var e=function(){return n(function(e){var t=Os();return e.size===t.size&&((function(e){if(Array.isArray(e))return Oa(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Oo(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).every(function(e){return t.has(e)})?e:t})};return window.addEventListener("single-spa:routing-event",e),e(),function(){return window.removeEventListener("single-spa:routing-event",e)}},[]),r}function Ou(e){var t=e.moduleName,r=e.meta;return r.titleKey?(0,V.t)(t,r.titleKey,r.title):r.title}function Oc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m1.y$,t=arguments.length>1?arguments[1]:void 0,r=(0,x.useAssignedExtensions)(e),n=Ol();return(0,g.useMemo)(function(){return(0,m1.wR)(r,n,{maxEntries:t})},[r,n,t])}var Od={moduleName:"@egen-civitas/esm-styleguide",featureName:"staggered-menu"};function Of(e){var t=e.entry,r=e.slotName,n=e.state,a=e.loadContent,o=Ou(t),i=(0,g.useCallback)(function(e){return e.filter(function(e){return e.name===t.id})},[t.id]);return(0,v.jsxs)("section",{className:"sm-ext","data-extension":t.id,"data-area":t.area,"aria-label":t.meta.showTitle?void 0:o,"aria-labelledby":t.meta.showTitle?"sm-ext-title-".concat(t.id):void 0,children:[t.meta.showTitle&&(0,v.jsx)("h3",{className:"sm-ext-title",id:"sm-ext-title-".concat(t.id),children:o}),a&&(0,v.jsx)(x.ExtensionSlot,{name:r,select:i,state:n,className:"sm-ext-slot"})]})}function Op(e){var t=e.area,r=e.entries,n=e.slotName,a=e.state,o=e.loadContent,i=(0,g.useContext)(x.ComponentContext),s=(null==i?void 0:i.moduleName)?i:Od,l=(0,g.useMemo)(function(){return r.filter(function(e){return e.area===t})},[r,t]);return 0===l.length?null:(0,v.jsx)(x.ComponentContext.Provider,{value:s,children:(0,v.jsx)("div",{className:"sm-ext-area","data-area":t,children:l.map(function(e){return(0,v.jsx)(Of,{entry:e,slotName:n,state:a,loadContent:o},e.id)})})})}function Om(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Oh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oy(e){return function(e){if(Array.isArray(e))return Om(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ov(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ov(e,t){if(e){if("string"==typeof e)return Om(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Om(e,t)}}var Og=function(e){var t,r=e.isOpen,n=e.onClose,a=e.position,o=void 0===a?"right":a,i=e.colors,s=e.items,l=e.socialItems,u=e.displaySocials,c=e.displayItemNumbering,d=e.accentColor,f=e.closeOnClickAway,p=void 0===f||f,m=e.extensionSlot,h=void 0===m?m1.y$:m,y=e.maxExtensions,x=e.showCloseButton,w=e.closeButtonLabel,j=(0,g.useRef)(null),O=(0,g.useRef)(null),S=(0,g.useRef)([]),k=(0,g.useRef)(null),E=(0,g.useRef)(null),P=(0,g.useRef)(null),A=(0,g.useRef)(!1),D=(0,g.useRef)(!1),C=h||"",T=Oc(C||m1.y$,y),N=(0,g.useMemo)(function(){return C?T:[]},[C,T]),R=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(r))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||Ov(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),M=R[0],I=R[1];r&&!M&&I(!0);var L=(0,g.useMemo)(function(){return{closeMenu:function(){return null==n?void 0:n()},position:o,isOpen:r}},[n,o,r]);(0,g.useLayoutEffect)(function(){var e=On.context(function(){var e=j.current,t=O.current;if(e){var r=[];t&&(r=Array.from(t.querySelectorAll(".sm-prelayer"))),S.current=r;var n="left"===o?-100:100;On.set([e].concat(Oy(r)),{xPercent:n,opacity:1}),t&&On.set(t,{xPercent:0,opacity:1})}});return function(){return e.revert()}},[o]);var F=(0,g.useCallback)(function(){var e=j.current,t=S.current;if(!e)return null;null==(f=k.current)||f.kill(),E.current&&(E.current.kill(),E.current=null),null==(p=P.current)||p.kill();var r=Array.from(e.querySelectorAll(".sm-panel-itemLabel")),n=Array.from(e.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item")),a=e.querySelector(".sm-socials-title"),i=Array.from(e.querySelectorAll(".sm-socials-link")),s=Array.from(e.querySelectorAll(".sm-ext")),l="left"===o?-100:100,u=t.map(function(e){return{el:e,start:l}});r.length&&On.set(r,{yPercent:140,rotate:10}),n.length&&On.set(n,Oh({},"--sm-num-opacity",0)),a&&On.set(a,{opacity:0}),i.length&&On.set(i,{y:25,opacity:0}),s.length&&On.set(s,{y:28,opacity:0});var c=On.timeline({paused:!0});u.forEach(function(e,t){c.fromTo(e.el,{xPercent:e.start},{xPercent:0,duration:.5,ease:"power4.out"},.07*t)});var d=(u.length?(u.length-1)*.07:0)+.08*!!u.length;if(c.fromTo(e,{xPercent:l},{xPercent:0,duration:.65,ease:"power4.out"},d),r.length){var f,p,m,h=d+.0975;c.to(r,{yPercent:0,rotate:0,duration:1,ease:"power4.out",stagger:{each:.1,from:"start"}},h),n.length&&c.to(n,(Oh(m={duration:.6,ease:"power2.out"},"--sm-num-opacity",1),Oh(m,"stagger",{each:.08,from:"start"}),m),h+.1)}if(a||i.length){var y=d+.26;a&&c.to(a,{opacity:1,duration:.5,ease:"power2.out"},y),i.length&&c.to(i,{y:0,opacity:1,duration:.55,ease:"power3.out",stagger:{each:.08,from:"start"},onComplete:function(){On.set(i,{clearProps:"opacity"})}},y+.04)}return s.length&&c.to(s,{y:0,opacity:1,duration:.6,ease:"power3.out",stagger:{each:.08,from:"start"},onComplete:function(){On.set(s,{clearProps:"opacity,transform"})}},d+.22749999999999998),k.current=c,c},[o]),B=(0,g.useCallback)(function(){if(!A.current){A.current=!0;var e=F();e?(e.eventCallback("onComplete",function(){A.current=!1}),e.play(0)):A.current=!1}},[F]),V=(0,g.useCallback)(function(){null==(e=k.current)||e.kill(),k.current=null,null==(t=P.current)||t.kill();var e,t,r,n=j.current,a=S.current;if(n){var i=Oy(a).concat([n]);null==(r=E.current)||r.kill();var s="left"===o?-100:100;E.current=On.to(i,{xPercent:s,duration:.32,ease:"power3.in",overwrite:"auto",onComplete:function(){var e=Array.from(n.querySelectorAll(".sm-panel-itemLabel"));e.length&&On.set(e,{yPercent:140,rotate:10});var t=Array.from(n.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item"));t.length&&On.set(t,Oh({},"--sm-num-opacity",0));var r=n.querySelector(".sm-socials-title"),a=Array.from(n.querySelectorAll(".sm-socials-link"));r&&On.set(r,{opacity:0}),a.length&&On.set(a,{y:25,opacity:0});var o=Array.from(n.querySelectorAll(".sm-ext"));o.length&&On.set(o,{y:28,opacity:0}),A.current=!1}})}},[o]);b().useEffect(function(){r!==D.current&&(D.current=r,r?B():V())},[r,B,V]),(0,g.useLayoutEffect)(function(){var e;null==(e=j.current)||e.toggleAttribute("inert",!r)},[r]),b().useEffect(function(){if(p&&r){var e=function(e){var t,r=e.target;null!=r&&null!=(t=r.closest)&&t.call(r,'[data-staggered-menu-keep-open], [data-radix-popper-content-wrapper], [role="dialog"], [role="listbox"], [role="menu"]')||j.current&&!j.current.contains(r)&&(null==n||n())};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[p,r,n]);var z=i&&i.length?i.slice(0,4):[];if(z.length>=3){var W=Math.floor(z.length/2);z.splice(W,1)}var U=null!=s?s:[],$=null!=l?l:[];return(0,v.jsxs)("div",{className:"sm-scope",style:d?Oh({},"--sm-accent",d):void 0,"data-position":o,children:[(0,v.jsx)("div",{ref:O,className:"sm-prelayers pointer-events-none",style:{zIndex:9998},"aria-hidden":"true",children:z.map(function(e,t){return(0,v.jsx)("div",{className:"sm-prelayer",style:{background:e}},t)})}),(0,v.jsx)("aside",{id:"staggered-menu-panel",ref:j,className:"staggered-menu-panel pointer-events-auto",style:{zIndex:9999,WebkitBackdropFilter:"blur(12px)"},"aria-hidden":!r,children:(0,v.jsxs)("div",{className:"sm-panel-inner",children:[(0,v.jsx)(Op,{area:"top",entries:N,slotName:C,state:L,loadContent:M}),U.length>0&&(0,v.jsx)("ul",{className:"sm-panel-list",role:"list","data-numbering":void 0===c||c||void 0,children:U.map(function(e,t){return(0,v.jsx)("li",{className:"sm-panel-itemWrap",children:(0,v.jsx)("a",{className:"sm-panel-item",href:e.link,"aria-label":e.ariaLabel,"data-index":t+1,children:(0,v.jsx)("span",{className:"sm-panel-itemLabel",children:e.label})})},e.label+t)})}),(0,v.jsx)(Op,{area:"content",entries:N,slotName:C,state:L,loadContent:M}),(void 0===u||u)&&$.length>0&&(0,v.jsxs)("div",{className:"sm-socials","aria-label":"Social links",children:[(0,v.jsx)("h3",{className:"sm-socials-title",children:"Socials"}),(0,v.jsx)("ul",{className:"sm-socials-list",role:"list",children:$.map(function(e,t){return(0,v.jsx)("li",{className:"sm-socials-item",children:(0,v.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"sm-socials-link",children:e.label})},e.label+t)})})]}),(0,v.jsx)(Op,{area:"bottom",entries:N,slotName:C,state:L,loadContent:M})]})}),(void 0===x||x)&&n&&(0,v.jsx)("div",{className:"sm-close-frame","data-open":r?"true":"false",children:(0,v.jsx)("button",{type:"button",className:"sm-close-btn","aria-label":void 0===w?"Fermer le menu":w,onClick:n,children:(0,v.jsx)("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,v.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})})})}),(0,v.jsx)("style",{children:"\n.sm-scope .staggered-menu-panel { position: fixed; top: 0; ".concat("left"===o?"left: 0;":"right: 0;"," width: clamp(260px, 38vw, 420px); height: 100%; background: white; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; flex-direction: column; padding: 6em 2em 2em 2em; overflow-y: auto; z-index: 50; }\n.sm-scope .sm-prelayers { position: fixed; top: 0; ").concat("left"===o?"left: 0;":"right: 0;"," bottom: 0; width: clamp(260px, 38vw, 420px); pointer-events: none; z-index: 49; }\n.sm-scope .sm-prelayer { position: absolute; top: 0; right: 0; height: 100%; width: 100%; transform: translateX(0); }\n.sm-scope .sm-close-frame { position: fixed; top: 0; ").concat("left"===o?"left: 0;":"right: 0;"," height: 0; width: clamp(260px, 38vw, 420px); z-index: 10000; pointer-events: none; visibility: hidden; opacity: 0; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }\n.sm-scope .sm-close-frame[data-open='true'] { visibility: visible; opacity: 1; transition: opacity 0.3s ease 0.45s, visibility 0s linear 0.45s; }\n.sm-scope .sm-close-btn { position: absolute; top: 0.75rem; ").concat("left"===o?"left: 0.75rem;":"right: 0.75rem;"," width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #000; opacity: 0.4; cursor: pointer; pointer-events: auto; transition: opacity 0.2s ease, background 0.2s ease; }\n.sm-scope .sm-close-btn:hover { opacity: 0.85; background: rgba(0, 0, 0, 0.06); }\n.sm-scope .sm-close-btn:focus-visible { opacity: 1; outline: 2px solid var(--sm-accent, #ff0000); outline-offset: 2px; }\n.sm-scope .sm-panel-inner { flex: 1; display: flex; flex-direction: column; gap: 1.25rem; }\n.sm-scope .sm-panel-itemWrap { position: relative; overflow: hidden; line-height: 1; }\n.sm-scope .sm-panel-item { position: relative; color: #000; font-weight: 600; font-size: 4rem; cursor: pointer; line-height: 1; letter-spacing: -2px; text-transform: uppercase; transition: background 0.25s, color 0.25s; display: inline-block; text-decoration: none; padding-right: 1.4em; }\n.sm-scope .sm-panel-itemLabel { display: inline-block; will-change: transform; transform-origin: 50% 100%; }\n.sm-scope .sm-panel-item:hover { color: var(--sm-accent, #ff0000); }\n.sm-scope .sm-panel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }\n.sm-scope .sm-panel-list[data-numbering] { counter-reset: smItem; }\n.sm-scope .sm-panel-list[data-numbering] .sm-panel-item::after { counter-increment: smItem; content: counter(smItem, decimal-leading-zero); position: absolute; top: 0.1em; right: 3.2em; font-size: 18px; font-weight: 400; color: var(--sm-accent, #ff0000); letter-spacing: 0; pointer-events: none; user-select: none; opacity: var(--sm-num-opacity, 0); }\n.sm-scope .sm-ext-area { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }\n.sm-scope .sm-ext-area[data-area='bottom'] { margin-top: auto; padding-top: 1.5rem; }\n.sm-scope .sm-socials ~ .sm-ext-area[data-area='bottom'] { margin-top: 0; padding-top: 0; }\n.sm-scope .sm-ext { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }\n.sm-scope .sm-ext-title { margin: 0; font-size: 1rem; font-weight: 500; color: var(--sm-accent, #ff0000); }\n.sm-scope .sm-ext-slot { min-width: 0; }\n.sm-scope .sm-socials { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }\n.sm-scope .sm-socials-title { margin: 0; font-size: 1rem; font-weight: 500; color: var(--sm-accent, #ff0000); }\n.sm-scope .sm-socials-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; align-items: center; gap: 1rem; flex-wrap: wrap; }\n.sm-scope .sm-socials-list .sm-socials-link { opacity: 1; transition: opacity 0.3s ease; }\n.sm-scope .sm-socials-list:hover .sm-socials-link:not(:hover) { opacity: 0.35; }\n.sm-scope .sm-socials-list:focus-within .sm-socials-link:not(:focus-visible) { opacity: 0.35; }\n.sm-scope .sm-socials-list .sm-socials-link:hover, .sm-scope .sm-socials-list .sm-socials-link:focus-visible { opacity: 1; }\n.sm-scope .sm-socials-link:focus-visible { outline: 2px solid var(--sm-accent, #ff0000); outline-offset: 3px; }\n.sm-scope .sm-socials-link { font-size: 1.2rem; font-weight: 500; color: #111; text-decoration: none; position: relative; padding: 2px 0; display: inline-block; transition: color 0.3s ease, opacity 0.3s ease; }\n.sm-scope .sm-socials-link:hover { color: var(--sm-accent, #ff0000); }\n@media (max-width: 1024px) { .sm-scope .staggered-menu-panel { width: 100%; left: 0; right: 0; } .sm-scope .sm-prelayers { width: 100%; left: 0; right: 0; } .sm-scope .sm-close-frame { width: 100%; left: 0; right: 0; } }\n@media (max-width: 640px) { .sm-scope .staggered-menu-panel { width: 100%; left: 0; right: 0; } .sm-scope .sm-prelayers { width: 100%; left: 0; right: 0; } }\n ")})]})};function Ob(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Ox=function(e){var t,r=e.isOpen,n=e.onToggle,a=e.menuButtonColor,o=e.openMenuButtonColor,i=e.changeMenuColorOnOpen,s=void 0===i||i,l=e.className,u=(0,g.useRef)(null),c=(0,g.useRef)(null),d=(0,g.useRef)(null),f=(0,g.useRef)(null),p=(0,g.useRef)(null),m=(0,g.useRef)(null),h=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(["Menu","Close"]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Ob(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ob(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=h[0],x=h[1],w=(0,g.useRef)(null),j=(0,g.useRef)(null),O=(0,g.useRef)(null),S=(0,g.useRef)(!1);(0,g.useLayoutEffect)(function(){var e=On.context(function(){var e=c.current,t=d.current,r=f.current,n=p.current;e&&t&&r&&n&&(On.set(e,{transformOrigin:"50% 50%",rotate:0}),On.set(t,{transformOrigin:"50% 50%",rotate:90}),On.set(r,{rotate:0,transformOrigin:"50% 50%"}),On.set(n,{yPercent:0}),u.current&&a&&On.set(u.current,{color:a}))});return function(){return e.revert()}},[a]),b().useEffect(function(){if(u.current)if(s){var e=S.current?o:a;e&&On.set(u.current,{color:e})}else a&&On.set(u.current,{color:a})},[s,a,o]);var k=(0,g.useCallback)(function(e){var t,r=f.current,n=c.current,a=d.current;r&&n&&a&&(null==(t=w.current)||t.kill(),e?(On.set(r,{rotate:0,transformOrigin:"50% 50%"}),w.current=On.timeline({defaults:{ease:"power4.out"}}).to(n,{rotate:45,duration:.5},0).to(a,{rotate:-45,duration:.5},0)):w.current=On.timeline({defaults:{ease:"power3.inOut"}}).to(n,{rotate:0,duration:.35},0).to(a,{rotate:90,duration:.35},0).to(r,{rotate:0,duration:.001},0))},[]),E=(0,g.useCallback)(function(e){var t,r=u.current;if(r)if(null==(t=O.current)||t.kill(),s){var n=e?o:a;n&&(O.current=On.to(r,{color:n,delay:.18,duration:.3,ease:"power2.out"}))}else a&&On.set(r,{color:a})},[o,a,s]),P=(0,g.useCallback)(function(e){var t,r=p.current;if(r){null==(t=j.current)||t.kill();for(var n=e?"Menu":"Close",a=e?"Close":"Menu",o=[n],i=n,s=0;s<3;s++)i="Menu"===i?"Close":"Menu",o.push(i);i!==a&&o.push(a),o.push(a),x(o),On.set(r,{yPercent:0});var l=o.length;j.current=On.to(r,{yPercent:-((l-1)/l*100),duration:.5+.07*l,ease:"power4.out"})}},[]);return b().useEffect(function(){r!==S.current&&(S.current=r,k(r),E(r),P(r))},[r,k,E,P]),(0,v.jsxs)("button",{ref:u,className:"sm-toggle relative inline-flex items-center gap-[0.3rem] bg-transparent border-0 cursor-pointer font-medium leading-none overflow-visible pointer-events-auto".concat(l?" "+l:""),"aria-label":r?"Close menu":"Open menu","aria-expanded":r,"aria-controls":"staggered-menu-panel",onClick:n,type:"button",children:[(0,v.jsx)("span",{ref:m,className:"sm-toggle-textWrap relative inline-block h-[1em] overflow-hidden whitespace-nowrap w-[var(--sm-toggle-width,auto)] min-w-[var(--sm-toggle-width,auto)] mr-[0.5em]","aria-hidden":"true",children:(0,v.jsx)("span",{ref:p,className:"sm-toggle-textInner flex flex-col leading-none",children:y.map(function(e,t){return(0,v.jsx)("span",{className:"sm-toggle-line block h-[1em] leading-none",children:e},t)})})}),(0,v.jsxs)("span",{ref:f,className:"sm-icon relative w-[14px] h-[14px] shrink-0 inline-flex items-center justify-center [will-change:transform]","aria-hidden":"true",children:[(0,v.jsx)("span",{ref:c,className:"sm-icon-line absolute left-1/2 top-1/2 w-full h-[2px] bg-current rounded-[2px] -translate-x-1/2 -translate-y-1/2 [will-change:transform]"}),(0,v.jsx)("span",{ref:d,className:"sm-icon-line sm-icon-line-v absolute left-1/2 top-1/2 w-full h-[2px] bg-current rounded-[2px] -translate-x-1/2 -translate-y-1/2 [will-change:transform]"})]}),(0,v.jsx)("style",{children:"\n.sm-toggle { position: relative; display: inline-flex; align-items: center; gap: 0.3rem; background: transparent; border: none; cursor: pointer; font-weight: 500; line-height: 1; overflow: visible; }\n.sm-toggle:focus-visible { outline: 2px solid #ffffffaa; outline-offset: 4px; border-radius: 4px; }\n.sm-toggle-textWrap { position: relative; display: inline-block; height: 1em; overflow: hidden; white-space: nowrap; width: var(--sm-toggle-width, auto); min-width: var(--sm-toggle-width, auto); }\n.sm-toggle-textInner { display: flex; flex-direction: column; line-height: 1; }\n.sm-toggle-line { display: block; height: 1em; line-height: 1; }\n.sm-icon { position: relative; width: 14px; height: 14px; flex: 0 0 14px; display: inline-flex; align-items: center; justify-content: center; will-change: transform; }\n.sm-icon-line { position: absolute; left: 50%; top: 50%; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); will-change: transform; }\n "})]})};function Ow(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class Oj extends g.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(mA(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=mA(e)&&e.offsetWidth||0,n=mA(e)&&e.offsetHeight||0,a=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(a.height),o.width=parseFloat(a.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=r-o.width-o.left,o.bottom=n-o.height-o.top,o.direction=a.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function OO({children:e,isPresent:t,anchorX:r,anchorY:n,root:a,pop:o}){let i=(0,g.useId)(),s=(0,g.useRef)(null),l=(0,g.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,g.useContext)(dd),c=function(...e){return g.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=Ow(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():Ow(e[t],null)}}}}(...e),e)}(s,!1!==o?e.props?.ref??e?.ref:void 0);return(0,g.useInsertionEffect)(()=>{let{width:e,height:c,top:d,left:f,right:p,bottom:m,direction:h}=l.current;if(t||!1===o||!s.current||!e||!c)return;let y="rtl"===h,v="left"===r?y?`right: ${p}`:`left: ${f}`:y?`left: ${f}`:`right: ${p}`,g="bottom"===n?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=i;let b=document.createElement("style");u&&(b.nonce=u);let x=a??document.head;return x.appendChild(b),b.sheet&&b.sheet.insertRule(`
13
+ [data-motion-pop-id="${i}"] {
14
+ position: absolute !important;
15
+ width: ${e}px !important;
16
+ height: ${c}px !important;
17
+ ${v}px !important;
18
+ ${g}px !important;
19
+ }
20
+ `),()=>{s.current?.removeAttribute("data-motion-pop-id"),x.contains(b)&&x.removeChild(b)}},[t]),(0,v.jsx)(Oj,{isPresent:t,childRef:s,sizeRef:l,pop:o,children:!1===o?e:g.cloneElement(e,{ref:c})})}let OS=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:a,presenceAffectsLayout:o,mode:i,anchorX:s,anchorY:l,root:u})=>{let c=dj(Ok),d=(0,g.useId)(),f=(0,g.useRef)(r),p=(0,g.useRef)(n);dR(()=>{f.current=r,p.current=n});let m=!0,h=(0,g.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:r,custom:a,onExitComplete:e=>{for(let t of(c.set(e,!0),c.values()))if(!t)return;n&&n()},register:e=>(c.set(e,!1),()=>{c.delete(e),f.current||c.size||p.current?.()})}),[r,c,n]);return o&&m&&(h={...h}),(0,g.useMemo)(()=>{c.forEach((e,t)=>c.set(t,!1))},[r]),g.useEffect(()=>{r||c.size||!n||n()},[r]),e=(0,v.jsx)(OO,{pop:"popLayout"===i,isPresent:r,anchorX:s,anchorY:l,root:u,children:e}),(0,v.jsx)(dw.Provider,{value:h,children:e})};function Ok(){return new Map}let OE=e=>e.key||"";function OP(e){let t=[];return g.Children.forEach(e,e=>{(0,g.isValidElement)(e)&&t.push(e)}),t}let OA=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:a=!0,mode:o="sync",propagate:i=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,d]=pC(i),f=(0,g.useMemo)(()=>OP(e),[e]),p=i&&!c?[]:f.map(OE),m=(0,g.useRef)(!0),h=(0,g.useRef)(f),y=dj(()=>new Map),b=(0,g.useRef)(new Set),[x,w]=(0,g.useState)(f),[j,O]=(0,g.useState)(f);dR(()=>{m.current=!1,h.current=f;for(let e=0;e<j.length;e++){let t=OE(j[e]);p.includes(t)?(y.delete(t),b.current.delete(t)):!0!==y.get(t)&&y.set(t,!1)}},[j,p.length,p.join("-")]);let S=[];if(f!==x){let e=[...f];for(let t=0;t<j.length;t++){let r=j[t],n=OE(r);p.includes(n)||(e.splice(t,0,r),S.push(r))}return"wait"===o&&S.length&&(e=S),O(OP(e)),w(f),null}let{forceRender:k}=(0,g.useContext)(du);return(0,v.jsx)(v.Fragment,{children:j.map(e=>{let g=OE(e),x=(!i||!!c)&&(f===j||p.includes(g));return(0,v.jsx)(OS,{isPresent:x,initial:(!m.current||!!r)&&void 0,custom:t,presenceAffectsLayout:a,mode:o,root:u,onExitComplete:x?void 0:()=>{if(b.current.has(g)||!y.has(g))return;b.current.add(g),y.set(g,!0);let e=!0;y.forEach(t=>{t||(e=!1)}),e&&(k?.(),O(h.current),i&&d?.(),n&&n())},anchorX:s,anchorY:l,children:e},g)})})},OD={wrapper:"od7XT0veXj6mdEnncZFs+Q==",trigger:"_7A1e6-uGYRcfVQnfOx4geQ==",triggerIcon:"_8AaUzHzBvjhu4wIByBagPg==",triggerChevron:"NV6paA52ojWr+QJvS6VMUw==","triggerChevron--open":"tvyLx6UPztuSEo3wIE1oSQ==","triggerChevron--up":"SmGIbeFveBJB4FHlFhlbAA==",overlay:"_7fbyR1xFRRLItN8r0emD2w==",panel:"vzIn-j6yw5V0fmJWyVGXKg==",panelInner:"qTKkBfg7oksN9qrf7VLp1Q==",column:"C8xzSTaHxt8NM+8WglbIXQ==",columnSearch:"zHSJOF4qVG2jlPwAO+cLqQ==",columnSearchIcon:"_736VczNr3-sHL-FBa25KXw==",columnSearchInput:"_1VIyB+uqg5+6Y1G3Q+PnDw==",columnList:"wMozWE5hDKhxAGscGsLPSQ==",columnItem:"GJ+d+wAneJMJd8z-zKnedA==",columnItemIcon:"CDsY1qXafiUaITs4t-Xz8w==",columnItemLabel:"pQXzNkufWC-kTsP91lMc0g==",columnItemChevron:"VDhnJw1goYCbEvL0SzBpFA==",columnEmpty:"qDEruc7z1419lACB8Vawww=="};function OC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var OT=function(e){var t,r=e.columnItems,n=e.columnIndex,a=e.activeItems,o=e.searchable,i=e.searchPlaceholder,s=e.onHover,l=e.onNavigate,u=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(""))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return OC(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return OC(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],f=(0,g.useMemo)(function(){if(!c.trim())return r;var e=c.trim().toLowerCase();return r.filter(function(t){return t.label.toLowerCase().includes(e)})},[r,c]);return(0,v.jsxs)(mz.div,{className:OD.column,initial:{opacity:0,width:0},animate:{opacity:1,width:"var(--cnd-column-width)"},exit:{opacity:0,width:0},transition:{duration:.2,ease:"easeOut"},children:[o&&(0,v.jsxs)("div",{className:OD.columnSearch,children:[(0,v.jsx)(i1,{className:OD.columnSearchIcon,size:14}),(0,v.jsx)("input",{type:"search",value:c,onChange:function(e){return d(e.target.value)},placeholder:i,className:OD.columnSearchInput,"aria-label":i})]}),(0,v.jsxs)("ul",{className:OD.columnList,role:"list",children:[f.map(function(e){var t,r=a[n]===e.id,o=!!(null==(t=e.children)?void 0:t.length),i=e.icon;return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",className:OD.columnItem,"data-active":r||void 0,onMouseEnter:function(){return s(e,n)},onFocus:function(){return s(e,n)},onClick:function(){!o&&e.path&&l(e.path)},children:[i&&(0,v.jsx)(i,{className:OD.columnItemIcon,size:16}),(0,v.jsx)("span",{className:OD.columnItemLabel,children:e.label}),o&&(0,v.jsx)(iw,{className:OD.columnItemChevron,size:14})]})},e.id)}),0===f.length&&(0,v.jsx)("li",{className:OD.columnEmpty,children:"—"})]})]})};function ON(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function OR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||O_(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OI(e){return function(e){if(Array.isArray(e))return ON(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O_(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O_(e,t){if(e){if("string"==typeof e)return ON(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ON(e,t)}}var OL=function(e){var t,r,n=e.items,a=e.triggerLabel,o=e.triggerIcon,i=e.direction,s=void 0===i?"down":i,l=e.searchable,u=void 0!==l&&l,c=e.searchPlaceholder,d=void 0===c?"Rechercher…":c,f=e.onNavigate,p=e.className,m=OM((0,g.useState)(!1),2),h=m[0],y=m[1],b=OM((0,g.useState)([n]),2),x=b[0],w=b[1],j=OM((0,g.useState)([]),2),O=j[0],k=j[1],E=OM((0,g.useState)(null),2),P=E[0],A=E[1],D=(0,g.useRef)(null);(0,g.useLayoutEffect)(function(){h||(w([n]),k([]))},[n,h]),(0,g.useLayoutEffect)(function(){if(h&&D.current){var e=D.current.getBoundingClientRect();A("up"===s?{left:e.left,bottom:window.innerHeight-e.top+8}:{left:e.left,top:e.bottom+8})}},[h,s]);var C=function(e,t){var r,n=OI(O);n[t]=e.id,(null==(r=e.children)?void 0:r.length)?w(OI(x.slice(0,t+1)).concat([e.children])):w(x.slice(0,t+1)),k(n)},T=function(e){y(!1),null==f||f(e)};return(0,v.jsxs)("div",{className:S()(OD.wrapper,p),children:[(0,v.jsxs)("button",{ref:D,type:"button",className:OD.trigger,onClick:function(){return y(function(e){return!e})},"aria-haspopup":"true","aria-expanded":h,children:[o&&(0,v.jsx)(o,{className:OD.triggerIcon,size:16}),(0,v.jsx)("span",{children:void 0===a?"Navigation":a}),(0,v.jsx)(ib,{className:S()(OD.triggerChevron,(OR(t={},OD["triggerChevron--open"],h),OR(t,OD["triggerChevron--up"],"up"===s),t)),size:14})]}),(0,v.jsx)(OA,{children:h&&P&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:OD.overlay,onClick:function(){return y(!1)},"aria-hidden":"true"}),(0,v.jsx)(mz.div,{className:S()(OD.panel,OD["panel--".concat(s)]),style:(OR(r={left:P.left,top:P.top,bottom:P.bottom},"--cnd-panel-width","".concat(16*x.length,"rem")),OR(r,"--cnd-column-width","16rem"),r),initial:{opacity:0,y:"up"===s?10:-10,scale:.96},animate:{opacity:1,y:0,scale:1,width:"var(--cnd-panel-width)",transition:{opacity:{duration:.18},y:{duration:.28,type:"spring",stiffness:200,damping:20},scale:{duration:.18},width:{duration:.28,ease:"easeOut"}}},exit:{opacity:0,y:"up"===s?10:-10,scale:.96,transition:{duration:.18}},children:(0,v.jsx)("div",{className:OD.panelInner,children:(0,v.jsx)(OA,{mode:"sync",children:x.map(function(e,t){return(0,v.jsx)(OT,{columnItems:e,columnIndex:t,activeItems:O,searchable:u,searchPlaceholder:d,onHover:C,onNavigate:T},t)})})})})]})})]})},OF=(0,g.createContext)(null),OB=function(){var e=(0,g.useContext)(OF);if(!e)throw Error("Sheet compound components must be used within <Sheet>");return e};function OV(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Oz=function(e){var t,r=e.children,n=e.open,a=e.onOpenChange,o=e.defaultOpen,i=e.className,s=e.side,l=e.height,u=e.closeThreshold,c=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(null!=o&&o))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return OV(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return OV(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=c[0],f=c[1],p=void 0!==n,m=p?n:d,h=(0,g.useCallback)(function(e){null==a||a(e),p||f(e)},[a,p]);return(0,v.jsx)(OF.Provider,{value:{isOpen:m,onOpenChange:h,contentProps:{height:void 0===l?"55vh":l,className:void 0===i?"":i,closeThreshold:void 0===u?.3:u,side:void 0===s?"top":s}},children:r})};function OW(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var OU=function(e){var t,r=e.children,n=e.container,a=e.className,o=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return OW(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return OW(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],s=o[1];if((0,g.useEffect)(function(){s(!0)},[]),!i||"u"<typeof document)return null;var l=a?(0,v.jsx)("div",{className:a,children:r}):r;return(0,tZ.createPortal)(l,n||document.body)};let O$={triggerReset:"KchWk07qCyMztdOj8l6+nw==",container:"MW2IV8rXbcfJn9D6esV+-A==","container--closed":"ukmg3qKuvTIZgVpyD7X8AQ==",overlay:"zaRVZ17z7O8LzefxS5CxNw==",panel:"T5s7RxBCifLQWFgh1vOLDg==","panel--top":"PyeTpmsjKygAk2pCpe5NKQ==","panel--bottom":"+wv3nJKxJJhuz8K5j3YX7g==",body:"ePmeaHdSa+qf+ohZ4e4cpA==",scrollArea:"xSSRA7R71d88sDke9IOYhg==",handleRow:"IULYFP6QnLBTysbet5YXPQ==",handle:"_4QMSFXLduOJ5ZpOTm7K5ZQ==",header:"D7sRu9+Zla6rj0BHmTJqrQ==",title:"VNak3xly+5sZFSRmGcPHWQ==",description:"YFLey8nNGCmuU6P8ZlzzmA==",footer:"qeJpmxe-jqBAtL5CXcn3yg=="};function OH(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function OK(e){if(Array.isArray(e))return e}function OG(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Oq(e,t){if(e){if("string"==typeof e)return OH(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OH(e,t)}}var OY=(0,g.forwardRef)(function(e,t){var r,n=OK(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||Oq(r)||OG(),a=n[0],o=n.slice(1),i=a.className,s=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(a,["className"]),l=(OK(o)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(o)||Oq(o,1)||OG())[0],u=OB(),c=u.isOpen,d=u.onOpenChange,f=(0,g.useCallback)(function(e){e.target===e.currentTarget&&d(!1)},[d]);return(0,v.jsx)(mz.div,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({ref:l,initial:{opacity:0},animate:{opacity:+!!c},transition:{duration:.2,ease:"easeOut"},onClick:f,className:S()(O$.overlay,i),style:{pointerEvents:c?"auto":"none"}},s))});function OX(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function OZ(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}OY.displayName="SheetOverlay";var OQ=function(e){var t=e.asChild,r=e.children,n=e.className,a=OB().onOpenChange,o=function(){return a(!0)};return t&&b().isValidElement(r)?b().cloneElement(r,OZ(OX({},r.props),{className:S()(r.props.className,n),onClick:function(e){var t,n;null==(t=(n=r.props).onClick)||t.call(n,e),o()}})):(0,v.jsx)("button",{onClick:o,type:"button",className:S()(O$.triggerReset,n),children:r})},OJ=function(e){var t=e.asChild,r=e.children,n=e.className,a=OB().onOpenChange,o=function(){return a(!1)};return t&&b().isValidElement(r)?b().cloneElement(r,OZ(OX({},r.props),{className:S()(r.props.className,n),onClick:function(e){var t,n;null==(t=(n=r.props).onClick)||t.call(n,e),o()}})):(0,v.jsx)("button",{onClick:o,type:"button",className:S()(O$.triggerReset,n),children:r})};function O0(e,t){[...t].reverse().forEach(r=>{let n=e.getVariant(r);n&&dV(e,n),e.variantChildren&&e.variantChildren.forEach(e=>{O0(e,t)})})}function O1(){let e=!1,t=new Set,r={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(r,n){up(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let a=[];return t.forEach(e=>{a.push(fU(e,r,{transitionOverride:n}))}),Promise.all(a)},set:r=>(up(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,n;t=e,Array.isArray(n=r)?O0(t,n):"string"==typeof n?O0(t,[n]):dV(t,n)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,r.stop()})};return r}let O2=function(){let e=dj(O1);return dR(e.mount,[]),e};function O3(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var O4=function(e){var t,r=e.children,n=e.className,a=OB(),o=a.isOpen,i=a.onOpenChange,s=a.contentProps,l=s.height,u=s.closeThreshold,c=s.side,d=O2(),f=(0,g.useRef)(null),p=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(0))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return O3(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return O3(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),m=p[0],h=p[1],y="top"===c?-1:1,b=(0,g.useCallback)(function(){return i(!1)},[i]),x=(0,g.useCallback)(function(){if("u"<typeof window)return 400;var e,t=window.innerHeight,r=window.innerWidth;return e=r<=640?.6*t:r<=1024?.55*t:.5*t,l.includes("vh")?e=parseInt(l,10)/100*t:l.includes("px")&&(e=parseInt(l,10)),Math.min(e,.8*t)},[l]);(0,g.useEffect)(function(){var e=function(){return h(x())};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[x]),(0,g.useEffect)(function(){return o?(document.body.style.overflow="hidden",d.start({y:0,transition:{type:"spring",stiffness:400,damping:40,mass:.8}})):(document.body.style.overflow="",d.start({y:y*(m+50),transition:{type:"tween",ease:[.25,.46,.45,.94],duration:.3}})),function(){document.body.style.overflow=""}},[o,d,m,y]),(0,g.useEffect)(function(){var e=function(e){"Escape"===e.key&&o&&b()};return o&&document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[o,b]);var w=(0,g.useCallback)(function(e,t){var r=y*t.offset.y>m*u,n=y*t.velocity.y>800;r||n?b():d.start({y:0,transition:{type:"spring",stiffness:500,damping:40}})},[d,b,u,m,y]),j=(0,g.useCallback)(function(e){e.target===f.current&&b()},[b]);if(0===m)return null;var O="top"===c?{top:-m,bottom:0}:{top:0,bottom:m};return(0,v.jsx)(OU,{children:(0,v.jsxs)("div",{className:S()(O$.container,!o&&O$["container--closed"]),children:[(0,v.jsx)(mz.div,{ref:f,initial:{opacity:0},animate:{opacity:+!!o},transition:{duration:.2,ease:"easeOut"},onClick:j,className:O$.overlay,style:{pointerEvents:o?"auto":"none"}}),(0,v.jsxs)(mz.div,{drag:"y",dragConstraints:O,dragElastic:"top"===c?{top:.1,bottom:0}:{top:0,bottom:.1},dragMomentum:!1,onDragEnd:w,animate:d,initial:{y:y*(m+50)},className:S()(O$.panel,O$["panel--".concat(c)],void 0===n?"":n),style:{height:m},children:["bottom"===c&&(0,v.jsx)("div",{className:O$.handleRow,children:(0,v.jsx)("div",{className:O$.handle})}),(0,v.jsx)("div",{className:O$.body,children:(0,v.jsx)("div",{className:O$.scrollArea,children:r})}),"top"===c&&(0,v.jsx)("div",{className:O$.handleRow,children:(0,v.jsx)("div",{className:O$.handle})})]})]})})},O5=function(e){var t=e.children,r=e.className;return(0,v.jsx)("div",{className:S()(O$.header,r),children:t})},O6=function(e){var t=e.children,r=e.className;return(0,v.jsx)("h3",{className:S()(O$.title,r),children:t})},O8=function(e){var t=e.children,r=e.className;return(0,v.jsx)("p",{className:S()(O$.description,r),children:t})},O9=function(e){var t=e.children,r=e.className;return(0,v.jsx)("div",{className:S()(O$.footer,r),children:t})},O7=Oz;function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function St(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Se(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Se(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Sn=function(e){var t=e.items,r=e.title,n=e.hint,a=void 0===n?"Glisser une carte vers le bas pour fermer":n,o=e.open,i=e.defaultOpen,s=e.onOpenChange,l=e.className,u=e.style,c=e.itemWidth,d=void 0===c?"14rem":c,f=e.itemHeight,p=void 0===f?"18rem":f,m=e.accentColor,h=Sr((0,g.useState)(void 0!==i&&i),2),y=h[0],b=h[1],x=Sr((0,g.useState)(!1),2),w=x[0],j=x[1],O=void 0!==o,k=O?o:y,E=function(e){null==s||s(e),O||b(e)},P=function(e,t){t.offset.y>100&&k&&(E(!1),j(!1))},A=(t.length-1)/2,D=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){St(e,t,r[t])})}return e}({},m?St({},"--fg-accent",m):void 0,u);return(0,v.jsx)("div",{className:S()("qUNaF87CyIQP-ewg0aT3gA==",l),style:D,children:(0,v.jsxs)("div",{className:"M-aEx-DAQtTyHwhMH64yGQ==",children:[(0,v.jsxs)("div",{className:"vxflXdvIBCrWhSbimzCWVQ==",children:[(0,v.jsxs)(mz.div,{className:"_6KkQsq8ts3ToOwYYDhfiMg==",animate:{opacity:+!k,scale:k?.9:1},children:[(0,v.jsx)("div",{className:"JmUVXLvcsCJoSXOSTZPN0A=="}),(0,v.jsx)("div",{className:"kOJbodcwrAswUmyC3DBjYA=="}),(0,v.jsx)("div",{className:"IL7xokwIcPXhZTStqhO09Q=="})]}),(0,v.jsx)("div",{className:"BkkLFMz1ckgbUpHR7DMWdA==",children:t.map(function(e,t){var r=t-A,n=1-.03*Math.abs(r);return(0,v.jsx)(mz.div,{drag:k,dragSnapToOrigin:!0,onDragEnd:P,className:S()("M84i--+bZPAx6uTscNbshA==",St({},"_3Zkd8QL+ngGj6mOBrfZEVQ==",k)),style:{width:d,height:p},animate:k?{y:-130,x:130*r,rotate:0,scale:1.05,zIndex:50}:{y:w?-10*r-40:-5*r,x:w?30*r:3*r,rotate:w?8*r:3*r,scale:n,zIndex:t+10},whileHover:k?{scale:1.1,zIndex:100}:void 0,whileDrag:k?{scale:1.05+.1,rotate:5,zIndex:150}:void 0,transition:{type:"spring",stiffness:350,damping:30},children:e.content},e.id)})}),(0,v.jsx)(mz.div,{className:"KBOODSF6+mKrIZESAVYrHg==",animate:{opacity:+!k,rotateX:w?-25:0,y:10*!!w,pointerEvents:k?"none":"auto"},onMouseEnter:function(){return j(!0)},onMouseLeave:function(){return j(!1)},onClick:function(){return E(!0)},children:(0,v.jsxs)("div",{className:"jw8fEvLvOius9zY16PK1hw==",children:[(0,v.jsx)("div",{className:"_9rOs7yRUMhW4QkMdrFqD0g=="}),(0,v.jsx)("div",{className:"_5i0EfM-8AE4OYYo2X2uwPA==",children:(0,v.jsx)("span",{className:"ZKSbpqexNyEpFvhZmwoLlQ==",children:void 0===r?"Dossier":r})})]})})]}),a&&(0,v.jsx)(mz.div,{animate:{opacity:+!!k,y:50*!k},className:"MzfhFqg3a0YwUbs3yGfdSQ==",children:a})]})})};function Sa(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function So(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Si(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Sa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sa(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ss(e){var t=e.items,r=e.className,n=e.style,a=Si((0,g.useState)(null),2),o=a[0],i=a[1],s=Si((0,g.useState)(null),2),l=s[0],u=s[1],c=function(e){u(o),i(e)},d=function(){u(o),i(null)};return(0,g.useEffect)(function(){if(o){var e=function(e){"Escape"===e.key&&d()};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}},[o]),(0,v.jsxs)("div",{className:S()("eA4BZJ4wlOaTHsiyz+antA==",r),style:n,children:[t.map(function(e){var t,r=(null==o?void 0:o.id)===e.id,n=!r&&(null==l?void 0:l.id)===e.id;return(0,v.jsx)("div",{className:e.className,children:(0,v.jsxs)(mz.div,{role:"button",tabIndex:0,"aria-pressed":r,onClick:function(){return c(e)},onKeyDown:function(t){("Enter"===t.key||" "===t.key)&&(t.preventDefault(),c(e))},className:S()(e.className,"cGA76nZGe5CnhWCCmTVGgQ==",(So(t={},"kptslMbsy8+vxJd8WIJrcg==",r),So(t,"NX+iOobXbUb-lQbAFNkL9Q==",!r),So(t,"gvMWGRV+aGwP5KrSi0geAQ==",n),t)),layoutId:"layout-grid-card-".concat(e.id),children:[r&&(0,v.jsx)(Su,{item:o}),(0,v.jsx)(Sl,{item:e})]})},e.id)}),(0,v.jsx)(mz.div,{onClick:d,className:S()("V6jx9Z+WVL9MDdGPvJkaYA==",So({},"LbohBri+vFNoSWrMQc-qGQ==",!!(null==o?void 0:o.id))),animate:{opacity:+(null!=o&&!!o.id)},"aria-hidden":"true"})]})}function Sl(e){var t=e.item;return(0,v.jsx)(mz.img,{layoutId:"layout-grid-image-".concat(t.id),src:t.thumbnail,height:500,width:500,className:"U5gcULxDx+o6CMn4mOO-KA==",alt:"thumbnail"})}function Su(e){var t=e.item;return(0,v.jsxs)("div",{className:"_0xZoWQ+67f8d9Ibrj2XGsA==",children:[(0,v.jsx)(mz.div,{initial:{opacity:0},animate:{opacity:.6},className:"_2uAL2ek35ay46kkDXaGh0g=="}),(0,v.jsx)(mz.div,{layoutId:"layout-grid-content-".concat(null==t?void 0:t.id),initial:{opacity:0,y:100},animate:{opacity:1,y:0},exit:{opacity:0,y:100},transition:{duration:.3,ease:"easeInOut"},className:"wsyzOu+s8n1iJlwVW0VMfA==",children:null==t?void 0:t.content})]})}let Sc="n6G8E1SbEEUsI3OWq+fUJw==",Sd="A6XS7R+rH6Du2oTHAV9w1Q==",Sf="QOgWcRICSDEnRCObIKMk1w==",Sp="x1LP9u0NvE8GsXncVS6mxw==",Sm="Z2SR8P5h1ozswEBKF7Sb8Q==",Sh="yTTHKbpGK3OMci1Nvf0BUQ==",Sy="p02avqg7uiwLf9Az9XbgGQ==",Sv="_9qLPpBBum4PfGB1uo7FCCQ==",Sg="Zu4+XDmJUwKPLUmX+qsvAw==",Sb="i+x5CkYTvPGY-ug4QQFcdA==",Sx="AVPYYK3-6yQVldiVTCgQOQ==";var Sw=function(){return(0,v.jsx)("div",{className:"nhWkRlOlypB5yuvCy8EzwA==","aria-hidden":"true",children:Array.from({length:8},function(e,t){return(0,v.jsx)("div",{className:"wy+8JDS8iByYKvw08QdPOA=="},t)})})};function Sj(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function SO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Sj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sj(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Sk=function(e){var t=e.title,r=e.coverImageUrl,n=e.category,a=e.itemCountLabel,o=e.meta,i=e.items,s=e.relatedEntity,l=e.onItemOptionsClick,u=e.className,c=e.style,d=SS((0,g.useState)(!1),2),f=d[0],p=d[1],m=SS((0,g.useState)(null),2),h=m[0],y=m[1],b=SS((0,g.useState)(null),2),x=b[0],w=b[1],j=SS((0,g.useState)(0),2),O=j[0],k=j[1],E=SS((0,g.useState)("translateY(0px)"),2),P=E[0],A=E[1],D=(0,g.useRef)(null),C=(0,g.useRef)(new Map),T=null!==h,N=f||T;(0,g.useEffect)(function(){if(null!==h){var e=function(){var e=C.current.get(h);e&&D.current&&k(e.getBoundingClientRect().top-D.current.offsetTop-2)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[h]);var R=function(e){if(e.detail){var t=C.current.get(e.id);if(t&&D.current){var r=window.innerHeight-t.getBoundingClientRect().bottom+D.current.offsetTop-390;A("translateY(".concat(r,"px)"))}y(e.id),w(e)}};return(0,v.jsx)("div",{className:S()("xDbMR0gHWNpFj1Yoy68ZGA==",u),style:c,children:(0,v.jsx)("div",{className:"HavojgA3auWWriIv10hJ2w==",children:(0,v.jsxs)("div",{ref:D,className:S()("kmTNzVGOWEu5+aYeO+dJWg==",SO({},"_8KuCFVRGG3hewrJk8eI8Ww==",N)),children:[(0,v.jsxs)("div",{className:"CJOSG6kKQMw-ivRwEJKw2g==",children:[(0,v.jsxs)("div",{className:Sc,children:[(0,v.jsx)("img",{className:Sd,src:r,alt:""}),(0,v.jsx)("img",{className:S()(Sd,Sf),src:r,alt:"","aria-hidden":"true"})]}),(0,v.jsxs)("div",{className:"CULGeLqVu22C6sNwl7MlvA==",children:[(0,v.jsxs)("div",{className:"+F4KQqfbTnxcK27YlTU8Pw==",children:[(0,v.jsx)("h1",{className:Sp,children:t}),(0,v.jsxs)("div",{className:"RzWO2Tf5Wsgu3xcy+EZH6w==",children:[n&&(0,v.jsx)("p",{className:Sm,children:n}),n&&a&&(0,v.jsx)("div",{className:Sy}),a&&(0,v.jsx)("p",{className:Sm,children:a}),a&&o&&(0,v.jsx)("div",{className:Sy}),o&&(0,v.jsx)("p",{className:Sm,children:o})]})]}),(0,v.jsx)("div",{className:"gVkvp0xTMjRND78EK-fmTg==",children:i.map(function(e){var t;return(0,v.jsxs)("div",{ref:(t=e.id,function(e){e?C.current.set(t,e):C.current.delete(t)}),className:Sv,onClick:function(){return R(e)},children:[(0,v.jsx)("p",{className:Sh,children:e.title}),(0,v.jsxs)("div",{className:Sg,children:[(0,v.jsx)("button",{type:"button",className:Sb,onClick:function(t){t.stopPropagation(),null==l||l(e)},"aria-label":"Options",children:(0,v.jsx)(i$,{size:20})}),e.meta&&(0,v.jsx)("p",{className:Sm,children:e.meta})]})]},e.id)})})]})]}),x&&(0,v.jsxs)("div",{className:S()("kR1yWXyQMcy-pc19Y1uCSg==",SO({},"vGP3YGBeJwp273dxvca0mQ==",T)),style:{top:"".concat(O,"px"),transform:P},children:[(0,v.jsxs)("div",{className:Sv,children:[(0,v.jsx)("p",{className:Sh,children:x.title}),(0,v.jsxs)("div",{className:Sg,children:[(0,v.jsx)("button",{type:"button",className:Sb,onClick:function(){A("translateY(0px)"),y(null)},"aria-label":"Fermer",children:(0,v.jsx)(ir,{size:20,className:Sx})}),x.meta&&(0,v.jsx)("p",{className:Sm,children:x.meta})]})]}),(0,v.jsxs)("div",{className:"e6e-vgnHyLmMi5IFc63TGQ==",children:[x.credits&&(0,v.jsx)("div",{className:"CYjBwulWUDNbXjPGa+ouVw==",children:x.credits}),x.detail]}),(0,v.jsx)(Sw,{})]}),s&&(0,v.jsxs)("div",{className:"v-ulCXKHBflMTQlBMUxvMg==",style:{display:f?"flex":T?"none":void 0},children:[(0,v.jsx)("button",{type:"button",className:"_5npqIb7V1BrT1vIyp9ipBQ==",onClick:function(){return p(function(e){return!e})},"aria-label":f?"Fermer":"Voir les d\xe9tails",children:(0,v.jsx)(ir,{size:24,className:S()(SO({},Sx,f))})}),(0,v.jsxs)("div",{className:"s8sEwmEJjuL2Pbcv4ehUYg==",children:[(0,v.jsxs)("div",{className:Sc,children:[(0,v.jsx)("h1",{className:Sp,children:s.name}),(0,v.jsx)("img",{className:Sd,src:s.photoUrl,alt:""}),(0,v.jsx)("img",{className:S()(Sd,Sf),src:s.photoUrl,alt:"","aria-hidden":"true"})]}),(0,v.jsxs)("div",{className:"oxZqOgOCkDHiFck7NvKY1g==",children:[(0,v.jsxs)("div",{className:"hi7d14X0gK3yPHbnYDMz7g==",children:[(0,v.jsxs)("div",{className:"ABgmK32LF+ngIsTFH+yrdw==",children:[s.category&&(0,v.jsx)("p",{className:S()(Sm,"DSINo9JINz-VX0HYc7rrNg=="),children:s.category}),s.category&&s.itemCountLabel&&(0,v.jsx)("div",{className:Sy}),s.itemCountLabel&&(0,v.jsx)("p",{className:Sm,children:s.itemCountLabel})]}),s.statLabel&&(0,v.jsx)("p",{className:Sm,children:s.statLabel})]}),s.description&&(0,v.jsx)("p",{className:Sh,children:s.description})]})]}),(0,v.jsx)(Sw,{}),(0,v.jsx)("div",{className:"p4U4LPnGs8pTf99LZiEFEg=="})]})]})})})};function SE(e){var t=e.moduleName,r=e.meta;return r.titleKey?(0,V.t)(t,r.titleKey,r.title):r.title}function SP(e,t){var r=(0,x.useAssignedExtensions)(m1.As[e]),n=Ol();return(0,g.useMemo)(function(){return r.map(function(e,t){return{extension:e,index:t}}).filter(function(e){var t=e.extension;return(0,m1.oW)(t.meta)}).filter(function(r){var n,a=r.extension;return!t||"bottom"!==e||(null!=(n=a.meta.rail)?n:"left")===t}).filter(function(t){var r=t.extension;return"right"===e||!0===r.meta.global||n.has(r.moduleName)}).sort(function(e,t){var r,n;return(null!=(r=e.extension.meta.order)?r:e.index)-(null!=(n=t.extension.meta.order)?n:t.index)||e.index-t.index}).map(function(t){var r=t.extension;return{id:r.name,moduleName:r.moduleName,meta:r.meta,compartment:"bottom"===e?null:(0,m1.lN)(r.meta)}})},[r,n,e,t])}var SA=(0,ya.A)("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),SD=(0,ya.A)("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),SC=(0,ya.A)("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]),ST=(0,ya.A)("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]),SN=(0,ya.A)("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]),SR=(0,ya.A)("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),SM=(0,ya.A)("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),SI=(0,ya.A)("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]),S_=(0,ya.A)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),SL=r(8032),SF=(0,ya.A)("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),SB=(0,ya.A)("ListTree",[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]]),SV=(0,ya.A)("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),Sz=(0,ya.A)("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]),SW=(0,ya.A)("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]),SU=r(8428),S$=(0,ya.A)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),SH=(0,ya.A)("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]),SK=(0,ya.A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),SG=(0,ya.A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),Sq=(0,ya.A)("CalendarCheck",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]),SY=(0,ya.A)("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),SX=(0,ya.A)("Contact",[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2",key:"1waht3"}],["path",{d:"M8 2v2",key:"pbkmx"}],["circle",{cx:"12",cy:"11",r:"3",key:"itu57m"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]]),SZ=(0,ya.A)("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]),SQ=(0,ya.A)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),SJ=(0,ya.A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),S0=(0,ya.A)("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),S1=(0,ya.A)("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]),S2=(0,ya.A)("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),S3=(0,ya.A)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),S4={BookOpen:SA,Bell:SD,Bot:SC,Building2:ST,CalendarDays:SN,CircleHelp:SR,Folder:SM,FolderTree:SI,House:S_,Info:SL.A,LayoutGrid:SF,ListTree:SB,MapPin:SV,Megaphone:Sz,Newspaper:SW,Search:SU.A,Settings:S$,Terminal:SH,Users:SK,Calendar:SG,CalendarCheck:Sq,Compass:SY,Contact:SX,FileCheck:SZ,FileText:SQ,Globe:SJ,Layers:S0,Radio:S1,Star:S2,Zap:S3};function S5(e){return e?S4[e]:void 0}function S6(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function S8(e){return function(e){if(Array.isArray(e))return S6(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return S6(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return S6(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var S9="__default__",S7={height:60,minHeight:25,maxHeight:100},ke=function(e){return Math.round(100*e)/100};function kt(e){var t=e.reduce(function(e,t){return e+t.minHeight},0),r=e.reduce(function(e,t){return e+t.maxHeight},0),n=t>100?100/t:1;return{mins:e.map(function(e){return e.minHeight*n}),maxs:e.map(function(e){return r<100?100:Math.max(e.maxHeight,e.minHeight*n)})}}function kr(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===e.length)return[];if(1===e.length)return[100];var n=kt(e),a=n.mins,o=n.maxs,i=e.map(function(e){var t=r[e.key];return"number"==typeof t&&Number.isFinite(t)&&t>0}),s=e.reduce(function(e,t,r){return e+(i[r]?0:t.height)},0),l=e.reduce(function(e,t,n){return e+(i[n]?r[t.key]:0)},0),u=100-s;if(l>0&&u>0)t=e.map(function(e,t){return i[t]?r[e.key]*u/l:e.height});else{var c=e.map(function(e,t){return i[t]?r[e.key]:e.height}),d=c.reduce(function(e,t){return e+t},0);t=c.map(function(e){return 100*e/d})}for(var f=e.map(function(){}),p=0;p<=e.length&&"break"!==function(){var r=f.reduce(function(e,t){return e+(null!=t?t:0)},0),n=e.map(function(e,t){return t}).filter(function(e){return void 0===f[e]});if(0===n.length)return"break";var i=n.reduce(function(e,r){return e+t[r]},0),s=i>0?(100-r)/i:0,l=new Map(n.map(function(e){return[e,i>0?t[e]*s:(100-r)/n.length]})),u=0,c=!0,d=!1,p=void 0;try{for(var m,h=n[Symbol.iterator]();!(c=(m=h.next()).done);c=!0){var y=m.value,v=l.get(y);u+=Math.min(o[y],Math.max(a[y],v))-v}}catch(e){d=!0,p=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw p}}var g=n.filter(function(e){return l.get(e)<a[e]-1e-6}),b=n.filter(function(e){return l.get(e)>o[e]+1e-6});if(0===g.length&&0===b.length){var x=!0,w=!1,j=void 0;try{for(var O,S=n[Symbol.iterator]();!(x=(O=S.next()).done);x=!0){var k=O.value;f[k]=l.get(k)}}catch(e){w=!0,j=e}finally{try{x||null==S.return||S.return()}finally{if(w)throw j}}return"break"}var E=u>1e-6?g:u<-1e-6?b:S8(g).concat(S8(b)),P=!0,A=!1,D=void 0;try{for(var C,T=(E.length>0?E:S8(g).concat(S8(b)))[Symbol.iterator]();!(P=(C=T.next()).done);P=!0){var N=C.value;f[N]=Math.min(o[N],Math.max(a[N],l.get(N)))}}catch(e){A=!0,D=e}finally{try{P||null==T.return||T.return()}finally{if(A)throw D}}}();p+=1);var m=e.map(function(e,r){var n;return null!=(n=f[r])?n:t[r]}).map(ke),h=ke(100-m.reduce(function(e,t){return e+t},0));if(0!==h){var y=0;m.forEach(function(e,t){e>m[y]&&(y=t)}),m[y]=ke(m[y]+h)}return m}function kn(e,t,r,n){var a=S8(e);if(r<0||r>=e.length-1||!Number.isFinite(n)||0===n)return a;var o=kt(t),i=o.mins,s=o.maxs,l=Array.from({length:r+1},function(e,t){return r-t}),u=Array.from({length:e.length-r-1},function(e,t){return r+1+t}),c=n>0?l:u,d=n>0?u:l,f=Math.min(Math.abs(n),c.reduce(function(e,t){return e+Math.max(0,s[t]-a[t])},0),d.reduce(function(e,t){return e+Math.max(0,a[t]-i[t])},0));if(f<=0)return a;var p=f,m=!0,h=!1,y=void 0;try{for(var v,g=c[Symbol.iterator]();!(m=(v=g.next()).done);m=!0){var b=v.value,x=Math.min(p,Math.max(0,s[b]-a[b]));if(a[b]+=x,(p-=x)<=1e-6)break}}catch(e){h=!0,y=e}finally{try{m||null==g.return||g.return()}finally{if(h)throw y}}var w=f,j=!0,O=!1,S=void 0;try{for(var k,E=d[Symbol.iterator]();!(j=(k=E.next()).done);j=!0){var P=k.value,A=Math.min(w,Math.max(0,a[P]-i[P]));if(a[P]-=A,(w-=A)<=1e-6)break}}catch(e){O=!0,S=e}finally{try{j||null==E.return||E.return()}finally{if(O)throw S}}return a.map(ke)}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ko(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ki(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){ko(e,t,r[t])})}return e}function ks(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function kl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||ku(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return ka(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ka(e,t)}}var kc="egen-workbench-layout",kd=["left","bottom","right"],kf={left:280,right:320,bottom:240},kp={left:{min:200,max:640},right:{min:220,max:640},bottom:{min:120,max:720}},km=["left","right"];function kh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S9;return"".concat(e,":").concat(t)}function ky(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{width:window.innerWidth,height:window.innerHeight},n=kp[e],a=n.min,o=n.max,i=Math.floor(("bottom"===e?.7*r.height:.5*r.width)||o),s=Math.max(a,Math.min(o,i));return Number.isFinite(t)?Math.round(Math.min(s,Math.max(a,t))):kf[e]}var kv=(0,m0.getGlobalStore)("workbench",function(){var e={sizes:ki({},kf),active:{left:null,right:null,bottom:null},compartments:{left:[],right:[]},heights:{}};try{var t=window.localStorage.getItem(kc);if(!t)return e;var r=JSON.parse(t),n=!0,a=!1,o=void 0;try{for(var i,s,l=kd[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u,c,d=s.value,f=null==r||null==(u=r.sizes)?void 0:u[d];"number"==typeof f&&(e.sizes[d]=ky(d,f));var p=null==r||null==(c=r.active)?void 0:c[d];"string"==typeof p&&p.length>0&&(e.active[d]=p)}}catch(e){a=!0,o=e}finally{try{n||null==l.return||l.return()}finally{if(a)throw o}}var m=!0,h=!1,y=void 0;try{for(var v,g=km[Symbol.iterator]();!(m=(v=g.next()).done);m=!0)!function(){var t,n=v.value,a=null==r||null==(t=r.compartments)?void 0:t[n];Array.isArray(a)&&(e.compartments[n]=a.filter(function(e,t){return"string"==typeof e&&e.length>0&&a.indexOf(e)===t}))}()}catch(e){h=!0,y=e}finally{try{m||null==g.return||g.return()}finally{if(h)throw y}}var b=!0,x=!1,w=void 0;try{for(var j,O=Object.entries(null!=(i=null==r?void 0:r.heights)?i:{})[Symbol.iterator]();!(b=(j=O.next()).done);b=!0){var S=kl(j.value,2),k=S[0],E=S[1];"number"==typeof E&&Number.isFinite(E)&&E>0&&E<=100&&(e.heights[k]=E)}}catch(e){x=!0,w=e}finally{try{b||null==O.return||O.return()}finally{if(x)throw w}}}catch(e){}return e}());kv.subscribe(function(e){try{window.localStorage.setItem(kc,JSON.stringify(e))}catch(e){}});var kg=function(e){return"left"===e||"right"===e};function kb(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kv.getState();return kg(e)&&null!=(t=null==(r=n.compartments)?void 0:r[e])?t:[]}function kx(e,t){if(!kg(e))return!1;try{var r=(0,m1.zx)(m1.As[e]).find(function(e){return e.name===t});return!!((null==r?void 0:r.meta)&&(0,m1.lN)(r.meta))}catch(e){return!1}}function kw(e,t){var r=kv.getState(),n=kb(e,r);n.includes(t)||kv.setState({compartments:ks(ki({},kS(),r.compartments),ko({},e,((function(e){if(Array.isArray(e))return ka(e)})(n)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||ku(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([t])))})}function kj(e,t){var r=kv.getState(),n=kb(e,r);n.includes(t)&&kv.setState({compartments:ks(ki({},kS(),r.compartments),ko({},e,n.filter(function(e){return e!==t})))})}function kO(e,t){kb(e).includes(t)?kj(e,t):kw(e,t)}function kS(){return{left:[],right:[]}}function kk(e){var t,r=null!=(t=kv.getState().heights)?t:{};Object.entries(e).some(function(e){var t,n=kl(e,2),a=n[0],o=n[1];return Math.abs((null!=(t=r[a])?t:-1)-o)>.005})&&kv.setState({heights:ki({},r,e)})}function kE(e,t){if(kg(e)&&kx(e,t))return kO(e,t);var r=kv.getState().active;kv.setState({active:ks(ki({},r),ko({},e,r[e]===t?null:t))})}function kP(e,t){if(kg(e)&&kx(e,t))return kw(e,t);var r=kv.getState().active;r[e]!==t&&kv.setState({active:ks(ki({},r),ko({},e,t))})}function kA(e,t){var r=kv.getState();if(void 0!==t)return kg(e)&&kb(e,r).includes(t)?kj(e,t):void(r.active[e]===t&&kv.setState({active:ks(ki({},r.active),ko({},e,null))}));var n={};null!==r.active[e]&&(n.active=ks(ki({},r.active),ko({},e,null))),kg(e)&&kb(e,r).length>0&&(n.compartments=ks(ki({},kS(),r.compartments),ko({},e,[]))),Object.keys(n).length>0&&kv.setState(n)}function kD(e,t){var r=kv.getState().sizes,n=ky(e,t);r[e]!==n&&kv.setState({sizes:ks(ki({},r),ko({},e,n))})}function kC(e){kD(e,kf[e])}function kT(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){kT(e,t,r[t])})}return e}var kR=(0,m0.getGlobalStore)("workbench-badges",{});function kM(e,t){var r,n,a=kR.getState();if(null==t||0===t||""===t){if(!(e in a))return;var o=kN({},a);delete o[e],kR.setState(o,!0);return}a[e]!==t&&kR.setState((r=kN({},a),n=null!=(n=kT({},e,t))?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))}function kI(e){return"number"==typeof e&&e>99?"99+":String(e)}let k_={rail:"qvz4aebX8qzfpVVMX6GW6Q==",railGroup:"P-xSK2ViNYrDfA549xovUw==",railSpacer:"yTluC88GKEaJN6D30M7pcA==",railIconMask:"OSxwK8smjsbkkpM9o+2NpA==",railBadge:"NgNYiAFQkrHYVJlXdFWBrw==",railButton:"HEdDR6YvG6RHfTPB5Yz0dA==",zone:"M2aeN9RqSdMKswCesWvs3Q==",compartment:"_49bE69E+4ICdrziyfNrkfA==","zone-left":"uk8RPM-up2A6b308shlQVA==","zone-right":"wWBsxyvamj6G--WUWLOkmQ==","zone-bottom":"ikvYl1ZGiITQC49T41KRyw==",compartmentGap:"pbIpeL1wxaG7IXsuyiQC8Q==",compartmentSplitter:"vX7HFTTPaZMj9PcYFt8iTw==",zoneHeader:"qrZbgloqkaOqKIsp77YScw==",zoneTitle:"+zT247J+DTnYGCJZtUKzrg==",zoneHeaderTools:"Jwd1DZ+AWNbC7RhA-J6eaA==",zoneClose:"+tZxiCZXeSDT53vt0lHOjQ==",zoneBody:"_1l3-F08RXMtn+D6J1yel5Q==",zoneSlot:"_1V5iYwK3aeERgDP7z4s-1w==",splitter:"_99ElxRI4lish2QNz++axSg==","splitter-left":"syr0QGi6BxPYDpnZAnrpGw==","splitter-right":"pGZQ7kMa98WrRUqWv6a1nQ==","splitter-bottom":"cst09ukUHpZYypz45awQDw==",cornerSplitter:"_6+KYstjwPB62arLn1eZfew==","cornerSplitter-left":"adI8Xh87aknu1jI247Fp9g==","cornerSplitter-right":"_6mB4WYkDihd2OrUjK-gLpg=="};function kL(e){var t=e.anchor,r=e.label,n=SP(t,e.rail),a=(0,x.useStore)(kv),o=a.active[t],i=kb(t,a);return 0===n.length?null:(0,v.jsx)("div",{role:"group","aria-label":r,"data-anchor":t,className:"".concat(k_.railGroup," egen-anim-stagger egen-anim-stagger--fade"),children:n.map(function(e){return(0,v.jsx)(kF,{tool:e,active:e.compartment?i.includes(e.id):e.id===o,onClick:function(){return e.compartment?kO(t,e.id):kE(t,e.id)}},e.id)})})}function kF(e){var t=e.tool,r=e.active,n=e.onClick,a=SE(t),o=S5(t.meta.icon),i=(0,m1.e4)(t.meta.iconUrl)?t.meta.iconUrl:void 0,s=(0,x.useStore)(kR)[t.id];return(0,v.jsxs)("button",{type:"button",className:k_.railButton,"aria-pressed":r,"aria-label":a,title:a,"data-active":r,onClick:n,children:[i?(0,v.jsx)("span",{"aria-hidden":"true",className:k_.railIconMask,style:{"--egen-rail-icon":'url("'.concat(i.replace(/"/g,"%22"),'")')}}):o?(0,v.jsx)(o,{size:18,"aria-hidden":"true"}):(0,v.jsx)("span",{"aria-hidden":"true",children:a.charAt(0).toUpperCase()}),void 0!==s&&(0,v.jsx)("span",{className:k_.railBadge,"data-testid":"workbench-badge-".concat(t.id),children:kI(s)})]})}function kB(){return(0,v.jsxs)("nav",{"aria-label":"Outils de l'application","data-testid":"workbench-rail-left",className:k_.rail,children:[(0,v.jsx)(kL,{anchor:"left",label:"Panneau lat\xe9ral"}),(0,v.jsx)("span",{className:k_.railSpacer}),(0,v.jsx)(kL,{anchor:"bottom",rail:"left",label:"Panneau inf\xe9rieur"})]})}function kV(){return(0,v.jsxs)("nav",{"aria-label":"Outils globaux","data-testid":"workbench-rail-right",className:k_.rail,children:[(0,v.jsx)(kL,{anchor:"right",label:"Panneau droit"}),(0,v.jsx)("span",{className:k_.railSpacer}),(0,v.jsx)(kL,{anchor:"bottom",rail:"right",label:"Panneau inf\xe9rieur"})]})}var kz=r(822);function kW(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var kU="data-workbench-resizing";function k$(e){var t=e.anchor,r=e.label,n=(0,x.useStore)(kv).sizes[t],a=(0,g.useRef)(null),o="bottom"!==t,i=function(e){var t,r;a.current&&(a.current=null,null==(t=(r=e.currentTarget).releasePointerCapture)||t.call(r,e.pointerId),document.documentElement.removeAttribute(kU))};return(0,v.jsx)("div",{role:"separator",tabIndex:0,"aria-label":r,"aria-orientation":o?"vertical":"horizontal","aria-valuenow":n,"aria-valuemin":ky(t,0),"aria-valuemax":ky(t,Number.MAX_SAFE_INTEGER),"data-anchor":t,className:"".concat(k_.splitter," ").concat(k_["splitter-".concat(t)]),onPointerDown:function(e){if(0===e.button){var r,n,o,i,s=null!=(r=null==(n=e.currentTarget.parentElement)?void 0:n.parentElement)?r:e.currentTarget.parentElement;if(s){var l=s.getBoundingClientRect(),u="left"===t?l.left:"right"===t?l.right:l.bottom,c="left"===t?l.right:"right"===t?l.left:l.top;a.current={edge:u,grab:("bottom"===t?e.clientY:e.clientX)-c},null==(o=(i=e.currentTarget).setPointerCapture)||o.call(i,e.pointerId),document.documentElement.setAttribute(kU,t),e.preventDefault()}}},onPointerMove:function(e){if(a.current){var r,n,o,i;kD(t,(r=e.clientX,n=e.clientY,o=a.current.edge,i=a.current.grab,"left"===t?r-i-o:"right"===t?o-(r-i):o-(n-i)))}},onPointerUp:i,onPointerCancel:i,onDoubleClick:function(){return kC(t)},onKeyDown:function(e){var r="left"===t?"ArrowRight":"right"===t?"ArrowLeft":"ArrowUp",n="left"===t?"ArrowLeft":"right"===t?"ArrowRight":"ArrowDown";if(e.key===r)kD(t,kv.getState().sizes[t]+16);else if(e.key===n)kD(t,kv.getState().sizes[t]-16);else if("Home"===e.key)kD(t,0);else{if("End"!==e.key)return;kD(t,Number.MAX_SAFE_INTEGER)}e.preventDefault()}})}function kH(e){var t=e.side,r=e.label,n=(0,g.useRef)(null),a="corner-".concat(t),o=function(e){var t,r;n.current&&(n.current=null,null==(t=(r=e.currentTarget).releasePointerCapture)||t.call(r,e.pointerId),document.documentElement.removeAttribute(kU))};return(0,v.jsx)("div",{"aria-hidden":"true",title:r,"data-corner":t,className:"".concat(k_.cornerSplitter," ").concat(k_["cornerSplitter-".concat(t)]),onPointerDown:function(e){if(0===e.button){var r,o,i=kv.getState().sizes;n.current={x:e.clientX,y:e.clientY,side:i[t],bottom:i.bottom},null==(r=(o=e.currentTarget).setPointerCapture)||r.call(o,e.pointerId),document.documentElement.setAttribute(kU,a),e.preventDefault()}},onPointerMove:function(e){var r=n.current;if(r){var a=e.clientX-r.x;kD(t,r.side+("left"===t?a:-a)),kD("bottom",r.bottom-(e.clientY-r.y))}},onPointerUp:o,onPointerCancel:o,onDoubleClick:function(){kC(t),kC("bottom")}})}var kK=function(e,t){return Object.fromEntries(e.map(function(e,r){return[e.key,t[r]]}))};function kG(e){var t=e.anchor,r=e.index,n=e.items,a=e.heights,o=e.label,i=(0,g.useRef)(null),s=function(e){var t,r;i.current&&(i.current=null,null==(t=(r=e.currentTarget).releasePointerCapture)||t.call(r,e.pointerId),document.documentElement.removeAttribute(kU))};return(0,v.jsx)("div",{role:"separator",tabIndex:0,"aria-label":o,"aria-orientation":"horizontal","aria-valuenow":Math.round(a[r]),"aria-valuemin":0,"aria-valuemax":100,"data-compartment-splitter":r,className:k_.compartmentSplitter,onPointerDown:function(e){if(0===e.button){var r,o,s=e.currentTarget.parentElement;if(s){var l=e.currentTarget.getBoundingClientRect().height,u=s.getBoundingClientRect().height-l*(n.length-1);u>0&&(i.current={y:e.clientY,heights:function(e){if(Array.isArray(e))return kW(e)}(a)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e){if(e){if("string"==typeof e)return kW(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return kW(e,void 0)}}(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),perPixel:100/u},null==(r=(o=e.currentTarget).setPointerCapture)||r.call(o,e.pointerId),document.documentElement.setAttribute(kU,"compartment-".concat(t)),e.preventDefault())}}},onPointerMove:function(e){var t=i.current;if(t){var a=(e.clientY-t.y)*t.perPixel;kk(kK(n,kn(t.heights,n,r,a)))}},onPointerUp:s,onPointerCancel:s,onDoubleClick:function(){return kk(kK(n,kr(n,{})))},onKeyDown:function(e){("ArrowUp"===e.key||"ArrowDown"===e.key)&&(kk(kK(n,kn(a,n,r,"ArrowDown"===e.key?5:-5))),e.preventDefault())}})}function kq(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var kY="data-tool-window-container",kX="data-tool-window-header";function kZ(e){var t,r=e.children,n=(0,g.useRef)(null),a=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(void 0))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return kq(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return kq(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=a[0],i=a[1];return(0,g.useLayoutEffect)(function(){var e,t,r=null==(t=n.current)?void 0:t.closest("[".concat(kY,"], aside[data-anchor]"));i(null!=(e=null==r?void 0:r.querySelector("[".concat(kX,"]")))?e:null)},[]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("span",{ref:n,hidden:!0}),void 0===o?null:null===o?r:(0,tZ.createPortal)(r,o)]})}function kQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function kJ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k0(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){kJ(e,t,r[t])})}return e}var k1={moduleName:"@egen-civitas/esm-styleguide",featureName:"workbench"},k2={left:"--egen-zone-left-width",right:"--egen-zone-right-width",bottom:"--egen-zone-bottom-height"},k3={left:"egen-anim-slide-in-from-left",right:"egen-anim-slide-in-from-right",bottom:"egen-anim-slide-in-from-bottom"},k4={left:"egen-anim-slide-out-to-left",right:"egen-anim-slide-out-to-right",bottom:"egen-anim-slide-out-to-bottom"};function k5(e){var t,r=e.anchor,n=SP(r),a=(0,x.useStore)(kv),o=a.active,i=a.sizes,s=o[r],l=i[r],u="bottom"===r?null:r,c=[],d=n.find(function(e){return!e.compartment&&e.id===s});if(d&&c.push({tool:d,item:k0({key:kh(null!=u?u:"left")},S7)}),u){var f=!0,p=!1,m=void 0;try{for(var h,y,b=kb(u,a)[Symbol.iterator]();!(f=(y=b.next()).done);f=!0)!function(){var e=y.value,t=n.find(function(t){return t.id===e&&t.compartment});(null==t?void 0:t.compartment)&&c.push({tool:t,item:k0({key:kh(u,e)},t.compartment)})}()}catch(e){p=!0,m=e}finally{try{f||null==b.return||b.return()}finally{if(p)throw m}}}var w=c.length>0,j=(0,g.useRef)([]),O=(0,g.useRef)(!1),S=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)("open"))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return kQ(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return kQ(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),k=S[0],E=S[1];w&&(j.current=c);var P=w?c:"closing"===k?j.current:[],A=P.length>0;(0,g.useLayoutEffect)(function(){if(w!==O.current){O.current=w,E(w?"opening":"closing");var e=window.setTimeout(function(){w||(j.current=[]),E("open")},300);return function(){return window.clearTimeout(e)}}},[w]),(0,g.useEffect)(function(){document.documentElement.style.setProperty(k2[r],w?"".concat(l,"px"):"0px")},[r,w,l]),(0,g.useEffect)(function(){return function(){document.documentElement.style.removeProperty(k2[r])}},[r]);var D=P.map(function(e){return e.item}),C=kr(D,null!=(h=a.heights)?h:{}),T=D.map(function(e,t){return"".concat(e.key,"=").concat(C[t])}).join("|");(0,g.useEffect)(function(){w&&!(D.length<2)&&kk(Object.fromEntries(D.map(function(e,t){return[e.key,C[t]]})))},[w,T]);var N=P[0]?SE(P[0].tool):"",R="closing"===k?k4[r]:"opening"===k?k3[r]:"",M="closing"!==k;return(0,v.jsx)("aside",{"data-testid":"workbench-zone-".concat(r),"data-anchor":r,"data-open":w,"data-phase":k,"data-compartments":P.length,"aria-label":N||void 0,hidden:!A,style:{"--egen-zone-inner-size":"".concat(l,"px")},className:"".concat(k_.zone," ").concat(k_["zone-".concat(r)]," ").concat(R),children:A&&(0,v.jsxs)(v.Fragment,{children:[P.map(function(e,t){var n=e.tool,a=e.item;return(0,v.jsxs)(g.Fragment,{children:[t>0&&M&&u&&(0,v.jsx)(kG,{anchor:u,index:t-1,items:D,heights:C,label:"Redimensionner ".concat(SE(P[t-1].tool)," et ").concat(SE(n))}),t>0&&!(M&&u)&&(0,v.jsx)("span",{"aria-hidden":"true",className:k_.compartmentGap}),(0,v.jsx)(k6,{anchor:r,tool:n,height:C[t],own:a.key!==kh(null!=u?u:"left"),single:1===P.length})]},a.key)}),"closing"!==k&&(0,v.jsx)(k$,{anchor:r,label:"Redimensionner ".concat(N)}),"bottom"===r&&"closing"!==k&&null!==o.left&&(0,v.jsx)(kH,{side:"left",label:"Redimensionner la zone gauche et la zone basse"}),"bottom"===r&&"closing"!==k&&null!==o.right&&(0,v.jsx)(kH,{side:"right",label:"Redimensionner la zone droite et la zone basse"})]})})}function k6(e){var t,r=e.anchor,n=e.tool,a=e.height,o=e.own,i=e.single,s=SE(n),l=(0,g.useCallback)(function(e){return e.filter(function(e){return e.name===n.id})},[n.id]);return(0,v.jsxs)("section",(kJ(t={"data-testid":"workbench-compartment-".concat(r,"-").concat(o?n.id:S9),"data-compartment":o?"own":"default","data-height":Math.round(100*a)/100},kY,""),kJ(t,"style",i?void 0:{flex:"".concat(a," 1 0%")}),kJ(t,"className",k_.compartment),kJ(t,"children",[(0,v.jsxs)("header",{className:k_.zoneHeader,children:[(0,v.jsx)("h2",{className:k_.zoneTitle,children:s}),(0,v.jsx)("div",kJ({className:k_.zoneHeaderTools},kX,"")),(0,v.jsx)("button",{type:"button",className:k_.zoneClose,"aria-label":"Fermer ".concat(s),title:"Fermer ".concat(s),onClick:function(){return kA(r,n.id)},children:(0,v.jsx)(kz.A,{size:14,"aria-hidden":"true"})})]}),(0,v.jsx)("div",{className:"".concat(k_.zoneBody," egen-anim-fade-in"),children:(0,v.jsx)(x.ComponentContext.Provider,{value:k1,children:(0,v.jsx)(x.ExtensionSlot,{name:m1.As[r],select:l,className:k_.zoneSlot})})},n.id)]),t))}var k8={moduleName:"@egen-civitas/esm-styleguide",featureName:"workbench",strictMode:!1},k9=(0,x.egenComponentDecorator)(k8)(kB),k7=(0,x.egenComponentDecorator)(k8)(kV),Ee=(0,x.egenComponentDecorator)(k8)(k5);function Et(e){var t=e.railLeft,r=e.railRight,n=e.zoneLeft,a=e.zoneRight,o=e.zoneBottom;t&&(0,hP.createRoot)(t).render((0,v.jsx)(k9,{})),r&&(0,hP.createRoot)(r).render((0,v.jsx)(k7,{})),n&&(0,hP.createRoot)(n).render((0,v.jsx)(Ee,{anchor:"left"})),a&&(0,hP.createRoot)(a).render((0,v.jsx)(Ee,{anchor:"right"})),o&&(0,hP.createRoot)(o).render((0,v.jsx)(Ee,{anchor:"bottom"}))}function Er(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function En(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||Eo(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ea(e){return function(e){if(Array.isArray(e))return Er(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Eo(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eo(e,t){if(e){if("string"==typeof e)return Er(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Er(e,t)}}var Ei=function(e,t,r){return t?(0,V.t)(e,t,r):r};function Es(){var e=window.getEgenSpaBase().replace(/\/$/,""),t=window.location.pathname;return(t.startsWith(e)?t.slice(e.length):t).replace(/^\/+|\/+$/g,"")}function El(e){var t,r,n,a=e.section,o=(0,x.useAssignedExtensions)(m1.yS),i=(r=(t=En((0,g.useState)(Es),2))[0],n=t[1],(0,g.useEffect)(function(){var e=function(){return n(Es())};return window.addEventListener("single-spa:routing-event",e),window.addEventListener("popstate",e),e(),function(){window.removeEventListener("single-spa:routing-event",e),window.removeEventListener("popstate",e)}},[]),r),s=En((0,g.useState)(null),2),l=s[0],u=s[1],c=(0,g.useMemo)(function(){var e=new Map,t=!0,r=!1,n=void 0;try{for(var i,s=o[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var l=i.value;if((0,m1.DK)(l.meta)&&l.meta.section===a){var u=l.meta,c=null!=(f=u.group)?f:"",d=e.get(c);if(!d){var f,p,m=u.group?null!=(p=u.groupLabel)?p:u.group:void 0;d={key:c,label:m?Ei(l.moduleName,u.groupLabelKey,m):void 0,entries:[]},e.set(c,d)}d.entries.push({name:l.name,moduleName:l.moduleName,meta:u})}}}catch(e){r=!0,n=e}finally{try{t||null==s.return||s.return()}finally{if(r)throw n}}return Ea(e.values())},[o,a]),d=(0,g.useMemo)(function(){var e,t,r=c.flatMap(function(e){return e.entries}).filter(function(e){var t;return i===(t=e.meta.route)||i.startsWith("".concat(t,"/"))});if(0===r.length)return null;var n=(e=Math).max.apply(e,Ea(r.map(function(e){return e.meta.route.length}))),a=r.filter(function(e){return e.meta.route.length===n});return(null!=(t=a.find(function(e){return e.name===l}))?t:a[0]).name},[c,i,l]);return 0===c.length?null:(0,v.jsx)("nav",{className:"qLEdjoMnou12cJG2pcNl2g==","data-testid":"section-nav-".concat(a),children:c.map(function(e){return(0,v.jsxs)("div",{className:"Yyc847xcFssyhuatTQ7xiA==",role:"group","aria-label":e.label,children:[e.label&&(0,v.jsx)("h3",{className:"fqz9L1RbM505xmJMtsj0ug==",children:e.label}),(0,v.jsx)("ul",{className:"bxiFBKtONQbQt9kFcd6ZZA==",children:e.entries.map(function(e){var t=S5(e.meta.icon),r=Ei(e.moduleName,e.meta.labelKey,e.meta.label),n=e.meta.description?Ei(e.moduleName,e.meta.descriptionKey,e.meta.description):void 0;return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",className:"mQhizWw06oV9hY+VNVfIhw==","data-active":e.name===d,"aria-current":e.name===d?"page":void 0,title:n,onClick:function(){u(e.name),(0,y8.oo)({to:"${egenSpaBase}/".concat(e.meta.route)})},children:[t&&(0,v.jsx)(t,{size:16,"aria-hidden":"true",className:"K3jvNMlqmar7YFU-LrIMVA=="}),(0,v.jsx)("span",{className:"jukYKqSJ+u0ARW+Th96NRw==",children:r})]})},e.name)})})]},e.key)})})}var Eu={fade:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},scale:{initial:{opacity:0,scale:.94},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96}},zoom:{initial:{opacity:0,scale:.6},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.6}},"slide-up":{initial:{opacity:0,y:48},animate:{opacity:1,y:0},exit:{opacity:0,y:24}},"slide-down":{initial:{opacity:0,y:-48},animate:{opacity:1,y:0},exit:{opacity:0,y:-24}},"slide-left":{initial:{opacity:0,x:48},animate:{opacity:1,x:0},exit:{opacity:0,x:24}},"slide-right":{initial:{opacity:0,x:-48},animate:{opacity:1,x:0},exit:{opacity:0,x:-24}},warp:{initial:{opacity:0,rotateX:-5,skewY:-1.5,scaleY:2,scaleX:.4,y:100},animate:{opacity:1,rotateX:0,skewY:0,scaleY:1,scaleX:1,y:0,transition:{duration:.35,ease:[.59,0,.35,1],y:{type:"spring",visualDuration:.7,bounce:.2}}},exit:{opacity:0,rotateX:-5,skewY:-1.5,scaleY:2,scaleX:.4,y:100,transition:{duration:.35,ease:[.59,0,.35,1]}}},none:{initial:{},animate:{},exit:{}}},Ec={warp:{transformPerspective:1e3,originX:.5,originY:0}};function Ed(){cE.current||cA();let[e]=(0,g.useState)(ck.current);return e}let Ef={triggerWrap:"obUOkmXvVgfdGywRlKafuQ==",root:"RGEtM+3JT-yTrSFA8YESww==",overlay:"_6MXfQidMjLnx27vgPw-9Sg==",warpGlow:"kd2FxTe0qj-EPlsuLvJA-A==",warpWave:"eYhosSxSrqkohY0gP1+l0g==",warpWaveTint:"v7v+84i9dK1RijFpwYzIYQ==",warpBlob:"TW8N0JWIkX2rNgyo078MpA==",warpBlobA:"_41ZLsf4sYJA24kAYHV4t9Q==",warpBlobB:"yBeNfkSKBCQ7aUPSLla25A==",centerLayer:"RUVI+vdIGx4IlAly1zskzg==",panel:"iLjC58ABoO85I1ObBvOilQ==",closeButton:"QJ7H9rD2013pVurP-n31bw==",dockBubble:"JgOy0alMLvPtoW+dnVnh9Q==","dockBubble--left":"_0TgTNggNd+BZEC9BP4NglQ==","dockBubble--right":"oaILkyqA-30uHGcpYEfM7Q=="};var Ep=function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({opacity:.9,transition:{duration:.5,scale:{duration:15,repeat:1/0,repeatType:"loop",ease:"easeInOut",delay:.35}}},e?{}:{scale:[1,.7,1]})},Em=function(){var e=Ed();return(0,v.jsxs)("div",{className:Ef.warpGlow,"aria-hidden":"true",children:[(0,v.jsx)(mz.div,{className:Ef.warpWave,initial:{scale:0,opacity:1},animate:{scale:e?1:10,opacity:.2,transition:{duration:.5,opacity:{duration:.5,ease:"easeInOut"}}},exit:{scale:0,opacity:1,transition:{duration:.25}}}),(0,v.jsx)(mz.div,{className:"".concat(Ef.warpBlob," ").concat(Ef.warpBlobA),initial:{opacity:0},animate:Ep(e),exit:{opacity:0,transition:{duration:.25}}}),(0,v.jsx)(mz.div,{className:"".concat(Ef.warpBlob," ").concat(Ef.warpBlobB),initial:{opacity:0},animate:Ep(e),exit:{opacity:0,transition:{duration:.25}}})]})};function Eh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ey(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ev(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Ey(e,t,r[t])})}return e}function Eg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Eh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Eh(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Eb=function(e,t){return"u"<typeof window?e:Math.min(Math.max(e,8+t/2),window.innerHeight-8-t/2)},Ex=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&null!==e},Ew=function(e){var t,r,n,a,o,i,s,l,u,c=e.open,d=e.defaultOpen,f=e.onOpenChange,p=e.trigger,m=e.children,h=e.showCloseButton,y=e.renderCloseButton,b=e.cardVariant,x=e.cardProps,w=e.draggable,j=void 0!==w&&w,O=e.dockable,k=void 0!==O&&O,E=e.dockIcon,P=e.dockEdgeThreshold,A=void 0===P?80:P,D=e.dockUndockDistance,C=void 0===D?120:D,T=e.dockSize,N=void 0===T?56:T,R=e.closeOnOverlayClick,M=e.closeOnEscape,I=void 0===M||M,L=e.showOverlay,B=e.lockScroll,V=void 0===B||B,z=e.animation,W=void 0===z?"scale":z,U=e.overlayAnimation,$=e.overlayEffect,H=e.warpColor,K=e.className,G=e.style,q=e.overlayClassName,Y=Eg((0,g.useState)(void 0!==d&&d),2),X=Y[0],Z=Y[1],Q=Eg((0,g.useState)(!1),2),J=Q[0],ee=Q[1],et=Eg((0,g.useState)(null),2),er=et[0],en=et[1],ea=(0,g.useRef)(null),eo=(0,g.useId)(),ei=void 0!==c,es=ei?c:X,el=(0,g.useCallback)(function(e){null==f||f(e),ei||Z(e)},[f,ei]),eu=(0,g.useCallback)(function(){return el(!1)},[el]);(0,g.useEffect)(function(){return ee(!0)},[]),(0,g.useEffect)(function(){es&&en(null)},[es]);var ec=(0,g.useCallback)(function(){if(k&&ea.current&&"u">typeof window){var e=ea.current.getBoundingClientRect(),t=e.left+e.width/2,r=e.top+e.height/2;if(er)return void(Math.abs(t-("left"===er.side?0:window.innerWidth))>C?en(null):en({side:er.side,y:Eb(r,N)}));t<=A?en({side:"left",y:Eb(r,N)}):t>=window.innerWidth-A&&en({side:"right",y:Eb(r,N)})}},[k,er,A,C,N]);(0,g.useEffect)(function(){if(es&&V)return document.body.style.overflow="hidden",function(){document.body.style.overflow=""}},[es,V]),(0,g.useEffect)(function(){if(es&&I){var e=function(e){"Escape"===e.key&&eu()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[es,I,eu]);var ed=Ex(W)?W:{preset:W},ef=null!=(n=ed.variants)?n:Eu[null!=(a=ed.preset)?a:"scale"],ep={duration:null!=(o=ed.duration)?o:.25,ease:null!=(i=ed.ease)?i:[.16,1,.3,1]},em=ed.variants?void 0:null!=(s=ed.preset)?s:"scale",eh=em?Ec[em]:void 0,ey=null!=$?$:"warp"===em?"warp":"none",ev={duration:null!=(l=null==U?void 0:U.duration)?l:.2,ease:null!=(u=null==U?void 0:U.ease)?u:"easeOut"},eg=(0,v.jsx)(OA,{children:es&&(0,v.jsxs)("div",{className:Ef.root,children:[(void 0===L||L)&&!er&&(0,v.jsx)(mz.div,{className:S()(Ef.overlay,q),style:"warp"===ey?{"--card-modal-warp-color":null!=H?H:"var(--colors-error-500)"}:void 0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:ev,onClick:void 0===R||R?eu:void 0,"aria-hidden":"true",children:"warp"===ey&&(0,v.jsx)(Em,{})}),er?(0,v.jsx)(mz.div,{ref:ea,className:S()(Ef.dockBubble,Ef["dockBubble--".concat(er.side)]),style:Ey({top:er.y,width:N,height:N},er.side,-(N/2)),drag:!0,dragMomentum:!1,dragElastic:.2,onDragEnd:ec,initial:{scale:.3,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.3,opacity:0},transition:{type:"spring",stiffness:420,damping:32},whileDrag:{cursor:"grabbing"},role:"button",tabIndex:0,"aria-label":"D\xe9ployer le modal",onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&en(null)},children:null!=E?E:(0,v.jsx)(iV,{size:20})}):(0,v.jsx)("div",{className:Ef.centerLayer,children:(0,v.jsx)(mz.div,{ref:ea,role:"dialog","aria-modal":"true","aria-labelledby":(null==x?void 0:x.title)?eo:void 0,className:S()(Ef.panel,K),style:Ev({},eh,G),variants:ef,initial:"initial",animate:"animate",exit:"exit",transition:ep,drag:j,dragMomentum:!1,dragElastic:.12,onDragEnd:k?ec:void 0,whileDrag:j?{cursor:"grabbing"}:void 0,children:(0,v.jsxs)(F,(t=Ev({variant:void 0===b?"default":b},x),r=r={children:[(void 0===h||h)&&(y?y(eu):(0,v.jsx)("button",{type:"button",className:Ef.closeButton,onClick:eu,"aria-label":"Fermer",children:(0,v.jsx)(iO,{size:18})})),m]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))})})]})});return(0,v.jsxs)(v.Fragment,{children:[p&&(0,v.jsx)("span",{className:Ef.triggerWrap,onClick:function(){return el(!0)},children:p}),J&&(0,tZ.createPortal)(eg,document.body)]})},Ej=(0,g.createContext)(null);function EO(){var e=(0,g.useContext)(Ej);if(!e)throw Error("Select compound components must be used within <Select>");return e}function ES(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ek(e){var t,r=e.children,n=e.options,a=e.selectedOptionId,o=e.onOptionChange,i=e.open,s=e.onOpenChange,l=e.getOptionId,u=void 0===l?function(e){return e.id}:l,c=e.getOptionName,d=void 0===c?function(e){return e.name}:c,f=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return ES(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ES(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],m=f[1],h=(0,g.useRef)(null),y=void 0!==i,b=y?i:p,x=(0,g.useCallback)(function(e){null==s||s(e),y||m(e)},[s,y]),w=(0,g.useMemo)(function(){var e;return a&&null!=(e=n.find(function(e){return u(e)===a}))?e:n[0]},[n,a,u]),j=(0,g.useCallback)(function(e){null==o||o(e),x(!1)},[o,x]);return(0,v.jsx)(Ej.Provider,{value:{open:b,setOpen:x,selectedOption:w,options:n,onOptionSelect:j,getOptionId:u,getOptionName:d,triggerRef:h},children:r})}function EE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var EP=function(e){var t,r=e.src,n=e.name,a=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return EE(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return EE(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=a[0],i=a[1];return r&&!o?(0,v.jsx)("img",{className:"SfeZipJ-EbaokHctW8FEUA==",src:r,alt:"",onError:function(){return i(!0)}}):(0,v.jsx)("span",{className:"JfvCvEXqGY3pQYoOoULjmg==","aria-hidden":"true",children:n.charAt(0).toUpperCase()})};function EA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ED=function(e){var t,r,n=e.className,a=e.renderTrigger,o=e.showAvatar,i=e.placeholder,s=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["className","renderTrigger","showAvatar","placeholder"]),l=EO(),u=l.open,c=l.setOpen,d=l.selectedOption,f=l.getOptionName,p=l.triggerRef;return(0,v.jsxs)("button",(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){EA(e,t,r[t])})}return e}({ref:p,type:"button","data-state":u?"open":"closed",className:S()("_8A7vObqyrHkzJZX3MyKCvg==",n),"aria-haspopup":"listbox","aria-expanded":u,onClick:function(){return c(!u)}},s),r=r={children:[a?a(d,u):(0,v.jsx)("span",{className:"eSzDXRtGcW-YSjmCT0-Ddw==",children:d?(0,v.jsxs)(v.Fragment,{children:[(void 0===o||o)&&(0,v.jsx)(EP,{src:d.logo,name:f(d)}),(0,v.jsx)("span",{className:"daPOVgYo-UqRJt-fl64xnA==",children:f(d)})]}):(0,v.jsx)("span",{className:"_9rM-qQ-coahjdQZK8YeKAA==",children:void 0===i?"S\xe9lectionner…":i})}),(0,v.jsx)(ib,{className:S()("IkujjwnflhrCxIL04AEPig==",EA({},"_2LDeSM6tUlPbxNaRHK05Iw==",u)),size:16})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))};function EC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ET(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return EC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return EC(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ER=function(e){var t=e.className,r=e.style,n=e.renderOption,a=e.title,o=void 0===a?"Options":a,i=e.searchable,s=e.searchPlaceholder,l=void 0===s?"Rechercher…":s,u=e.onSearch,c=e.emptyMessage,d=e.showAvatar,f=void 0===d||d,p=e.children,m=EO(),h=m.open,y=m.setOpen,b=m.options,x=m.selectedOption,w=m.onOptionSelect,j=m.getOptionId,O=m.getOptionName,k=m.triggerRef,E=EN((0,g.useState)(""),2),P=E[0],A=E[1],D=EN((0,g.useState)(null),2),C=D[0],T=D[1],N=(0,g.useRef)(null);(0,g.useLayoutEffect)(function(){if(h&&k.current){var e=k.current.getBoundingClientRect();T({top:e.bottom+8,left:e.left,width:e.width})}},[h,k]),(0,g.useLayoutEffect)(function(){if(h){var e=function(e){var t,r,n=e.target;(null==(t=N.current)?void 0:t.contains(n))||(null==(r=k.current)?void 0:r.contains(n))||y(!1)},t=function(e){"Escape"===e.key&&y(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}}},[h,y,k]),(0,g.useLayoutEffect)(function(){null==u||u(P)},[P,u]);var R=(0,g.useMemo)(function(){if(!P.trim())return b;var e=P.trim().toLowerCase();return b.filter(function(t){return O(t).toLowerCase().includes(e)})},[b,P,O]);return(0,v.jsx)(OA,{children:h&&C&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"_55fm5zZQNsrBHYAZbXmNvg==",onClick:function(){return y(!1)},"aria-hidden":"true"}),(0,v.jsxs)(mz.div,{ref:N,role:"listbox",className:S()("_8533SRCjw0RGEuTOYGY4FA==",t),style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){ET(e,t,r[t])})}return e}({top:C.top,left:C.left,minWidth:C.width},r),initial:{opacity:0,y:-6,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-6,scale:.98,transition:{duration:.15}},transition:{duration:.18,ease:"easeOut"},children:[o&&(0,v.jsx)("div",{className:"hvqzvUcvwgWeDSSzp+zRfQ==",children:(0,v.jsx)("p",{className:"WuMZ5aFHDUDGitQ16DWxkQ==",children:o})}),void 0!==i&&i&&(0,v.jsxs)("div",{className:"El+2XqUZnMl2EdCFZiCqZg==",children:[(0,v.jsx)(i1,{className:"G0ZQ7JjU-IctRcuJd8GAMA==",size:14}),(0,v.jsx)("input",{type:"search",value:P,onChange:function(e){return A(e.target.value)},placeholder:l,className:"jQTabWEMQ1lzIpV-psr-Iw==","aria-label":l})]}),(0,v.jsx)("div",{className:"RP3TMqBbVREsRmefNgXF3A==",children:0===R.length?(0,v.jsx)("div",{className:"ytySk7Z-uqE+Cd9nnCNIzQ==",children:void 0===c?"Aucun r\xe9sultat.":c}):R.map(function(e){var t=!!(x&&j(x)===j(e));return(0,v.jsx)("button",{type:"button",role:"option","aria-selected":t,className:S()("B1tJItorhHLvItWNBDbDTg==",ET({},"_3ytcFRMy9adpn2Lj3bv0pA==",t)),onClick:function(){return w(e)},children:n?n(e,t):(0,v.jsxs)("span",{className:"SVev5Gq0Bwn3qsCJanJGhg==",children:[f&&(0,v.jsx)(EP,{src:e.logo,name:O(e)}),(0,v.jsxs)("span",{className:"tv64rRuAO4duYiHknZebcQ==",children:[(0,v.jsx)("span",{className:"_2a5Da3T58kUDerdneCN30g==",children:O(e)}),"string"==typeof e.plan&&(0,v.jsx)("span",{className:"lcrpGqGFBDjmEWV5DeMRCw==",children:e.plan})]}),t&&(0,v.jsx)(ig,{className:"v2g0jDDAFYSc-NvgPQzIuw==",size:16})]})},j(e))})}),p&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"jiBHwsnN8h16vEbCOHfFyQ=="}),(0,v.jsx)("div",{className:"xQ7Xx8vG4UYoZ5L2n4s7aw==",children:p})]})]})]})})};let EM="-ATlOUGNcp7GZJPUeq8rFQ==";function EI(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function E_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||EL(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EL(e,t){if(e){if("string"==typeof e)return EI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return EI(e,t)}}function EF(e){var t=e.options,r=e.defaultActiveIndex,n=e.onChange,a=e.title,o=e.subtitle,i=e.className,s=e.style,l=E_((0,g.useState)(void 0===r?0:r),2),u=l[0],c=l[1],d=E_((0,g.useState)([]),2),f=d[0],p=d[1],m=function(e){e!==u&&(c(e),null==n||n(e))};return(0,g.useEffect)(function(){var e=[];return t.forEach(function(t,r){var n=setTimeout(function(){p(function(e){return((function(e){if(Array.isArray(e))return EI(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||EL(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([r])})},180*r);e.push(n)}),function(){e.forEach(function(e){return clearTimeout(e)})}},[]),(0,v.jsxs)("div",{className:S()("wlcxPFWjrVtumBSV-e-CDA==",i),style:s,children:[(a||o)&&(0,v.jsxs)("div",{className:"bj+Iqs7YlC4rnGPeWHvfDA==",children:[a&&(0,v.jsx)("h1",{className:S()("BxZYvA8NGXlbyIbv2WeY+g==",EM,"hlPOKNY1Iajw1xOcwAeSBA=="),children:a}),o&&(0,v.jsx)("p",{className:S()("feAT6ZKoC5a3dcOZdCuiXQ==",EM,"bhPpy9KSGVluihqPVuUiTw=="),children:o})]}),(0,v.jsx)("div",{className:"YjKVOFGPUd8QRnTyYbHlEQ=="}),(0,v.jsx)("div",{className:"yxtd7MYVN9PUttKi+ACMTA==",children:t.map(function(e,t){var r=u===t,n=f.includes(t);return(0,v.jsxs)("div",{role:"button",tabIndex:0,"aria-pressed":r,"aria-label":e.title,className:"KXRbSNJdVXlt4FjqmIyEqA==",style:{backgroundImage:"url('".concat(e.image,"')"),backgroundSize:r?"auto 100%":"auto 120%",opacity:+!!n,transform:n?"translateX(0)":"translateX(-60px)",borderColor:r?"var(--colors-on-primary)":"var(--colors-neutral-800)",boxShadow:r?"0 20px 60px color-mix(in srgb, var(--colors-neutral-950) 50%, transparent)":"0 10px 30px color-mix(in srgb, var(--colors-neutral-950) 30%, transparent)",flex:r?"7 1 0%":"1 1 0%",zIndex:r?10:1},onClick:function(){return m(t)},onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),m(t))},children:[(0,v.jsx)("div",{className:"tWfgJW24bLfSOAIrfBdeBw==",style:{bottom:r?"0":"-40px",boxShadow:r?"inset 0 -120px 120px -120px var(--colors-neutral-950), inset 0 -120px 120px -80px var(--colors-neutral-950)":"inset 0 -120px 0px -120px var(--colors-neutral-950), inset 0 -120px 0px -80px var(--colors-neutral-950)"}}),(0,v.jsxs)("div",{className:"_29Y7xxDXDwKDDxpgJdNRmw==",children:[(0,v.jsx)("div",{className:"NLN-jvKhi89LBjqeRG23bA==",children:e.icon}),(0,v.jsxs)("div",{className:"rUd70NVRl13hfW708rVyBw==",children:[(0,v.jsx)("div",{className:"C7SafuQjFwOk8hTZ+e5smA==",style:{opacity:+!!r,transform:r?"translateX(0)":"translateX(25px)"},children:e.title}),(0,v.jsx)("div",{className:"eJ6SOWnBp59Zc89zmo61Zw==",style:{opacity:+!!r,transform:r?"translateX(0)":"translateX(25px)"},children:e.description})]})]})]},t)})})]})}function EB(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function EV(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var Ez=function(e){return EB({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1},e)},EW=function(e){return(0,v.jsx)("svg",EV(EB({},Ez(e)),{children:(0,v.jsx)("path",{d:"m6 9 6 6 6-6"})}))},EU=function(e){return(0,v.jsx)("svg",EV(EB({},Ez(e)),{children:(0,v.jsx)("path",{d:"M20 6 9 17l-5-5"})}))},E$=function(e){return(0,v.jsxs)("svg",EV(EB({},Ez(e)),{children:[(0,v.jsx)("path",{d:"m7 15 5 5 5-5"}),(0,v.jsx)("path",{d:"m7 9 5-5 5 5"})]}))},EH=function(e){return(0,v.jsxs)("svg",EV(EB({},Ez(e)),{children:[(0,v.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,v.jsx)("path",{d:"m21 21-4.3-4.3"})]}))},EK=function(e){return(0,v.jsxs)("svg",EV(EB({},Ez(e)),{children:[(0,v.jsx)("path",{d:"M18 6 6 18"}),(0,v.jsx)("path",{d:"m6 6 12 12"})]}))},EG=function(e){return(0,v.jsx)("svg",EV(EB({},Ez(e)),{children:(0,v.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}))};function Eq(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function EY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Eq(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Eq(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var EX={type:"spring",duration:.5,bounce:.22},EZ="flex w-full items-center justify-between gap-2 px-3.5 py-2.5 text-sm",EQ={hidden:{opacity:0,y:-6,filter:"blur(3px)"},show:{opacity:1,y:0,filter:"blur(0px)"}},EJ=(0,g.createContext)(null);function E0(e){var t=(0,g.useContext)(EJ);if(!t)throw Error("".concat(e," must be used within <MorphSelect>"));return t}function E1(e){var t,r=e.value,n=e.defaultValue,a=e.onValueChange,o=e.open,i=e.defaultOpen,s=e.onOpenChange,l=e.disabled,u=void 0!==l&&l,c=e.transition,d=void 0===c?EX:c,f=e.radius,p=void 0===f?12:f,m=e.stagger,h=void 0===m?.035:m,y=e.staggerDelay,b=void 0===y?.08:y,x=e.className,j=e.children,O=null!=(t=Ed())&&t,S=(0,g.useId)(),k=(0,g.useRef)(null),E=EY((0,g.useState)(void 0!==i&&i),2),P=E[0],A=E[1],D=void 0!==o,C=D?o:P,T=(0,g.useCallback)(function(e){D||A(e),null==s||s(e)},[D,s]),N=EY((0,g.useState)(n),2),R=N[0],M=N[1],I=EY((0,g.useState)(new Map),2),L=I[0],F=I[1],B=EY((0,g.useState)("Select"),2),V=B[0],z=B[1],W=void 0!==r,U=W?r:R,$=(0,g.useCallback)(function(e){W||M(e),null==a||a(e),T(!1)},[W,a,T]),H=(0,g.useCallback)(function(e,t){F(function(r){var n,a,o=new Map(r);return o.set(e,{label:t,count:(null!=(n=null==(a=r.get(e))?void 0:a.count)?n:0)+1}),o})},[]),K=(0,g.useCallback)(function(e){F(function(t){var r=t.get(e);if(!r)return t;var n=new Map(t);return r.count<=1?n.delete(e):n.set(e,{label:r.label,count:r.count-1}),n})},[]);(0,g.useEffect)(function(){if(C){var e=function(e){return"Escape"===e.key&&T(!1)},t=function(e){k.current&&!k.current.contains(e.target)&&T(!1)};return window.addEventListener("keydown",e),window.addEventListener("pointerdown",t),function(){window.removeEventListener("keydown",e),window.removeEventListener("pointerdown",t)}}},[C,T]);var G=(0,g.useMemo)(function(){return{value:U,open:C,setOpen:T,select:$,register:H,unregister:K,labelFor:function(e){var t;return void 0===e||null==(t=L.get(e))?void 0:t.label},placeholder:V,setPlaceholder:z,reduce:O,layoutId:"".concat(S,"-surface"),triggerId:"".concat(S,"-trigger"),listId:"".concat(S,"-list"),disabled:u,transition:d,radius:p,stagger:h,staggerDelay:b}},[U,C,T,$,H,K,L,V,O,S,u,d,p,h,b]);return(0,v.jsx)(EJ.Provider,{value:G,children:(0,v.jsx)("div",{ref:k,className:(0,w.cn)("relative",x),children:j})})}function E2(e){var t,r=e.placeholder,n=e.className,a=E0("MorphSelectValue");(0,g.useEffect)(function(){r&&a.setPlaceholder(r)},[r,a.setPlaceholder]);var o=a.labelFor(a.value);return(0,v.jsx)("span",{className:(0,w.cn)(o?"text-foreground":"text-muted-foreground",n),children:null!=(t=null!=o?o:r)?t:"Select"})}function E3(e){var t,r,n=e.className,a=e.icon,o=e.children,i=E0("MorphSelectTrigger"),s=null!=a?a:(0,v.jsx)(EW,{className:"h-4 w-4"});return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({"aria-hidden":!0},{inert:""}),r=r={className:(0,w.cn)(EZ,"invisible rounded-xl border border-border"),children:[o,s]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t)),(0,v.jsx)(OA,{initial:!1,mode:"popLayout",children:i.open?null:(0,v.jsxs)(mz.button,{layoutId:i.layoutId,type:"button",id:i.triggerId,disabled:i.disabled,"aria-haspopup":"listbox","aria-expanded":i.open,"aria-controls":i.listId,onClick:function(){return i.setOpen(!0)},transition:i.reduce?{duration:0}:i.transition,style:{borderRadius:i.radius},className:(0,w.cn)(EZ,"absolute inset-x-0 top-0 z-10 border border-border bg-background text-foreground outline-none transition-colors","hover:border-input focus-visible:ring-2 focus-visible:ring-foreground/20","disabled:pointer-events-none disabled:opacity-50",n),children:[(0,v.jsx)(mz.span,{layout:"position",className:"min-w-0 truncate",children:o}),(0,v.jsx)(mz.span,{layout:"position",className:"text-muted-foreground",children:s})]},"trigger")})]})}function E4(e){var t=e.className,r=e.headerClassName,n=e.listClassName,a=e.icon,o=e.children,i=E0("MorphSelectContent"),s=i.labelFor(i.value),l=(0,g.useMemo)(function(){return{hidden:{},show:{transition:{staggerChildren:i.stagger,delayChildren:i.staggerDelay}}}},[i.stagger,i.staggerDelay]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"hidden",children:o}),(0,v.jsx)(OA,{initial:!1,mode:"popLayout",children:i.open?(0,v.jsxs)(mz.div,{layoutId:i.layoutId,id:i.listId,role:"listbox","aria-labelledby":i.triggerId,transition:i.reduce?{duration:0}:i.transition,style:{borderRadius:i.radius},className:(0,w.cn)("absolute inset-x-0 top-0 z-30 overflow-hidden border border-border bg-background shadow-lg",t),children:[(0,v.jsxs)(mz.button,{type:"button",layout:"position","aria-expanded":!0,onClick:function(){return i.setOpen(!1)},className:(0,w.cn)(EZ,"outline-none",r),children:[(0,v.jsx)("span",{className:(0,w.cn)("min-w-0 truncate",s?"text-foreground":"text-muted-foreground"),children:null!=s?s:i.placeholder}),(0,v.jsx)(mz.span,{animate:{rotate:180},transition:i.reduce?{duration:0}:i.transition,className:"text-muted-foreground",children:null!=a?a:(0,v.jsx)(EW,{className:"h-4 w-4"})})]}),(0,v.jsx)("div",{className:"h-px bg-border"}),(0,v.jsx)(mz.ul,{initial:"hidden",animate:"show",variants:i.reduce?void 0:l,className:(0,w.cn)("p-1",n),children:o})]},"panel"):null})]})}function E5(e){var t=e.value,r=e.disabled,n=e.label,a=e.indicator,o=e.className,i=e.children,s=E0("MorphSelectItem"),l=s.value===t,u=null!=n?n:"string"==typeof i?i:t;return(0,g.useLayoutEffect)(function(){return s.register(t,u),function(){return s.unregister(t)}},[s.register,s.unregister,t,u]),(0,v.jsx)(mz.li,{variants:s.reduce?void 0:EQ,children:(0,v.jsxs)("button",{type:"button",role:"option","aria-selected":l,disabled:void 0!==r&&r,onClick:function(){return s.select(t)},className:(0,w.cn)("flex w-full items-center justify-between gap-2 rounded-lg px-2.5 py-1.5 text-left text-sm outline-none transition-colors",l?"bg-muted text-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:bg-muted","disabled:pointer-events-none disabled:opacity-50",o),children:[i,l?null!=a?a:(0,v.jsx)(EU,{className:"h-3.5 w-3.5 shrink-0"}):null]})})}function E6(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function E8(e){if(Array.isArray(e))return e}function E9(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function E7(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Pe(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function Pr(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function Pn(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function Pa(e,t){return E8(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||Pi(e,t)||Pe()}function Po(e){return E8(e)||E7(e)||Pi(e)||Pe()}function Pi(e,t){if(e){if("string"==typeof e)return E6(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E6(e,t)}}var Ps=function(e){var t=e.state;return(0,v.jsx)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5 text-muted-foreground transition-colors group-hover:text-foreground pointer-events-none",children:(0,v.jsx)("path",{d:"x"===t?"M 6 18 L 18 6 M 18 18 L 6 6":"up"===t?"M 6 15 L 12 9 M 18 15 L 12 9":"M 6 9 L 12 15 M 18 9 L 12 15",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",style:{transition:"d 0.4s cubic-bezier(0.4, 0, 0.2, 1)"}})})},Pl=function(e){var t=e.className;return(0,v.jsx)("svg",{viewBox:"0 0 24 24",className:(0,w.cn)("w-4 h-4",t),fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,v.jsx)("polyline",{points:"20 6 9 17 4 12"})})},Pu=function(e){var t=e.className;return(0,v.jsxs)("svg",{viewBox:"0 0 24 24",className:(0,w.cn)("w-4 h-4",t),fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,v.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,v.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})},Pc=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Pa(g.useState(!1),2),r=t[0],n=t[1],a=g.useRef(null),o=g.useRef(null),i=g.useRef(null),s=function(t){if(!e&&a.current&&o.current){n(!0),null==(r=i.current)||r.cancel();var r,s=a.current.getBoundingClientRect(),l=Math.max(s.width,s.height),u=Math.max(.35*l,75),c=Math.floor(.2*l),d=Math.sqrt(Math.pow(s.width,2)+Math.pow(s.height,2)),f=Math.min(Math.max(400,1.5*d),1e3),p={x:(s.width-c)/2,y:(s.height-c)/2},m=p;t&&"clientX"in t&&(m={x:t.clientX-s.left-c/2,y:t.clientY-s.top-c/2}),o.current.style.width="".concat(c,"px"),o.current.style.height="".concat(c,"px"),i.current=o.current.animate([{transform:"translate(".concat(m.x,"px, ").concat(m.y,"px) scale(1)")},{transform:"translate(".concat(p.x,"px, ").concat(p.y,"px) scale(").concat((d+10+u)/c,")")}],{duration:f,easing:"cubic-bezier(0.2, 0, 0, 1)",fill:"forwards"})}},l=function(){var e;return(e=function(){var e;return function(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:if(!((e=i.current)&&"number"==typeof e.currentTime&&e.currentTime<300))return[3,2];return[4,new Promise(function(t){return setTimeout(t,300-e.currentTime)})];case 1:t.sent(),t.label=2;case 2:return n(!1),[2]}})},function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(e){E9(o,n,a,i,s,"next",e)}function s(e){E9(o,n,a,i,s,"throw",e)}i(void 0)})})()};return{surfaceRef:a,rippleRef:o,pressed:r,events:{onPointerDown:function(e){0===e.button&&s(e)},onPointerUp:l,onPointerLeave:l,onPointerCancel:l}}},Pd=g.forwardRef(function(e,t){var r=e.pressed,n=e.rippleRef;return(0,v.jsxs)("div",{ref:t,className:"absolute inset-0 overflow-hidden rounded-[inherit] pointer-events-none z-0",children:[(0,v.jsx)("div",{className:"absolute inset-0 bg-current opacity-0 transition-opacity duration-200 group-hover/m3item:opacity-[0.08] group-data-[active=true]:opacity-[0.08]"}),(0,v.jsx)("div",{ref:n,className:"absolute rounded-full opacity-0 bg-current",style:{background:"radial-gradient(closest-side, currentColor max(calc(100% - 70px), 65%), transparent 100%)",transition:"opacity 375ms linear",opacity:r?"0.12":"0",transitionDuration:r?"100ms":"375ms"}})]})});Pd.displayName="RippleLayer";var Pf=g.forwardRef(function(e,t){var r=Po([e,t]),n=r[0],a=r.slice(1),o=n.children,i=n.className,s=n.viewportRef,l=Pn(n,["children","className","viewportRef"]),u=Pa(a,1)[0],c=g.useRef(null),d=s||c,f=g.useRef(null),p=g.useRef(null),m=Pa(g.useState(0),2),h=m[0],y=m[1],b=Pa(g.useState(0),2),x=b[0],j=b[1],O=Pa(g.useState(!1),2),S=O[0],k=O[1],E=g.useRef({startY:0,startScrollTop:0}),P=g.useCallback(function(){if(d.current){var e=d.current,t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;if(f.current&&(f.current.style.opacity=t>0?"1":"0"),p.current&&(p.current.style.opacity=Math.ceil(t+n)>=r-1?"0":"1"),r>n){var a=Math.max(n/r*n,30);y(a),j((n-a)/(r-n)*t)}else y(0)}},[d]);return g.useEffect(function(){var e=d.current;if(e){P();var t=new ResizeObserver(function(){return P()});t.observe(e),e.firstElementChild&&t.observe(e.firstElementChild);var r=new MutationObserver(function(){return P()});return r.observe(e,{childList:!0,subtree:!0,characterData:!0}),function(){t.disconnect(),r.disconnect()}}},[P,d]),g.useEffect(function(){if(S){var e=function(e){if(d.current){var t=e.clientY-E.current.startY,r=d.current,n=r.scrollHeight,a=r.clientHeight,o=Math.max(a/n*a,30);d.current.scrollTop=E.current.startScrollTop+(n-a)/(a-o)*t}},t=function(){k(!1),document.body.style.userSelect=""};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),function(){window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t)}}},[S,d]),(0,v.jsxs)("div",Pr(Pt({ref:u,"data-dragging":S,className:(0,w.cn)("relative overflow-hidden group/scroll",i)},l),{children:[(0,v.jsx)("div",{ref:f,className:"absolute top-0 left-0 right-0 h-6 bg-gradient-to-b from-card to-transparent pointer-events-none z-20 transition-opacity duration-300 opacity-0"}),(0,v.jsx)("div",{ref:d,onScroll:P,style:{maxHeight:"inherit"},className:"w-full overflow-y-auto m3-hide-scroll rounded-[inherit]",children:o}),(0,v.jsx)("div",{ref:p,className:"absolute bottom-0 left-0 right-0 h-6 bg-gradient-to-t from-card to-transparent pointer-events-none z-20 transition-opacity duration-300 opacity-0"}),h>0&&(0,v.jsx)("div",{className:(0,w.cn)("absolute inset-y-0 right-0 z-50 flex items-start justify-end py-0.5 px-0.5 w-4 transition-opacity duration-300 cursor-default","opacity-0 pointer-events-none","group-hover/scroll:opacity-100 group-hover/scroll:pointer-events-auto","group-data-[dragging=true]/scroll:opacity-100 group-data-[dragging=true]/scroll:pointer-events-auto"),children:(0,v.jsx)("div",{className:(0,w.cn)("bg-border rounded-full transition-all duration-200 cursor-default touch-none shadow-sm","w-1 hover:w-1.5 hover:bg-muted-foreground","group-data-[dragging=true]/scroll:w-1.5 group-data-[dragging=true]/scroll:bg-muted-foreground"),style:{height:h,transform:"translateY(".concat(x,"px)")},onPointerDown:function(e){var t;e.preventDefault(),e.stopPropagation(),k(!0),E.current={startY:e.clientY,startScrollTop:(null==(t=d.current)?void 0:t.scrollTop)||0},document.body.style.userSelect="none"}})})]}))});Pf.displayName="CustomFloatingScrollArea";var Pp=function(){return(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n @keyframes m3-auto-item-cinematic { \n 0% { opacity: 0; transform: translateY(8px) scale(0.98); filter: blur(4px); } \n 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } \n }\n \n @keyframes m3-chip-enter { \n 0% { opacity: 0; transform: scale(0.8) translate3d(8px, 0, 0); } \n 100% { opacity: 1; transform: scale(1) translate3d(0, 0, 0); } \n }\n\n .m3-chip-animate {\n animation: m3-chip-enter 200ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;\n }\n \n .m3-auto-container[data-state="open"] .m3-auto-item { \n opacity: 0; \n animation: m3-auto-item-cinematic 350ms cubic-bezier(0.1, 0.8, 0.2, 1) forwards; \n }\n\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(1) { animation-delay: 50ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(2) { animation-delay: 100ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(3) { animation-delay: 150ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(4) { animation-delay: 200ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(n+5) { animation-delay: 250ms; }\n\n .m3-hide-scroll {\n scrollbar-width: none;\n -ms-overflow-style: none;\n }\n .m3-hide-scroll::-webkit-scrollbar {\n display: none;\n }\n '}})},Pm=g.forwardRef(function(e,t){var r=Po([e,t]),n=r[0],a=r.slice(1),o=n.className,i=n.children,s=n.isActive,l=n.isSelected,u=n.onSelectAction,c=Pn(n,["className","children","isActive","isSelected","onSelectAction"]),d=Pa(a,1)[0],f=Pc(),p=f.surfaceRef,m=f.rippleRef,h=f.pressed,y=f.events;return(0,v.jsxs)("li",Pr(Pt({ref:function(e){p.current=e,"function"==typeof d?d(e):d&&(d.current=e)},role:"option","aria-selected":l,"data-active":s,className:(0,w.cn)("m3-auto-item group/m3item relative flex items-center p-3 px-4 cursor-pointer text-sm outline-none transition-colors overflow-hidden",s&&"bg-secondary/50 text-secondary-foreground",o),onMouseDown:function(e){e.preventDefault()},onClick:function(){setTimeout(function(){return u()},150)}},y,c),{children:[(0,v.jsx)(Pd,{rippleRef:m,pressed:h}),(0,v.jsx)("span",{className:"relative z-10 flex w-full items-center pointer-events-none",children:i})]}))});function Ph(e){var t=e.items,r=e.placeholder,n=e.emptyMessage,a=e.value,o=e.onValueChange,i=e.disabled,s=e.isCreatable,l=e.onCreate,u=e.className,c=e.onInputChange,d=e.loading,f=e.filterFn,p=e.debounceInterval,m=void 0===p?0:p,h=e.name,y=e.id,b=e.required,x=e["aria-label"],j=e["aria-labelledby"],O=e.maxOptions,S=e.minOptions,k=e.classNames,E=e.labels,P=e.renderItem,A=e.maxListHeight,D=void 0===A?260:A,C=e.chipMaxWidth,T=void 0===C?120:C,N=e.style,R=Array.isArray(a),M=null!=(eE=null==E?void 0:E.empty)?eE:void 0===n?"No results found.":n,I=null!=(eP=null==E?void 0:E.loading)?eP:"Loading results...",L=null!=(eA=null==E?void 0:E.clear)?eA:"Clear",F=null!=(eD=null==E?void 0:E.toggle)?eD:"Toggle options",B=null!=(eC=null==E?void 0:E.create)?eC:function(e){return'Create "'.concat(e,'"')},V=g.useId(),z=y?"".concat(y,"-listbox"):"".concat(V,"-listbox"),W=function(e){return"".concat(z,"-option-").concat(e)},U=Pa(g.useState(function(){if(a){var e;return Array.isArray(a)?"":(null==(e=t.find(function(e){return e.value===a}))?void 0:e.label)||""}return""}),2),$=U[0],H=U[1],K=Pa(g.useState($),2),G=K[0],q=K[1],Y=Pa(g.useState(!1),2),X=Y[0],Z=Y[1],Q=Pa(g.useState("closed"),2),J=Q[0],ee=Q[1],et=Pa(g.useState(-1),2),er=et[0],en=et[1],ea=g.useRef("mouse"),eo=Pa(g.useState("bottom"),2),ei=eo[0],es=eo[1],el=Pa(g.useState(D),2),eu=el[0],ec=el[1],ed=g.useRef(null),ef=g.useRef(null),ep=g.useRef(null),em=g.useRef(null),eh=g.useRef(null),ey=g.useRef(null),ev=g.useRef(null),eg=g.useRef(null),eb=g.useRef(null),ex=Pa(g.useState(a),2),ew=ex[0],ej=ex[1],eO=Pa(g.useState(t),2),eS=eO[0],ek=eO[1];if(a!==ew||t!==eS)if(ej(a),ek(t),R)a&&0!==a.length||(H(""),q(""));else if(a){var eE,eP,eA,eD,eC,eT,eN=(null==(eT=t.find(function(e){return e.value===a}))?void 0:eT.label)||"";H(eN),q(eN)}else H(""),q("");var eR=Pc(i),eM=eR.surfaceRef,eI=eR.rippleRef,e_=eR.pressed,eL=eR.events,eF=Pc(i),eB=eF.surfaceRef,eV=eF.rippleRef,ez=eF.pressed,eW=eF.events,eU=g.useMemo(function(){return!1===f||null===f?t:f?t.filter(function(e){return f(e,G)}):G?t.filter(function(e){return e.label.toLowerCase().includes(G.toLowerCase())}):t},[t,G,f]),e$=Pa(g.useState(eU),2),eH=e$[0],eK=e$[1];g.useEffect(function(){"open"===J&&eK(eU)},[eU,J]);var eG=g.useCallback(function(){if(ef.current){var e=ef.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,r=e.top,n=t<280&&r>t?"top":"bottom";es(n),ec(Math.max(100,Math.min(D,("bottom"===n?t:r)-16)))}},[D]);g.useEffect(function(){var e=ef.current;if(e){var t=new ResizeObserver(function(){eG()});return t.observe(e),e.parentElement&&t.observe(e.parentElement),window.addEventListener("resize",eG),function(){t.disconnect(),window.removeEventListener("resize",eG)}}},[eG]),g.useEffect(function(){if(X)return window.addEventListener("scroll",eG,{capture:!0,passive:!0}),function(){window.removeEventListener("scroll",eG,!0)}},[X,eG]);var eq=g.useCallback(function(e){H(e),eb.current&&clearTimeout(eb.current),m&&m>0?eb.current=setTimeout(function(){q(e),c&&c(e)},m):(q(e),c&&c(e))},[m,c]),eY=g.useCallback(function(e){if(Z(!0),ee("open"),eg.current&&clearTimeout(eg.current),"number"==typeof e)en(e);else{var t=eU.findIndex(function(e){return e.value===a});en(t>=0?t:-1)}},[eU,a]),eX=g.useCallback(function(){if(Z(!1),ee("closing"),en(-1),R)H(""),q("");else if(a){var e,r=(null==(e=t.find(function(e){return e.value===a}))?void 0:e.label)||"";H(r),q(r)}else H(""),q("");eg.current&&clearTimeout(eg.current),eg.current=setTimeout(function(){ee(function(e){return"closing"===e?"closed":e})},300)},[a,t,R]);g.useEffect(function(){return function(){eg.current&&clearTimeout(eg.current),eb.current&&clearTimeout(eb.current)}},[]),g.useEffect(function(){var e=function(e){ef.current&&!ef.current.contains(e.target)&&X&&eX()};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[X,eX]),g.useEffect(function(){if(er>=0&&ep.current&&"keyboard"===ea.current){var e=ep.current.children[er];e&&e.scrollIntoView({block:"nearest"})}},[er]);var eZ=g.useCallback(function(){var e=eh.current;if(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;ey.current&&(ey.current.style.opacity=t>1?"1":"0"),ev.current&&(ev.current.style.opacity=Math.ceil(t+n)>=r-1?"0":"1")}},[]),eQ=g.useRef(0);g.useEffect(function(){if(R){var e=eh.current;if(e){var t=(null==a?void 0:a.length)||0;t>eQ.current&&requestAnimationFrame(function(){e.scrollLeft=e.scrollWidth}),eQ.current=t}}},[a,R]),g.useEffect(function(){var e,t,r=eh.current;if(r){var n=!1,a=function(a){n=!0,e=a.pageX-r.offsetLeft,t=r.scrollLeft,document.body.style.userSelect="none"},o=function(){n&&(n=!1,document.body.style.userSelect="")},i=function(a){if(n){a.preventDefault();var o=(a.pageX-r.offsetLeft-e)*1.5;r.scrollLeft=t-o}},s=function(e){0!==e.deltaY&&(e.preventDefault(),r.scrollLeft+=e.deltaY)};r.addEventListener("mousedown",a),r.addEventListener("mouseleave",o),r.addEventListener("mouseup",o),r.addEventListener("mousemove",i),r.addEventListener("wheel",s,{passive:!1}),eZ(),r.addEventListener("scroll",eZ);var l=new ResizeObserver(function(){return eZ()});return l.observe(r),function(){r.removeEventListener("mousedown",a),r.removeEventListener("mouseleave",o),r.removeEventListener("mouseup",o),r.removeEventListener("mousemove",i),r.removeEventListener("wheel",s),r.removeEventListener("scroll",eZ),l.disconnect(),document.body.style.userSelect=""}}},[X,a,eZ]);var eJ=void 0!==s&&s&&$.length>0&&!t.some(function(e){return e.label.toLowerCase()===$.toLowerCase()}),e0=function(e){var r;if(R){var n,i,s=a||[];if(s.includes(e)){if("number"==typeof S&&s.length<=S){null==(n=ed.current)||n.focus();return}var l=s.filter(function(t){return t!==e});o&&o(l)}else{if("number"==typeof O&&s.length>=O){null==(i=ed.current)||i.focus();return}var u=((function(e){if(Array.isArray(e))return E6(e)})(s)||E7(s)||Pi(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e]);o&&o(u)}H(""),q(""),c&&c("")}else{if(a===e)H(""),q(""),o&&o("");else{var d,f=(null==(d=t.find(function(t){return t.value===e}))?void 0:d.label)||"";H(f),q(f),o&&o(e)}eX()}null==(r=ed.current)||r.focus()},e1=function(){var e;l&&$&&l($),R||eX(),null==(e=ed.current)||e.focus()},e2=$.length>0?"x":X?"up":"down",e3="closing"===J?eH:eU,e4=R&&(a||[]).length>0,e5=g.useCallback(function(e){if(!R)return!1;var t=a||[];return!t.includes(e)&&"number"==typeof O&&!!(t.length>=O)},[R,a,O]),e6=X||"closing"===J;return(0,v.jsxs)("div",{ref:ef,style:N,className:(0,w.cn)("relative w-full transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]",e4?"h-[5.25rem]":"h-11",u,null==k?void 0:k.root),children:[(0,v.jsx)(Pp,{}),h&&(R?(a||[]).length>0?(a||[]).map(function(e){return(0,v.jsx)("input",{type:"hidden",name:h,value:e},e)}):(0,v.jsx)("input",{type:"hidden",name:h,value:"",required:b}):(0,v.jsx)("input",{type:"hidden",name:h,value:a||"",required:b})),(0,v.jsxs)("div",{"data-state":J,className:(0,w.cn)("m3-auto-container absolute inset-x-0 flex bg-card overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]","top"===ei?"bottom-0 flex-col-reverse":"top-0 flex-col",e6?"z-50 rounded-[1.25rem] border border-border shadow-[0px_16px_32px_rgba(0,0,0,0.14)]":"z-10 rounded-xl border border-input/60 shadow-sm hover:border-input h-full",null==k?void 0:k.container),children:[(0,v.jsxs)("div",{className:(0,w.cn)("relative flex items-center w-full h-11 flex-shrink-0 pl-4 pr-1.5 z-30",null==k?void 0:k.inputRow),children:[(0,v.jsx)("input",{ref:ed,id:y,role:"combobox","aria-expanded":X,"aria-autocomplete":"list","aria-controls":z,"aria-activedescendant":er>=0?W(er):void 0,"aria-label":x,"aria-labelledby":j,value:$,onChange:function(e){var t=e.target.value;eq(t);var r=t.length>0?0:-1;X?en(r):eY(r),ea.current="keyboard"},onFocus:function(){return eY()},onKeyDown:function(e){var t=eU.length+ +!!eJ;if("Tab"===e.key){X&&eX();return}if(!X&&("ArrowDown"===e.key||"ArrowUp"===e.key)){e.preventDefault(),eY();return}if(0!==t)switch(e.key){case"ArrowDown":e.preventDefault(),ea.current="keyboard",en(function(e){return(e+1)%t});break;case"ArrowUp":e.preventDefault(),ea.current="keyboard",en(function(e){return(e-1+t)%t});break;case"Home":e.preventDefault(),ea.current="keyboard",en(0);break;case"End":e.preventDefault(),ea.current="keyboard",en(t-1);break;case"Enter":if(e.preventDefault(),er>=0)if(er<eU.length){var r=eU[er],n=R&&a||[],o=n.includes(r.value);R&&!o&&"number"==typeof O&&n.length>=O||e0(r.value)}else eJ&&e1();break;case"Escape":eX()}},disabled:i,placeholder:r||"Select an option...",autoComplete:"off",className:(0,w.cn)("flex-1 h-full bg-transparent outline-none text-sm placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==k?void 0:k.input)}),(0,v.jsxs)("button",Pr(Pt({ref:eM,type:"button",tabIndex:-1,className:(0,w.cn)("p-1.5 rounded-full z-20 hover:bg-muted/50 transition-all relative overflow-hidden h-8 w-8 flex items-center justify-center flex-shrink-0",null==k?void 0:k.toggleButton),onClick:function(e){var t;e.preventDefault(),null==(t=ed.current)||t.focus(),$.length>0?(eq(""),!R&&o&&o(""),X||eY(-1)):X?eX():eY()},disabled:i,"aria-label":F},eL),{children:[(0,v.jsx)(Pd,{rippleRef:eI,pressed:e_}),(0,v.jsx)("span",{className:"relative z-10 flex items-center justify-center pointer-events-none",children:(0,v.jsx)(Ps,{state:e2})})]}))]}),R&&(a||[]).length>0&&(0,v.jsxs)("div",{className:(0,w.cn)("relative flex items-center justify-between h-10 overflow-hidden flex-shrink-0 border-border/40","top"===ei?"border-b":"border-t",null==k?void 0:k.chipsRow),children:[(0,v.jsx)("div",{ref:ey,className:"absolute left-0 top-0 bottom-0 w-8 bg-gradient-to-r from-card to-transparent pointer-events-none z-20 transition-opacity duration-150 opacity-0"}),(0,v.jsx)("div",{ref:eh,className:"flex items-center gap-1.5 overflow-x-auto m3-hide-scroll flex-1 min-w-0 h-full py-0.5 pl-4 pr-12 select-none cursor-default",children:(a||[]).map(function(e){var r=t.find(function(t){return t.value===e});return r?(0,v.jsxs)("button",{type:"button",className:(0,w.cn)("m3-chip-animate group/chip relative flex items-center h-6 px-3 bg-secondary text-secondary-foreground text-xs font-medium rounded-full flex-shrink-0 transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)] overflow-hidden cursor-default select-none",null==k?void 0:k.chip),onClick:function(){var t,r=a||[];if("number"!=typeof S||!(r.length<=S)){var n=r.filter(function(t){return t!==e});o&&o(n),null==(t=ed.current)||t.focus()}},children:[(0,v.jsx)("span",{className:"truncate",style:{maxWidth:T},children:r.label}),(0,v.jsx)("div",{className:"absolute inset-y-0 right-0 w-8 flex items-center justify-end pr-2 bg-gradient-to-l from-secondary via-secondary/90 to-transparent opacity-0 translate-x-2 group-hover/chip:opacity-100 group-hover/chip:translate-x-0 transition-all duration-150 pointer-events-none",children:(0,v.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-3 h-3 stroke-current text-muted-foreground",fill:"none",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,v.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,v.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},e):null})}),(0,v.jsx)("div",{ref:ev,className:"absolute right-[60px] top-0 bottom-0 w-12 bg-gradient-to-l from-card to-transparent pointer-events-none z-20 transition-opacity duration-150 opacity-0"}),(!S||0===S)&&(0,v.jsxs)("button",Pr(Pt({ref:eB,type:"button",onClick:function(){var e;o&&o([]),null==(e=ed.current)||e.focus()},className:(0,w.cn)("px-3 h-8 rounded-full text-[10px] font-bold uppercase tracking-wider text-muted-foreground hover:bg-muted/50 transition-all relative overflow-hidden flex-shrink-0 flex items-center justify-center mr-1.5 cursor-default z-30",null==k?void 0:k.clearButton)},eW),{children:[(0,v.jsx)(Pd,{rippleRef:eV,pressed:ez}),(0,v.jsx)("span",{className:"relative",children:L})]}))]}),(0,v.jsx)("div",{className:(0,w.cn)("grid transition-[grid-template-rows,opacity] duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)] relative z-10",X?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),onMouseDown:function(e){e.preventDefault()},children:(0,v.jsx)("div",{className:"overflow-hidden",children:"closed"!==J&&(0,v.jsx)("div",{className:"flex flex-col w-full",children:(0,v.jsx)(Pf,{viewportRef:em,style:{maxHeight:"".concat(eu,"px")},className:"w-full",children:(0,v.jsx)("ul",{ref:ep,id:z,role:"listbox","aria-multiselectable":R,className:(0,w.cn)("w-full text-popover-foreground outline-none pb-2 pt-1",null==k?void 0:k.list),children:void 0!==d&&d?(0,v.jsxs)("li",{className:(0,w.cn)("m3-auto-item p-6 flex flex-col items-center justify-center gap-2 text-xs text-muted-foreground",null==k?void 0:k.loadingState),children:[(0,v.jsxs)("svg",{className:"animate-spin h-5 w-5 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,v.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3.5"}),(0,v.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,v.jsx)("span",{className:"font-medium tracking-wide",children:I})]}):0!==e3.length||eJ?(0,v.jsxs)(v.Fragment,{children:[e3.map(function(e,t){var r=e5(e.value),n=R?!!(null==a?void 0:a.includes(e.value)):a===e.value,o=er===t;return(0,v.jsxs)(Pm,{id:W(t),isActive:o,isSelected:n,onSelectAction:function(){r||e0(e.value)},onMouseMove:function(e){(0!==e.movementX||0!==e.movementY)&&(ea.current="mouse",er!==t&&en(t))},className:(0,w.cn)(r&&"opacity-40 cursor-not-allowed pointer-events-none",null==k?void 0:k.item),children:[n&&(0,v.jsx)(Pl,{className:"mr-3 flex-shrink-0 text-primary"}),P?P(e,{isActive:o,isSelected:n,isDisabled:r}):(0,v.jsxs)("div",{className:"flex flex-col w-full",children:[(0,v.jsx)("span",{className:"whitespace-normal break-words font-medium",children:e.label}),(e.description||e.tag)&&(0,v.jsxs)("div",{className:"flex justify-between items-center text-[11px] font-medium text-muted-foreground/70 w-full mt-0.5 gap-4",children:[(0,v.jsx)("span",{className:"truncate uppercase tracking-wider",children:e.description}),(0,v.jsx)("span",{className:"truncate",children:e.tag})]})]})]},e.value)}),eJ&&(0,v.jsxs)(Pm,{id:W(eU.length),isActive:er===eU.length,isSelected:!1,onSelectAction:e1,onMouseMove:function(e){(0!==e.movementX||0!==e.movementY)&&(ea.current="mouse",er!==eU.length&&en(eU.length))},className:(0,w.cn)("text-primary/90 font-medium border-t border-border/40",null==k?void 0:k.item),children:[(0,v.jsx)(Pu,{className:"mr-3 flex-shrink-0"}),(0,v.jsx)("span",{children:B($)})]})]}):(0,v.jsx)("li",{className:(0,w.cn)("m3-auto-item p-4 px-4 text-sm text-center text-muted-foreground",null==k?void 0:k.emptyState),children:M})})})})})})]})]})}function Py(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Pv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||Pb(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pg(e){return function(e){if(Array.isArray(e))return Py(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pb(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pb(e,t){if(e){if("string"==typeof e)return Py(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Py(e,t)}}Pm.displayName="M3AutocompleteItem";var Px=function(e,t){var r,n=t.trim().toLowerCase();return!n||[e.label,e.value,e.description].concat(Pg(null!=(r=e.keywords)?r:[])).filter(Boolean).some(function(e){return String(e).toLowerCase().includes(n)})};function Pw(e){var t,r,n=e.items,a=e.value,o=e.defaultValue,i=e.onValueChange,s=e.open,l=e.defaultOpen,u=e.onOpenChange,c=e.disabled,d=e.placeholder,f=e.searchPlaceholder,p=e.emptyMessage,m=e.searchable,h=e.allowDeselect,y=void 0===h||h,b=e.closeOnSelect,x=void 0===b||b,j=e.filterFn,O=e.onSearchChange,S=e.side,k=void 0===S?"auto":S,E=e.align,P=void 0===E?"center":E,A=e.sideOffset,D=void 0===A?4:A,C=e.renderItem,T=e.renderValue,N=e.triggerIcon,R=e.checkIcon,M=e.name,I=e.id,L=e["aria-label"],F=e.classNames,B=e.className,V=e.style,z=g.useId(),W="".concat(z,"-listbox"),U=function(e){return"".concat(z,"-option-").concat(e)},$=void 0!==a,H=Pv(g.useState(void 0===o?"":o),2),K=H[0],G=H[1],q=$?a:K,Y=void 0!==s,X=Pv(g.useState(void 0!==l&&l),2),Z=X[0],Q=X[1],J=Y?s:Z,ee=g.useCallback(function(e){Y||Q(e),null==u||u(e)},[Y,u]),et=Pv(g.useState(""),2),er=et[0],en=et[1],ea=Pv(g.useState(0),2),eo=ea[0],ei=ea[1],es=Pv(g.useState("bottom"),2),el=es[0],eu=es[1],ec=g.useRef("mouse"),ed=g.useRef(null),ef=g.useRef(null),ep=g.useRef(null),em=g.useRef(null),eh=g.useMemo(function(){return n.find(function(e){return e.value===q})},[n,q]),ey=g.useMemo(function(){if(!1===j)return n;var e=null!=j?j:Px;return n.filter(function(t){return e(t,er)})},[n,er,j]),ev=g.useCallback(function(e){var t,r=y&&e===q?"":e;$||G(r),null==i||i(r),x&&(ee(!1),null==(t=ef.current)||t.focus())},[y,q,$,i,x,ee]);g.useEffect(function(){if(!J)return void en("");var e=ey.findIndex(function(e){return e.value===q&&!e.disabled});ei(e>=0?e:Math.max(0,ey.findIndex(function(e){return!e.disabled})));var t=requestAnimationFrame(function(){var e;return null==(e=ep.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(t)}},[J]),g.useLayoutEffect(function(){if(J&&ed.current){if("auto"!==k)return void eu(k);var e=ed.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,r=e.top;eu(t<340&&r>t?"top":"bottom")}},[J,k]),g.useEffect(function(){if(J){var e=function(e){ed.current&&!ed.current.contains(e.target)&&ee(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[J,ee]),g.useEffect(function(){J&&ei(Math.max(0,ey.findIndex(function(e){return!e.disabled})))},[er]),g.useEffect(function(){var e,t;J&&"keyboard"===ec.current&&(null==(t=em.current)||null==(e=t.querySelector('[data-index="'.concat(eo,'"]')))||e.scrollIntoView({block:"nearest"}))},[eo,J]);var eg=function(e,t){var r=ey.length;if(0===r)return -1;for(var n=t,a=0;a<r;a++)if(!ey[n=(n+e+r)%r].disabled)return n;return t},eb=(0,w.cn)("bottom"===el?"top-full":"bottom-full","start"===P&&"left-0","center"===P&&"left-1/2","end"===P&&"right-0"),ex=(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},"bottom"===el?{marginTop:D}:{marginBottom:D}),r=r={"--egen-combobox-to":"center"===P?"translateX(-50%)":"translateX(0)","--egen-combobox-from-bottom":"".concat("center"===P?"translateX(-50%) ":"","translateY(-8px)"),"--egen-combobox-from-top":"".concat("center"===P?"translateX(-50%) ":"","translateY(8px)"),transform:"center"===P?"translateX(-50%)":"none"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t),ew=[];ey.forEach(function(e,t){var r=ew[ew.length-1];r&&r.heading===e.group?r.entries.push({item:e,index:t}):ew.push({heading:e.group,entries:[{item:e,index:t}]})});var ej=function(e){var t=e.item,r=e.index,n=q===t.value,a=eo===r;return(0,v.jsxs)("div",{id:U(r),role:"option","data-index":r,"data-selected":a,"data-disabled":t.disabled?"true":void 0,"aria-selected":n,"aria-disabled":t.disabled||void 0,onMouseMove:function(){t.disabled||(ec.current="mouse",eo!==r&&ei(r))},onClick:function(){return!t.disabled&&ev(t.value)},className:(0,w.cn)("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",null==F?void 0:F.item),children:[C?C(t,{isActive:a,isSelected:n}):(0,v.jsxs)(v.Fragment,{children:[t.icon,t.description?(0,v.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,v.jsx)("span",{className:"truncate",children:t.label}),(0,v.jsx)("span",{className:"truncate text-xs text-muted-foreground",children:t.description})]}):t.label]}),R&&n?(0,v.jsx)("span",{className:(0,w.cn)("ml-auto",null==F?void 0:F.itemCheck),children:R}):(0,v.jsx)(EU,{className:(0,w.cn)("ml-auto",n?"opacity-100":"opacity-0",null==F?void 0:F.itemCheck)})]},t.value)};return(0,v.jsxs)("div",{ref:ed,style:V,className:(0,w.cn)("relative w-full max-w-xs",B,null==F?void 0:F.root),children:[(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n@keyframes egen-combobox-in-bottom { from { opacity: 0; transform: var(--egen-combobox-from-bottom) scale(0.95); } to { opacity: 1; transform: var(--egen-combobox-to) scale(1); } }\n@keyframes egen-combobox-in-top { from { opacity: 0; transform: var(--egen-combobox-from-top) scale(0.95); } to { opacity: 1; transform: var(--egen-combobox-to) scale(1); } }\n.egen-combobox-content[data-side="bottom"] { animation: egen-combobox-in-bottom 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n.egen-combobox-content[data-side="top"] { animation: egen-combobox-in-top 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n@media (prefers-reduced-motion: reduce) { .egen-combobox-content { animation: none !important; } }\n'}}),M?(0,v.jsx)("input",{type:"hidden",name:M,value:q}):null,(0,v.jsxs)("button",{ref:ef,id:I,type:"button",role:"combobox","aria-expanded":J,"aria-haspopup":"listbox","aria-controls":J?W:void 0,"aria-label":L,disabled:void 0!==c&&c,onClick:function(){return ee(!J)},onKeyDown:function(e){J||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),ee(!0))},className:(0,w.cn)("inline-flex h-9 w-full shrink-0 items-center justify-between gap-2 rounded-md border border-border bg-background px-4 py-2 text-sm font-medium whitespace-nowrap text-foreground shadow-xs transition-all outline-none","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","disabled:pointer-events-none disabled:opacity-50",null==F?void 0:F.trigger),children:[(0,v.jsx)("span",{className:"min-w-0 truncate",children:T?T(eh):eh?eh.label:void 0===d?"Select...":d}),null!=N?N:(0,v.jsx)(E$,{className:"size-4 shrink-0 opacity-50"})]}),J?(0,v.jsx)("div",{"data-side":el,"data-state":"open",style:ex,className:(0,w.cn)("egen-combobox-content absolute z-50 w-72 rounded-md border border-border bg-popover p-0 text-popover-foreground shadow-md outline-hidden",eb,null==F?void 0:F.content),onKeyDown:function(e){if("Escape"===e.key){var t;e.preventDefault(),ee(!1),null==(t=ef.current)||t.focus();return}if("Tab"===e.key)return void ee(!1);if(0!==ey.length)switch(e.key){case"ArrowDown":e.preventDefault(),ec.current="keyboard",ei(function(e){return eg(1,e)});break;case"ArrowUp":e.preventDefault(),ec.current="keyboard",ei(function(e){return eg(-1,e)});break;case"Home":e.preventDefault(),ec.current="keyboard",ei(Math.max(0,ey.findIndex(function(e){return!e.disabled})));break;case"End":e.preventDefault(),ec.current="keyboard";var r=Pg(ey).reverse().findIndex(function(e){return!e.disabled});ei(r>=0?ey.length-1-r:0);break;case"Enter":e.preventDefault();var n=ey[eo];n&&!n.disabled&&ev(n.value)}},children:(0,v.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",children:[void 0===m||m?(0,v.jsxs)("div",{className:(0,w.cn)("flex h-9 items-center gap-2 border-b border-border px-3",null==F?void 0:F.searchWrapper),children:[(0,v.jsx)(EH,{className:(0,w.cn)("size-4 shrink-0 opacity-50",null==F?void 0:F.searchIcon)}),(0,v.jsx)("input",{ref:ep,type:"text",role:"searchbox",autoComplete:"off",spellCheck:!1,"aria-controls":W,"aria-activedescendant":ey.length?U(eo):void 0,placeholder:void 0===f?"Search...":f,value:er,onChange:function(e){en(e.target.value),ec.current="keyboard",null==O||O(e.target.value)},className:(0,w.cn)("flex h-9 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==F?void 0:F.searchInput)})]}):(0,v.jsx)("input",{ref:ep,readOnly:!0,"aria-label":L,"aria-controls":W,"aria-activedescendant":ey.length?U(eo):void 0,className:"sr-only"}),(0,v.jsx)("div",{ref:em,id:W,role:"listbox",className:(0,w.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",null==F?void 0:F.list),children:0===ey.length?(0,v.jsx)("div",{className:(0,w.cn)("py-6 text-center text-sm",null==F?void 0:F.empty),children:void 0===p?"No results found.":p}):ew.map(function(e,t){var r;return(0,v.jsxs)("div",{role:"group","aria-label":e.heading,className:(0,w.cn)("overflow-hidden p-1 text-foreground",null==F?void 0:F.group),children:[e.heading?(0,v.jsx)("div",{className:(0,w.cn)("px-2 py-1.5 text-xs font-medium text-muted-foreground",null==F?void 0:F.groupHeading),children:e.heading}):null,e.entries.map(ej)]},"".concat(null!=(r=e.heading)?r:"_","-").concat(t))})})]})}):null]})}function Pj(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function PO(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function PS(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function Pk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function PE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||PA(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PP(e){return function(e){if(Array.isArray(e))return PO(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||PA(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PA(e,t){if(e){if("string"==typeof e)return PO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PO(e,t)}}var PD=function(e){return void 0===e||""===e?[]:Array.isArray(e)?e:[e]},PC=function(e){var t;return Array.isArray(e)?{items:e,hasMore:!1}:{items:null!=(t=e.items)?t:[],hasMore:!!e.hasMore}},PT=function(e){return"number"==typeof e?"".concat(e,"px"):e};function PN(e){var t,r,n,a,o,i,s,l,u,c,d=e.fetcher,f=e.getOptionValue,p=e.getOptionLabel,m=e.renderOption,h=e.getDisplayValue,y=e.getOptionGroup,b=e.getOptionDisabled,x=e.preload,j=void 0!==x&&x,O=e.filterFn,S=e.debounceMs,k=e.minQueryLength,E=void 0===k?0:k,P=e.fetchOnOpen,A=e.cacheResults,D=void 0===A||A,C=e.reloadKey,T=e.initialOptions,N=e.resolveOption,R=e.open,M=e.defaultOpen,I=e.onOpenChange,L=e.disabled,F=void 0!==L&&L,B=e.name,V=e.id,z=e["aria-label"],W=e.label,U=e.placeholder,$=void 0===U?"Select...":U,H=e.searchPlaceholder,K=e.noResultsMessage,G=e.minQueryMessage,q=e.loadingMessage,Y=e.retryLabel,X=e.clearLabel,Z=e.removeLabel,Q=void 0===Z?function(e){return"Remove ".concat(e)}:Z,J=e.errorMessage,ee=void 0===J?"Failed to fetch options":J,et=e.loadMoreErrorLabel,er=e.searchable,en=e.clearable,ea=void 0===en||en,eo=e.showClearButton,ei=e.closeOnSelect,es=e.width,el=e.contentWidth,eu=void 0===el?"trigger":el,ec=e.side,ed=void 0===ec?"auto":ec,ef=e.align,ep=void 0===ef?"start":ef,em=e.sideOffset,eh=void 0===em?4:em,ey=e.maxListHeight,ev=void 0===ey?300:ey,eg=e.loadingSkeleton,eb=e.loadingIndicator,ex=e.notFound,ew=e.renderError,ej=e.header,eO=e.footer,eS=e.triggerIcon,ek=e.checkIcon,eE=e.controllerRef,eP=e.classNames,eA=e.className,eD=e.triggerClassName,eC=e.style,eT=!0===e.multiple,eN=!0===e.multiple?e.maxSelected:void 0,eR=!0===e.multiple&&null!=(u=e.maxVisibleTags)?u:3,eM=!0===e.multiple?e.renderTag:void 0,eI=null!=ei?ei:!eT,e_=g.useId(),eL="".concat(e_,"-listbox"),eF=function(e){return"".concat(e_,"-option-").concat(e)},eB=g.useCallback(function(e){return p?p(e):f(e)},[p,f]),eV=void 0!==e.value,ez=PE(g.useState(function(){return PD(e.defaultValue)}),2),eW=ez[0],eU=ez[1],e$=eV?PD(e.value):eW,eH=void 0!==R,eK=PE(g.useState(void 0!==M&&M),2),eG=eK[0],eq=eK[1],eY=eH?R:eG,eX=g.useCallback(function(e){eH||eq(e),null==I||I(e)},[eH,I]),eZ=g.useRef(new Map),eQ=g.useRef(new Set),eJ=PE(g.useReducer(function(e){return e+1},0),2)[1];g.useMemo(function(){null==T||T.forEach(function(e){return eZ.current.set(f(e),e)})},[T]);var e0=g.useRef(N);e0.current=N;var e1=e$.join("\0");g.useEffect(function(){var e=e0.current;if(e){var t=!1;return e$.forEach(function(r){eZ.current.has(r)||eQ.current.has(r)||(eQ.current.add(r),Promise.resolve(e(r)).then(function(e){t||void 0===e||(eZ.current.set(r,e),eJ())}).catch(function(){}))}),function(){t=!0}}},[e1]);var e2=PE(g.useState(""),2),e3=e2[0],e4=e2[1],e5=(t=j?"":e3,r=j?0:void 0===S?300:S,o=(a=function(e){if(Array.isArray(e))return e}(n=g.useState(t))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(n)||function(e){if(e){if("string"==typeof e)return Pj(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Pj(e,2)}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],i=a[1],g.useEffect(function(){if(!(r<=0)){var e=setTimeout(function(){return i(t)},r);return function(){return clearTimeout(e)}}},[t,r]),r<=0?t:o),e6=e5.trim(),e8=!j&&e6.length>0&&e6.length<E,e9=PE(g.useState([]),2),e7=e9[0],te=e9[1],tt=PE(g.useState("idle"),2),tr=tt[0],tn=tt[1],ta=PE(g.useState(null),2),to=ta[0],ti=ta[1],ts=PE(g.useState(!1),2),tl=ts[0],tu=ts[1],tc=PE(g.useState(!1),2),td=tc[0],tf=tc[1],tp=PE(g.useState(!1),2),tm=tp[0],th=tp[1],ty=PE(g.useState(0),2),tv=ty[0],tg=ty[1],tb=g.useRef(d);tb.current=d;var tx=g.useRef(f);tx.current=f;var tw=g.useRef(new Map),tj=g.useRef(0),tO=g.useRef(0),tS=g.useRef(null),tk=(eY||!(void 0===P||P))&&!e8,tE="".concat(null!=C?C:"","\0").concat(tv,"\0").concat(""===e6?"":e5),tP=g.useCallback(function(e){e.forEach(function(e){return eZ.current.set(tx.current(e),e)})},[]);g.useEffect(function(){if(tk){var e,t=D?tw.current.get(tE):void 0;if(t){te(t.items),tu(t.hasMore),th(!1),tO.current=t.page,ti(null),tn("ready");return}null==(e=tS.current)||e.abort();var r=new AbortController,n=++tj.current;return tn("loading"),ti(null),th(!1),Promise.resolve().then(function(){return tb.current(""===e6?"":e5,{signal:r.signal,page:0})}).then(function(e){if(!r.signal.aborted&&n===tj.current){var t=PC(e);tP(t.items),D&&tw.current.set(tE,{items:t.items,hasMore:t.hasMore,page:0}),tO.current=0,te(t.items),tu(t.hasMore),tn("ready"),eJ()}}).catch(function(e){if(!r.signal.aborted&&n===tj.current){var t;ti((null!=(t=Error)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t)&&e.message?e.message:ee),tn("error")}}),function(){return r.abort()}}},[tk,tE,D]);var tA=g.useCallback(function(){tw.current.delete(tE),tg(function(e){return e+1})},[tE]),tD=g.useCallback(function(){var e;return(e=function(){var e,t,r,n,a;return function(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(o){switch(o.label){case 0:if("ready"!==tr||!tl||td)return[2];e=tj.current,t=tO.current+1,tS.current=r=new AbortController,tf(!0),th(!1),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,tb.current(""===e6?"":e5,{signal:r.signal,page:t})];case 2:if(n=o.sent(),r.signal.aborted||e!==tj.current)return[2];return tP((a=PC(n)).items),te(function(e){var r=new Set(e.map(function(e){return tx.current(e)})),n=PP(e).concat(PP(a.items.filter(function(e){return!r.has(tx.current(e))})));return D&&tw.current.set(tE,{items:n,hasMore:a.hasMore,page:t}),n}),tO.current=t,tu(a.hasMore),[3,5];case 3:return o.sent(),r.signal.aborted||e!==tj.current||th(!0),[3,5];case 4:return tS.current===r&&(tS.current=null,tf(!1)),[7];case 5:return[2]}})},function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(e){PS(o,n,a,i,s,"next",e)}function s(e){PS(o,n,a,i,s,"throw",e)}i(void 0)})})()},[tr,tl,td,e6,e5,tP,D,tE]);g.useEffect(function(){return function(){var e;tj.current+=1,null==(e=tS.current)||e.abort()}},[]);var tC=g.useMemo(function(){return!1===O?null:O||(j?function(e,t){var r=t.trim().toLowerCase();return!r||eB(e).toLowerCase().includes(r)}:null)},[O,j,eB]),tT=g.useMemo(function(){return tC&&e3?e7.filter(function(e){return tC(e,e3)}):e7},[e7,tC,e3]),tN=e$.map(function(e){return eZ.current.get(e)}),tR=eT&&void 0!==eN&&e$.length>=eN,tM=function(e){return!!(null==b?void 0:b(e))||tR&&!e$.includes(f(e))},tI=function(t){var r,n,a;eV||eU(t),!0===e.multiple?null==(r=e.onChange)||r.call(e,t,t.map(function(e){return eZ.current.get(e)}).filter(function(e){return void 0!==e})):null==(a=e.onChange)||a.call(e,null!=(n=t[0])?n:"",void 0!==t[0]?eZ.current.get(t[0]):void 0)},t_=g.useRef(null),tL=g.useRef(null),tF=g.useRef(null),tB=g.useRef(null),tV=g.useRef(null),tz=function(e){var t,r=f(e);if(eZ.current.set(r,e),eT){var n=e$.includes(r);if(!n&&tR)return;tI(n?e$.filter(function(e){return e!==r}):PP(e$).concat([r]))}else tI(ea&&e$[0]===r?[]:[r]);eI&&(eX(!1),null==(t=t_.current)||t.focus())},tW=function(e){return tI(e$.filter(function(t){return t!==e}))},tU=function(){return tI([])};g.useImperativeHandle(eE,function(){return{open:function(){return!F&&eX(!0)},close:function(){return eX(!1)},focus:function(){var e;return null==(e=t_.current)?void 0:e.focus()},clear:tU,refresh:function(){tw.current.clear(),tg(function(e){return e+1})}}},[F,eX,e$,eV]);var t$=PE(g.useState(0),2),tH=t$[0],tK=t$[1],tG=PE(g.useState("bottom"),2),tq=tG[0],tY=tG[1],tX=g.useRef("mouse"),tZ=function(){return Math.max(0,tT.findIndex(function(e){return!tM(e)}))};g.useEffect(function(){if(!eY)return void e4("");var e=requestAnimationFrame(function(){var e;return null==(e=tF.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[eY]),g.useEffect(function(){if(eY){var e=eT||void 0===e$[0]?-1:tT.findIndex(function(e){return f(e)===e$[0]&&!tM(e)});tK(e>=0?e:tZ())}},[eY,e3,tr]),g.useLayoutEffect(function(){if(eY&&tL.current){if("auto"!==ed)return void tY(ed);var e=tL.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,r=e.top;tY(t<Math.min(ev,300)+48&&r>t?"top":"bottom")}},[eY,ed,ev]),g.useEffect(function(){if(eY){var e=function(e){tL.current&&!tL.current.contains(e.target)&&eX(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[eY,eX]),g.useEffect(function(){var e,t,r;eY&&"keyboard"===tX.current&&(null==(r=tB.current)||null==(t=r.querySelector('[data-index="'.concat(tH,'"]')))||null==(e=t.scrollIntoView)||e.call(t,{block:"nearest"}))},[tH,eY]),g.useEffect(function(){if(!(!eY||!tl||"ready"!==tr||tm||"u"<typeof IntersectionObserver)){var e=tV.current;if(e){var t=new IntersectionObserver(function(e){e.some(function(e){return e.isIntersecting})&&tD()},{root:tB.current,rootMargin:"48px"});return t.observe(e),function(){return t.disconnect()}}}},[eY,tl,tr,tm,tD,tT.length]);var tQ=function(e,t){var r=tT.length;if(0===r)return -1;for(var n=t,a=0;a<r;a++)if(!tM(tT[n=(n+e+r)%r]))return n;return t},tJ=(0,w.cn)("bottom"===tq?"top-full":"bottom-full","start"===ep&&"left-0","center"===ep&&"left-1/2","end"===ep&&"right-0"),t0=(s=Pk({width:"trigger"===eu?"100%":PT(eu)},"bottom"===tq?{marginTop:eh}:{marginBottom:eh}),l=l={"--egen-async-select-to":"center"===ep?"translateX(-50%)":"translateX(0)","--egen-async-select-from-bottom":"".concat("center"===ep?"translateX(-50%) ":"","translateY(-8px)"),"--egen-async-select-from-top":"".concat("center"===ep?"translateX(-50%) ":"","translateY(8px)"),transform:"center"===ep?"translateX(-50%)":"none"},Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(l)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(l)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(l,e))}),s),t1=[];tT.forEach(function(e,t){var r=null==y?void 0:y(e),n=t1[t1.length-1];n&&n.heading===r?n.entries.push({item:e,index:t}):t1.push({heading:r,entries:[{item:e,index:t}]})});var t2=function(e){var t=e.item,r=e.index,n=f(t),a=e$.includes(n),o=tH===r,i=tM(t);return(0,v.jsxs)("div",{id:eF(r),role:"option","data-index":r,"data-selected":o,"data-disabled":i?"true":void 0,"aria-selected":a,"aria-disabled":i||void 0,onMouseMove:function(){i||(tX.current="mouse",tH!==r&&tK(r))},onClick:function(){return!i&&tz(t)},className:(0,w.cn)("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",null==eP?void 0:eP.item),children:[m?m(t,{isActive:o,isSelected:a,isDisabled:i}):eB(t),ek&&a?(0,v.jsx)("span",{className:(0,w.cn)("ml-auto",null==eP?void 0:eP.itemCheck),children:ek}):(0,v.jsx)(EU,{className:(0,w.cn)("ml-auto size-3",a?"opacity-100":"opacity-0",null==eP?void 0:eP.itemCheck)})]},n)},t3=function(e,t){return void 0!==t?eB(t):e},t4=e$.length>0,t5=null!=H?H:"Search ".concat(W.toLowerCase(),"..."),t6=null!=K?K:"No ".concat(W.toLowerCase()," found."),t8="loading"===tr;return(0,v.jsxs)("div",{ref:tL,style:Pk({width:PT(void 0===es?"200px":es)},eC),className:(0,w.cn)("relative",eA,null==eP?void 0:eP.root),children:[(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n@keyframes egen-async-select-in-bottom { from { opacity: 0; transform: var(--egen-async-select-from-bottom) scale(0.95); } to { opacity: 1; transform: var(--egen-async-select-to) scale(1); } }\n@keyframes egen-async-select-in-top { from { opacity: 0; transform: var(--egen-async-select-from-top) scale(0.95); } to { opacity: 1; transform: var(--egen-async-select-to) scale(1); } }\n.egen-async-select-content[data-side="bottom"] { animation: egen-async-select-in-bottom 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n.egen-async-select-content[data-side="top"] { animation: egen-async-select-in-top 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n@media (prefers-reduced-motion: reduce) { .egen-async-select-content { animation: none !important; } }\n'}}),B?eT?e$.map(function(e){return(0,v.jsx)("input",{type:"hidden",name:B,value:e},e)}):(0,v.jsx)("input",{type:"hidden",name:B,value:null!=(c=e$[0])?c:""}):null,(0,v.jsx)("span",{role:"status","aria-live":"polite",className:"sr-only",children:t8?void 0===q?"Loading...":q:""}),(0,v.jsxs)("div",{ref:t_,id:V,role:"combobox",tabIndex:F?-1:0,"aria-expanded":eY,"aria-haspopup":"listbox","aria-controls":eY?eL:void 0,"aria-label":null!=z?z:W,"aria-disabled":F||void 0,"aria-busy":t8||void 0,"data-disabled":F?"true":void 0,"data-state":eY?"open":"closed",onClick:function(){return!F&&eX(!eY)},onKeyDown:function(e){!F&&(eY||"ArrowDown"!==e.key&&"ArrowUp"!==e.key&&"Enter"!==e.key&&" "!==e.key?!eY&&eT&&"Backspace"===e.key&&t4&&tW(e$[e$.length-1]):(e.preventDefault(),eX(!0)))},className:(0,w.cn)("flex min-h-9 w-full shrink-0 cursor-pointer items-center justify-between gap-2 rounded-md border border-border bg-background px-3 py-1.5 text-sm font-medium text-foreground shadow-xs transition-all outline-none","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",eD,null==eP?void 0:eP.trigger),children:[(0,v.jsx)("span",{className:(0,w.cn)("flex min-w-0 flex-1 items-center",null==eP?void 0:eP.triggerValue),children:function(){if(!t4)return(0,v.jsx)("span",{className:(0,w.cn)("truncate text-muted-foreground",null==eP?void 0:eP.placeholder),children:$});if(!eT){var e=tN[0];return(0,v.jsx)("span",{className:"min-w-0 truncate",children:void 0!==e?h?h(e):eB(e):e$[0]})}var t=e$.slice(0,Math.max(0,eR)),r=e$.slice(t.length);return(0,v.jsxs)("span",{className:"flex min-w-0 flex-wrap items-center gap-1",children:[t.map(function(e){var t=eZ.current.get(e),r=t3(e,t);return(0,v.jsxs)("span",{className:(0,w.cn)("inline-flex max-w-full items-center gap-1 rounded-sm bg-muted px-1.5 py-0.5 text-xs font-medium text-foreground",null==eP?void 0:eP.tag),children:[(0,v.jsx)("span",{className:"truncate",children:eM?eM(t,e):r}),F?null:(0,v.jsx)("button",{type:"button",tabIndex:-1,"aria-label":Q(r),onMouseDown:function(e){return e.preventDefault()},onClick:function(t){t.stopPropagation(),tW(e)},className:(0,w.cn)("rounded-sm opacity-60 outline-none transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/50",null==eP?void 0:eP.tagRemove),children:(0,v.jsx)(EK,{className:"size-3"})})]},e)}),r.length>0?(0,v.jsxs)("span",{title:r.map(function(e){return t3(e,eZ.current.get(e))}).join(", "),className:(0,w.cn)("rounded-sm bg-muted px-1.5 py-0.5 text-xs font-medium text-muted-foreground",null==eP?void 0:eP.tag),children:["+",r.length]}):null]})}()}),void 0!==eo&&eo&&t4&&!F?(0,v.jsx)("button",{type:"button",tabIndex:-1,"aria-label":void 0===X?"Clear":X,onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),tU()},className:(0,w.cn)("shrink-0 rounded-sm opacity-50 outline-none transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/50",null==eP?void 0:eP.clearButton),children:(0,v.jsx)(EK,{className:"size-4"})}):null,null!=eS?eS:(0,v.jsx)(E$,{className:(0,w.cn)("size-3 shrink-0 opacity-50",null==eP?void 0:eP.triggerIcon)})]}),eY?(0,v.jsx)("div",{"data-side":tq,"data-state":"open",style:t0,className:(0,w.cn)("egen-async-select-content absolute z-50 rounded-md border border-border bg-popover p-0 text-popover-foreground shadow-md outline-hidden",tJ,null==eP?void 0:eP.content),onKeyDown:function(e){if("Escape"===e.key){var t;e.preventDefault(),eX(!1),null==(t=t_.current)||t.focus();return}if("Tab"===e.key)return void eX(!1);if("Backspace"===e.key&&eT&&""===e3&&e$.length>0)return void tW(e$[e$.length-1]);if(0!==tT.length)switch(e.key){case"ArrowDown":e.preventDefault(),tX.current="keyboard",tK(function(e){return tQ(1,e)});break;case"ArrowUp":e.preventDefault(),tX.current="keyboard",tK(function(e){return tQ(-1,e)});break;case"Home":e.preventDefault(),tX.current="keyboard",tK(tZ());break;case"End":e.preventDefault(),tX.current="keyboard";var r=PP(tT).reverse().findIndex(function(e){return!tM(e)});tK(r>=0?tT.length-1-r:0);break;case"Enter":e.preventDefault();var n=tT[tH];n&&!tM(n)&&tz(n)}},children:(0,v.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",children:[ej?(0,v.jsx)("div",{className:null==eP?void 0:eP.header,children:ej}):null,void 0===er||er?(0,v.jsxs)("div",{className:(0,w.cn)("relative flex h-9 items-center gap-2 border-b border-border px-3",null==eP?void 0:eP.searchWrapper),children:[(0,v.jsx)(EH,{className:(0,w.cn)("size-4 shrink-0 opacity-50",null==eP?void 0:eP.searchIcon)}),(0,v.jsx)("input",{ref:tF,type:"text",role:"searchbox",autoComplete:"off",spellCheck:!1,"aria-controls":eL,"aria-activedescendant":tT.length?eF(tH):void 0,placeholder:t5,value:e3,onChange:function(e){e4(e.target.value),tX.current="keyboard"},className:(0,w.cn)("flex h-9 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==eP?void 0:eP.searchInput)}),t8&&tT.length>0?(0,v.jsx)("span",{className:(0,w.cn)("flex shrink-0 items-center text-muted-foreground",null==eP?void 0:eP.searchSpinner),"aria-hidden":!0,children:null!=eb?eb:(0,v.jsx)(EG,{className:"size-4 animate-spin"})}):null]}):(0,v.jsx)("input",{ref:tF,readOnly:!0,"aria-label":null!=z?z:W,"aria-controls":eL,"aria-activedescendant":tT.length?eF(tH):void 0,className:"sr-only"}),(0,v.jsxs)("div",{ref:tB,id:eL,role:"listbox","aria-multiselectable":eT||void 0,"aria-busy":t8||void 0,style:{maxHeight:ev},className:(0,w.cn)("scroll-py-1 overflow-x-hidden overflow-y-auto",null==eP?void 0:eP.list),children:[e8?(0,v.jsx)("div",{className:(0,w.cn)("py-6 text-center text-sm text-muted-foreground",null==eP?void 0:eP.hint),children:null!=G?G:"Type at least ".concat(E," characters to search.")}):"error"===tr?ew?ew(null!=to?to:ee,tA):(0,v.jsxs)("div",{role:"alert",className:(0,w.cn)("flex flex-col items-center gap-2 p-4 text-center text-sm text-destructive",null==eP?void 0:eP.error),children:[(0,v.jsx)("span",{children:null!=to?to:ee}),(0,v.jsx)("button",{type:"button",onClick:tA,className:"rounded-md border border-border px-2 py-1 text-xs font-medium text-foreground outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring/50",children:void 0===Y?"Retry":Y})]}):(t8||"idle"===tr)&&0===tT.length?null!=eg?eg:(0,v.jsx)("div",{className:(0,w.cn)("p-1",null==eP?void 0:eP.skeleton),"aria-hidden":!0,children:[1,2,3].map(function(e){return(0,v.jsxs)("div",{className:"flex items-center gap-2 rounded-sm px-2 py-1.5",children:[(0,v.jsx)("div",{className:"size-6 animate-pulse rounded-full bg-muted"}),(0,v.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[(0,v.jsx)("div",{className:"h-4 w-24 animate-pulse rounded bg-muted"}),(0,v.jsx)("div",{className:"h-3 w-16 animate-pulse rounded bg-muted"})]})]},e)})}):0===tT.length?null!=ex?ex:(0,v.jsx)("div",{className:(0,w.cn)("py-6 text-center text-sm",null==eP?void 0:eP.empty),children:t6}):t1.map(function(e,t){var r;return(0,v.jsxs)("div",{role:"group","aria-label":e.heading,className:(0,w.cn)("overflow-hidden p-1 text-foreground",null==eP?void 0:eP.group),children:[e.heading?(0,v.jsx)("div",{className:(0,w.cn)("px-2 py-1.5 text-xs font-medium text-muted-foreground",null==eP?void 0:eP.groupHeading),children:e.heading}):null,e.entries.map(t2)]},"".concat(null!=(r=e.heading)?r:"_","-").concat(t))}),tl&&"ready"===tr?(0,v.jsx)("div",{ref:tV,className:(0,w.cn)("flex items-center justify-center p-2 text-xs text-muted-foreground",null==eP?void 0:eP.loadMore),children:tm?(0,v.jsx)("button",{type:"button",onClick:function(){tD()},className:"rounded-md px-2 py-1 text-destructive outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring/50",children:void 0===et?"Failed to load more. Retry":et}):td?null!=eb?eb:(0,v.jsx)(EG,{className:"size-4 animate-spin"}):null}):null]}),eO?(0,v.jsx)("div",{className:null==eP?void 0:eP.footer,children:eO}):null]})}):null]})}function PR(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function PM(e,t){if(e){if("string"==typeof e)return PR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PR(e,t)}}var PI=function(e){var t,r=e.images,n=e.cardWidth,a=void 0===n?256:n,o=e.cardHeight,i=void 0===o?352:o,s=e.className,l=e.style,u=e.getAlt,c=e.onSwipe,d=(0,g.useRef)(null),f=(0,g.useRef)(!1),p=(0,g.useRef)(0),m=(0,g.useRef)(0),h=(0,g.useRef)(null),y=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(function(){return Array.from({length:r.length},function(e,t){return t})}))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||PM(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=y[0],x=y[1];(0,g.useEffect)(function(){x(Array.from({length:r.length},function(e,t){return t}))},[r.length]);var w=(0,g.useCallback)(function(e,t){var r,n,a=null==(n=getComputedStyle(t||document.documentElement))||null==(r=n.getPropertyValue(e))?void 0:r.trim();return a?a.endsWith("ms")?parseFloat(a):a.endsWith("s")?1e3*parseFloat(a):parseFloat(a)||0:0},[]),j=(0,g.useCallback)(function(){return d.current?Array.from(d.current.querySelectorAll("[data-image-swiper-card]")):[]},[]),O=(0,g.useCallback)(function(){return j()[0]||null},[j]),k=(0,g.useCallback)(function(){j().forEach(function(e,t){e.style.setProperty("--i",(t+1).toString()),e.style.setProperty("--swipe-x","0px"),e.style.setProperty("--swipe-rotate","0deg"),e.style.opacity="1"})},[j]),E=(0,g.useCallback)(function(e){var t=O();t&&(t.style.setProperty("--swipe-x","".concat(e,"px")),t.style.setProperty("--swipe-rotate","".concat(.2*e,"deg")),t.style.opacity=(1-.75*Math.min(Math.abs(e)/100,1)).toString())},[O]),P=(0,g.useCallback)(function(e){if(!f.current){f.current=!0,p.current=e,m.current=e;var t=O();t&&(t.style.transition="none")}},[O]),A=(0,g.useCallback)(function(){if(f.current){h.current&&(cancelAnimationFrame(h.current),h.current=null);var e=m.current-p.current,t=w("--card-swap-duration",d.current),r=O();if(r)if(r.style.transition="transform ".concat(t,"ms ease, opacity ").concat(t,"ms ease"),Math.abs(e)>50){var n=Math.sign(e);r.style.setProperty("--swipe-x","".concat(300*n,"px")),r.style.setProperty("--swipe-rotate","".concat(20*n,"deg")),setTimeout(function(){O()===r&&r.style.setProperty("--swipe-rotate","".concat(-(20*n),"deg"))},.5*t),setTimeout(function(){x(function(e){var t;return 0===e.length?[]:(null==c||c(e[0],n>0?"right":"left"),((function(e){if(Array.isArray(e))return PR(e)})(t=e.slice(1))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||PM(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e[0]]))})},t)}else E(0);f.current=!1,p.current=0,m.current=0}},[w,O,E,c]),D=(0,g.useCallback)(function(e){f.current&&(h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(function(){m.current=e;var t=m.current-p.current;E(t),Math.abs(t)>50&&A()}))},[E,A]);return(0,g.useEffect)(function(){var e=d.current;if(e){var t=function(e){return P(e.clientX)},r=function(e){return D(e.clientX)},n=function(){return A()};return e.addEventListener("pointerdown",t),e.addEventListener("pointermove",r),e.addEventListener("pointerup",n),function(){e.removeEventListener("pointerdown",t),e.removeEventListener("pointermove",r),e.removeEventListener("pointerup",n),h.current&&cancelAnimationFrame(h.current)}}},[P,D,A]),(0,g.useEffect)(function(){k()},[b,k]),(0,v.jsx)("section",{ref:d,className:S()("oiNYOqAWLBChaYRaGPIQgg==",s),style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({width:a+32,height:i+32,"--card-perspective":"700px","--card-z-offset":"12px","--card-y-offset":"7px","--card-max-z-index":r.length.toString(),"--card-swap-duration":"0.3s"},l),children:b.map(function(e,t){return(0,v.jsx)("article",{"data-image-swiper-card":!0,className:"laGBYFIn9rzvzoUcL9r5sg==",style:{"--i":(t+1).toString(),zIndex:r.length-t,width:a,height:i},children:(0,v.jsx)("img",{src:r[e],alt:u?u(e):"Image ".concat(e+1),className:"_989KfEmfVaUsIl2Vply+DA==",draggable:!1})},"".concat(r[e],"-").concat(e))})})},P_=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,PL=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,PF=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,PB=/(^[#\.][a-z]|[a-y][a-z])/i,PV=Math.PI/180,Pz=180/Math.PI,PW=Math.sin,PU=Math.cos,P$=Math.abs,PH=Math.sqrt,PK=Math.atan2,PG=function(e){return"string"==typeof e},Pq=function(e){return"number"==typeof e},PY={},PX={},PZ=function(e){return Math.round((e+1e8)%1*1e5)/1e5||(e<0?0:1)},PQ=function(e){return Math.round(1e5*e)/1e5||0},PJ=function(e){return Math.round(1e10*e)/1e10||0},P0=function(e){return e.closed=.001>Math.abs(e[0]-e[e.length-2])&&.001>Math.abs(e[1]-e[e.length-1])},P1=function(e,t,r,n){var a=e[t],o=1===n?6:An(a,r,n);if((o||!n)&&o+r+2<a.length)return e.splice(t,0,a.slice(0,r+o+2)),a.splice(0,r+o),1},P2=function(e,t,r){var n=e.length,a=~~(r*n);if(e[a]>t){for(;--a&&e[a]>t;);a<0&&(a=0)}else for(;e[++a]<t&&a<n;);return a<n?a:n-1},P3=function(e,t){var r=e.length;for(t||e.reverse();r--;)e[r].reversed||function(e){var t,r=0;for(e.reverse();r<e.length;r+=2)t=e[r],e[r]=e[r+1],e[r+1]=t;e.reversed=!e.reversed}(e[r])},P4=function(e,t){return t.totalLength=e.totalLength,e.samples?(t.samples=e.samples.slice(0),t.lookup=e.lookup.slice(0),t.minLength=e.minLength,t.resolution=e.resolution):e.totalPoints&&(t.totalPoints=e.totalPoints),t},P5=function(e,t){var r=e.length,n=e[r-1]||[],a=n.length;r&&t[0]===n[a-2]&&t[1]===n[a-1]&&(t=n.concat(t.slice(2)),r--),e[r]=t};function P6(e){var t,r=(e=PG(e)&&PB.test(e)&&document.querySelector(e)||e).getAttribute?e:0;return r&&(e=e.getAttribute("d"))?(r._gsPath||(r._gsPath={}),(t=r._gsPath[e])&&!t._dirty?t:r._gsPath[e]=As(e)):e?PG(e)?As(e):Pq(e[0])?[e]:e:console.warn("Expecting a <path> element or an SVG path data string")}var P8=function(e,t){var r,n=document.createElementNS("http://www.w3.org/2000/svg","path"),a=[].slice.call(e.attributes),o=a.length;for(t=","+t+",";--o>-1;)r=a[o].nodeName.toLowerCase(),0>t.indexOf(","+r+",")&&n.setAttributeNS(null,r,a[o].nodeValue);return n},P9={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},P7=function(e,t){for(var r=t?t.split(","):[],n={},a=r.length;--a>-1;)n[r[a]]=+e.getAttribute(r[a])||0;return n};function Ae(e,t,r){var n,a=e[t],o=e[t+2],i=e[t+4];return a+=(o-a)*r,o+=(i-o)*r,a+=(o-a)*r,n=o+(i+(e[t+6]-i)*r-o)*r-a,a=e[t+1],o=e[t+3],i=e[t+5],a+=(o-a)*r,o+=(i-o)*r,a+=(o-a)*r,PQ(PK(o+(i+(e[t+7]-i)*r-o)*r-a,n)*Pz)}function At(e,t,r){var n=Math.max(0,~~(P$((r=void 0===r?1:PJ(r)||0)-(t=PJ(t)||0))-1e-8)),a=function(e){for(var t=[],r=0;r<e.length;r++)t[r]=P4(e[r],e[r].slice(0));return P4(e,t)}(e);if(t>r&&(t=1-t,r=1-r,P3(a),a.totalLength=0),t<0||r<0){var o=Math.abs(~~Math.min(t,r))+1;t+=o,r+=o}a.totalLength||Ar(a);var i,s,l,u,c,d,f,p,m=r>1,h=Aa(a,t,PY,!0),y=Aa(a,r,PX),v=y.segment,g=h.segment,b=y.segIndex,x=h.segIndex,w=y.i,j=h.i,O=x===b,S=w===j&&O;if(m||n){for(i=b<x||O&&w<j||S&&y.t<h.t,P1(a,x,j,h.t)&&(x++,!i&&(b++,S?(y.t=(y.t-h.t)/(1-h.t),w=0):O&&(w-=j))),1e-5>Math.abs(1-(r-t))?b=x-1:!y.t&&b?b--:P1(a,b,w,y.t)&&i&&x++,1===h.t&&(x=(x+1)%a.length),c=[],f=1+(d=a.length)*n,p=x,f+=(d-x+b)%d,u=0;u<f;u++)P5(c,a[p++%d]);a=c}else if(l=1===y.t?6:An(v,w,y.t),t!==r)for(s=An(g,j,S?h.t/y.t:h.t),O&&(l+=s),v.splice(w+l+2),(s||j)&&g.splice(0,j+s),u=a.length;u--;)(u<x||u>b)&&a.splice(u,1);else v.angle=Ae(v,w+l,0),w+=l,h=v[w],y=v[w+1],v.length=v.totalLength=0,v.totalPoints=a.totalPoints=8,v.push(h,y,h,y,h,y,h,y);return a.totalLength=0,a}function Ar(e,t){var r,n,a;for(a=r=n=0;a<e.length;a++)e[a].resolution=~~t||12,r+=function(e,t){t=t||0,e.samples||(e.samples=[],e.lookup=[]);var r,n,a,o,i,s,l,u,c,d,f,p,m,h,y,v,g,b=~~e.resolution||12,x=1/b,w=e.length,j=e[t],O=e[t+1],S=t?t/6*b:0,k=e.samples,E=e.lookup,P=(t?e.minLength:1e8)||1e8,A=k[S+(void 0)*b-1],D=t?k[S-1]:0;for(k.length=E.length=0,n=t+2;n<w;n+=6){if(a=e[n+4]-j,o=e[n+2]-j,i=e[n]-j,u=e[n+5]-O,c=e[n+3]-O,d=e[n+1]-O,s=l=f=p=0,.01>P$(a)&&.01>P$(u)&&P$(i)+P$(d)<.01)e.length>8&&(e.splice(n,6),n-=6,w-=6);else for(r=1;r<=b;r++)m=1-(h=x*r),s=l-(l=(h*h*a+3*m*(h*o+m*i))*h),(v=PH((f=p-(p=(h*h*u+3*m*(h*c+m*d))*h))*f+s*s))<P&&(P=v),D+=v,k[S++]=D;j+=a,O+=u}if(A)for(A-=D;S<k.length;S++)k[S]+=A;if(k.length&&P){if(e.totalLength=g=k[k.length-1]||0,e.minLength=P,g/P<9999)for(r=0,v=y=0;r<g;r+=P)E[v++]=k[y]<r?++y:y}else e.totalLength=k[0]=0;return t?D-k[t/2-1]:D}(e[a]),n+=e[a].length;return e.totalPoints=n,e.totalLength=r,e}function An(e,t,r){if(r<=0||r>=1)return 0;var n=e[t],a=e[t+1],o=e[t+2],i=e[t+3],s=e[t+4],l=e[t+5],u=e[t+6],c=e[t+7],d=n+(o-n)*r,f=o+(s-o)*r,p=a+(i-a)*r,m=i+(l-i)*r,h=d+(f-d)*r,y=p+(m-p)*r,v=s+(u-s)*r,g=l+(c-l)*r;return f+=(v-f)*r,m+=(g-m)*r,e.splice(t+2,4,PQ(d),PQ(p),PQ(h),PQ(y),PQ(h+(f-h)*r),PQ(y+(m-y)*r),PQ(f),PQ(m),PQ(v),PQ(g)),e.samples&&e.samples.splice(t/6*e.resolution|0,0,0,0,0,0,0,0),6}function Aa(e,t,r,n){r=r||{},e.totalLength||Ar(e),(t<0||t>1)&&(t=PZ(t));var a,o,i,s,l,u,c,d=0,f=e[0];if(t)if(1===t)c=1,d=e.length-1,u=(f=e[d]).length-8;else{if(e.length>1){for(i=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<i;)d=u;t=(i-(s=l-(f=e[d]).totalLength))/(l-s)||0}a=f.samples,o=f.resolution,i=f.totalLength*t,s=(u=f.lookup.length?f.lookup[~~(i/f.minLength)]||0:P2(a,i,t))?a[u-1]:0,(l=a[u])<i&&(s=l,l=a[++u]),c=1/o*((i-s)/(l-s)+u%o),u=6*~~(u/o),n&&1===c&&(u+6<f.length?(u+=6,c=0):d+1<e.length&&(u=c=0,f=e[++d]))}else c=u=d=0,f=e[0];return r.t=c,r.i=u,r.path=e,r.segment=f,r.segIndex=d,r}function Ao(e,t,r,n){var a,o,i,s,l,u,c,d,f,p=e[0],m=n||{};if((t<0||t>1)&&(t=PZ(t)),p.lookup||Ar(e),e.length>1){for(i=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<i;)p=e[u];t=(i-(s=l-p.totalLength))/(l-s)||0}return a=p.samples,o=p.resolution,i=p.totalLength*t,s=(u=p.lookup.length?p.lookup[t<1?~~(i/p.minLength):p.lookup.length-1]||0:P2(a,i,t))?a[u-1]:0,(l=a[u])<i&&(s=l,l=a[++u]),f=1-(c=1/o*((i-s)/(l-s)+u%o)||0),d=p[u=6*~~(u/o)],m.x=PQ((c*c*(p[u+6]-d)+3*f*(c*(p[u+4]-d)+f*(p[u+2]-d)))*c+d),m.y=PQ((c*c*(p[u+7]-(d=p[u+1]))+3*f*(c*(p[u+5]-d)+f*(p[u+3]-d)))*c+d),r&&(m.angle=p.totalLength?Ae(p,u,c>=1?1-1e-9:c||1e-9):p.angle||0),m}function Ai(e,t,r,n,a,o,i){for(var s,l,u,c,d,f=e.length;--f>-1;)for(u=0,l=(s=e[f]).length;u<l;u+=2)c=s[u],d=s[u+1],s[u]=c*t+d*n+o,s[u+1]=c*r+d*a+i;return e._dirty=1,e}function As(e){var t,r,n,a,o,i,s,l,u,c,d,f,p,m,h,y=(e+"").replace(PF,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(P_)||[],v=[],g=0,b=0,x=2/3,w=y.length,j=0,O="ERROR: malformed path: "+e,S=function(e,t,r,n){c=(r-e)/3,d=(n-t)/3,s.push(e+c,t+d,r-c,n-d,r,n)};if(!e||!isNaN(y[0])||isNaN(y[1]))return console.log(O),v;for(t=0;t<w;t++)if(p=o,isNaN(y[t])?i=(o=y[t].toUpperCase())!==y[t]:t--,n=+y[t+1],a=+y[t+2],i&&(n+=g,a+=b),t||(l=n,u=a),"M"===o)s&&(s.length<8?v.length-=1:j+=s.length,P0(s)),g=l=n,b=u=a,s=[n,a],v.push(s),t+=2,o="L";else if("C"===o)s||(s=[0,0]),i||(g=b=0),s.push(n,a,g+ +y[t+3],b+ +y[t+4],g+=+y[t+5],b+=+y[t+6]),t+=6;else if("S"===o)c=g,d=b,("C"===p||"S"===p)&&(c+=g-s[s.length-4],d+=b-s[s.length-3]),i||(g=b=0),s.push(c,d,n,a,g+=+y[t+3],b+=+y[t+4]),t+=4;else if("Q"===o)c=g+(n-g)*x,d=b+(a-b)*x,i||(g=b=0),g+=+y[t+3],b+=+y[t+4],s.push(c,d,g+(n-g)*x,b+(a-b)*x,g,b),t+=4;else if("T"===o)c=g-s[s.length-4],d=b-s[s.length-3],s.push(g+c,b+d,n+(g+1.5*c-n)*x,a+(b+1.5*d-a)*x,g=n,b=a),t+=2;else if("H"===o)S(g,b,g=n,b),t+=1;else if("V"===o)S(g,b,g,b=n+(i?b-g:0)),t+=1;else if("L"===o||"Z"===o)"Z"===o&&(n=l,a=u,s.closed=!0),("L"===o||P$(g-n)>.5||P$(b-a)>.5)&&(S(g,b,n,a),"L"===o&&(t+=2)),g=n,b=a;else if("A"===o){if(m=y[t+4],h=y[t+5],c=y[t+6],d=y[t+7],r=7,m.length>1&&(m.length<3?(d=c,c=h,r--):(d=h,c=m.substr(2),r-=2),h=m.charAt(1),m=m.charAt(0)),f=function(e,t,r,n,a,o,i,s,l){if(e!==s||t!==l){r=P$(r),n=P$(n);var u=a%360*PV,c=PU(u),d=PW(u),f=Math.PI,p=2*f,m=(e-s)/2,h=(t-l)/2,y=c*m+d*h,v=-d*m+c*h,g=y*y,b=v*v,x=g/(r*r)+b/(n*n);x>1&&(r=PH(x)*r,n=PH(x)*n);var w=r*r,j=n*n,O=(w*j-w*b-j*g)/(w*b+j*g);O<0&&(O=0);var S=(o===i?-1:1)*PH(O),k=r*v/n*S,E=-(n*y/r*S),P=(e+s)/2+(c*k-d*E),A=(t+l)/2+(d*k+c*E),D=(y-k)/r,C=(v-E)/n,T=(-y-k)/r,N=(-v-E)/n,R=D*D+C*C,M=(C<0?-1:1)*Math.acos(D/PH(R)),I=(D*N-C*T<0?-1:1)*Math.acos((D*T+C*N)/PH(R*(T*T+N*N)));isNaN(I)&&(I=f),!i&&I>0?I-=p:i&&I<0&&(I+=p),M%=p;var L,F=Math.ceil(P$(I%=p)/(p/4)),B=[],V=I/F,z=4/3*PW(V/2)/(1+PU(V/2)),W=c*r,U=d*r,$=-(d*n),H=c*n;for(L=0;L<F;L++)y=PU(a=M+L*V),v=PW(a),D=PU(a+=V),C=PW(a),B.push(y-z*v,v+z*y,D+z*C,C-z*D,D,C);for(L=0;L<B.length;L+=2)y=B[L],v=B[L+1],B[L]=y*W+v*$+P,B[L+1]=y*U+v*H+A;return B[L-2]=s,B[L-1]=l,B}}(g,b,+y[t+1],+y[t+2],+y[t+3],+m,+h,(i?g:0)+ +c,(i?b:0)+ +d),t+=r,f)for(r=0;r<f.length;r++)s.push(f[r]);g=s[s.length-2],b=s[s.length-1]}else console.log(O);return(t=s.length)<6?(v.pop(),t=0):P0(s),v.totalPoints=j+t,v}function Al(e,t){1e-4>P$(e[0]-e[2])&&1e-4>P$(e[1]-e[3])&&(e=e.slice(2));var r,n,a,o,i,s,l,u,c,d,f,p,m,h,y,v=e.length-2,g=+e[0],b=+e[1],x=+e[2],w=+e[3],j=[g,b,g,b],O=x-g,S=w-b,k=e.nonSmooth||[],E=.001>Math.abs(e[v]-g)&&.001>Math.abs(e[v+1]-b);if(!v)return[g,b,g,b,g,b,g,b];for(E&&(e.push(x,w),x=g,w=b,g=e[v-2],b=e[v-1],e.unshift(g,b),v+=4,k=[0,0].concat(k)),t=t||0===t?+t:1,a=2;a<v;a+=2)if(r=g,n=b,g=x,b=w,x=+e[a+2],w=+e[a+3],g!==x||b!==w){if(o=O,i=S,O=x-g,S=w-b,k[a]){j.push(g-(g-r)/4,b-(b-n)/4,g,b,g+(x-g)/4,b+(w-b)/4);continue}s=PH(o*o+i*i),l=PH(O*O+S*S),u=PH(Math.pow(O/l+o/s,2)+Math.pow(S/l+i/s,2)),c=(s+l)*t*.25/u,d=g-(g-r)*(s?c/s:0),f=g+(x-g)*(l?c/l:0),p=g-(d+((f-d)*(3*s/(s+l)+.5)/4||0)),m=b-(b-n)*(s?c/s:0),h=b+(w-b)*(l?c/l:0),y=b-(m+((h-m)*(3*s/(s+l)+.5)/4||0)),j.push(PQ(d+p),PQ(m+y),PQ(g),PQ(b),PQ(f+p),PQ(h+y))}return g!==x||b!==w||j.length<4?j.push(PQ(x),PQ(w),PQ(x),PQ(w)):j.length-=2,2===j.length?j.push(g,b,g,b,g,b):E&&(j.splice(0,6),j.length-=6),j.closed=E,j}function Au(e){Pq(e[0])&&(e=[e]);var t,r,n,a,o="",i=e.length;for(r=0;r<i;r++){for(o+="M"+PQ((a=e[r])[0])+","+PQ(a[1])+" C",t=a.length,n=2;n<t;n++)o+=PQ(a[n++])+","+PQ(a[n++])+" "+PQ(a[n++])+","+PQ(a[n++])+" "+PQ(a[n++])+","+PQ(a[n])+" ";a.closed&&(o+="z")}return o}var Ac,Ad,Af,Ap,Am,Ah,Ay,Av,Ag,Ab,Ax,Aw="transform",Aj=Aw+"Origin",AO=function(e){var t=e.ownerDocument||e;for(!(Aw in e.style)&&("msTransform"in e.style)&&(Aj=(Aw="msTransform")+"Origin");t.parentNode&&(t=t.parentNode););if(Ap=window,Ag=new AR,t){Af=t,Am=t.documentElement,Ah=t.body,(Ab=Af.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var r=t.createElement("div"),n=t.createElement("div"),a=t&&(t.body||t.firstElementChild);a&&a.appendChild&&(a.appendChild(r),r.appendChild(n),r.style.position="static",r.style.transform="translate3d(0,0,1px)",Ax=n.offsetParent!==r,a.removeChild(r))}return t},AS=function(e){for(var t,r;e&&e!==Ah;)(r=e._gsap)&&r.uncache&&r.get(e,"x"),r&&!r.scaleX&&!r.scaleY&&r.renderTransform&&(r.scaleX=r.scaleY=1e-4,r.renderTransform(1,r),t?t.push(r):t=[r]),e=e.parentNode;return t},Ak=[],AE=[],AP=function(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},AA=function e(t,r){if(t.parentNode&&(Af||AO(t))){var n=AP(t),a=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o=n?r?"rect":"g":"div",i=100*(2===r),s=100*(3===r),l={position:"absolute",display:"block",pointerEvents:"none",margin:"0",padding:"0"},u=Af.createElementNS?Af.createElementNS(a.replace(/^https/,"http"),o):Af.createElement(o);return r&&(n?(Av||(Av=e(t)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+i+","+s+")"),u.setAttribute("fill","transparent"),Av.appendChild(u)):(Ay||Object.assign((Ay=e(t)).style,l),Object.assign(u.style,l,{width:"0.1px",height:"0.1px",top:s+"px",left:i+"px"}),Ay.appendChild(u))),u}throw"Need document and parent."},AD=function(e){for(var t=new AR,r=0;r<e.numberOfItems;r++)t.multiply(e.getItem(r).matrix);return t},AC=function(e){var t,r=e.getCTM();return r||(t=e.style[Aw],e.style[Aw]="none",e.appendChild(Ab),r=Ab.getCTM(),e.removeChild(Ab),t?e.style[Aw]=t:e.style.removeProperty(Aw.replace(/([A-Z])/g,"-$1").toLowerCase())),r||Ag.clone()},AT=function(e,t){var r,n,a,o,i,s,l=AP(e),u=e===l,c=l?Ak:AE,d=e.parentNode,f=d&&!l&&d.shadowRoot&&d.shadowRoot.appendChild?d.shadowRoot:d;if(e===Ap)return e;if(c.length||c.push(AA(e,1),AA(e,2),AA(e,3)),r=l?Av:Ay,l)u?(o=-(a=AC(e)).e/a.a,i=-a.f/a.d,n=Ag):e.getBBox?(a=e.getBBox(),o=(n=(n=e.transform?e.transform.baseVal:{}).numberOfItems?n.numberOfItems>1?AD(n):n.getItem(0).matrix:Ag).a*a.x+n.c*a.y,i=n.b*a.x+n.d*a.y):(n=new AR,o=i=0),t&&"g"===e.tagName.toLowerCase()&&(o=i=0),(u||!e.getBoundingClientRect().width?l:d).appendChild(r),r.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+o)+","+(n.f+i)+")");else{if(o=i=0,Ax)for(n=e.offsetParent,a=e;a&&(a=a.parentNode)&&a!==n&&a.parentNode;)(Ap.getComputedStyle(a)[Aw]+"").length>4&&(o=a.offsetLeft,i=a.offsetTop,a=0);if("absolute"!==(s=Ap.getComputedStyle(e)).position&&"fixed"!==s.position)for(n=e.offsetParent;d&&d!==n;)o+=d.scrollLeft||0,i+=d.scrollTop||0,d=d.parentNode;(a=r.style).top=e.offsetTop-i+"px",a.left=e.offsetLeft-o+"px",a[Aw]=s[Aw],a[Aj]=s[Aj],a.position="fixed"===s.position?"fixed":"absolute",f.appendChild(r)}return r},AN=function(e,t,r,n,a,o,i){return e.a=t,e.b=r,e.c=n,e.d=a,e.e=o,e.f=i,e},AR=function(){function e(e,t,r,n,a,o){void 0===e&&(e=1),void 0===t&&(t=0),void 0===r&&(r=0),void 0===n&&(n=1),void 0===a&&(a=0),void 0===o&&(o=0),AN(this,e,t,r,n,a,o)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,r=this.c,n=this.d,a=this.e,o=this.f,i=e*n-t*r||1e-10;return AN(this,n/i,-t/i,-r/i,e/i,(r*o-n*a)/i,-(e*o-t*a)/i)},t.multiply=function(e){var t=this.a,r=this.b,n=this.c,a=this.d,o=this.e,i=this.f,s=e.a,l=e.c,u=e.b,c=e.d,d=e.e,f=e.f;return AN(this,s*t+u*n,s*r+u*a,l*t+c*n,l*r+c*a,o+d*t+f*n,i+d*r+f*a)},t.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(e){var t=this.a,r=this.b,n=this.c,a=this.d,o=this.e,i=this.f;return t===e.a&&r===e.b&&n===e.c&&a===e.d&&o===e.e&&i===e.f},t.apply=function(e,t){void 0===t&&(t={});var r=e.x,n=e.y,a=this.a,o=this.b,i=this.c,s=this.d,l=this.e,u=this.f;return t.x=r*a+n*i+l||0,t.y=r*o+n*s+u||0,t},e}();function AM(e,t,r,n){if(!e||!e.parentNode||(Af||AO(e)).documentElement===e)return new AR;var a=AS(e),o=AP(e)?Ak:AE,i=AT(e,r),s=o[0].getBoundingClientRect(),l=o[1].getBoundingClientRect(),u=o[2].getBoundingClientRect(),c=i.parentNode,d=!n&&function e(t){return"fixed"===Ap.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?e(t):void 0)}(e),f=new AR((l.left-s.left)/100,(l.top-s.top)/100,(u.left-s.left)/100,(u.top-s.top)/100,s.left+(d?0:Ap.pageXOffset||Af.scrollLeft||Am.scrollLeft||Ah.scrollLeft||0),s.top+(d?0:Ap.pageYOffset||Af.scrollTop||Am.scrollTop||Ah.scrollTop||0));if(c.removeChild(i),a)for(s=a.length;s--;)(l=a[s]).scaleX=l.scaleY=0,l.renderTransform(1,l);return t?f.inverse():f}var AI,A_,AL,AF,AB,AV,Az="x,translateX,left,marginLeft,xPercent".split(","),AW="y,translateY,top,marginTop,yPercent".split(","),AU=Math.PI/180,A$=function(e,t,r,n){for(var a=t.length,o=2===n?0:n,i=0;i<a;i++)e[o]=parseFloat(t[i][r]),2===n&&(e[o+1]=0),o+=2;return e},AH=function(e,t,r){return parseFloat(e._gsap.get(e,t,r||"px"))||0},AK=function(e){var t,r=e[0],n=e[1];for(t=2;t<e.length;t+=2)r=e[t]+=r,n=e[t+1]+=n},AG=function(e,t,r,n,a,o,i,s,l){return"cubic"===i.type?t=[t]:(!1!==i.fromCurrent&&t.unshift(AH(r,n,s),a?AH(r,a,l):0),i.relative&&AK(t),t=[(a?Al:function(e,t){void 0===t&&(t=1);for(var r=e[0],n=0,a=[r,0],o=2;o<e.length;o+=2)a.push(r,n,e[o],n=(e[o]-r)*t/2,r=e[o],-n);return a})(t,i.curviness)]),t=o(AQ(t,r,i)),AJ(e,r,n,t,"x",s),a&&AJ(e,r,a,t,"y",l),Ar(t,i.resolution||(0===i.curviness?20:12))},Aq=function(e){return e},AY=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,AX=function(e,t,r){var n,a=AM(e),o=0,i=0;return"svg"===(e.tagName+"").toLowerCase()?(n=e.viewBox.baseVal).width||(n={width:+e.getAttribute("width"),height:+e.getAttribute("height")}):n=t&&e.getBBox&&e.getBBox(),t&&"auto"!==t&&(o=t.push?t[0]*(n?n.width:e.offsetWidth||0):t.x,i=t.push?t[1]*(n?n.height:e.offsetHeight||0):t.y),r.apply(o||i?a.apply({x:o,y:i}):{x:a.e,y:a.f})},AZ=function(e,t,r,n){var a,o=AM(e.parentNode,!0,!0),i=o.clone().multiply(AM(t)),s=AX(e,r,o),l=AX(t,n,o),u=l.x,c=l.y;return i.e=i.f=0,"auto"===n&&t.getTotalLength&&"path"===t.tagName.toLowerCase()&&(a=t.getAttribute("d").match(AY)||[],u+=(a=i.apply({x:+a[0],y:+a[1]})).x,c+=a.y),a&&(u-=(a=i.apply(t.getBBox())).x,c-=a.y),i.e=u-s.x,i.f=c-s.y,i},AQ=function(e,t,r){var n,a,o,i=r.align,s=r.matrix,l=r.offsetX,u=r.offsetY,c=r.alignOrigin,d=e[0][0],f=e[0][1],p=AH(t,"x"),m=AH(t,"y");return e&&e.length?(i&&("self"===i||(n=AF(i)[0]||t)===t?Ai(e,1,0,0,1,p-d,m-f):(c&&!1!==c[2]?AI.set(t,{transformOrigin:100*c[0]+"% "+100*c[1]+"%"}):c=[-(AH(t,"xPercent")/100),-(AH(t,"yPercent")/100)],o=(a=AZ(t,n,c,"auto")).apply({x:d,y:f}),Ai(e,a.a,a.b,a.c,a.d,p+a.e-(o.x-a.e),m+a.f-(o.y-a.f)))),s?Ai(e,s.a,s.b,s.c,s.d,s.e,s.f):(l||u)&&Ai(e,1,0,0,1,l||0,u||0),e):P6("M0,0L0,0")},AJ=function(e,t,r,n,a,o){var i=t._gsap,s=i.harness,l=s&&s.aliases&&s.aliases[r],u=l&&0>l.indexOf(",")?l:r,c=e._pt=new A_(e._pt,t,u,0,0,Aq,0,i.set(t,u,e));c.u=AL(i.get(t,u,o))||0,c.path=n,c.pp=a,e._props.push(u)},A0={version:"3.15.0",name:"motionPath",register:function(e,t,r){AL=(AI=e).utils.getUnit,AF=AI.utils.toArray,AB=AI.core.getStyleSaver,AV=AI.core.reverting||function(){},A_=r},init:function(e,t,r){if(!AI)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;(void 0===t?"undefined":(n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)=="object"&&!t.style&&t.path||(t={path:t});var n,a,o,i,s,l=[],u=t,c=u.path,d=u.autoRotate,f=u.unitX,p=u.unitY,m=u.x,h=u.y,y=c[0],v=(a=t.start,o="end"in t?t.end:1,function(e){return a||1!==o?At(e,a,o):e});if(this.rawPaths=l,this.target=e,this.tween=r,this.styles=AB&&AB(e,"transform"),(this.rotate=d||0===d)&&(this.rOffset=parseFloat(d)||0,this.radians=!!t.useRadians,this.rProp=t.rotation||"rotation",this.rSet=e._gsap.set(e,this.rProp,this),this.ru=AL(e._gsap.get(e,this.rProp))||0),!Array.isArray(c)||"closed"in c||"number"==typeof y)Ar(i=v(AQ(P6(t.path),e,t)),t.resolution),l.push(i),AJ(this,e,t.x||"x",i,"x",t.unitX||"px"),AJ(this,e,t.y||"y",i,"y",t.unitY||"px");else{for(s in y)!m&&~Az.indexOf(s)?m=s:!h&&~AW.indexOf(s)&&(h=s);for(s in m&&h?l.push(AG(this,A$(A$([],c,m,0),c,h,1),e,m,h,v,t,f||AL(c[0][m]),p||AL(c[0][h]))):m=h=0,y)s!==m&&s!==h&&l.push(AG(this,A$([],c,s,2),e,s,0,v,t,AL(c[0][s])))}r.vars.immediateRender&&this.render(r.progress(),this)},render:function(e,t){var r=t.rawPaths,n=r.length,a=t._pt;if(t.tween._time||!AV()){for(e>1?e=1:e<0&&(e=0);n--;)Ao(r[n],e,!n&&t.rotate,r[n]);for(;a;)a.set(a.t,a.p,a.path[a.pp]+a.u,a.d,e),a=a._next;t.rotate&&t.rSet(t.target,t.rProp,r[0].angle*(t.radians?AU:1)+t.rOffset+t.ru,t,e)}else t.styles.revert()},getLength:function(e){return Ar(P6(e)).totalLength},sliceRawPath:At,getRawPath:P6,pointsToSegment:Al,stringToRawPath:As,rawPathToString:Au,transformRawPath:Ai,getGlobalMatrix:AM,getPositionOnPath:Ao,cacheRawPathMeasurements:Ar,convertToPath:function(e,t){return AF(e).map(function(e){var r,n,a,o,i,s,l,u,c,d,f,p,m,h,y,v,g,b,x,w,j,O,S,k;return r=!1!==t,"path"!==(k=e.tagName.toLowerCase())&&e.getBBox?(l=P8(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),S=P7(e,P9[k]),"rect"===k?(i=S.rx,s=S.ry||i,a=S.x,o=S.y,f=S.width-2*i,p=S.height-2*s,i||s?(m=a+.44771525016900005*i,v=(y=(h=a+i)+f)+.552284749831*i,g=y+i,b=o+.44771525016900005*s,j=(w=(x=o+s)+p)+.552284749831*s,O=w+s,n="M"+g+","+x+" V"+w+" C"+[g,j,v,O,y,O,y-(y-h)/3,O,h+(y-h)/3,O,h,O,m,O,a,j,a,w,a,w-(w-x)/3,a,x+(w-x)/3,a,x,a,b,m,o,h,o,h+(y-h)/3,o,y-(y-h)/3,o,y,o,v,o,g,b,g,x].join(",")+"z"):n="M"+(a+f)+","+o+" v"+p+" h"+-f+" v"+-p+" h"+f+"z"):"circle"===k||"ellipse"===k?("circle"===k?c=.552284749831*(i=s=S.r):(i=S.rx,c=.552284749831*(s=S.ry)),a=S.cx,o=S.cy,u=.552284749831*i,n="M"+(a+i)+","+o+" C"+[a+i,o+c,a+u,o+s,a,o+s,a-u,o+s,a-i,o+c,a-i,o,a-i,o-c,a-u,o-s,a,o-s,a+u,o-s,a+i,o-c,a+i,o].join(",")+"z"):"line"===k?n="M"+S.x1+","+S.y1+" L"+S.x2+","+S.y2:("polyline"===k||"polygon"===k)&&(n="M"+(a=(d=(e.getAttribute("points")+"").match(PL)||[]).shift())+","+(o=d.shift())+" L"+d.join(","),"polygon"===k&&(n+=","+a+","+o+"z")),l.setAttribute("d",Au(l._gsRawPath=As(n))),r&&e.parentNode&&(e.parentNode.insertBefore(l,e),e.parentNode.removeChild(e)),l):e})},convertCoordinates:function(e,t,r){var n=AM(t,!0,!0).multiply(AM(e));return r?n.apply(r):n},getAlignMatrix:AZ,getRelativePosition:function(e,t,r,n){var a=AZ(e,t,r,n);return{x:a.e,y:a.f}},arrayToRawPath:function(e,t){var r=A$(A$([],e,(t=t||{}).x||"x",0),e,t.y||"y",1);return t.relative&&AK(r),["cubic"===t.type?r:Al(r,t.curviness)]}};(AI||"u">typeof window&&(AI=window.gsap)&&AI.registerPlugin&&AI)&&AI.registerPlugin(A0);let A1="BmtgkZgEaC8g-ZmaExrxmg==",A2="SZBHUVTi1OdMa9FJsKKrRg==",A3="XIbh11NxmkvKZ3BNSMMXew==";function A4(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A5(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function A6(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}On.registerPlugin(A0);var A8=function(e){var t,r=e.url,n=e.title,a=e.open,o=e.inPlace,i=e.id,s=e.onInPlace,l=e.total,u=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!0))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return A4(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return A4(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],f=(0,g.useRef)(null),p={transformOrigin:"center center"},m=function(){return{cx:200-(24*l-10)/2+24*i,cy:370,r:7}},h=function(){return{cx:200,cy:200,r:49}};return(0,g.useEffect)(function(){if(d(!1),f.current){var e=.4*!c,t=.2*!c,r=c?0:e+t;a?On.timeline().set(f.current,A5({},p,m())).to(f.current,A6(A5({},p,h()),{duration:t,ease:"power3.inOut"})).to(f.current,A6(A5({},p,{cx:-4700,cy:200,r:4900}),{duration:e,ease:"power4.in",onComplete:function(){return s(i)}})):On.timeline({overwrite:!0}).set(f.current,A5({},p,{cx:5100,cy:200,r:4900})).to(f.current,A6(A5({},p,h()),{delay:r,duration:e,ease:"power4.out"})).to(f.current,A6(A5({},p),{motionPath:{path:[{cx:200-(24*l-10)/2+24*i,cy:200,r:14},m()],curviness:1},duration:c?.01:1,ease:"bounce.out"}))}},[a]),(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 ".concat(400," ").concat(400),preserveAspectRatio:"xMidYMid slice",className:A1,children:[(0,v.jsxs)("defs",{children:[(0,v.jsx)("clipPath",{id:"".concat(i,"_circleClip"),children:(0,v.jsx)("circle",{cx:0,cy:0,r:7,ref:f})}),(0,v.jsx)("clipPath",{id:"".concat(i,"_squareClip"),children:(0,v.jsx)("rect",{width:400,height:400})})]}),(0,v.jsx)("g",{clipPath:"url(#".concat(i).concat(o?"_squareClip":"_circleClip",")"),children:(0,v.jsx)("image",{width:400,height:400,href:r,className:A2,children:(0,v.jsx)("title",{children:n})})})]})},A9=function(e){var t=e.images,r=e.onSelect,n=function(e){return 200-(24*t.length-10)/2+24*e},a=function(){return 370};return(0,v.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 ".concat(400," ").concat(400),preserveAspectRatio:"xMidYMid slice",className:A1,children:t.map(function(e,t){return(0,v.jsxs)("g",{className:"YLzG837WOFupR4o+Ib5MuQ==",children:[(0,v.jsx)("defs",{children:(0,v.jsx)("clipPath",{id:"tab_".concat(t,"_clip"),children:(0,v.jsx)("circle",{cx:n(t),cy:a(),r:7})})}),(0,v.jsx)("image",{x:n(t)-7,y:a()-7,width:14,height:14,href:e.url,clipPath:"url(#tab_".concat(t,"_clip)"),className:A2,preserveAspectRatio:"xMidYMid slice"}),(0,v.jsx)("circle",{onClick:function(){return r(t)},className:"rmr0X-o5feXHGYrEpgQDvw==",strokeWidth:2,cx:n(t),cy:a(),r:9,children:(0,v.jsx)("title",{children:e.title})})]},e.url)})})};function A7(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function De(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A7(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A7(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Dt=function(e){var t=e.images,r=e.autoplay,n=void 0===r||r,a=e.autoplayInterval,o=void 0===a?4500:a,i=e.className,s=e.style,l=De((0,g.useState)(0),2),u=l[0],c=l[1],d=De((0,g.useState)(0),2),f=d[0],p=d[1],m=De((0,g.useState)(!1),2),h=m[0],y=m[1],b=(0,g.useRef)(null),x=function(e){return p(e)},w=(0,g.useCallback)(function(){c(function(e){var r=e+1;return r>=t.length&&(r=0),r})},[t.length]),j=(0,g.useCallback)(function(){c(function(e){var r=e-1;return r<0&&(r=t.length-1),r})},[t.length]);return(0,g.useEffect)(function(){return y(!0)},[u]),(0,g.useEffect)(function(){return y(!1)},[f]),(0,g.useEffect)(function(){if(n)return b.current&&clearInterval(b.current),b.current=window.setInterval(w,o),function(){b.current&&clearInterval(b.current)}},[u,n,o,w]),(0,v.jsxs)("div",{className:S()("U-tXxoLDDyr5OI9DOeLkzg==",i),style:s,children:[(0,v.jsxs)("div",{className:"ExNnhb4iBLd2PJd4vdjc4w==",children:[t.map(function(e,r){return(0,v.jsx)("div",{className:"zDs53KpFEsOlgcDu6xCjgw==",style:{zIndex:f===r?r:t.length+1},children:(0,v.jsx)(A8,{total:t.length,id:r,url:e.url,title:e.title,open:u===r,inPlace:f===r,onInPlace:x})},e.url)}),(0,v.jsx)("div",{className:"_5Hv7dRjmf3CkVFgfdeV0HQ==",children:(0,v.jsx)(A9,{images:t,onSelect:function(e){h||c(e)}})})]}),(0,v.jsx)("button",{type:"button",className:S()(A3,"PAulbSkkA9jxQi1R6BQ75A=="),onClick:j,disabled:h,"aria-label":"Image pr\xe9c\xe9dente",children:(0,v.jsx)(ix,{size:28})}),(0,v.jsx)("button",{type:"button",className:S()(A3,"aIKGaIx0zEpUN2opqQJjfg=="),onClick:w,disabled:h,"aria-label":"Image suivante",children:(0,v.jsx)(iw,{size:28})})]})};function Dr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dn(e){var t=e.handleShuffle,r=e.testimonial,n=e.position,a=e.id,o=e.author,i=e.avatarUrl,s=e.cardWidth,l=e.cardHeight,u=e.className,c=e.style,d=(0,g.useRef)(0),f="front"===n;return(0,v.jsxs)(mz.div,{style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Dr(e,t,r[t])})}return e}({zIndex:"front"===n?2:+("middle"===n),width:void 0===s?350:s,height:void 0===l?450:l},c),animate:{rotate:"front"===n?"-6deg":"middle"===n?"0deg":"6deg",x:"front"===n?"0%":"middle"===n?"33%":"66%"},drag:!0,dragElastic:.35,dragListener:f,dragConstraints:{top:0,left:0,right:0,bottom:0},onDragStart:function(e){d.current=e.clientX},onDragEnd:function(e){var r=e.clientX;d.current-r>150&&t(),d.current=0},transition:{duration:.35},className:S()("MY7YZNf47I5RSHhV26w6Ag==",Dr({},"_2Eid4z+wvtEzluRmyU9KfQ==",f),u),children:[(0,v.jsx)("img",{src:null!=i?i:"https://i.pravatar.cc/128?img=".concat(a),alt:"Avatar of ".concat(o),className:"N7o2pWg-TdybJuikJXI0AQ==",draggable:!1}),(0,v.jsxs)("span",{className:"-+76DfLbDI0klJgz4+oBig==",children:['"',r,'"']}),(0,v.jsx)("span",{className:"h8hsmFiRL4Cc37zAjzK3jQ==",children:o})]})}function Da(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Do(e){if(Array.isArray(e))return e}function Di(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ds(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Dl(e,t){if(e){if("string"==typeof e)return Da(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Da(e,t)}}function Du(e){var t,r=e.testimonials,n=e.cardWidth,a=void 0===n?350:n,o=e.cardHeight,i=void 0===o?450:o,s=e.className,l=e.style,u=e.onShuffle,c=Do(t=(0,g.useState)(function(){return r.map(function(e,t){return t})}))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||Dl(t,2)||Ds(),d=c[0],f=c[1];(0,g.useEffect)(function(){f(r.map(function(e,t){return t}))},[r]);var p=(0,g.useCallback)(function(){f(function(e){if(0===e.length)return e;var t,n=Do(e)||Di(e)||Dl(e)||Ds(),a=n[0],o=n.slice(1);return null==u||u(null==(t=r[a])?void 0:t.id),((function(e){if(Array.isArray(e))return Da(e)})(o)||Di(o)||Dl(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([a])})},[u,r]);return(0,v.jsx)("div",{className:S()("FsSes4zAoxSyWmsIs2kmJQ==",s),style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({width:a,height:i},l),children:d.map(function(e,t){var n=r[e];return n?(0,v.jsx)(Dn,{id:n.id,testimonial:n.testimonial,author:n.author,avatarUrl:n.avatarUrl,position:0===t?"front":1===t?"middle":"back",handleShuffle:p,cardWidth:a,cardHeight:i},n.id):null})})}var Dc=(0,g.createContext)(null),Dd=function(){var e=(0,g.useContext)(Dc);if(!e)throw Error("Carousel compound components must be used within <Carousel>");return e};function Df(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function Dp(e,t){var r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(function(r){var n=e[r],a=t[r];return"function"==typeof n?"".concat(n)==="".concat(a):Df(n)&&Df(a)?Dp(n,a):n===a})}function Dm(e){return e.concat().sort(function(e,t){return e.name>t.name?1:-1}).map(function(e){return e.options})}function Dh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Dy(e){return"number"==typeof e}function Dv(e){return"string"==typeof e}function Dg(e){return"boolean"==typeof e}function Db(e){return"[object Object]"===Object.prototype.toString.call(e)}function Dx(e){return Math.abs(e)}function Dw(e){return Math.sign(e)}function Dj(e){return DE(e).map(Number)}function DO(e){return e[DS(e)]}function DS(e){return Math.max(0,e.length-1)}function Dk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.from(Array(e),function(e,r){return t+r})}function DE(e){return Object.keys(e)}function DP(e,t){var r;return void 0!==t.MouseEvent&&(null!=(r=t.MouseEvent)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r)}function DA(){var e=[],t={add:function(r,n,a){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return"addEventListener"in r?(r.addEventListener(n,a,i),o=function(){return r.removeEventListener(n,a,i)}):(r.addListener(a),o=function(){return r.removeListener(a)}),e.push(o),t},clear:function(){e=e.filter(function(e){return e()})}};return t}function DD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=Dx(e-t);function n(r){return r<e||r>t}return{length:r,max:t,min:e,constrain:function(r){return n(r)?r<e?e:t:r},reachedAny:n,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return r?e-r*Math.ceil((e-t)/r):e}}}function DC(e){var t=e;function r(e){return Dy(e)?e:e.get()}return{get:function(){return t},set:function(e){t=r(e)},add:function(e){t+=r(e)},subtract:function(e){t-=r(e)}}}function DT(e,t){var r="x"===e.scroll?function(e){return"translate3d(".concat(e,"px,0px,0px)")}:function(e){return"translate3d(0px,".concat(e,"px,0px)")},n=t.style,a=null,o=!1;return{clear:function(){!o&&(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(!o){var i=Math.round(100*e.direction(t))/100;i!==a&&(n.transform=r(i),a=i)}},toggleActive:function(e){o=!e}}}var DN={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function DR(e,t,r){var n,a,o,i,s,l,u,c,d=e.ownerDocument,f=d.defaultView,p=function(e){function t(e,t){return function e(t,r){return[t,r].reduce(function(t,r){return DE(r).forEach(function(n){var a=t[n],o=r[n],i=Db(a)&&Db(o);t[n]=i?e(a,o):o}),t},{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(r){var n=r.breakpoints||{},a=DE(n).filter(function(t){return e.matchMedia(t).matches}).map(function(e){return n[e]}).reduce(function(e,r){return t(e,r)},{});return t(r,a)},optionsMediaQueries:function(t){return t.map(function(e){return DE(e.breakpoints||{})}).reduce(function(e,t){return e.concat(t)},[]).map(e.matchMedia)}}}(f),m=(i=[],{init:function(e,t){return(i=t.filter(function(e){var t=e.options;return!1!==p.optionsAtMedia(t).active})).forEach(function(t){return t.init(e,p)}),t.reduce(function(e,t){var r,n;return Object.assign(e,(r={},n=t.name,n in r?Object.defineProperty(r,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[n]=t,r))},{})},destroy:function(){i=i.filter(function(e){return e.destroy()})}}),h=DA(),y=(a={},o={init:function(e){n=e},emit:function(e){return(a[e]||[]).forEach(function(t){return t(n,e)}),o},off:function(e,t){return a[e]=(a[e]||[]).filter(function(e){return e!==t}),o},on:function(e,t){return a[e]=(a[e]||[]).concat([t]),o},clear:function(){a={}}}),v=p.mergeOptions,g=p.optionsAtMedia,b=p.optionsMediaQueries,x=y.on,w=y.off,j=y.emit,O=!1,S=v(DN,DR.globalOptions),k=v(S),E=[];function P(t,r){var n,a,o,i;!O&&(k=g(S=v(S,t)),E=r||E,n=k.container,a=k.slides,u=(Dv(n)?e.querySelector(n):n)||e.children[0],o=Dv(a)?u.querySelectorAll(a):a,c=[].slice.call(o||u.children),s=function t(r){var n=function(e,t,r,n,a,o,i){var s,l,u,c,d,f,p,m,h,y,v,g,b,x,w,j,O,S,k,E,P,A,D,C,T,N,R,M,I,L,F,B,V,z,W,U,$,H,K,G,q,Y,X,Z,Q=o.align,J=o.axis,ee=o.direction,et=o.startIndex,er=o.loop,en=o.duration,ea=o.dragFree,eo=o.dragThreshold,ei=o.inViewThreshold,es=o.slidesToScroll,el=o.skipSnaps,eu=o.containScroll,ec=o.watchResize,ed=o.watchSlides,ef=o.watchDrag,ep=o.watchFocus,em={measure:function(e){var t=e.offsetTop,r=e.offsetLeft,n=e.offsetWidth,a=e.offsetHeight;return{top:t,right:r+n,bottom:t+a,left:r,width:n,height:a}}},eh=em.measure(t),ey=r.map(em.measure),ev=(d="rtl"===ee,p=(f="y"===J)||!d?1:-1,m=f?"top":d?"right":"left",h=f?"bottom":d?"left":"right",{scroll:f?"y":"x",cross:f?"x":"y",startEdge:m,endEdge:h,measureSize:function(e){var t=e.height,r=e.width;return f?t:r},direction:function(e){return e*p}}),eg=ev.measureSize(eh),eb={measure:function(e){return e/100*eg}},ex=(s=Q,l=eg,u={start:function(){return 0},center:function(e){return(l-e)/2},end:function(e){return l-e}},{measure:function(e,t){return Dv(s)?u[s](e):s(l,e,t)}}),ew=!er&&!!eu,ej=er||!!eu,eO=(y=ev.measureSize,v=ev.startEdge,g=ev.endEdge,b=ey[0]&&ej,x=function(){if(!b)return 0;var e=ey[0];return Dx(eh[v]-e[v])}(),w=b?parseFloat(a.getComputedStyle(DO(r)).getPropertyValue("margin-".concat(g))):0,j=ey.map(y),O=ey.map(function(e,t,r){var n=t===DS(r);return t?n?j[t]+w:r[t+1][v]-e[v]:j[t]+x}).map(Dx),{slideSizes:j,slideSizesWithGaps:O,startGap:x,endGap:w}),eS=eO.slideSizes,ek=eO.slideSizesWithGaps,eE=eO.startGap,eP=eO.endGap,eA=(S=ev.startEdge,k=ev.endEdge,E=ev.direction,P=Dy(es),{groupSlides:function(e){return P?Dj(e).filter(function(e){return e%es==0}).map(function(t){return e.slice(t,t+es)}):e.length?Dj(e).reduce(function(t,r,n){var a=DO(t)||0,o=r===DS(e),i=eh[S]-ey[a][S],s=eh[S]-ey[r][k],l=er||0!==a?0:E(eE),u=Dx(s-(!er&&o?E(eP):0)-(i+l));return n&&u>eg+2&&t.push(r),o&&t.push(e.length),t},[]).map(function(t,r,n){var a=Math.max(n[r-1]||0);return e.slice(a,t)}):[]}}),eD=(A=ev.startEdge,D=ev.endEdge,T=(C=eA.groupSlides)(ey).map(function(e){return DO(e)[D]-e[0][A]}).map(Dx).map(ex.measure),R=C(N=ey.map(function(e){return eh[A]-e[A]}).map(function(e){return-Dx(e)})).map(function(e){return e[0]}).map(function(e,t){return e+T[t]}),{snaps:N,snapsAligned:R}),eC=eD.snaps,eT=eD.snapsAligned,eN=-DO(eC)+DO(ek),eR=function(e,t,r,n){var a,o,i=DD(-t+e,0),s=r.map(function(e,t){var n=i.min,a=i.max,o=i.constrain(e),s=t===DS(r);return t?s||function(e,t){return 1>=Dx(e-t)}(n,o)?n:function(e,t){return 1>=Dx(e-t)}(a,o)?a:o:a}).map(function(e){return parseFloat(e.toFixed(3))}),l=(a=s[0],o=DO(s),DD(s.lastIndexOf(a),s.indexOf(o)+1));return{snapsContained:function(){if(t<=e+2)return[i.max];if("keepSnaps"===n)return s;var r=l.min,a=l.max;return s.slice(r,a)}(),scrollContainLimit:l}}(eg,eN,eT,eu),eM=eR.snapsContained,eI=eR.scrollContainLimit,e_=ew?eM:eT,eL=(M=e_[0],{limit:DD(er?M-eN:DO(e_),M)}).limit,eF=function e(t,r,n){var a=DD(0,t).constrain,o=t+1,i=s(r);function s(e){return n?Dx((o+e)%o):a(e)}function l(){return e(t,i,n)}var u={get:function(){return i},set:function(e){return i=s(e),u},add:function(e){return l().set(i+e)},clone:l};return u}(DS(e_),et,er),eB=eF.clone(),eV=Dj(r),ez=function(e){var t=e.dragHandler,r=e.scrollBody,n=e.scrollBounds;e.options.loop||n.constrain(t.pointerDown()),r.seek()},eW=function(e,t){var r=e.scrollBody,n=e.translate,a=e.location,o=e.offsetLocation,i=e.previousLocation,s=e.scrollLooper,l=e.slideLooper,u=e.dragHandler,c=e.animation,d=e.eventHandler,f=e.scrollBounds,p=e.options.loop,m=r.settled(),h=!f.shouldConstrain(),y=p?m:m&&h,v=y&&!u.pointerDown();v&&c.stop();var g=a.get()*t+i.get()*(1-t);o.set(g),p&&(s.loop(r.direction()),l.loop()),n.to(o.get()),v&&d.emit("settle"),y||d.emit("scroll")},eU=function(e,t,r,n){var a=DA(),o=1e3/60,i=null,s=0,l=0;function u(e){if(l){i||(i=e,r(),r());var a=e-i;for(i=e,s+=a;s>=o;)r(),s-=o;n(s/o),l&&(l=t.requestAnimationFrame(u))}}function c(){t.cancelAnimationFrame(l),i=null,s=0,l=0}return{init:function(){a.add(e,"visibilitychange",function(){e.hidden&&(i=null,s=0)})},destroy:function(){c(),a.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:r,render:n}}(n,a,function(){return ez(e3)},function(e){return eW(e3,e)}),e$=e_[eF.get()],eH=DC(e$),eK=DC(e$),eG=DC(e$),eq=DC(e$),eY=function(e,t,r,n,a){var o=0,i=0,s=a,l=.68,u=e.get(),c=0;function d(e){return s=e,p}function f(e){return l=e,p}var p={direction:function(){return i},duration:function(){return s},velocity:function(){return o},seek:function(){var t=n.get()-e.get(),a=0;return s?(r.set(e),o+=t/s,o*=l,u+=o,e.add(o),a=u-c):(o=0,r.set(n),e.set(n),a=t),i=Dw(a),c=u,p},settled:function(){return .001>Dx(n.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return d(a)},useFriction:f,useDuration:d};return p}(eH,eG,eK,eq,en),eX=function(e,t,r,n,a){var o=n.reachedAny,i=n.removeOffset,s=n.constrain;function l(e){return e.concat().sort(function(e,t){return Dx(e)-Dx(t)})[0]}function u(t,n){var a=[t,t+r,t-r];if(!e)return t;if(!n)return l(a);var o=a.filter(function(e){return Dw(e)===n});return o.length?l(o):DO(a)-r}return{byDistance:function(r,n){var l,c=a.get()+r,d=(l=e?i(c):s(c),{index:t.map(function(e,t){return{diff:u(e-l,0),index:t}}).sort(function(e,t){return Dx(e.diff)-Dx(t.diff)})[0].index,distance:l}),f=d.index,p=d.distance,m=!e&&o(c);if(!n||m)return{index:f,distance:r};var h=r+u(t[f]-p,0);return{index:f,distance:h}},byIndex:function(e,r){var n=u(t[e]-a.get(),r);return{index:e,distance:n}},shortcut:u}}(er,e_,eN,eL,eq),eZ=function(e,t,r,n,a,o,i){function s(a){var s=a.distance,l=a.index!==t.get();o.add(s),s&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(r.set(t.get()),t.set(a.index),i.emit("select"))}return{distance:function(e,t){s(a.byDistance(e,t))},index:function(e,r){var n=t.clone().set(e);s(a.byIndex(n.get(),r))}}}(eU,eF,eB,eY,eX,eq,i),eQ=(I=eL.max,L=eL.length,{get:function(e){return L?-((e-I)/L):0}}),eJ=DA(),e0=(B={},V=null,z=null,W=!1,{init:function(){F=new IntersectionObserver(function(e){W||(e.forEach(function(e){B[r.indexOf(e.target)]=e}),V=null,z=null,i.emit("slidesInView"))},{root:t.parentElement,threshold:ei}),r.forEach(function(e){return F.observe(e)})},destroy:function(){F&&F.disconnect(),W=!0},get:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(e&&V)return V;if(!e&&z)return z;var t=DE(B).reduce(function(t,r){var n=parseInt(r),a=B[n].isIntersecting;return(e&&a||!e&&!a)&&t.push(n),t},[]);return e&&(V=t),e||(z=t),t}}),e1=(U=eA.groupSlides,$=eI.min,H=eI.max,{slideRegistry:(c=U(eV),1===e_.length?[eV]:ew&&"keepSnaps"!==eu?c.slice($,H).map(function(e,t,r){var n=t===DS(r);return t?n?Dk(DS(eV)-DO(r)[0]+1,DO(r)[0]):e:Dk(DO(r[0])+1)}):c)}).slideRegistry,e2=function(e,t,r,n,a,o,i,s){var l={passive:!0,capture:!0},u=0;function c(e){"Tab"===e.code&&(u=new Date().getTime())}return{init:function(d){s&&(o.add(document,"keydown",c,!1),t.forEach(function(t,c){o.add(t,"focus",function(t){(Dg(s)||s(d,t))&&function(t){if(!(new Date().getTime()-u>10)){i.emit("slideFocusStart"),e.scrollLeft=0;var o=r.findIndex(function(e){return e.includes(t)});Dy(o)&&(a.useDuration(0),n.index(o,0),i.emit("slideFocus"))}}(c)},l)}))}}}(e,r,e1,eZ,eY,eJ,i,ep),e3={ownerDocument:n,ownerWindow:a,eventHandler:i,containerRect:eh,slideRects:ey,animation:eU,axis:ev,dragHandler:function(e,t,r,n,a,o,i,s,l,u,c,d,f,p,m,h,y,v){var g=e.cross,b=e.direction,x=["INPUT","SELECT","TEXTAREA"],w={passive:!1},j=DA(),O=DA(),S=DD(50,225).constrain(p.measure(20)),k={mouse:300,touch:400},E={mouse:500,touch:600},P=m?43:25,A=!1,D=0,C=0,T=!1,N=!1,R=!1,M=!1;function I(e){if(!DP(e,n)&&e.touches.length>=2)return L(e);var t=o.readPoint(e),r=o.readPoint(e,g),i=Dx(t-D),l=Dx(r-C);if(!N&&!M&&(!e.cancelable||!(N=i>l)))return L(e);var c=o.pointerMove(e);i>h&&(R=!0),u.useFriction(.3).useDuration(.75),s.start(),a.add(b(c)),e.preventDefault()}function L(e){var t,r,n,a=c.byDistance(0,!1).index!==d.get(),i=o.pointerUp(e)*(m?E:k)[M?"mouse":"touch"],s=(t=b(i),r=d.add(-1*Dw(t)),n=c.byDistance(t,!m).distance,m||Dx(t)<S?n:y&&a?.5*n:c.byIndex(r.get(),0).distance),p=function(e,t){if(0===e||0===t||Dx(e)<=Dx(t))return 0;var r,n,a=(r=Dx(e),n=Dx(t),Dx(r-n));return Dx(a/e)}(i,s);N=!1,T=!1,O.clear(),u.useDuration(P-10*p).useFriction(.68+p/50),l.distance(s,!m),M=!1,f.emit("pointerUp")}function F(e){R&&(e.stopPropagation(),e.preventDefault(),R=!1)}return{init:function(e){v&&j.add(t,"dragstart",function(e){return e.preventDefault()},w).add(t,"touchmove",function(){},w).add(t,"touchend",function(){}).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",L).add(t,"contextmenu",L).add(t,"click",F,!0);function s(s){var l,c,d,p;(Dg(v)||v(e,s))&&(M=p=DP(l=s,n),R=m&&p&&!l.buttons&&A,A=Dx(a.get()-i.get())>=2,(!p||0===l.button)&&(c=l.target.nodeName||"",x.includes(c)||(T=!0,o.pointerDown(l),u.useFriction(0).useDuration(0),a.set(i),d=M?r:t,O.add(d,"touchmove",I,w).add(d,"touchend",L).add(d,"mousemove",I,w).add(d,"mouseup",L),D=o.readPoint(l),C=o.readPoint(l,g),f.emit("pointerDown"))))}},destroy:function(){j.clear(),O.clear()},pointerDown:function(){return T}}}(ev,e,n,a,eq,function(e,t){var r,n;function a(e){return e.timeStamp}function o(r,n){var a=n||e.scroll;return(DP(r,t)?r:r.touches[0])["client".concat("x"===a?"X":"Y")]}return{pointerDown:function(e){return r=e,n=e,o(e)},pointerMove:function(e){var t=o(e)-o(n),i=a(e)-a(r)>170;return n=e,i&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;var t=o(n)-o(r),i=a(e)-a(r),s=a(e)-a(n)>170,l=t/i;return i&&!s&&Dx(l)>.1?l:0},readPoint:o}}(ev,a),eH,eU,eZ,eY,eX,eF,i,eb,ea,eo,el,ef),eventStore:eJ,percentOfView:eb,index:eF,indexPrevious:eB,limit:eL,location:eH,offsetLocation:eG,previousLocation:eK,options:o,resizeHandler:function(e,t,r,n,a,o,i){var s,l,u=[e].concat(n),c=[],d=!1;function f(e){return a.measureSize(i.measure(e))}return{init:function(a){o&&(l=f(e),c=n.map(f),s=new ResizeObserver(function(r){(Dg(o)||o(a,r))&&function(r){var o=!0,i=!1,s=void 0;try{for(var u,p=r[Symbol.iterator]();!(o=(u=p.next()).done);o=!0){var m=u.value;if(d)return;var h=m.target===e,y=n.indexOf(m.target),v=h?l:c[y],g=f(h?e:n[y]);if(Dx(g-v)>=.5){a.reInit(),t.emit("resize");break}}}catch(e){i=!0,s=e}finally{try{o||null==p.return||p.return()}finally{if(i)throw s}}}(r)}),r.requestAnimationFrame(function(){u.forEach(function(e){return s.observe(e)})}))},destroy:function(){d=!0,s&&s.disconnect()}}}(t,i,a,r,ev,ec,em),scrollBody:eY,scrollBounds:function(e,t,r,n,a){var o=a.measure(10),i=a.measure(50),s=DD(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(r.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(a){if(u()){var l=e.reachedMin(t.get())?"min":"max",c=Dx(e[l]-t.get()),d=r.get()-t.get(),f=s.constrain(c/i);r.subtract(d*f),!a&&Dx(d)<o&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())}},toggleActive:function(e){l=!e}}}(eL,eG,eq,eY,eb),scrollLooper:(K=[eH,eG,eK,eq],q=(G=DD(eL.min+.1,eL.max+.1)).reachedMin,Y=G.reachedMax,{loop:function(e){if(1===e?Y(eG.get()):-1===e&&q(eG.get())){var t=-1*e*eN;K.forEach(function(e){return e.add(t)})}}}),scrollProgress:eQ,scrollSnapList:e_.map(eQ.get),scrollSnaps:e_,scrollTarget:eX,scrollTo:eZ,slideLooper:function(e,t,r,n,a,o,i,s,l){var u=Dj(a),c=Dj(a).reverse(),d=m(p(c,i[0]),r,!1).concat(m(p(u,t-i[0]-1),-r,!0));function f(e,t){return e.reduce(function(e,t){return e-a[t]},t)}function p(e,t){return e.reduce(function(e,r){return f(e,t)>0?e.concat([r]):e},[])}function m(a,i,u){var c=o.map(function(e,r){return{start:e-n[r]+.5+i,end:e+t-.5+i}});return a.map(function(t){var n=u?0:-r,a=u?r:0,o=c[t][u?"end":"start"];return{index:t,loopPoint:o,slideLocation:DC(-1),translate:DT(e,l[t]),target:function(){return s.get()>o?n:a}}})}return{canLoop:function(){return d.every(function(e){var r=e.index;return .1>=f(u.filter(function(e){return e!==r}),t)})},clear:function(){d.forEach(function(e){return e.translate.clear()})},loop:function(){d.forEach(function(e){var t=e.target,r=e.translate,n=e.slideLocation,a=t();a!==n.get()&&(r.to(a),n.set(a))})},loopPoints:d}}(ev,eg,eN,eS,ek,eC,e_,eG,r),slideFocus:e2,slidesHandler:(Z=!1,{init:function(e){ed&&(X=new MutationObserver(function(t){!Z&&(Dg(ed)||ed(e,t))&&function(t){var r=!0,n=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var l=o.value;if("childList"===l.type){e.reInit(),i.emit("slidesChanged");break}}}catch(e){n=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw a}}}(t)})).observe(t,{childList:!0})},destroy:function(){X&&X.disconnect(),Z=!0}}),slidesInView:e0,slideIndexes:eV,slideRegistry:e1,slidesToScroll:eA,target:eq,translate:DT(ev,t)};return e3}(e,u,c,d,f,r,y);return r.loop&&!n.slideLooper.canLoop()?t(Object.assign({},r,{loop:!1})):n}(k),b([S].concat(function(e){if(Array.isArray(e))return Dh(e)}(i=E.map(function(e){return e.options}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e){if(e){if("string"==typeof e)return Dh(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Dh(e,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).forEach(function(e){return h.add(e,"change",A)}),k.active&&(s.translate.to(s.location.get()),s.animation.init(),s.slidesInView.init(),s.slideFocus.init(N),s.eventHandler.init(N),s.resizeHandler.init(N),s.slidesHandler.init(N),s.options.loop&&s.slideLooper.loop(),u.offsetParent&&c.length&&s.dragHandler.init(N),l=m.init(N,E)))}function A(e,t){var r=T();D(),P(v({startIndex:r},e),t),y.emit("reInit")}function D(){s.dragHandler.destroy(),s.eventStore.clear(),s.translate.clear(),s.slideLooper.clear(),s.resizeHandler.destroy(),s.slidesHandler.destroy(),s.slidesInView.destroy(),s.animation.destroy(),m.destroy(),h.clear()}function C(e,t,r){k.active&&!O&&(s.scrollBody.useBaseFriction().useDuration(!0===t?0:k.duration),s.scrollTo.index(e,r||0))}function T(){return s.index.get()}var N={canScrollNext:function(){return s.index.add(1).get()!==T()},canScrollPrev:function(){return s.index.add(-1).get()!==T()},containerNode:function(){return u},internalEngine:function(){return s},destroy:function(){O||(O=!0,h.clear(),D(),y.emit("destroy"),y.clear())},off:w,on:x,emit:j,plugins:function(){return l},previousScrollSnap:function(){return s.indexPrevious.get()},reInit:A,rootNode:function(){return e},scrollNext:function(e){C(s.index.add(1).get(),e,-1)},scrollPrev:function(e){C(s.index.add(-1).get(),e,1)},scrollProgress:function(){return s.scrollProgress.get(s.offsetLocation.get())},scrollSnapList:function(){return s.scrollSnapList},scrollTo:C,selectedScrollSnap:T,slideNodes:function(){return c},slidesInView:function(){return s.slidesInView.get()},slidesNotInView:function(){return s.slidesInView.get(!1)}};return P(t,r),setTimeout(function(){return y.emit("init")},0),N}function DM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function DI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return DM(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DM(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D_(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(0,g.useRef)(e),n=(0,g.useRef)(t),a=DI((0,g.useState)(),2),o=a[0],i=a[1],s=DI((0,g.useState)(),2),l=s[0],u=s[1],c=(0,g.useCallback)(function(){o&&o.reInit(r.current,n.current)},[o]);return(0,g.useEffect)(function(){Dp(r.current,e)||(r.current=e,c())},[e,c]),(0,g.useEffect)(function(){!function(e,t){if(e.length!==t.length)return!1;var r=Dm(e),n=Dm(t);return r.every(function(e,t){return Dp(e,n[t])})}(n.current,t)&&(n.current=t,c())},[t,c]),(0,g.useEffect)(function(){if("u">typeof window&&window.document&&window.document.createElement&&l){DR.globalOptions=D_.globalOptions;var e=DR(l,r.current,n.current);return i(e),function(){return e.destroy()}}i(void 0)},[l,i]),[u,o]}DR.globalOptions=void 0,D_.globalOptions=void 0;let DL={root:"U5e-lVeOV3aIYgNBY3CvXA==",viewport:"hbkmtr9NY5nS0b6sekJBqg==","viewport--x":"_8JvxYg-UqoVn3brqjKyvFQ==","viewport--y":"P5LNM+fGTcgmqv-M4-1hRw==",container:"Q0dxJjntBDyAdjQVlkdqrg==","container--x":"TGKn-LXAgM3-0Licuc8L4A==","container--y":"A7zaK7w9OGucgZen2RLdWg==",slide:"UWf6nD6UXLs3JqN72IP+mQ==","slide--x":"fFHnS24UCF9k8JOqfNCsqA==","slide--y":"bHvcZzVuc3QI8dfb+oh97g==",thumbsViewport:"koJHE5dWVzTOIKbYQy2q7w==",thumbsContainer:"p8w-6uNOJVMKH+Ur8uJ4tg==","thumbsContainer--x":"Au0B9jnCnsAkOZfuWEvK1A==","thumbsContainer--y":"G6B3FuzXWoGnha6EVtyPEA==",thumb:"VfsjLHXaM0hbukRdL-v3kg==","thumb--active":"fLfMTaEbv8cMyS0-ZVobiA==",thumbImage:"AL26JFHTg0-E-BXdkLhdjA==",dots:"+CDjHobF2k1kpYO7CpiPKw==",dot:"d7ri6n1PqgEw0cvheR6P-g==","dot--active":"rekho7j513oArbBYPNsHCw=="};function DF(e){var t=e.children,r=e.className,n=Dd(),a=n.axis,o=n.mainViewportRef;return(0,v.jsx)("div",{ref:o,className:S()(DL.viewport,DL["viewport--".concat(a)],r),children:(0,v.jsx)("div",{className:S()(DL.container,DL["container--".concat(a)]),children:t})})}function DB(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function DV(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return DB(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DB(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dz(e){var t,r,n,a=e.children,o=e.options,i=e.plugins,s=e.dir,l=void 0===s?"ltr":s,u=e.className,c=e.style,d=null!=(n=null==o?void 0:o.axis)?n:"x",f=DV(D_((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},o),r=r={direction:l},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t),i),2),p=f[0],m=f[1],h=DV(D_({axis:d,direction:l,containScroll:"keepSnaps",dragFree:!0}),2),y=h[0],x=h[1],w=DV((0,g.useState)(0),2),j=w[0],O=w[1],k=(0,g.useMemo)(function(){return function(e){var t=b().Children.toArray(e),r=!0,n=!1,a=void 0;try{for(var o,i=t[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var s=o.value;if(b().isValidElement(s)&&s.type===DF){var l=s.props;return b().Children.toArray(l.children).filter(b().isValidElement).map(function(e){return e.props.thumbnailSrc})}}}catch(e){n=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw a}}return[]}(a)},[a]),E=(0,g.useCallback)(function(e){null==m||m.scrollTo(e)},[m]),P=(0,g.useCallback)(function(){if(m){var e=m.selectedScrollSnap();O(e),null==x||x.scrollTo(e)}},[m,x]);return(0,g.useEffect)(function(){if(m)return P(),m.on("select",P).on("reInit",P),function(){m.off("select",P).off("reInit",P)}},[m,P]),(0,v.jsx)(Dc.Provider,{value:{axis:d,mainViewportRef:p,mainApi:m,thumbsViewportRef:y,thumbsApi:x,selectedIndex:j,scrollTo:E,thumbnails:k},children:(0,v.jsx)("div",{className:S()(DL.root,u),style:c,children:a})})}function DW(e){var t=e.children,r=e.className,n=Dd().axis;return(0,v.jsx)("div",{className:S()(DL.slide,DL["slide--".concat(n)],r),children:t})}function DU(e){var t=e.className,r=e.thumbsSliderClassName,n=Dd(),a=n.axis,o=n.thumbsViewportRef,i=n.thumbnails,s=n.selectedIndex,l=n.scrollTo;return 0===i.length?null:(0,v.jsx)("div",{ref:o,className:S()(DL.thumbsViewport,t),children:(0,v.jsx)("div",{className:S()(DL.thumbsContainer,DL["thumbsContainer--".concat(a)]),children:i.map(function(e,t){var n,a,o=t===s;return(0,v.jsx)("button",{type:"button",onClick:function(){return l(t)},className:S()(DL.thumb,(n={},a=DL["thumb--active"],a in n?Object.defineProperty(n,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[a]=o,n),o&&r),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":o,children:e&&(0,v.jsx)("img",{src:e,alt:"",className:DL.thumbImage})},t)})})})}function D$(e){var t=e.className,r=e.dotClassName,n=Dd(),a=n.thumbnails,o=n.selectedIndex,i=n.scrollTo;return 0===a.length?null:(0,v.jsx)("div",{className:S()(DL.dots,t),children:a.map(function(e,t){var n,a,s;return(0,v.jsx)("button",{type:"button",onClick:function(){return i(t)},className:S()(DL.dot,(n={},a=DL["dot--active"],s=t===o,a in n?Object.defineProperty(n,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[a]=s,n),r),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":t===o},t)})})}function DH(e){var t=e.id,r=e.as,n=e.variant,a=void 0===n?"transparent":n,o=e.title,i=e.titleAs,s=e.description,l=e.actions,u=e.ariaLabel,c=e.bare,d=e.className,f=e.children,p=!!(o||s||l);return(0,v.jsxs)(void 0===r?"section":r,{id:t,"aria-label":u,className:["UmIprimi5rDlNw2L9yDmFQ==","panel"===a?"+B1ojNNxuYjq0VnPjP+Ekg==":"Ox7Wrjz8+j2BU7Di1Y8ELg==",void 0!==c&&c&&"panel"===a?"o-Q1RvbOEWlyFqMbRSrIoA==":"",null!=d?d:""].filter(Boolean).join(" "),children:[p&&(0,v.jsxs)("div",{className:"LrLQVHznKTKpP+sixgbcxw==",children:[(0,v.jsxs)("div",{className:"BvPyQkfXGhbXV5zz8kzPnQ==",children:[o&&(0,v.jsx)(void 0===i?"h2":i,{className:"_4RbpFTdRUk7YImbA17B5sA==",children:o}),s&&(0,v.jsx)("p",{className:"egOy0zRIXPnh18Es9FRT4Q==",children:s})]}),l&&(0,v.jsx)("div",{className:"Mx43sOmbyth8AWcB+68ebA==",children:l})]}),(0,v.jsx)("div",{className:"TGtAbo3aZ-O1gVq2zjgN5g==",children:f})]})}var DK={collapse:"Replier la section",expand:"D\xe9plier la section"},DG=(0,g.createContext)({tone:"onDark",density:"comfortable",classNames:{},labels:DK,headerLayout:"split",footerLayout:"between",divider:!0,footerDivider:!0,collapsible:!1,collapsed:!1,toggle:function(){}});function Dq(){return(0,g.useContext)(DG)}var DY={sm:{text:"h-7 px-2.5 text-xs",icon:"size-7"},md:{text:"h-8 px-3 text-[13px]",icon:"size-8"}};function DX(e){var t=e.children,r=e.icon,n=e.label,a=e.active,o=void 0!==a&&a,i=e.variant,s=void 0===i?"ghost":i,l=e.size,u=void 0===l?"md":l,c=e.href,d=e.target,f=e.rel,p=e.disabled,m=e.type,h=e.onClick,y=e.className,g=!t,b=(0,w.cn)("inline-flex shrink-0 cursor-pointer select-none items-center justify-center gap-1.5 whitespace-nowrap rounded-md","font-medium leading-none no-underline outline-none transition-colors duration-150","focus-visible:ring-2 focus-visible:ring-(--section-accent,#34d399)/70","aria-disabled:pointer-events-none aria-disabled:opacity-40 disabled:pointer-events-none disabled:opacity-40",g?(0,w.cn)(DY[u].icon,"p-0"):DY[u].text,"solid"===s?"border-0 bg-(--section-accent,#10b981) text-white hover:brightness-110":"outline"===s?(0,w.cn)("border border-solid border-(--section-line,rgba(255,255,255,0.12))",o?"bg-(--section-fg,#fff)/12 text-(--section-fg,#fff)":"bg-transparent text-(--section-muted,rgba(255,255,255,0.65)) hover:bg-(--section-fg,#fff)/8 hover:text-(--section-fg,#fff)"):(0,w.cn)("border-0",o?"bg-(--section-fg,#fff)/12 text-(--section-fg,#fff)":"bg-transparent text-(--section-muted,rgba(255,255,255,0.65)) hover:bg-(--section-fg,#fff)/8 hover:text-(--section-fg,#fff)"),y),x=(0,v.jsxs)(v.Fragment,{children:[r,t]});return c?(0,v.jsx)("a",{href:c,target:d,rel:null!=f?f:"_blank"===d?"noreferrer noopener":void 0,title:n,"aria-label":g?n:void 0,"aria-current":o||void 0,"aria-disabled":p||void 0,onClick:h,className:b,children:x}):(0,v.jsx)("button",{type:void 0===m?"button":m,title:n,"aria-label":g?n:void 0,"aria-pressed":o||void 0,disabled:p,onClick:h,className:b,children:x})}var DZ={none:"gap-0",xs:"gap-2",sm:"gap-3",md:"gap-5",lg:"gap-8",xl:"gap-10"},DQ={base:1,md:2,lg:3},DJ=["base","sm","md","lg","xl","2xl"];function D0(e){var t=e.as,r=e.columns,n=void 0===r?DQ:r,a=e.minItemWidth,o=e.gap,i=e.className,s=e.children,l={};if(a)l["--sg-min"]=a;else{var u="number"==typeof n?{base:n}:n,c=!0,d=!1,f=void 0;try{for(var p,m=DJ[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){var h=p.value,y=u[h];"number"==typeof y&&y>0&&(l["--sg-".concat(h)]=String(Math.floor(y)))}}catch(e){d=!0,f=e}finally{try{c||null==m.return||m.return()}finally{if(d)throw f}}}return(0,v.jsx)(void 0===t?"div":t,{"data-section-part":"grid",style:l,className:(0,w.cn)("grid min-w-0",DZ[void 0===o?"md":o],a?"grid-cols-[repeat(auto-fill,minmax(min(100%,var(--sg-min)),1fr))]":(0,w.cn)("grid-cols-[repeat(var(--sg-base,1),minmax(0,1fr))]","sm:grid-cols-[repeat(var(--sg-sm,var(--sg-base,1)),minmax(0,1fr))]","md:grid-cols-[repeat(var(--sg-md,var(--sg-sm,var(--sg-base,1))),minmax(0,1fr))]","lg:grid-cols-[repeat(var(--sg-lg,var(--sg-md,var(--sg-sm,var(--sg-base,1)))),minmax(0,1fr))]","xl:grid-cols-[repeat(var(--sg-xl,var(--sg-lg,var(--sg-md,var(--sg-sm,var(--sg-base,1))))),minmax(0,1fr))]","2xl:grid-cols-[repeat(var(--sg-2xl,var(--sg-xl,var(--sg-lg,var(--sg-md,var(--sg-sm,var(--sg-base,1)))))),minmax(0,1fr))]"),i),children:s})}function D1(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function D2(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return D1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D1(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var D3={position:"--section-header-position",top:"--section-sticky-top",zIndex:"--section-sticky-z"};function D4(e){var t=e.sticky,r=e.offset,n=e.zIndex,a={};return void 0!==t&&(a[D3.position]=t?"sticky":"static"),void 0!==r&&(a[D3.top]=r),void 0!==n&&(a[D3.zIndex]=n),a}var D5=(c={},d=D3.position,f="static",d in c?Object.defineProperty(c,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[d]=f,c);function D6(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function D8(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function D9(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var D7={compact:"pb-2",comfortable:"pb-3",spacious:"pb-4"},Ce={compact:"pt-3",comfortable:"pt-4",spacious:"pt-6"},Ct={compact:"mt-3",comfortable:"mt-4",spacious:"mt-6"},Cr={compact:"pt-2",comfortable:"pt-3",spacious:"pt-4"},Cn={sm:"text-base font-medium leading-snug",md:"text-xl font-light leading-tight sm:text-2xl",lg:"text-2xl font-light leading-tight sm:text-3xl"},Ca={split:"flex-wrap items-center justify-between",stacked:"flex-col items-start",centered:"flex-col items-center text-center"},Co={split:"ml-auto justify-end",stacked:"justify-start",centered:"justify-center"},Ci={between:"justify-between",start:"justify-start",center:"justify-center",end:"justify-end"};function Cs(e){var t=e.className,r=Dq().classNames;return(0,v.jsx)("div",{role:"presentation","aria-hidden":"true","data-section-part":"divider",className:(0,w.cn)("h-px w-full shrink-0 bg-(--section-line,rgba(255,255,255,0.12))",r.divider,t)})}function Cl(){var e=Dq(),t=e.collapsed,r=e.toggle,n=e.labels,a=e.bodyId,o=t?n.expand:n.collapse;return(0,v.jsx)("button",{type:"button",onClick:r,title:o,"aria-label":o,"aria-expanded":!t,"aria-controls":a,className:(0,w.cn)("inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border-0 p-0","bg-transparent text-(--section-muted,rgba(255,255,255,0.65)) outline-none transition-colors duration-150","hover:bg-(--section-fg,#fff)/10 hover:text-(--section-fg,#fff)","focus-visible:ring-2 focus-visible:ring-(--section-accent,#34d399)/70"),children:(0,v.jsx)("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:(0,w.cn)("transition-transform duration-300 motion-reduce:transition-none",!t&&"rotate-180"),children:(0,v.jsx)("path",{d:"M4 6l4 4 4-4"})})})}function Cu(e){var t,r,n,a,o,i,s,l,u=e.title,c=e.titleAs,d=e.titleSize,f=e.icon,p=e.description,m=e.count,h=e.actions,y=e.children,b=e.layout,x=e.divider,j=e.className,O=Dq(),S=O.classNames,k=O.density,E=O.collapsible,P=null!=b?b:O.headerLayout,A=null!=x?x:O.divider,D=(0,g.useRef)(null),C=(t=O.stickyKey,r=(0,g.useRef)(null),a=(n=D2((0,g.useState)(!1),2))[0],o=n[1],s=(i=D2((0,g.useState)(!1),2))[0],l=i[1],(0,g.useEffect)(function(){var e=D.current;o(!!e&&"sticky"===getComputedStyle(e).position)},[D,t]),(0,g.useEffect)(function(){var e=D.current,t=r.current;if(!a||!e||!t||"u"<typeof IntersectionObserver)return void l(!1);var n=parseFloat(getComputedStyle(e).top)||0,o=new IntersectionObserver(function(e){return l(!D2(e,1)[0].isIntersecting)},{rootMargin:"-".concat(n,"px 0px 0px 0px"),threshold:0});return o.observe(t),function(){return o.disconnect()}},[D,a]),{isSticky:a,stuck:s,sentinelRef:r}),T=C.isSticky,N=C.stuck,R=C.sentinelRef,M=null!=m&&""!==m,I=null!=h&&!1!==h;return(0,v.jsxs)(v.Fragment,{children:[T?(0,v.jsx)("div",{ref:R,"aria-hidden":"true","data-section-part":"sticky-sentinel",className:"pointer-events-none -mb-px h-px w-full shrink-0"}):null,(0,v.jsxs)("div",{ref:D,"data-section-part":"header","data-stuck":T?String(N):void 0,className:(0,w.cn)("flex flex-col","[position:var(--section-header-position,static)] top-(--section-sticky-top,0px) z-(--section-sticky-z,10)","transition-[background-color,box-shadow] duration-200 motion-reduce:transition-none","data-[stuck=true]:bg-(--section-sticky-bg,rgb(8_12_20/0.72)) data-[stuck=true]:backdrop-blur-xl","data-[stuck=true]:shadow-[0_8px_24px_-12px_rgb(0_0_0/0.45)]",S.header,j),children:[(0,v.jsxs)("div",{className:(0,w.cn)("flex gap-x-4 gap-y-2",Ca[P],D7[k]),children:[null!=y?(0,v.jsx)("div",{className:"min-w-0 flex-1",children:y}):(0,v.jsxs)("div",{className:(0,w.cn)("flex min-w-0 flex-col gap-1","split"===P&&"flex-1 basis-48",S.heading),children:[(0,v.jsxs)("div",{className:(0,w.cn)("flex min-w-0 items-center gap-2.5","centered"===P&&"justify-center"),children:[f?(0,v.jsx)("span",{className:(0,w.cn)("inline-flex shrink-0 items-center justify-center text-(--section-accent,#34d399)",S.leading),children:f}):null,u?(0,v.jsx)(void 0===c?"h2":c,{id:O.headingId,className:(0,w.cn)("m-0 min-w-0 text-balance tracking-tight text-(--section-fg,#fff)",Cn[void 0===d?"md":d],S.title),children:u}):null,M?(0,v.jsx)("span",{className:(0,w.cn)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-full px-1.5","bg-(--section-fg,#fff)/10 text-[11px] font-medium leading-none text-(--section-muted,rgba(255,255,255,0.65))",S.count),children:m}):null]}),p?(0,v.jsx)("p",{className:(0,w.cn)("m-0 max-w-3xl text-sm leading-relaxed text-(--section-muted,rgba(255,255,255,0.65))",S.description),children:p}):null]}),I||E?(0,v.jsxs)("div",{className:(0,w.cn)("flex flex-wrap items-center gap-1.5",Co[P],null!=y&&"split"===P&&"shrink-0",S.actions),children:[h,E?(0,v.jsx)(Cl,{}):null]}):null]}),A?(0,v.jsx)(Cs,{}):null]})]})}function Cc(e){var t,r=e.children,n=e.flush,a=e.maxHeight,o=e.className,i=Dq(),s=i.classNames,l=i.density,u=i.collapsible,c=i.collapsed,d=i.bodyId,f=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(c))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return D6(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return D6(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],m=f[1],h=(0,g.useRef)(!0);(0,g.useEffect)(function(){if(h.current){h.current=!1;return}m(!0);var e=setTimeout(function(){return m(c)},320);return function(){return clearTimeout(e)}},[c]);var y=(0,v.jsx)("div",{"data-section-part":"body",className:(0,w.cn)("min-w-0",!(void 0!==n&&n)&&Ce[l],a&&"overflow-y-auto overscroll-contain",s.body,o),style:a?D9(D8({},D5),{maxHeight:a}):D5,children:r});return u?(0,v.jsx)("div",D9(D8({id:d,"aria-hidden":c||void 0},c?{inert:""}:{}),{className:(0,w.cn)("grid transition-[grid-template-rows] duration-300 ease-out motion-reduce:transition-none",c?"grid-rows-[0fr]":"grid-rows-[1fr]"),children:(0,v.jsx)("div",{className:(0,w.cn)("min-h-0",p&&"overflow-hidden"),children:y})})):(0,v.jsx)("div",{id:d,children:y})}function Cd(e){var t=e.children,r=e.actions,n=e.layout,a=e.divider,o=e.className,i=Dq(),s=i.classNames,l=i.density,u=i.collapsible,c=i.collapsed,d=null!=n?n:i.footerLayout,f=null!=a?a:i.footerDivider,p=null!=t&&!1!==t,m=null!=r&&!1!==r;return u&&c?null:(0,v.jsxs)("div",{"data-section-part":"footer",className:(0,w.cn)("flex flex-col",Ct[l],s.footer,o),children:[f?(0,v.jsx)(Cs,{}):null,(0,v.jsxs)("div",{className:(0,w.cn)("flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-(--section-muted,rgba(255,255,255,0.65))",Cr[l],Ci[d]),children:[p?(0,v.jsx)("div",{className:(0,w.cn)("min-w-0",s.footerStart),children:t}):null,m?(0,v.jsx)("div",{className:(0,w.cn)("flex flex-wrap items-center gap-1.5","between"===d&&"ml-auto",s.footerEnd),children:r}):null]})]})}function Cf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Cp={plain:"",glass:"rounded-2xl p-5 backdrop-blur-xl ring-1 ring-inset ring-(--section-line,rgba(255,255,255,0.12))"},Cm={onDark:"bg-black/40",onLight:"bg-white/70"},Ch=new Set([Cu,Cc,Cd]);function Cy(e){return null!=e&&!1!==e&&""!==e}var Cv=Object.assign(function(e){var t,r=e.id,n=e.as,a=e.ariaLabel,o=e.variant,i=void 0===o?"plain":o,s=e.tone,l=void 0===s?"onDark":s,u=e.density,c=void 0===u?"comfortable":u,d=e.title,f=e.titleAs,p=e.titleSize,m=e.icon,h=e.description,y=e.count,b=e.actions,x=e.header,j=e.headerLayout,O=void 0===j?"split":j,S=e.divider,k=void 0===S||S,E=e.stickyHeader,P=e.stickyOffset,A=e.stickyZIndex,D=e.footer,C=e.footerActions,T=e.footerLayout,N=void 0===T?"between":T,R=e.footerDivider,M=void 0===R||R,I=e.bodyMaxHeight,L=e.bodyFlush,F=e.collapsible,B=void 0!==F&&F,V=e.collapsed,z=e.defaultCollapsed,W=e.onCollapsedChange,U=e.labels,$=e.className,H=e.classNames,K=void 0===H?{}:H,G=e.children,q=(0,g.useId)(),Y="".concat(q,"-title"),X="".concat(q,"-body"),Z=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(void 0!==z&&z))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Cf(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Cf(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),Q=Z[0],J=Z[1],ee=B&&(null!=V?V:Q),et=(0,g.useCallback)(function(){var e=!ee;void 0===V&&J(e),null==W||W(e)},[ee,V,W]),er=Cy(d),en=(0,g.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},DK,U)},[U]),ea=(0,g.useMemo)(function(){return{tone:l,density:c,classNames:K,labels:en,headerLayout:O,footerLayout:N,divider:k,footerDivider:M,collapsible:B,collapsed:ee,toggle:et,headingId:er?Y:void 0,bodyId:X,stickyKey:"".concat(E,"|").concat(P,"|").concat(A)}},[l,c,K,en,O,N,k,M,B,ee,et,er,Y,X,E,P,A]),eo=er||Cy(h)||Cy(b)||Cy(m)||Cy(x)||null!=y&&""!==y||B,ei=Cy(D)||Cy(C),es=Cy(G),el=g.Children.toArray(G).some(function(e){return(0,g.isValidElement)(e)&&Ch.has(e.type)});return(0,v.jsx)(DG.Provider,{value:ea,children:(0,v.jsxs)(void 0===n?"section":n,{id:r,"aria-label":a,"aria-labelledby":!a&&er?Y:void 0,"data-section-variant":i,style:D4({sticky:E,offset:P,zIndex:A}),className:(0,w.cn)("relative flex w-full min-w-0 flex-col text-(--section-fg,#fff)","onLight"===l&&"[--section-fg:#0f172a] [--section-muted:rgba(15,23,42,0.62)] [--section-line:rgba(15,23,42,0.14)] [--section-sticky-bg:rgb(255_255_255/0.82)]",Cp[i],"glass"===i&&Cm[l],$,K.root),children:[eo?(0,v.jsx)(Cu,{title:d,titleAs:f,titleSize:p,icon:m,description:h,count:y,actions:b,children:x}):null,es?el?G:(0,v.jsx)(Cc,{flush:L,maxHeight:I,children:G}):null,ei?(0,v.jsx)(Cd,{actions:C,children:D}):null]})})},{Header:Cu,Body:Cc,Footer:Cd,Divider:Cs,Action:DX,Grid:D0});function Cg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var Cb={none:"gap-0",sm:"gap-4",md:"gap-6",lg:"gap-10",xl:"gap-14"};function Cx(e){var t=e.name,r=e.state,n=e.select,a=e.stickyHeaders,o=e.stickyOffset,i=e.stickyZIndex,s=e.gap,l=e.renderItem,u=e.className,c=e.itemClassName,d=e.style,f=Cg({},D4({sticky:void 0===a||a,offset:void 0===o?"0px":o,zIndex:void 0===i?10:i}),d),p=(0,w.cn)("flex w-full min-w-0 flex-col",Cb[void 0===s?"lg":s],u);return(0,v.jsx)(x.ExtensionSlot,{name:t,select:n,"data-section-slot":t,className:p,style:f,children:function(e){var t=(0,v.jsx)(x.Extension,{state:r}),n={name:e.name,moduleName:e.moduleName,meta:Cg({},e.meta)};return(0,v.jsx)("div",{"data-section-slot-item":e.name,className:(0,w.cn)("min-w-0",c),children:l?l(t,n):t})}})}var Cw=(0,w.cn)("group relative flex min-w-0 flex-col rounded-2xl border border-white/10 bg-slate-900/45 p-4","text-slate-100 shadow-lg backdrop-blur-sm outline-none transition-all duration-300","hover:-translate-y-1 hover:border-teal-400/50 hover:bg-slate-900/75 hover:shadow-2xl","has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-emerald-400");function Cj(e){var t,r,n=e.as,a=e.className,o=e.children,i=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["as","className","children"]);return(0,v.jsx)(void 0===n?"div":n,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({"data-section-card":"",className:(0,w.cn)(Cw,a)},i),r=r={children:o},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}function CO(e){var t=e.onClick,r=e.className,n=e.children;return(0,v.jsx)("button",{type:"button",onClick:t,className:(0,w.cn)("block w-full cursor-pointer border-0 bg-transparent p-0 outline-none [color:inherit] [font:inherit] [text-align:inherit]","after:absolute after:inset-0 after:content-['']",r),children:n})}function CS(e){var t,r=e.tile,n=e.size,a=e.onSelect,o=e.className;return(0,v.jsxs)(mz.div,{whileHover:{scale:"large"===n?1.008:1.012},transition:{duration:.2},onClick:function(){return a(r)},role:"button",tabIndex:0,onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),a(r))},className:["ymvpF0jEa4IAfeIzmv6kDw==","large"===n?"K3WBVZtf0LrRj41QEma6fw==":"Jpm1koqsICGHnsFyzd3FHQ==",null!=o?o:""].join(" "),children:[(0,v.jsx)("img",{src:r.imageUrl,alt:r.title,className:"KeItYJ0V+t2aIAuL4MC2sg==",referrerPolicy:"no-referrer"}),(0,v.jsx)("div",{className:"F77f0L-A-DykD55SIxIydA=="}),(0,v.jsx)("div",{className:"Nneo7LfASPowiNGutwpZMw==",children:"large"===n?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("h3",{className:"Z9u0n0R5Gm8ZhupMR8DziQ==",children:r.title}),(0,v.jsx)("span",{className:"_6EhjfpYvyP3bc6qYPrmcQA==",children:null!=(t=r.linkText)?t:"En savoir plus →"})]}):(0,v.jsx)("h4",{className:"BqcB8kB602p8kCOqH3FsDA==",children:r.title})})]})}function Ck(e){var t=e.mainTile,r=e.secondaryTiles,n=e.onSelectTile;return(0,v.jsxs)("div",{className:"tmGbjV2pLbfHuOPqhf-Huw==",children:[(0,v.jsx)(CS,{tile:t,size:"large",onSelect:n}),r.slice(0,4).map(function(e){return(0,v.jsx)(CS,{tile:e,size:"medium",onSelect:n},e.id)})]})}function CE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function CP(e){if(Array.isArray(e))return e}function CA(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function CD(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function CC(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function CT(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function CN(e,t){return CP(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||CM(e,t)||CA()}function CR(e){return CP(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||CM(e)||CA()}function CM(e,t){if(e){if("string"==typeof e)return CE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return CE(e,t)}}var CI=(0,g.forwardRef)(function(e,t){var r=e.left,n=e.center,a=e.right,o=e.secondary,i=e.children,s=e.sticky,l=void 0===s||s,u=e.stickyOffset,c=e.variant,d=e.ariaLabel,f=e.className,p=e.wrapperClassName;return(0,v.jsxs)("div",{className:(0,w.cn)("flex flex-col w-full z-(--z-index-sticky,200)",l&&"sticky",p),style:l?{top:void 0===u?"var(--own-offline-banner-height, 0px)":u}:void 0,children:[(0,v.jsxs)("header",{ref:t,role:"banner","aria-label":void 0===d?"Navigation principale":d,className:(0,w.cn)("relative flex w-full items-center justify-between gap-2 px-3 sm:px-4 select-none","h-(--layout-header-height,48px) border-b","border-b-(--panel-header-border,rgba(255,255,255,0.08))","text-(--colors-surface-foreground,#f4f4f4)","glass"===(void 0===c?"glass":c)?"bg-(--panel-header-background,rgba(11,25,44,0.72)) backdrop-blur-xl shadow-(--panel-header-box-shadow,0_1px_12px_rgba(0,0,0,0.25))":"bg-(--colors-surface-card,#0b192c) shadow-(--panel-header-box-shadow,none)",f),children:[(0,v.jsx)("div",{className:"flex min-w-0 shrink-0 items-center gap-2",children:r}),n?(0,v.jsx)("div",{className:"flex min-w-0 flex-1 items-center justify-center gap-2 px-2",children:n}):null,(0,v.jsx)("div",{className:"flex shrink-0 items-center gap-1",children:a}),i]}),o?(0,v.jsx)("div",{className:"w-full",children:o}):null]})}),C_=(0,g.forwardRef)(function(e,t){var r=CR([e,t]),n=r[0],a=r.slice(1),o=n.icon,i=n.label,s=n.badge,l=n.active,u=void 0!==l&&l,c=n.className,d=n.type,f=CT(n,["icon","label","badge","active","className","type"]),p=CN(a,1)[0],m=null!=s&&""!==s&&0!==s;return(0,v.jsxs)("button",CC(CD({ref:p,type:void 0===d?"button":d,title:i,"aria-label":i,"aria-pressed":u||void 0,className:(0,w.cn)("relative inline-flex h-9 min-w-9 cursor-pointer items-center justify-center rounded-md border-0 p-0","bg-transparent text-inherit transition-colors duration-150 outline-none","hover:bg-white/10 focus-visible:ring-2 focus-visible:ring-primary-400",u&&"bg-primary-500/25 text-primary-200",c)},f),{children:[o,m?(0,v.jsx)("span",{className:"absolute -right-0.5 -top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-error-500 px-1 text-[10px] font-bold leading-none text-white",children:s}):null]}))});function CL(e){var t=e.className;return(0,v.jsx)("div",{"aria-hidden":"true",className:(0,w.cn)("mx-1 h-5 w-px bg-white/15",t)})}var CF=(0,g.forwardRef)(function(e,t){var r=CR([e,t]),n=r[0],a=r.slice(1),o=n.src,i=n.name,s=n.active,l=n.className,u=n.type,c=CT(n,["src","name","active","className","type"]),d=CN(a,1)[0],f=i.split(/\s+/).filter(Boolean).slice(0,2).map(function(e){var t;return null==(t=e[0])?void 0:t.toUpperCase()}).join("");return(0,v.jsx)("button",CC(CD({ref:d,type:void 0===u?"button":u,title:i,"aria-label":i,className:(0,w.cn)("relative inline-flex h-8 w-8 cursor-pointer items-center justify-center overflow-hidden rounded-full p-0","border border-primary-400/50 bg-primary-900/40 text-xs font-bold text-white outline-none","transition-transform duration-150 hover:scale-105 focus-visible:ring-2 focus-visible:ring-primary-400",void 0!==s&&s&&"ring-2 ring-primary-400",l)},c),{children:o?(0,v.jsx)("img",{src:o,alt:"",className:"h-full w-full object-cover"}):f}))});function CB(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function CV(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||Cz(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cz(e,t){if(e){if("string"==typeof e)return CB(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return CB(e,t)}}function CW(e){var t=e.sites,r=e.onSelect,n=e.height,a=e.className,o=(0,g.useRef)(0),i=function(e){return e.map(function(e){return{site:e,key:o.current++}})},s=CV((0,g.useState)(function(){return i(t)}),2),l=s[0],u=s[1],c=CV((0,g.useState)(350),2),d=c[0],f=c[1],p=(0,g.useRef)(!1),m=(0,g.useRef)(0),h=(0,g.useRef)(0);(0,g.useEffect)(function(){return u(i(t))},[t]),(0,g.useEffect)(function(){var e=function(){return f(window.matchMedia("(min-width: 640px)").matches?350:280)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]);var y=function(e){return u(function(t){if(t.length<2)return t;for(var r=function(e){if(Array.isArray(e))return CB(e)}(t)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Cz(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=0;n<Math.abs(e);n++){var a=e>0?r.shift():r.pop();if(!a)break;var i=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},a),{key:o.current++});e>0?r.push(i):r.unshift(i)}return r})},b=function(){var e=h.current-m.current;Math.abs(e)>=45&&y(e<0?1:-1),setTimeout(function(){p.current=!1},50)},x="flex h-12 w-12 sm:h-14 sm:w-14 items-center justify-center border-2 border-white/20 bg-slate-950/80 text-slate-100 transition-colors hover:bg-teal-500 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-teal-400";return(0,v.jsxs)("div",{onPointerDown:function(e){m.current=h.current=e.clientX,p.current=!1},onPointerMove:function(e){h.current=e.clientX,Math.abs(h.current-m.current)>10&&(p.current=!0)},onPointerUp:b,onPointerCancel:b,className:(0,w.cn)("relative w-full overflow-hidden cursor-grab active:cursor-grabbing touch-pan-y select-none",a),style:{height:void 0===n?500:n},children:[l.map(function(e,t){var n=e.site,a=e.key,o=l.length%2?t-(l.length+1)/2:t-l.length/2,i=0===o;return(0,v.jsxs)("div",{role:"button",tabIndex:i?0:-1,"aria-label":n.name,onKeyDown:function(e){return"Enter"===e.key&&i&&(null==r?void 0:r(n))},onClick:function(){p.current||(i?null==r||r(n):y(o))},className:(0,w.cn)("absolute left-1/2 top-1/2 cursor-pointer border-2 p-7 sm:p-8 transition-all duration-500 ease-in-out",i?"z-10 bg-teal-500 text-slate-950 border-teal-300":"z-0 bg-slate-900/70 text-slate-100 border-white/15 hover:border-teal-400/60"),style:{width:d,height:d,clipPath:"polygon(50px 0%, calc(100% - 50px) 0%, 100% 50px, 100% 100%, calc(100% - 50px) 100%, 50px 100%, 0 100%, 0 0)",transform:"translate(-50%, -50%) translateX(".concat(d/1.5*o,"px) translateY(").concat(i?-30:o%2?20:-10,"px) rotate(").concat(i?0:o%2?2.5:-2.5,"deg)"),boxShadow:i?"0 8px 0 4px rgba(255,255,255,0.14)":"none"},children:[n.imageUrl&&(0,v.jsx)("img",{src:n.imageUrl,alt:"",className:"mb-3 sm:mb-4 h-12 w-10 sm:h-14 sm:w-12 bg-slate-800 object-cover object-top rounded-xs shadow-sm"}),(0,v.jsxs)("h3",{className:"text-sm sm:text-base md:text-lg font-medium leading-snug line-clamp-4",children:[n.name," — ",n.description]}),(0,v.jsxs)("p",{className:(0,w.cn)("absolute bottom-6 sm:bottom-8 left-7 sm:left-8 right-7 sm:right-8 text-xs sm:text-sm italic truncate",i?"text-slate-950/80":"text-slate-400"),children:[n.shortName," • ",n.head," (",n.memberCount," membres, ",n.appCount," apps)"]})]},a)}),(0,v.jsxs)("div",{className:"absolute bottom-3 sm:bottom-4 left-1/2 flex -translate-x-1/2 gap-2 z-20",children:[(0,v.jsx)("button",{type:"button",onClick:function(){return y(-1)},className:x,"aria-label":"Site pr\xe9c\xe9dent",children:(0,v.jsx)(yo,{className:"w-6 h-6"})}),(0,v.jsx)("button",{type:"button",onClick:function(){return y(1)},className:x,"aria-label":"Site suivant",children:(0,v.jsx)(yi.A,{className:"w-6 h-6"})})]})]})}var CU=(0,ya.A)("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]),C$=(0,ya.A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);function CH(e){var t=e.value,r=e.onChange,n=e.placeholder,a=void 0===n?"Rechercher…":n,o=e.activeFilterCount,i=void 0===o?0:o,s=e.filterPanel,l=e.filtersOpen,u=void 0!==l&&l,c=e.onFiltersOpenChange,d=e.onReset,f=e.className,p=(0,g.useRef)(null),m=!!s&&(u||i>0),h="p-1.5 rounded-lg border border-white/10 text-slate-400 transition-colors cursor-pointer";return(0,v.jsxs)("div",{className:(0,w.cn)("relative rounded-2xl border border-white/15 backdrop-blur-sm shadow-lg overflow-hidden transition-all","focus-within:border-teal-400/80 focus-within:ring-2 focus-within:ring-teal-400/20",f),children:[(0,v.jsxs)("div",{className:"flex items-center px-4 py-2.5 sm:py-3 gap-3",children:[(0,v.jsx)("div",{className:"w-8 h-8 rounded-xl border border-white/10 flex items-center justify-center text-teal-300 shrink-0",children:(0,v.jsx)(SU.A,{className:"w-4 h-4"})}),(0,v.jsx)("input",{ref:p,type:"text",value:t,onChange:function(e){return r(e.target.value)},placeholder:a,"aria-label":a,className:"flex-1 min-w-0 bg-transparent border-none text-white placeholder-slate-400 text-xs sm:text-sm font-medium focus:outline-none truncate"}),(0,v.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[t&&(0,v.jsx)("button",{type:"button",title:"Effacer la recherche",onClick:function(){var e;r(""),null==(e=p.current)||e.focus()},className:(0,w.cn)(h,"hover:bg-white/10 hover:text-white"),children:(0,v.jsx)(kz.A,{className:"w-3.5 h-3.5"})}),s&&(0,v.jsxs)("button",{type:"button",title:"Filtres avanc\xe9s","aria-expanded":m,onClick:function(){return null==c?void 0:c(!u)},className:(0,w.cn)("flex items-center gap-1.5 px-3 py-1.5 rounded-xl border text-xs font-semibold transition-all cursor-pointer",m?"bg-teal-500 text-slate-950 border-teal-400 shadow-sm":"text-slate-300 hover:text-white hover:bg-white/10 border-white/15"),children:[(0,v.jsx)(CU,{className:"w-3.5 h-3.5"}),(0,v.jsx)("span",{className:"hidden sm:inline",children:"Filtres"}),i>0&&(0,v.jsx)("span",{className:"min-w-[1.1rem] rounded-full bg-slate-950 px-1 text-center text-[10px] font-black leading-[1.1rem] text-teal-300",children:i})]}),d&&(t||i>0)&&(0,v.jsx)("button",{type:"button",title:"R\xe9initialiser",onClick:d,className:(0,w.cn)(h,"hover:bg-rose-500/20 hover:text-rose-300"),children:(0,v.jsx)(C$,{className:"w-3.5 h-3.5"})})]})]}),m&&(0,v.jsx)("div",{className:"dark w-full px-4 pb-3 pt-2 border-t border-white/10",children:s})]})}function CK(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function CG(e){var t,r=e.activeTab,n=e.onTabChange,a=e.tabs,o=e.sidebarHeader,i=e.sidebarFooter,s=e.mainHeader,l=e.children,u=e.className,c=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(function(){return"u"<typeof window||window.innerWidth>=768}))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return CK(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return CK(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=c[0],f=c[1],p=(0,g.useRef)(null);return(0,g.useEffect)(function(){var e=function(){return f(window.innerWidth>=768)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]),(0,v.jsx)("div",{className:(0,w.cn)("w-full h-[calc(100vh-120px)] my-2 sm:my-3 text-slate-100 overflow-hidden px-3 sm:px-6 lg:px-8 flex flex-col",u),children:(0,v.jsxs)("div",{className:"max-w-7xl w-full mx-auto flex-1 min-h-0 flex flex-col md:flex-row items-stretch gap-4 md:gap-8 overflow-hidden",children:[(0,v.jsxs)("aside",{className:"w-full md:w-[20%] shrink-0 min-w-0 flex flex-col justify-start md:justify-center space-y-2 md:space-y-4",children:[o,(0,v.jsx)("div",{ref:p,role:"tablist","aria-orientation":d?"vertical":"horizontal",onKeyDown:function(e){var t,o,i,s=a.filter(function(e){return!e.disabled}),l=s.findIndex(function(e){return e.id===r});e.key===(d?"ArrowDown":"ArrowRight")?i=s[(l+1)%s.length]:e.key===(d?"ArrowUp":"ArrowLeft")?i=s[(l-1+s.length)%s.length]:"Home"===e.key?i=s[0]:"End"===e.key&&(i=s[s.length-1]),i&&(e.preventDefault(),n(i.id),null==(o=p.current)||null==(t=o.querySelector('[data-tab="'.concat(i.id,'"]')))||t.focus())},className:"w-full flex md:flex-col items-center md:items-stretch gap-2 overflow-x-auto touch-pan-x scroll-smooth select-none py-1",children:a.map(function(e){var t=e.id===r;return(0,v.jsxs)("button",{type:"button",role:"tab","data-tab":e.id,"aria-selected":t,tabIndex:t?0:-1,disabled:e.disabled,onClick:function(){return n(e.id)},className:(0,w.cn)("shrink-0 flex items-center gap-2 text-left px-3.5 py-2 text-xs sm:text-sm md:text-base font-medium whitespace-nowrap cursor-pointer transition-all border-0 border-l-2",t?"border-teal-400 text-teal-300 bg-white/5":"border-transparent text-slate-400 hover:text-white",e.disabled&&"opacity-40 cursor-not-allowed"),children:[e.icon&&(0,v.jsx)("span",{className:"shrink-0",children:e.icon}),(0,v.jsx)("span",{children:e.label}),e.badge&&(0,v.jsx)("span",{className:"ml-auto shrink-0",children:e.badge})]},e.id)})}),i]}),(0,v.jsxs)("main",{role:"tabpanel",className:"w-full md:w-[80%] h-full flex-1 min-h-0 flex flex-col overflow-y-auto",children:[s,(0,v.jsx)("div",{className:"flex-1 min-h-0 flex flex-col",children:l})]})]})})}function Cq(e){var t=e.icon,r=e.title,n=e.description,a=e.actions,o=e.className;return(0,v.jsxs)("div",{className:(0,w.cn)("flex flex-col sm:flex-row sm:items-center justify-between gap-3 p-3 rounded-xl bg-slate-900/60 border border-white/10 backdrop-blur-md shrink-0",o),children:[(0,v.jsxs)("div",{className:"min-w-0",children:[(0,v.jsxs)("div",{className:"flex items-center gap-2",children:[t,(0,v.jsx)("h2",{className:"text-sm sm:text-base font-bold text-white truncate",children:r})]}),n&&(0,v.jsx)("p",{className:"text-xs text-slate-400 mt-0.5",children:n})]}),a&&(0,v.jsx)("div",{className:"shrink-0 self-start sm:self-auto",children:a})]})}var CY=(0,ya.A)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);function CX(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function CZ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||CQ(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CQ(e,t){if(e){if("string"==typeof e)return CX(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return CX(e,t)}}function CJ(e){var t=e.applications,r=e.onOpen,n=e.title,a=e.description,o=e.allLabel,i=void 0===o?"Tous":o,s=e.className,l=CZ((0,g.useState)(""),2),u=l[0],c=l[1],d=CZ((0,g.useState)(i),2),f=d[0],p=d[1],m=(0,g.useMemo)(function(){var e;return[i].concat(function(e){if(Array.isArray(e))return CX(e)}(e=Array.from(new Set(t.map(function(e){return e.category}))))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||CQ(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},[t,i]),h=(0,g.useMemo)(function(){var e=u.trim().toLowerCase();return t.filter(function(t){return(f===i||t.category===f)&&(!e||t.name.toLowerCase().includes(e)||t.description.toLowerCase().includes(e))})},[t,u,f,i]);return(0,v.jsxs)("div",{className:(0,w.cn)("space-y-6",s),children:[(0,v.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 pb-4 border-b border-white/10",children:[(0,v.jsxs)("div",{children:[(0,v.jsx)("h2",{className:"text-xl font-bold text-white",children:void 0===n?"Applications & Outils M\xe9tier":n}),(0,v.jsx)("p",{className:"text-xs text-slate-300 mt-1",children:void 0===a?"S\xe9lectionnez une application pour y acc\xe9der directement.":a})]}),(0,v.jsxs)("div",{className:"relative w-full sm:w-64",children:[(0,v.jsx)(SU.A,{className:"w-4 h-4 text-slate-400 absolute left-3 top-2.5"}),(0,v.jsx)("input",{type:"text",value:u,onChange:function(e){return c(e.target.value)},placeholder:"Rechercher un outil...","aria-label":"Rechercher un outil",className:"w-full bg-slate-900/80 text-white placeholder-slate-400 text-xs pl-9 pr-3 py-2 rounded-lg border border-white/10 focus:outline-hidden focus:border-teal-400/50"})]})]}),(0,v.jsx)("div",{className:"flex flex-wrap gap-3 text-xs font-medium",children:m.map(function(e){return(0,v.jsx)("button",{type:"button",onClick:function(){return p(e)},className:(0,w.cn)("transition-colors cursor-pointer",f===e?"text-teal-300 font-bold border-b-2 border-teal-400 pb-0.5":"text-slate-400 hover:text-white"),children:e},e)})}),(0,v.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:h.map(function(e){var t,n=e.icon;return(0,v.jsxs)("button",{type:"button",onClick:function(){return r(e)},className:"group text-left p-4 rounded-xl bg-slate-900/60 border border-white/10 hover:border-teal-400/40 hover:bg-slate-800/80 transition-all cursor-pointer flex flex-col justify-between space-y-3",children:[(0,v.jsxs)("div",{className:"space-y-2",children:[(0,v.jsxs)("div",{className:"flex items-center justify-between",children:[(0,v.jsx)("div",{className:(0,w.cn)("p-2 rounded-lg bg-gradient-to-br text-white shadow-xs",null!=(t=e.gradient)?t:"from-teal-500 to-emerald-600"),children:(0,v.jsx)(n,{className:"w-5 h-5"})}),(0,v.jsx)("span",{className:"text-[10px] font-semibold text-slate-400",children:e.status})]}),(0,v.jsxs)("div",{children:[(0,v.jsxs)("h3",{className:"text-sm font-bold text-white group-hover:text-teal-300 transition-colors flex items-center justify-between",children:[(0,v.jsx)("span",{children:e.name}),(0,v.jsx)(CY,{className:"w-3.5 h-3.5 opacity-0 group-hover:opacity-100 transition-opacity text-teal-300"})]}),(0,v.jsx)("p",{className:"text-[11px] text-teal-400/80 font-medium mt-0.5",children:e.category})]}),(0,v.jsx)("p",{className:"text-xs text-slate-300 line-clamp-2 leading-relaxed",children:e.description})]}),(0,v.jsxs)("div",{className:"pt-2 border-t border-white/5 flex items-center justify-between text-[11px] text-slate-400 group-hover:text-slate-200",children:[(0,v.jsx)("span",{children:"Acc\xe9der \xe0 l'application"}),(0,v.jsx)("span",{className:"text-teal-400 font-semibold group-hover:translate-x-1 transition-transform",children:"→"})]})]},e.id)})})]})}var C0=(0,ya.A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]),C1={teal:{card:"from-teal-900/50 to-slate-900 border-teal-500/30 hover:border-teal-400",text:"text-teal-300",icon:"text-teal-400"},cyan:{card:"from-cyan-900/50 to-slate-900 border-cyan-500/30 hover:border-cyan-400",text:"text-cyan-300",icon:"text-cyan-400"}};function C2(e){var t=e.resources,r=e.shortcuts,n=void 0===r?[]:r,a=e.onShortcut,o=e.onDownload,i=e.primaryAction,s=e.title,l=e.description,u=e.className;return(0,v.jsxs)("div",{className:(0,w.cn)("space-y-6",u),children:[(0,v.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 pb-4 border-b border-white/10",children:[(0,v.jsxs)("div",{children:[(0,v.jsx)("h2",{className:"text-xl font-bold text-white",children:void 0===s?"Ressources Documentaires & GED":s}),(0,v.jsx)("p",{className:"text-xs text-slate-300 mt-1",children:void 0===l?"Guides, formulaires administratifs et acc\xe8s direct \xe0 la Gestion \xc9lectronique des Documents.":l})]}),i]}),n.length>0&&(0,v.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:n.map(function(e){var t,r=C1[null!=(t=e.tone)?t:"teal"],n=e.icon;return(0,v.jsxs)("button",{type:"button",onClick:function(){return null==a?void 0:a(e)},className:(0,w.cn)("text-left p-4 rounded-xl bg-gradient-to-r border transition-all cursor-pointer flex items-center justify-between",r.card),children:[(0,v.jsxs)("span",{className:"space-y-1",children:[(0,v.jsx)("span",{className:(0,w.cn)("block text-[10px] font-bold uppercase tracking-wider",r.text),children:e.eyebrow}),(0,v.jsx)("span",{className:"block text-sm font-bold text-white",children:e.title}),(0,v.jsx)("span",{className:"block text-xs text-slate-300",children:e.description})]}),(0,v.jsx)(n,{className:(0,w.cn)("w-8 h-8 shrink-0 ml-2",r.icon)})]},e.id)})}),(0,v.jsxs)("div",{className:"space-y-3",children:[(0,v.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider text-slate-400",children:"Documents r\xe9cents & proc\xe9dures officielles"}),(0,v.jsx)("ul",{className:"space-y-2",children:t.map(function(e){return(0,v.jsxs)("li",{className:"p-3 rounded-lg bg-slate-900/60 border border-white/10 hover:border-teal-400/40 flex items-center justify-between transition-colors",children:[(0,v.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,v.jsx)("div",{className:"p-2 rounded-lg bg-white/5 text-teal-300 shrink-0",children:(0,v.jsx)(SQ,{className:"w-4 h-4"})}),(0,v.jsxs)("div",{className:"min-w-0",children:[(0,v.jsx)("h4",{className:"text-xs font-bold text-white truncate",children:e.title}),(0,v.jsxs)("p",{className:"flex flex-wrap items-center gap-1.5 sm:gap-3 text-[10px] text-slate-400 mt-0.5",children:[(0,v.jsx)("span",{className:"text-teal-400 font-semibold",children:e.category}),(0,v.jsx)("span",{children:"•"}),(0,v.jsx)("span",{children:e.type}),(0,v.jsx)("span",{children:"•"}),(0,v.jsx)("span",{children:e.size}),(0,v.jsx)("span",{children:"•"}),(0,v.jsxs)("span",{children:["Mis \xe0 jour le ",e.updated]})]})]})]}),o&&(0,v.jsx)("button",{type:"button",title:"T\xe9l\xe9charger","aria-label":"T\xe9l\xe9charger ".concat(e.title),onClick:function(){return o(e)},className:"p-2 rounded-lg hover:bg-white/10 text-slate-300 hover:text-white transition-colors cursor-pointer shrink-0 ml-2",children:(0,v.jsx)(C0,{className:"w-4 h-4"})})]},e.id)})})]})]})}var C3=(0,ya.A)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);function C4(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function C5(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C4(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C4(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var C6="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");function C8(e){var t=e.member,r=e.size;return t.avatar?(0,v.jsx)("img",{src:t.avatar,alt:"",className:(0,w.cn)("rounded-full object-cover border border-white/20 shrink-0",r)}):(0,v.jsx)("span",{className:(0,w.cn)("rounded-full bg-teal-600/40 border border-white/20 flex items-center justify-center font-bold text-teal-100 shrink-0",r),children:t.name.slice(0,1).toUpperCase()})}function C9(e){var t=e.siteName,r=e.members,n=e.teams,a=void 0===n?[]:n,o=e.onSelect,i=e.className,s=C5((0,g.useState)(""),2),l=s[0],u=s[1],c=C5((0,g.useState)("all"),2),d=c[0],f=c[1],p=C5((0,g.useState)(""),2),m=p[0],h=p[1],y=C5((0,g.useState)("grid"),2),b=y[0],x=y[1],j=(0,g.useMemo)(function(){return new Set(r.map(function(e){return e.name.slice(0,1).toUpperCase()}))},[r]),O=(0,g.useMemo)(function(){var e=l.trim().toLowerCase();return r.filter(function(t){return("all"===d||t.teamId===d)&&(!m||t.name.toUpperCase().startsWith(m))&&(!e||[t.name,t.role,t.email,t.phone].some(function(t){return null==t?void 0:t.toLowerCase().includes(e)}))}).sort(function(e,t){return e.name.localeCompare(t.name,"fr")})},[r,l,d,m]),S=function(e){return(0,w.cn)("px-3 py-1 rounded-full border text-xs font-medium whitespace-nowrap transition-colors cursor-pointer",e?"bg-teal-500 text-slate-950 border-teal-400 font-bold":"border-white/15 text-slate-300 hover:text-white hover:bg-white/10")};return(0,v.jsxs)("div",{className:(0,w.cn)("flex-1 min-h-0 flex flex-col gap-3 text-slate-100",i),children:[(0,v.jsx)(Cq,{icon:(0,v.jsx)(SK,{className:"w-4 h-4 text-teal-400"}),title:"Membres & \xc9quipes — ".concat(t),description:"".concat(O.length," membre").concat(O.length>1?"s":""," affich\xe9").concat(O.length>1?"s":""," sur ").concat(r.length),actions:(0,v.jsx)("div",{className:"flex items-center gap-1 bg-white/5 p-1 rounded-lg border border-white/10",children:["grid","list"].map(function(e){return(0,v.jsx)("button",{type:"button","aria-pressed":b===e,"aria-label":"grid"===e?"Vue grille":"Vue liste",onClick:function(){return x(e)},className:(0,w.cn)("p-1.5 rounded-md cursor-pointer",b===e?"bg-teal-500 text-slate-950":"text-slate-300 hover:text-white"),children:"grid"===e?(0,v.jsx)(SF,{className:"w-4 h-4"}):(0,v.jsx)(C3,{className:"w-4 h-4"})},e)})})}),(0,v.jsxs)("div",{className:"relative",children:[(0,v.jsx)(SU.A,{className:"w-4 h-4 text-slate-400 absolute left-3 top-2.5"}),(0,v.jsx)("input",{type:"text",value:l,onChange:function(e){return u(e.target.value)},placeholder:"Rechercher par nom, fonction, e-mail ou t\xe9l\xe9phone...","aria-label":"Rechercher un membre",className:"w-full bg-slate-900/80 text-white placeholder-slate-400 text-xs pl-9 pr-3 py-2 rounded-lg border border-white/10 focus:outline-hidden focus:border-teal-400/50"})]}),a.length>0&&(0,v.jsxs)("div",{className:"flex gap-2 overflow-x-auto pb-1",children:[(0,v.jsx)("button",{type:"button",className:S("all"===d),onClick:function(){return f("all")},children:"Toutes les \xe9quipes"}),a.map(function(e){return(0,v.jsx)("button",{type:"button",className:S(d===e.id),onClick:function(){return f(e.id)},children:e.name},e.id)})]}),(0,v.jsxs)("div",{className:"flex gap-1 overflow-x-auto text-[11px]","aria-label":"Filtre alphab\xe9tique",children:[(0,v.jsx)("button",{type:"button",className:S(!m),onClick:function(){return h("")},children:"Tous"}),C6.map(function(e){return(0,v.jsx)("button",{type:"button",disabled:!j.has(e),onClick:function(){return h(m===e?"":e)},className:(0,w.cn)(S(m===e),"px-2 disabled:opacity-30 disabled:cursor-not-allowed"),children:e},e)})]}),(0,v.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto pr-1",children:0===O.length?(0,v.jsx)("p",{className:"text-center py-12 text-slate-400 text-xs",children:"Aucun membre ne correspond \xe0 votre recherche."}):"grid"===b?(0,v.jsx)("ul",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-3",children:O.map(function(e){return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",onClick:function(){return null==o?void 0:o(e)},className:"w-full text-left p-4 rounded-xl bg-slate-900/60 border border-white/10 hover:border-teal-400/40 hover:bg-slate-800/80 transition-all cursor-pointer flex items-center gap-3",children:[(0,v.jsx)(C8,{member:e,size:"w-12 h-12 text-base"}),(0,v.jsxs)("span",{className:"min-w-0",children:[(0,v.jsx)("span",{className:"block text-sm font-bold text-white truncate",children:e.name}),(0,v.jsx)("span",{className:"block text-[11px] text-teal-400/80 truncate",children:e.role}),e.email&&(0,v.jsx)("span",{className:"block text-[11px] text-slate-400 truncate",children:e.email})]})]})},e.id)})}):(0,v.jsx)("ul",{className:"divide-y divide-white/10 rounded-xl border border-white/10 bg-slate-900/60",children:O.map(function(e){return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",onClick:function(){return null==o?void 0:o(e)},className:"w-full text-left px-3 py-2 hover:bg-white/5 transition-colors cursor-pointer flex items-center gap-3",children:[(0,v.jsx)(C8,{member:e,size:"w-8 h-8 text-xs"}),(0,v.jsx)("span",{className:"flex-1 min-w-0 text-xs font-semibold text-white truncate",children:e.name}),(0,v.jsx)("span",{className:"hidden sm:block text-[11px] text-teal-400/80 truncate max-w-[40%]",children:e.role}),e.email&&(0,v.jsx)("span",{className:"hidden lg:block text-[11px] text-slate-400 truncate max-w-[30%]",children:e.email})]})},e.id)})})})]})}var C7=(0,ya.A)("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),Te=(0,ya.A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),Tt=r(3601),Tr=r(2930),Tn=(0,ya.A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function Ta(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function To(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function Ti(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function Ts(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ta(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ta(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Tl=[{id:"all",label:"Toutes"},{id:"todo",label:"\xc0 faire"},{id:"in_progress",label:"En cours"},{id:"done",label:"Termin\xe9es"}],Tu={haute:{label:"Priorit\xe9 Haute",cls:"bg-rose-500/20 text-rose-300 border-rose-500/30"},moyenne:{label:"Priorit\xe9 Moyenne",cls:"bg-amber-500/20 text-amber-300 border-amber-500/30"},basse:{label:"Priorit\xe9 Normale",cls:"bg-emerald-500/20 text-emerald-300 border-emerald-500/30"}},Tc="w-full px-3 py-1.5 rounded-lg bg-black/40 border border-white/15 text-xs text-white placeholder-slate-500 focus:outline-none focus:border-teal-400";function Td(e){var t=e.siteName,r=e.tasks,n=e.onToggleStatus,a=e.onCreate,o=e.className,i=Ts((0,g.useState)("all"),2),s=i[0],l=i[1],u=Ts((0,g.useState)(""),2),c=u[0],d=u[1],f=Ts((0,g.useState)(!1),2),p=f[0],m=f[1],h=Ts((0,g.useState)({title:"",description:"",priority:"moyenne",dueDate:""}),2),y=h[0],b=h[1],x=(0,g.useMemo)(function(){return{all:r.length,todo:r.filter(function(e){return"todo"===e.status}).length,in_progress:r.filter(function(e){return"in_progress"===e.status}).length,done:r.filter(function(e){return"done"===e.status}).length}},[r]),j=(0,g.useMemo)(function(){var e=c.trim().toLowerCase();return r.filter(function(t){return("all"===s||t.status===s)&&(!e||t.title.toLowerCase().includes(e)||t.description.toLowerCase().includes(e))})},[r,s,c]);return(0,v.jsxs)("div",{className:(0,w.cn)("flex-1 min-h-0 flex flex-col gap-3 text-slate-100",o),children:[(0,v.jsx)(Cq,{icon:(0,v.jsx)(C7,{className:"w-4 h-4 text-teal-400"}),title:"Mes t\xe2ches — ".concat(t),description:"Suivi des livrables, validations documentaires et actions assign\xe9es dans cet espace.",actions:(0,v.jsxs)("button",{type:"button",onClick:function(){return m(!0)},className:"px-3 py-1.5 rounded-lg bg-teal-500 hover:bg-teal-400 text-slate-950 font-bold text-xs flex items-center gap-1.5 shadow-md transition-all active:scale-95 cursor-pointer",children:[(0,v.jsx)(Te,{className:"w-4 h-4"}),(0,v.jsx)("span",{children:"Nouvelle t\xe2che"})]})}),(0,v.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-2",children:[(0,v.jsx)("div",{className:"flex items-center gap-1 bg-white/5 p-1 rounded-xl border border-white/10 text-xs overflow-x-auto",children:Tl.map(function(e){return(0,v.jsxs)("button",{type:"button",onClick:function(){return l(e.id)},className:(0,w.cn)("px-3 py-1 rounded-lg font-medium whitespace-nowrap transition-colors cursor-pointer",s===e.id?"bg-teal-500 text-slate-950 font-bold":"text-slate-300 hover:text-white"),children:[e.label," (",x[e.id],")"]},e.id)})}),(0,v.jsxs)("div",{className:"relative w-full sm:w-64",children:[(0,v.jsx)(SU.A,{className:"w-3.5 h-3.5 absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),(0,v.jsx)("input",{type:"text",value:c,onChange:function(e){return d(e.target.value)},placeholder:"Rechercher une t\xe2che...","aria-label":"Rechercher une t\xe2che",className:"w-full pl-8 pr-3 py-1 rounded-lg bg-slate-900/60 border border-white/10 text-xs text-white placeholder-slate-400 focus:outline-none focus:border-teal-400/80"})]})]}),(0,v.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto space-y-2 pr-1",children:0===j.length?(0,v.jsxs)("div",{className:"text-center py-12 text-slate-400 text-xs",children:[(0,v.jsx)(Tt.A,{className:"w-8 h-8 mx-auto mb-2 text-slate-500"}),"Aucune t\xe2che ne correspond \xe0 vos filtres."]}):j.map(function(e){return(0,v.jsxs)("div",{className:(0,w.cn)("p-3 rounded-xl border transition-all flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3","done"===e.status?"bg-slate-950/40 border-white/5 opacity-70":"bg-slate-900/60 border-white/10 hover:border-teal-400/40"),children:[(0,v.jsxs)("div",{className:"flex items-start gap-3 flex-1 min-w-0",children:[(0,v.jsxs)("button",{type:"button",onClick:function(){return n(e)},title:"Changer le statut","aria-label":"Changer le statut de ".concat(e.title),className:(0,w.cn)("mt-0.5 w-5 h-5 rounded-md border flex items-center justify-center transition-colors cursor-pointer shrink-0","done"===e.status?"bg-emerald-500 border-emerald-400 text-slate-950":"in_progress"===e.status?"bg-amber-500/20 border-amber-400 text-amber-300":"border-white/20 hover:border-teal-400"),children:["done"===e.status&&(0,v.jsx)(Tr.A,{className:"w-3.5 h-3.5"}),"in_progress"===e.status&&(0,v.jsx)("span",{className:"w-2 h-2 rounded-full bg-amber-400"})]}),(0,v.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,v.jsx)("h4",{className:(0,w.cn)("text-xs sm:text-sm font-semibold text-white","done"===e.status&&"line-through text-slate-400"),children:e.title}),(0,v.jsx)("p",{className:"text-[11px] text-slate-400 mt-0.5 line-clamp-2",children:e.description}),(0,v.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-2 text-[10px]",children:[(0,v.jsxs)("span",{className:"flex items-center gap-1 text-slate-400",children:[(0,v.jsx)(SG,{className:"w-3 h-3"}),e.dueDate]}),(0,v.jsx)("span",{className:"text-white/20",children:"•"}),(0,v.jsxs)("span",{className:"flex items-center gap-1 text-slate-400",children:[(0,v.jsx)(Tn,{className:"w-3 h-3 text-teal-400"}),"Assign\xe9 \xe0 : ",(0,v.jsx)("strong",{className:"text-slate-200",children:e.assignedTo})]}),e.tags.map(function(e){return(0,v.jsx)("span",{className:"px-1.5 rounded bg-white/5 border border-white/10 text-slate-300",children:e},e)})]})]})]}),(0,v.jsxs)("div",{className:"flex sm:flex-col items-center sm:items-end justify-between w-full sm:w-auto gap-1 shrink-0",children:[(0,v.jsx)("span",{className:(0,w.cn)("px-2 py-0.5 rounded-full text-[10px] font-bold uppercase border",Tu[e.priority].cls),children:Tu[e.priority].label}),(0,v.jsx)("span",{className:(0,w.cn)("text-[10px] font-semibold","done"===e.status?"text-emerald-400":"in_progress"===e.status?"text-amber-400":"text-slate-400"),children:"done"===e.status?"✓ Termin\xe9e":"in_progress"===e.status?"● En cours":"○ \xc0 faire"})]})]},e.id)})}),p&&(0,v.jsx)("div",{role:"dialog","aria-modal":"true","aria-label":"Nouvelle t\xe2che",className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",onKeyDown:function(e){return"Escape"===e.key&&m(!1)},children:(0,v.jsxs)("div",{className:"w-full max-w-md rounded-2xl bg-slate-900 border border-white/20 p-5 shadow-2xl",children:[(0,v.jsxs)("div",{className:"flex items-center justify-between pb-3 border-b border-white/10",children:[(0,v.jsxs)("h3",{className:"font-bold text-sm text-white flex items-center gap-2",children:[(0,v.jsx)(C7,{className:"w-4 h-4 text-teal-400"}),"Nouvelle t\xe2che pour ",t]}),(0,v.jsx)("button",{type:"button","aria-label":"Fermer",onClick:function(){return m(!1)},className:"text-slate-400 hover:text-white cursor-pointer",children:(0,v.jsx)(kz.A,{className:"w-4 h-4"})})]}),(0,v.jsxs)("form",{onSubmit:function(e){e.preventDefault(),y.title.trim()&&(a(Ti(To({},y),{title:y.title.trim(),description:y.description.trim()})),b({title:"",description:"",priority:"moyenne",dueDate:""}),m(!1))},className:"space-y-3 mt-4",children:[(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Titre de la t\xe2che"}),(0,v.jsx)("input",{autoFocus:!0,required:!0,className:Tc,value:y.title,onChange:function(e){return b(Ti(To({},y),{title:e.target.value}))}})]}),(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Description / Consignes"}),(0,v.jsx)("textarea",{rows:3,className:(0,w.cn)(Tc,"resize-none"),value:y.description,onChange:function(e){return b(Ti(To({},y),{description:e.target.value}))}})]}),(0,v.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Priorit\xe9"}),(0,v.jsxs)("select",{className:Tc,value:y.priority,onChange:function(e){return b(Ti(To({},y),{priority:e.target.value}))},children:[(0,v.jsx)("option",{value:"haute",children:"Haute"}),(0,v.jsx)("option",{value:"moyenne",children:"Moyenne"}),(0,v.jsx)("option",{value:"basse",children:"Basse"})]})]}),(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"\xc9ch\xe9ance"}),(0,v.jsx)("input",{className:Tc,value:y.dueDate,onChange:function(e){return b(Ti(To({},y),{dueDate:e.target.value}))}})]})]}),(0,v.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-3 border-t border-white/10",children:[(0,v.jsx)("button",{type:"button",onClick:function(){return m(!1)},className:"px-3 py-1.5 rounded-lg text-xs text-slate-300 hover:text-white cursor-pointer",children:"Annuler"}),(0,v.jsx)("button",{type:"submit",className:"px-4 py-1.5 rounded-lg bg-teal-500 hover:bg-teal-400 text-slate-950 font-bold text-xs shadow-md active:scale-95 cursor-pointer",children:"Cr\xe9er la t\xe2che"})]})]})]})})]})}var Tf=(0,ya.A)("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),Tp=(0,ya.A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);function Tm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Th(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function Ty(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tm(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Tv=[{id:"all",label:"Tous les \xe9v\xe9nements"},{id:"upload",label:"T\xe9l\xe9versements & GED"},{id:"validate",label:"Validations & Scellements"},{id:"member_join",label:"Habilitations & Membres"},{id:"security",label:"S\xe9curit\xe9 & Audit"}],Tg={upload:{cls:"bg-sky-500",glyph:"↑"},validate:{cls:"bg-emerald-500",glyph:"✓"},member_join:{cls:"bg-amber-500",glyph:"+"},security:{cls:"bg-indigo-500",glyph:"!"},edit:{cls:"bg-teal-500",glyph:"✎"}};function Tb(e){var t=e.siteName,r=e.activities,n=e.onRefresh,a=e.className,o=Ty((0,g.useState)("all"),2),i=o[0],s=o[1],l=Ty((0,g.useState)(!1),2),u=l[0],c=l[1],d=(0,g.useMemo)(function(){return r.filter(function(e){return"all"===i||e.action===i})},[r,i]);return(0,v.jsxs)("div",{className:(0,w.cn)("flex-1 min-h-0 flex flex-col gap-3 text-slate-100",a),children:[(0,v.jsx)(Cq,{icon:(0,v.jsx)(Tf,{className:"w-4 h-4 text-sky-400"}),title:"Activit\xe9 & Journal d'Audit — ".concat(t),description:"Tra\xe7abilit\xe9 en temps r\xe9el des versements, consultations, modifications et habilitations du site.",actions:n&&(0,v.jsxs)("button",{type:"button",disabled:u,onClick:function(){var e;return(e=function(){return function(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:c(!0),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,null==n?void 0:n()];case 2:return e.sent(),[3,4];case 3:return c(!1),[7];case 4:return[2]}})},function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(e){Th(o,n,a,i,s,"next",e)}function s(e){Th(o,n,a,i,s,"throw",e)}i(void 0)})})()},className:"px-3 py-1.5 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 text-slate-200 text-xs flex items-center gap-1.5 transition-colors cursor-pointer disabled:opacity-60",children:[(0,v.jsx)(Tp,{className:(0,w.cn)("w-3.5 h-3.5",u&&"animate-spin text-teal-400")}),(0,v.jsx)("span",{children:"Actualiser le flux"})]})}),(0,v.jsx)("div",{className:"flex items-center gap-1 bg-white/5 p-1 rounded-xl border border-white/10 text-xs overflow-x-auto",children:Tv.map(function(e){return(0,v.jsxs)("button",{type:"button",onClick:function(){return s(e.id)},className:(0,w.cn)("px-3 py-1 rounded-lg font-medium whitespace-nowrap transition-colors cursor-pointer",i===e.id?"bg-sky-500 text-slate-950 font-bold":"text-slate-300 hover:text-white"),children:[e.label,"all"===e.id&&" (".concat(r.length,")")]},e.id)})}),(0,v.jsx)("ul",{className:"flex-1 min-h-0 overflow-y-auto space-y-2 pr-1",children:d.map(function(e){return(0,v.jsxs)("li",{className:"p-3 rounded-xl bg-slate-900/60 border border-white/10 hover:border-sky-400/40 transition-all flex items-start gap-3",children:[(0,v.jsxs)("div",{className:"relative shrink-0",children:[e.userAvatar?(0,v.jsx)("img",{src:e.userAvatar,alt:"",className:"w-8 h-8 rounded-full object-cover border border-white/20"}):(0,v.jsx)("span",{className:"w-8 h-8 rounded-full bg-slate-700 border border-white/20 flex items-center justify-center text-[11px] font-bold",children:e.userName.slice(0,1)}),(0,v.jsx)("span",{"aria-hidden":"true",className:(0,w.cn)("absolute -bottom-1 -right-1 w-4 h-4 rounded-full flex items-center justify-center text-[9px] font-bold text-white border border-slate-950",Tg[e.action].cls),children:Tg[e.action].glyph})]}),(0,v.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,v.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-1",children:[(0,v.jsxs)("p",{className:"text-xs text-white",children:[(0,v.jsx)("strong",{className:"font-semibold text-sky-300",children:e.userName}),(0,v.jsxs)("span",{className:"text-slate-400",children:[" (",e.userRole,") "]}),(0,v.jsx)("span",{className:"text-slate-300",children:e.actionLabel})]}),(0,v.jsx)("span",{className:"text-[10px] text-slate-400 shrink-0 font-mono",children:e.timeAgo})]}),(0,v.jsxs)("div",{className:"mt-1.5 flex items-center gap-2 p-2 rounded-lg bg-black/30 border border-white/5",children:[(0,v.jsx)(SQ,{className:"w-3.5 h-3.5 text-sky-400 shrink-0"}),(0,v.jsx)("span",{className:"text-xs font-semibold text-white truncate",children:e.targetTitle}),(0,v.jsx)("span",{className:"ml-auto text-[9px] px-1.5 rounded bg-white/10 text-slate-300 shrink-0",children:e.targetType})]})]})]},e.id)})})]})}var Tx=(0,ya.A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),Tw=(0,ya.A)("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]),Tj=(0,ya.A)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]),TO=(0,ya.A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]),TS=(0,ya.A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);function Tk(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function TE(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function TP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tk(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tk(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var TA=[{id:"PUBLIC",label:"Public",hint:"Accessible \xe0 tous les collaborateurs de l'organisation.",icon:SJ},{id:"MODERATED",label:"Mod\xe9r\xe9",hint:"Adh\xe9sion soumise \xe0 l'approbation du gestionnaire du site.",icon:SK},{id:"PRIVATE",label:"Priv\xe9",hint:"Strictement r\xe9serv\xe9 aux membres invit\xe9s manuellement.",icon:Tx}],TD="p-4 rounded-xl bg-slate-900/60 border border-white/10 space-y-3",TC="text-xs font-bold text-teal-300 uppercase tracking-wider flex items-center gap-2",TT="w-full px-3 py-1.5 rounded-lg bg-black/40 border border-white/15 text-xs text-white focus:outline-none focus:border-teal-400";function TN(e){var t=e.label,r=e.hint,n=e.checked,a=e.onChange;return(0,v.jsxs)("label",{className:"flex items-center justify-between gap-3 cursor-pointer",children:[(0,v.jsxs)("span",{children:[(0,v.jsx)("span",{className:"block text-xs font-semibold text-white",children:t}),r&&(0,v.jsx)("span",{className:"block text-[11px] text-slate-400",children:r})]}),(0,v.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){return a(e.target.checked)},className:"w-4 h-4 accent-teal-500 cursor-pointer shrink-0"})]})}function TR(e){var t=e.siteName,r=e.siteUuid,n=e.initialValue,a=e.storage,o=e.onSave,i=e.className,s=TP((0,g.useState)(n),2),l=s[0],u=s[1],c=TP((0,g.useState)(!1),2),d=c[0],f=c[1],p=function(e){return u(function(t){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},t,e)})};return(0,v.jsxs)("div",{className:(0,w.cn)("flex-1 min-h-0 flex flex-col gap-4 text-slate-100 overflow-y-auto pr-1",i),children:[(0,v.jsx)(Cq,{icon:(0,v.jsx)(S$,{className:"w-4 h-4 text-teal-400"}),title:"Param\xe8tres du Site — ".concat(t),description:"Administration de l'espace collaboratif, visibilit\xe9, quotas et politique de s\xe9curit\xe9.",actions:d&&(0,v.jsxs)("span",{role:"status",className:"flex items-center gap-1.5 px-3 py-1 rounded-lg bg-emerald-500/20 border border-emerald-500/30 text-emerald-300 text-xs font-semibold",children:[(0,v.jsx)(Tt.A,{className:"w-4 h-4 text-emerald-400"}),"Param\xe8tres enregistr\xe9s"]})}),(0,v.jsxs)("form",{onSubmit:function(e){var t;return(t=function(){return function(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return e.preventDefault(),[4,o(l)];case 1:return t.sent(),f(!0),setTimeout(function(){return f(!1)},3e3),[2]}})},function(){var e=this,r=arguments;return new Promise(function(n,a){var o=t.apply(e,r);function i(e){TE(o,n,a,i,s,"next",e)}function s(e){TE(o,n,a,i,s,"throw",e)}i(void 0)})})()},className:"space-y-4",children:[(0,v.jsxs)("section",{className:TD,children:[(0,v.jsxs)("h3",{className:TC,children:[(0,v.jsx)(Tw,{className:"w-3.5 h-3.5"}),"Informations g\xe9n\xe9rales"]}),(0,v.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Nom public du site"}),(0,v.jsx)("input",{className:TT,value:l.title,onChange:function(e){return p({title:e.target.value})}})]}),(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Identifiant unique (UUID)"}),(0,v.jsx)("input",{readOnly:!0,className:(0,w.cn)(TT,"bg-black/60 border-white/10 text-slate-400 font-mono"),value:r})]})]}),(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Description & mission du site"}),(0,v.jsx)("textarea",{rows:2,className:(0,w.cn)(TT,"resize-none"),value:l.description,onChange:function(e){return p({description:e.target.value})}})]})]}),(0,v.jsxs)("section",{className:TD,children:[(0,v.jsxs)("h3",{className:TC,children:[(0,v.jsx)(Tj,{className:"w-3.5 h-3.5"}),"Visibilit\xe9 & acc\xe8s"]}),(0,v.jsx)("div",{role:"radiogroup","aria-label":"Visibilit\xe9",className:"grid grid-cols-1 sm:grid-cols-3 gap-2.5",children:TA.map(function(e){var t=e.id,r=e.label,n=e.hint,a=e.icon;return(0,v.jsxs)("button",{type:"button",role:"radio","aria-checked":l.visibility===t,onClick:function(){return p({visibility:t})},className:(0,w.cn)("p-3 rounded-xl border text-left transition-all cursor-pointer",l.visibility===t?"bg-teal-500/15 border-teal-400 text-white shadow-md":"bg-black/30 border-white/10 text-slate-400 hover:text-white"),children:[(0,v.jsxs)("span",{className:"flex items-center gap-2 mb-1",children:[(0,v.jsx)(a,{className:"w-4 h-4 text-teal-400"}),(0,v.jsx)("span",{className:"font-bold text-xs",children:r})]}),(0,v.jsx)("span",{className:"block text-[11px] text-slate-400",children:n})]},t)})}),(0,v.jsx)(TN,{label:"Autoriser les collaborateurs \xe0 inviter des tiers",hint:"Les collaborateurs r\xe9guliers peuvent proposer de nouveaux membres.",checked:l.allowMemberInvites,onChange:function(e){return p({allowMemberInvites:e})}})]}),(0,v.jsxs)("section",{className:TD,children:[(0,v.jsxs)("h3",{className:TC,children:[(0,v.jsx)(TO,{className:"w-3.5 h-3.5"}),"Stockage & notifications"]}),a&&(0,v.jsxs)("div",{className:"space-y-1",children:[(0,v.jsxs)("div",{className:"flex justify-between text-xs text-slate-300",children:[(0,v.jsxs)("span",{children:["Espace utilis\xe9 : ",(0,v.jsx)("strong",{children:a.usedLabel})]}),(0,v.jsxs)("span",{children:["Quota allou\xe9 : ",(0,v.jsx)("strong",{children:a.quotaLabel})]})]}),(0,v.jsx)("div",{className:"w-full h-2 rounded-full bg-black/40 overflow-hidden border border-white/10",children:(0,v.jsx)("div",{className:"h-full bg-teal-400 rounded-full",style:{width:"".concat(Math.min(100,Math.max(0,a.percent)),"%")}})})]}),(0,v.jsxs)("div",{className:"pt-2 space-y-2 border-t border-white/10",children:[(0,v.jsx)(TN,{label:"Notifier lors du t\xe9l\xe9versement d'un nouveau document",checked:l.notifyOnUpload,onChange:function(e){return p({notifyOnUpload:e})}}),(0,v.jsx)(TN,{label:"Alerter lors de la validation officielle d'un bordereau",checked:l.notifyOnValidation,onChange:function(e){return p({notifyOnValidation:e})}})]})]}),(0,v.jsx)("div",{className:"flex justify-end pt-2",children:(0,v.jsxs)("button",{type:"submit",className:"px-5 py-2 rounded-xl bg-teal-500 hover:bg-teal-400 text-slate-950 font-bold text-xs flex items-center gap-2 shadow-lg transition-all active:scale-95 cursor-pointer",children:[(0,v.jsx)(TS,{className:"w-4 h-4"}),"Enregistrer les param\xe8tres du site"]})})]})]})}function TM(e){var t=e.title,r=e.subtitle,n=e.avatar,a=e.following,o=e.onToggleFollow,i=e.actions,s=e.className;return(0,v.jsx)("div",{className:(0,w.cn)("w-full bg-teal-700 border-b border-teal-500/30 text-white px-3 sm:px-6 py-2 shadow-xs",s),children:(0,v.jsxs)("div",{className:"max-w-7xl mx-auto flex items-center justify-between gap-2",children:[(0,v.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[n&&(0,v.jsx)("div",{className:"w-8 h-8 bg-slate-900/50 border border-teal-300/40 flex items-center justify-center shrink-0",children:n}),(0,v.jsxs)("div",{className:"flex flex-col -space-y-0.5 min-w-0",children:[(0,v.jsx)("h1",{className:"text-sm sm:text-base font-bold tracking-tight leading-tight truncate",children:t}),r&&(0,v.jsx)("p",{className:"text-teal-100/80 text-[10px] sm:text-[11px] leading-none truncate",children:r})]})]}),(0,v.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[o&&(0,v.jsxs)("button",{type:"button","aria-pressed":a,onClick:o,className:"flex items-center gap-1.5 px-2.5 py-1 border border-white/30 hover:bg-white/10 text-xs font-semibold transition-colors cursor-pointer",children:[(0,v.jsx)(S2,{className:(0,w.cn)("w-3.5 h-3.5",a&&"fill-amber-300 text-amber-300")}),(0,v.jsx)("span",{className:"hidden sm:inline",children:a?"Suivi":"Suivre"})]}),i]})]})})}var TI={conversation:{id:"conversation",number:"1",name:"Mode Conversation",shortName:"Conversation",tagline:"Comprendre & R\xe9pondre",badgeLabel:"Conv",emoji:"\uD83D\uDCAC",iconName:"MessageSquare",color:{text:"text-sky-400",bg:"bg-sky-500/10",border:"border-sky-500/30",ring:"ring-sky-500/40",badgeBg:"bg-sky-500",badgeText:"text-slate-950",glow:"shadow-sky-500/25",accent:"#38bdf8"},principle:"L'agent comprend et r\xe9pond.",bullets:["Questions & r\xe9ponses","Explications & clarifications","Discussion en langage naturel","Conseil informationnel"],example:"\xab Qu'est-ce que cette fonctionnalit\xe9 ? \xbb"},recherche:{id:"recherche",number:"2",name:"Mode Recherche / Analyse",shortName:"Recherche",tagline:"Chercher, R\xe9cup\xe9rer & Interpr\xe9ter",badgeLabel:"Rech",emoji:"\uD83D\uDD0E",iconName:"Search",color:{text:"text-amber-400",bg:"bg-amber-500/10",border:"border-amber-500/30",ring:"ring-amber-500/40",badgeBg:"bg-amber-400",badgeText:"text-slate-950",glow:"shadow-amber-500/25",accent:"#fbbf24"},principle:"L'agent cherche, r\xe9cup\xe8re et interpr\xe8te de l'information.",bullets:["Recherche dans la base de connaissances","Consultation & extraction documentaire","Analyse et croisement de donn\xe9es","Comparaison & synth\xe8se structur\xe9e"],example:"\xab Trouve les documents concernant ce projet et r\xe9sume-les. \xbb"},action:{id:"action",number:"3",name:"Mode Action",shortName:"Action",tagline:"Agir sur le Syst\xe8me via Outils",badgeLabel:"Act",emoji:"⚙️",iconName:"Zap",color:{text:"text-emerald-400",bg:"bg-emerald-500/10",border:"border-emerald-500/30",ring:"ring-emerald-500/40",badgeBg:"bg-emerald-400",badgeText:"text-slate-950",glow:"shadow-emerald-500/25",accent:"#34d399"},principle:"L'agent agit sur le syst\xe8me \xe0 travers des outils (diff\xe9rence cl\xe9 avec un simple chatbot).",bullets:["Cr\xe9er, modifier, supprimer des contenus","Publier & programmer des diffusions","Appeler des API & int\xe9grations","D\xe9clencher des workflows & automatisations"],example:"\xab Cr\xe9e cette actualit\xe9 et programme sa publication demain. \xbb"},autonome:{id:"autonome",number:"4",name:"Mode Autonome",shortName:"Autonome",tagline:"Orchestration Multi-\xe9tapes vers un Objectif",badgeLabel:"Auto",emoji:"\uD83E\uDD16",iconName:"Cpu",color:{text:"text-purple-400",bg:"bg-purple-500/10",border:"border-purple-500/30",ring:"ring-purple-500/40",badgeBg:"bg-purple-400",badgeText:"text-slate-950",glow:"shadow-purple-500/25",accent:"#c084fc"},principle:"L'agent re\xe7oit un objectif et d\xe9termine lui-m\xeame les \xe9tapes n\xe9cessaires sans guidage pas-\xe0-pas.",bullets:["Planification intelligente de l’objectif","Recherche & analyse autonome","Cr\xe9ation & ex\xe9cution des actions requises","V\xe9rification & production du r\xe9sultat final"],example:"\xab Pr\xe9pare toute la communication de notre \xe9v\xe9nement. \xbb",schema:["Objectif","Planification","Recherche","Analyse","Cr\xe9ation","Actions","V\xe9rification","R\xe9sultat"]}},T_="egen_assistant_mode";function TL(){if("u"<typeof window)return"conversation";try{var e=localStorage.getItem(T_);if(e&&TI[e])return e}catch(e){}return"conversation"}function TF(e){if("u">typeof window)try{localStorage.setItem(T_,e)}catch(e){}}function TB(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function TV(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function Tz(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function TW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return TB(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TB(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var TU=["#7C6AF7","#7DD3C7","#E8B4D4"],T$=["#3DBA2E","#F2E62F"],TH="\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n\nuniform vec2 u_resolution;\nuniform float u_time;\nuniform float u_speed;\nuniform mat3 u_rot;\nuniform float u_blink;\nuniform float u_mode;\nuniform float u_ears;\nuniform vec3 u_body;\nuniform vec3 u_eye;\nuniform vec3 u_c1;\nuniform vec3 u_c2;\nuniform vec3 u_c3;\nuniform vec3 u_ear1;\nuniform vec3 u_ear2;\n\n// ---- Camera ---------------------------------------------------------------\nconst float CAM_DIST = 6.0;\nconst float HALF_VIEW = ".concat("1.3761",";\n\n// ---- Head (local space, +z = face) ----------------------------------------\nconst vec3 HEAD_R = vec3(1.0, 0.74, 0.86);\n\n// ---- Face (decals projected on the head surface) --------------------------\nconst float EYE_X = 0.455;\nconst float EYE_Y = 0.075;\nconst float EYE_RX = 0.118;\nconst float EYE_RY = 0.128;\nconst float LINE_HALF = 0.021;\n\n// ---- Ear-cups (headphones) -------------------------------------------------\nconst vec3 EAR_C = vec3(1.02, -0.10, 0.02);\nconst float EAR_R = 0.385;\nconst float EAR_HT = 0.072;\nconst float EAR_ROUND = 0.045;\nconst float RECESS_R = 0.335;\nconst float RECESS_D = 0.020;\nconst float RING_R = 0.272;\nconst float RING_T = 0.034;\nconst float RING_X = 0.062;\n// cos / sin of the toe-in (cup faces slightly forward)\nconst float EC = 0.9287;\nconst float ES = 0.3709;\n\nfloat hash(vec2 p) {\n return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453123);\n}\n\nfloat noise(vec2 p) {\n vec2 i = floor(p);\n vec2 f = fract(p);\n float a = hash(i);\n float b = hash(i + vec2(1.0, 0.0));\n float c = hash(i + vec2(0.0, 1.0));\n float d = hash(i + vec2(1.0, 1.0));\n vec2 u = f * f * (3.0 - 2.0 * f);\n return mix(a, b, u.x) + (c - a) * u.y * (1.0 - u.x) + (d - b) * u.x * u.y;\n}\n\nfloat fbm(vec2 p) {\n float v = 0.0;\n float a = 0.5;\n mat2 m = mat2(1.6, 1.2, -1.2, 1.6);\n for (int i = 0; i < 5; i++) {\n v += a * noise(p);\n p = m * p;\n a *= 0.5;\n }\n return v;\n}\n\nvec3 wash(vec3 n, float t) {\n vec2 q = n.xy * 2.2 + n.z * 0.85;\n vec2 w1 = vec2(\n fbm(q * 1.4 + vec2(t * 0.22, t * 0.18)),\n fbm(q * 1.4 + vec2(-t * 0.16, t * 0.24) + 4.1)\n );\n q += (w1 - 0.5) * 0.72;\n float f = fbm(q * 2.1 + vec2(0.0, t * 0.12));\n float g = fbm(q * 4.6 - vec2(t * 0.2, 0.0));\n vec3 col = mix(u_c1, u_c2, smoothstep(0.28, 0.72, f));\n return mix(col, u_c3, pow(smoothstep(0.42, 0.9, g), 1.4));\n}\n\nfloat smin(float a, float b, float k) {\n float h = max(k - abs(a - b), 0.0) / k;\n return min(a, b) - h * h * k * 0.25;\n}\n\nfloat smax(float a, float b, float k) {\n return -smin(-a, -b, k);\n}\n\nfloat sdEllipsoid(vec3 p, vec3 r) {\n float k0 = length(p / r);\n float k1 = length(p / (r * r));\n return k0 * (k0 - 1.0) / max(k1, 1e-4);\n}\n\n// Ear frame: x = cup axis (outward, toed-in), (y, z) = radial plane. Mirrored.\nvec3 earFrame(vec3 p) {\n vec3 q = vec3(abs(p.x), p.y, p.z) - EAR_C;\n return vec3(EC * q.x + ES * q.z, q.y, -ES * q.x + EC * q.z);\n}\n\nfloat sdCup(vec3 e) {\n float rr = EAR_ROUND;\n float rad = length(e.yz);\n vec2 w = vec2(rad - EAR_R + rr, abs(e.x) - EAR_HT + rr);\n float d = min(max(w.x, w.y), 0.0) + length(max(w, 0.0)) - rr;\n // shallow recess in the outer face: the rim stays proud around it\n float rec = max(rad - RECESS_R, (EAR_HT - RECESS_D) - e.x);\n return smax(d, -rec, 0.012);\n}\n\nfloat sdRing(vec3 e) {\n vec2 t = vec2(length(e.yz) - RING_R, e.x - RING_X);\n return length(t) - RING_T;\n}\n\n// x = distance to the whole shape, y = distance to the neon ring\nvec2 map(vec3 p) {\n float d = sdEllipsoid(p, HEAD_R);\n float dr = 1e3;\n if (u_ears > 0.5) {\n vec3 e = earFrame(p);\n d = smin(d, sdCup(e), 0.045);\n dr = sdRing(e);\n d = min(d, dr);\n }\n return vec2(d, dr);\n}\n\nvec3 calcNormal(vec3 p) {\n const vec2 k = vec2(1.0, -1.0);\n const float h = 0.0016;\n return normalize(\n k.xyy * map(p + k.xyy * h).x +\n k.yyx * map(p + k.yyx * h).x +\n k.yxy * map(p + k.yxy * h).x +\n k.xxx * map(p + k.xxx * h).x\n );\n}\n\nfloat calcAO(vec3 p, vec3 n) {\n float occ = 0.0;\n float s = 1.0;\n for (int i = 1; i <= 4; i++) {\n float h = 0.045 * float(i);\n occ += (h - map(p + n * h).x) * s;\n s *= 0.72;\n }\n return clamp(1.0 - 2.4 * occ, 0.0, 1.0);\n}\n\nfloat softShadow(vec3 ro, vec3 rd) {\n float res = 1.0;\n float t = 0.05;\n for (int i = 0; i < 22; i++) {\n float h = map(ro + rd * t).x;\n res = min(res, 9.0 * h / t);\n t += clamp(h, 0.02, 0.22);\n if (res < 0.002 || t > 2.6) break;\n }\n return clamp(res, 0.0, 1.0);\n}\n\nvoid main() {\n vec2 uv = (gl_FragCoord.xy / u_resolution.xy) * 2.0 - 1.0;\n float aspect = u_resolution.x / max(u_resolution.y, 1.0);\n uv.x *= aspect;\n\n float kView = HALF_VIEW / CAM_DIST;\n float pixAng = 2.0 * kView / max(u_resolution.y, 1.0);\n\n vec3 rdW = normalize(vec3(uv * kView, -1.0));\n vec3 roW = vec3(0.0, 0.0, CAM_DIST);\n // world -> head space (u_rot is head -> world; v * M == transpose(M) * v)\n vec3 ro = roW * u_rot;\n vec3 rd = rdW * u_rot;\n\n // bounding sphere\n float bnd = 1.55;\n float b = dot(ro, rd);\n float c = dot(ro, ro) - bnd * bnd;\n float disc = b * b - c;\n if (disc < 0.0) {\n gl_FragColor = vec4(0.0);\n return;\n }\n float sq = sqrt(disc);\n float tEnd = -b + sq;\n float t = max(-b - sq, 0.0);\n\n float minD = 1e3;\n float tMin = t;\n float glow = 0.0;\n bool hit = false;\n vec2 m = vec2(1e3);\n\n for (int i = 0; i < 80; i++) {\n vec3 p = ro + rd * t;\n m = map(p);\n float eps = max(0.0007, 0.35 * t * pixAng);\n if (m.x < eps) {\n hit = true;\n break;\n }\n if (m.x < minD) {\n minD = m.x;\n tMin = t;\n }\n float stp = m.x * 0.85;\n glow += exp(-m.y * m.y * 150.0) * stp;\n t += stp;\n if (t > tEnd) break;\n }\n\n vec3 glowCol = mix(u_ear1, u_ear2, 0.5);\n float ga = (u_ears > 0.5) ? (1.0 - exp(-glow * 3.0)) * 0.8 : 0.0;\n\n float cov = 0.0;\n vec3 col = vec3(0.0);\n\n if (hit) {\n cov = 1.0;\n vec3 pl = ro + rd * t;\n vec3 nl = calcNormal(pl);\n vec3 nW = normalize(u_rot * nl);\n vec3 v = -rdW;\n\n // lights are fixed in the world: turning the head re-shades it\n vec3 keyW = normalize(vec3(-0.5, 0.72, 0.78));\n vec3 fillW = normalize(vec3(0.85, 0.05, 0.45));\n vec3 keyL = keyW * u_rot;\n float sh = softShadow(pl + nl * 0.012, keyL);\n float ao = calcAO(pl, nl);\n\n float ndl = dot(nW, keyW);\n float wrap = clamp((ndl + 0.35) / 1.35, 0.0, 1.0);\n float fill = clamp((dot(nW, fillW) + 0.3) / 1.3, 0.0, 1.0);\n float sky = nW.y * 0.5 + 0.5;\n vec3 amb = mix(vec3(0.60, 0.61, 0.64), vec3(0.80, 0.81, 0.84), sky);\n vec3 lightSum = amb * ao\n + vec3(1.0, 0.975, 0.94) * 0.62 * wrap * mix(0.55, 1.0, sh) * (0.55 + 0.45 * ao)\n + vec3(0.82, 0.86, 1.0) * 0.12 * fill * ao;\n\n vec3 hv = normalize(keyW + v);\n float ndh = max(dot(nW, hv), 0.0);\n float specK = (pow(ndh, 64.0) * 0.55 + pow(ndh, 14.0) * 0.10) * sh;\n float ndv = max(dot(nW, v), 0.0);\n float fres = 0.04 + 0.96 * pow(1.0 - ndv, 5.0);\n vec3 refl = reflect(-v, nW);\n vec3 env = mix(vec3(0.30, 0.31, 0.34), vec3(0.96, 0.97, 0.99), smoothstep(-0.25, 0.95, refl.y));\n\n float px = t * pixAng;\n vec3 body = (u_mode > 0.5) ? wash(nl, u_time * u_speed) : u_body;\n\n // ---- ear materials ------------------------------------------------------\n float plate = 0.0;\n float ringMask = 0.0;\n vec3 ringCol = vec3(0.0);\n float spill = 0.0;\n if (u_ears > 0.5) {\n vec3 e = earFrame(pl);\n float rad = length(e.yz);\n float outward = smoothstep(0.02, 0.05, e.x);\n plate = (1.0 - smoothstep(RECESS_R - 0.006 - px, RECESS_R + 0.004 + px, rad)) * outward;\n float dRing = sdRing(e);\n ringMask = 1.0 - smoothstep(0.0, 0.01 + px, dRing);\n float ang = atan(e.z, e.y);\n float gradT = 0.5 + 0.5 * sin(ang + (pl.x > 0.0 ? 0.6 : 2.5));\n vec3 neon = mix(u_ear1, u_ear2, gradT);\n float core = exp(-pow(dRing / RING_T + 1.0, 2.0) * 1.1);\n ringCol = mix(neon, vec3(1.0), 0.40 * core) * (1.05 + 0.08 * sin(u_time * 1.7));\n spill = exp(-max(dRing, 0.0) * 14.0) * outward;\n }\n vec3 plateCol = mix(vec3(0.16, 0.17, 0.20), u_body * 0.22 + vec3(0.07), 0.5);\n body = mix(body, plateCol, plate);\n\n // ---- face decals: eyes + connecting line --------------------------------\n float onFace = smoothstep(0.18, 0.42, pl.z);\n float lid = mix(1.0, 0.10, u_blink);\n float aa = max(px * 1.1, 0.0035);\n vec2 pe = pl.xy - vec2(0.0, EYE_Y);\n vec2 dl = vec2(abs(pe.x) - EYE_X, pe.y) / vec2(EYE_RX, EYE_RY * lid);\n float eyeM = 1.0 - smoothstep(1.0 - aa / EYE_RX, 1.0 + aa / EYE_RX, length(dl));\n float lw = max(LINE_HALF, 0.6 * px);\n float lineM =\n (1.0 - smoothstep(lw - aa, lw + aa, abs(pe.y))) *\n (1.0 - smoothstep(EYE_X - aa, EYE_X + aa, abs(pe.x)));\n float face = clamp(max(eyeM, lineM), 0.0, 1.0) * onFace;\n\n // ---- shade ----------------------------------------------------------------\n vec3 lit = body * lightSum;\n lit += vec3(1.0) * specK * (1.0 - plate * 0.6);\n lit = mix(lit, env * mix(vec3(1.0), body, 0.35), fres * 0.42);\n\n vec3 eyeLit = u_eye * (0.84 + 0.16 * wrap) + vec3(1.0) * specK * 0.42 + env * fres * 0.16;\n col = mix(lit, eyeLit, face);\n\n // neon spills light on the cup face and on the head next to it\n col += mix(u_ear1, u_ear2, 0.5) * spill * 0.34 * (1.0 - face);\n // the ring itself emits: no lighting\n col = mix(col, ringCol, ringMask);\n } else if (minD < 1e2) {\n // anti-aliased silhouette: how close did the ray pass to the surface?\n float r = minD / max(tMin * pixAng, 1e-5);\n cov = 1.0 - smoothstep(0.0, 1.15, r);\n // soft rim colour for the faded edge: reuse the body tone\n vec3 body = (u_mode > 0.5) ? wash(normalize(ro + rd * tMin), u_time * u_speed) : u_body;\n col = body * 0.9;\n }\n\n // neon halo behind / around the ring\n vec3 premul = col * cov + glowCol * ga * (1.0 - cov);\n float a = cov + ga * (1.0 - cov);\n gl_FragColor = vec4(clamp(premul / max(a, 1e-4), 0.0, 1.0), clamp(a, 0.0, 1.0));\n}\n");function TK(){return"u">typeof process&&(null==process.env?void 0:"production")!=="production"}function TG(e){var t=e.replace("#","").trim(),r=Number.parseInt(3===t.length?t.split("").map(function(e){return e+e}).join(""):t.padEnd(6,"0").slice(0,6),16);return Number.isNaN(r)?[.96,.96,.96]:[(r>>16&255)/255,(r>>8&255)/255,(255&r)/255]}function Tq(e,t,r){var n=e.createShader(t);return n?(e.shaderSource(n,r),e.compileShader(n),e.getShaderParameter(n,e.COMPILE_STATUS))?n:(TK()&&console.warn("LiveOrb: shader failed to compile\n",e.getShaderInfoLog(n)),e.deleteShader(n),null):null}function TY(e,t,r,n,a){var o,i,s,l,u="#F4F4F5",c="#09090B",d=0,f=TU,p=T$;return"black"===e?(u="#18181B",c="#F4F4F5"):"webgl"===e?(u=null!=(o=(f=n&&n.length>0?n:TU)[1])?o:TU[1],c="#0C0C10",d=1,p=[null!=(i=f[0])?i:TU[0],null!=(s=f[2])?s:TU[2]]):"custom"===e&&(u=null!=t?t:"#7C5CFF",c=null!=r?r:"#FAFAFA"),a&&a.length>0&&(p=[a[0],null!=(l=a[1])?l:a[0]]),{body:u,eye:c,mode:d,palette:f,ear:p}}function TX(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=TV({variant:"white",interactive:!0,blink:!0,ears:!0},r),a={x:0,y:.06,vx:0,vy:0},o={x:0,y:.06},i=!1,s=e.getContext("webgl",{alpha:!0,antialias:!1,depth:!1,stencil:!1,premultipliedAlpha:!1,powerPreference:"high-performance"});if(!s)return null;var l=Tq(s,s.VERTEX_SHADER,"\nattribute vec2 a_position;\nvoid main() {\n gl_Position = vec4(a_position, 0.0, 1.0);\n}\n"),u=Tq(s,s.FRAGMENT_SHADER,TH);if(!l||!u)return null;var c=s.createProgram();if(!c)return null;if(s.attachShader(c,l),s.attachShader(c,u),s.linkProgram(c),!s.getProgramParameter(c,s.LINK_STATUS))return TK()&&console.warn("LiveOrb: program failed to link\n",s.getProgramInfoLog(c)),null;s.useProgram(c),null==(t=n.onHasGl)||t.call(n,!0);var d=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,d),s.bufferData(s.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),s.STATIC_DRAW);var f=s.getAttribLocation(c,"a_position");s.enableVertexAttribArray(f),s.vertexAttribPointer(f,2,s.FLOAT,!1,0,0);var p=function(e){return s.getUniformLocation(c,e)},m=p("u_resolution"),h=p("u_time"),y=p("u_speed"),v=p("u_rot"),g=p("u_blink"),b=p("u_mode"),x=p("u_ears"),w=p("u_body"),j=p("u_eye"),O=p("u_c1"),S=p("u_c2"),k=p("u_c3"),E=p("u_ear1"),P=p("u_ear2");s.disable(s.BLEND);var A=0,D=!0,C=!0,T=performance.now(),N=T,R=T+1800+2400*Math.random(),M=-1e4,I=function(){var t=e.parentElement;if(t){var r=Math.min(window.devicePixelRatio||1,2),n=t.clientWidth,a=t.clientHeight;n<=0||a<=0||(e.width=Math.max(1,Math.floor(n*r)),e.height=Math.max(1,Math.floor(a*r)),e.style.width="".concat(n,"px"),e.style.height="".concat(a,"px"),s.viewport(0,0,e.width,e.height))}};I();var L=new ResizeObserver(I);e.parentElement&&L.observe(e.parentElement);var F="u">typeof IntersectionObserver?new IntersectionObserver(function(e){var t=TW(e,1)[0];C=!t||t.isIntersecting}):null;null==F||F.observe(e);var B=window.matchMedia("(prefers-reduced-motion: reduce)"),V=function(){i=B.matches};V(),B.addEventListener("change",V);var z=function(t){if(n.interactive){var r=e.parentElement;if(r){var a=r.getBoundingClientRect();if(!(a.width<=0)&&!(a.height<=0)){var i=3*Math.max(a.width,a.height)+120,s=t.clientX-(a.left+a.width/2),l=a.top+a.height/2-t.clientY;o.x=Math.tanh(s/i*2.2),o.y=Math.tanh(l/i*2.2)}}}},W=function(e){null===e.relatedTarget&&(o.x=0,o.y=.06)};window.addEventListener("pointermove",z,{passive:!0}),document.addEventListener("mouseout",W);var U=function(e){var t;e.preventDefault(),D=!1,cancelAnimationFrame(A),null==(t=n.onHasGl)||t.call(n,!1)};e.addEventListener("webglcontextlost",U);var $=function(t){if(D){A=requestAnimationFrame($);var r,l,u=Math.min(.05,Math.max(.001,(t-N)/1e3));if(N=t,C&&!document.hidden){var c,d,f,p,I,L,F,B,V,z=TY(n.variant,n.color,n.eyeColor,n.colors,n.earColors),W=(t-T)/1e3,U=n.interactive?o.x:0,H=n.interactive?o.y:.06;a.vx+=((U-a.x)*130-17*a.vx)*u,a.vy+=((H-a.y)*130-17*a.vy)*u,a.x+=a.vx*u,a.y+=a.vy*u;var K=+!i,G=Math.max(-1,Math.min(1,a.x))+.03*Math.sin(.9*W)*K,q=Math.max(-1,Math.min(1,a.y))+.022*Math.sin(.67*W+1.3)*K;!i&&n.blink&&t>=R&&(M=t,R=t+2200+3800*Math.random());var Y=(t-M)/1e3,X=0;!i&&n.blink&&(Y<.055?X=Y/.055:Y<.1?X=1:Y<.18&&(X=1-(Y-.1)/.08));var Z=TG(z.body),Q=TG(z.eye),J=[0,1,2].map(function(e){var t;return TG(null!=(t=z.palette[e%z.palette.length])?t:TU[e])}),ee=TG(null!=(r=z.ear[0])?r:T$[0]),et=TG(null!=(l=z.ear[1])?l:T$[1]);s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.uniform2f(m,e.width,e.height),s.uniform1f(h,i?0:W),s.uniform1f(y,.55*!i),s.uniformMatrix3fv(v,!1,(c=.62*G,d=-(.4*q),f=-(.09*G),p=Math.cos(c),I=Math.sin(c),L=Math.cos(d),F=Math.sin(d),new Float32Array([p*(B=Math.cos(f))+I*F*(V=Math.sin(f)),L*V,-I*B+p*F*V,-p*V+I*F*B,L*B,I*V+p*F*B,I*L,-F,p*L]))),s.uniform1f(g,X),s.uniform1f(b,z.mode),s.uniform1f(x,+!!n.ears),s.uniform3f(w,Z[0],Z[1],Z[2]),s.uniform3f(j,Q[0],Q[1],Q[2]),s.uniform3f(O,J[0][0],J[0][1],J[0][2]),s.uniform3f(S,J[1][0],J[1][1],J[1][2]),s.uniform3f(k,J[2][0],J[2][1],J[2][2]),s.uniform3f(E,ee[0],ee[1],ee[2]),s.uniform3f(P,et[0],et[1],et[2]),s.drawArrays(s.TRIANGLES,0,6)}}};return A=requestAnimationFrame($),{setOptions:function(e){n=TV({},n,e)},destroy:function(){var t;D=!1,cancelAnimationFrame(A),L.disconnect(),null==F||F.disconnect(),B.removeEventListener("change",V),window.removeEventListener("pointermove",z),document.removeEventListener("mouseout",W),e.removeEventListener("webglcontextlost",U),null==(t=n.onHasGl)||t.call(n,!1),s.deleteProgram(c),s.deleteShader(l),s.deleteShader(u),s.deleteBuffer(d)}}}function TZ(e){var t=e.resolved,r=e.ears,n=e.interactive,a=(0,g.useRef)(null),o=(0,g.useRef)(null);(0,g.useEffect)(function(){if(n){var e=a.current,t=o.current,r=null==e?void 0:e.parentElement;if(e&&r){var i=function(n){var a=r.getBoundingClientRect();if(!(a.width<=0)&&!(a.height<=0)){var o=3*Math.max(a.width,a.height)+120,i=Math.tanh((n.clientX-(a.left+a.width/2))/o*2.2),s=Math.tanh((a.top+a.height/2-n.clientY)/o*2.2);e.style.transform="translate(".concat((5.5*i).toFixed(2),"%, ").concat((-(3.4*s)).toFixed(2),"%)"),t&&(t.style.transform="translate(".concat((-(1.8*i)).toFixed(2),"%, ").concat((-(1.2*s)).toFixed(2),"%)"))}};return window.addEventListener("pointermove",i,{passive:!0}),function(){return window.removeEventListener("pointermove",i)}}}},[n]);var i=TW(t.ear,2),s=i[0],l=i[1],u="transform 140ms ease-out",c={position:"absolute"},d=Tz(TV({},c),{backgroundColor:t.eye,width:"8.3%",height:"9%",top:"42.9%",borderRadius:"50%"});return(0,v.jsxs)("div",{"data-part":"zoom","aria-hidden":!0,style:Tz(TV({},c),{inset:0,transform:"scale(".concat(1.09,")")}),children:[r?(0,v.jsx)("div",{ref:o,"data-part":"ears","aria-hidden":!0,style:Tz(TV({},c),{inset:0,transition:u}),children:[0,1].map(function(e){return(0,v.jsx)("span",{"data-part":"ear",style:Tz(TV({},c),{borderRadius:"50%",left:0===e?"9%":"79%",top:"37%",width:"12%",height:"30%",background:"linear-gradient(".concat(0===e?135:225,"deg, ").concat(s,", ").concat(l,")"),boxShadow:"0 0 6px ".concat(l,"66, inset 0 0 0 2px #0000001f")}),children:(0,v.jsx)("span",{style:Tz(TV({},c),{borderRadius:"50%",inset:"16% 22%",background:"radial-gradient(circle at 40% 30%, #3b3e45, #15171b)"})})},e)})}):null,(0,v.jsx)("div",{"aria-hidden":!0,"data-part":"head",style:Tz(TV(Tz(TV({},c),{overflow:"hidden",left:"15%",top:"24%",width:"70%",height:"52%",borderRadius:"50%"}),function(e){if(1===e.mode){var t,r,n,a=null!=(t=e.palette[0])?t:TU[0],o=null!=(r=e.palette[1])?r:TU[1],i=null!=(n=e.palette[2])?n:TU[2];return{backgroundImage:"linear-gradient(135deg, ".concat(a,", ").concat(o,", ").concat(i,")")}}return{backgroundColor:e.body}}(t)),{boxShadow:"inset -6px -8px 14px #0000002e, inset 5px 6px 12px #ffffff66"})}),(0,v.jsxs)("div",{ref:a,"aria-hidden":!0,"data-part":"face",style:Tz(TV({},c),{inset:0,transition:u}),children:[(0,v.jsx)("span",{"data-part":"eye",style:Tz(TV({},d),{left:"29.9%"})}),(0,v.jsx)("span",{"data-part":"eye",style:Tz(TV({},d),{left:"61.8%"})}),(0,v.jsx)("span",{"data-part":"line",style:Tz(TV({},c),{backgroundColor:t.eye,left:"34%",width:"32%",height:"1.6%",top:"46.6%",borderRadius:"999px"})})]})]})}function TQ(e){var t=e.className,r=e.size,n=void 0===r?280:r,a=e.label,o=e.variant,i=void 0===o?"white":o,s=e.color,l=e.eyeColor,u=e.colors,c=e.interactive,d=void 0===c||c,f=e.blink,p=void 0===f||f,m=e.ears,h=void 0===m||m,y=e.earColors,b=(0,g.useRef)(null),x=(0,g.useRef)(null),j=TW((0,g.useState)(!1),2),O=j[0],S=j[1];(0,g.useEffect)(function(){var e=b.current;if(e)return x.current=TX(e,{variant:i,color:s,eyeColor:l,colors:u,interactive:d,blink:p,ears:h,earColors:y,onHasGl:S}),function(){var e;null==(e=x.current)||e.destroy(),x.current=null}},[]),(0,g.useEffect)(function(){var e;null==(e=x.current)||e.setOptions({variant:i,color:s,eyeColor:l,colors:u,interactive:d,blink:p,ears:h,earColors:y,onHasGl:S})},[i,s,l,u,d,p,h,y]);var k=TY(i,s,l,u,y);return(0,v.jsxs)("div",{"data-slot":"live-orb",role:"img","aria-label":void 0===a?"Assistant avatar":a,className:(0,w.cn)("relative shrink-0",t),style:{position:"relative",width:n,height:n},children:[O?null:(0,v.jsx)(TZ,{resolved:k,ears:h,interactive:d}),(0,v.jsx)("canvas",{ref:b,className:"absolute inset-0 size-full"})]})}function TJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function T0(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function T1(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(e){T0(o,n,a,i,s,"next",e)}function s(e){T0(o,n,a,i,s,"throw",e)}i(void 0)})}}function T2(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||T3(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T3(e,t){if(e){if("string"==typeof e)return TJ(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TJ(e,t)}}function T4(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function T5(e){var t=e.text,r=T2((0,g.useState)("auto"),2),n=r[0],a=r[1],o=(0,g.useRef)(null);return(0,g.useEffect)(function(){o.current&&a(o.current.offsetWidth)},[t]),(0,v.jsxs)("span",{className:"relative inline-flex items-center justify-center overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",style:{width:n},children:[(0,v.jsx)("span",{ref:o,className:"invisible whitespace-nowrap px-1",children:t}),(0,v.jsx)("span",{className:"absolute inset-0 flex items-center justify-center whitespace-nowrap animate-in fade-in zoom-in-95 duration-300",children:t},t)]})}function T6(e){var t=e.model,r=e.className,n={"Composer 2.5":"https://cdn.21st.dev/assets/mirror/7d/7dc00bc09f225fcda46cbc9c6b669c69c025a231877d6c17baa6a003f04f02b2.svg","Gemini 3.5 Flash":"https://cdn.21st.dev/assets/mirror/cd/cda2df6631d5fa227de3fa04ed78cf354f910ba92a9f086e7455655c10ad9d09.svg","GPT 5.5":"https://cdn.21st.dev/assets/mirror/b9/b93fa7942be639a1dae60194ff12141145d7d9fd59581582d6ff23335755f19c.svg","Opus 4.8":"https://cdn.21st.dev/assets/mirror/5d/5de1221c77cc91e748066fd642ad0eee1c1fa65328814f5178166f901e599709.svg","GLM 5.2":"https://cdn.21st.dev/assets/mirror/b2/b2a6c0ff63efd8a555edf8a174ea6fcfeca120ac1595a2d461ca11d3ae89276c.svg"};return(0,v.jsx)("img",{src:n[t]||n["GPT 5.5"],alt:t,className:(0,w.cn)("object-contain",{"GPT 5.5":"dark:invert"}[t],r)})}function T8(){return(0,v.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,v.jsx)("path",{d:"M7 12V2M7 2L2.5 6.5M7 2L11.5 6.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})}function T9(){return(0,v.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:[(0,v.jsx)("rect",{x:"5",y:"1",width:"4",height:"7",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),(0,v.jsx)("path",{d:"M2.75 6.5V7a4.25 4.25 0 0 0 8.5 0v-.5M7 11.25V13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}function T7(){return(0,v.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,v.jsx)("rect",{x:"3.5",y:"3.5",width:"7",height:"7",rx:"1.5",fill:"currentColor"})})}function Ne(){return(0,v.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,v.jsx)("path",{d:"M7 2.5V11.5M2.5 7H11.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function Nt(){return(0,v.jsx)("svg",{width:"9",height:"9",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,v.jsx)("path",{d:"M2.5 2.5L11.5 11.5M11.5 2.5L2.5 11.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}function Nr(e){var t=e.level;return(0,v.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:[(0,v.jsx)("rect",{x:"1.5",y:"8",width:"2.5",height:"4.5",rx:"1",fill:"currentColor",className:"transition-opacity duration-300",opacity:1}),(0,v.jsx)("rect",{x:"5.75",y:"5",width:"2.5",height:"7.5",rx:"1",fill:"currentColor",className:"transition-opacity duration-300",opacity:"Medium"===t||"Max Effort"===t?1:.3}),(0,v.jsx)("rect",{x:"10",y:"2",width:"2.5",height:"10.5",rx:"1",fill:"currentColor",className:"transition-opacity duration-300",opacity:"Max Effort"===t?1:.3})]})}function Nn(e){var t=e.attachment,r=e.index,n=e.onRemove,a=e.onOpen,o=e.registerRef,i=T2((0,g.useState)(!1),2),s=i[0],l=i[1],u=(0,g.useRef)(null);return(0,v.jsxs)("button",{ref:function(e){u.current=e,o(t.id,e)},type:"button",onMouseDown:function(e){return e.preventDefault()},onMouseEnter:function(){return l(!0)},onMouseLeave:function(){return l(!1)},onClick:function(e){e.stopPropagation(),u.current&&a(t,u.current.getBoundingClientRect())},style:{animationDelay:"".concat(35*r,"ms"),animationFillMode:"backwards"},className:(0,w.cn)("group relative size-12 shrink-0 overflow-hidden rounded-xl border border-border bg-muted outline-none","transition-transform duration-200 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] hover:scale-[1.04] active:scale-[0.96]","animate-in fade-in slide-in-from-top-3 zoom-in-90 duration-400"),"aria-label":"Open preview of ".concat(t.name),children:[(0,v.jsx)("img",{src:t.url,alt:t.name,className:"size-full object-cover",draggable:!1}),(0,v.jsx)("span",{className:(0,w.cn)("absolute inset-0 flex items-start justify-end bg-black/0 transition-colors duration-200",s&&"bg-black/25"),children:(0,v.jsx)("span",{role:"button",tabIndex:-1,onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onClick:function(e){e.stopPropagation(),n(t.id)},className:(0,w.cn)("m-1 flex size-4 items-center justify-center rounded-full bg-background/90 text-foreground/70 shadow-sm transition-all duration-200 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] hover:bg-background hover:text-foreground hover:scale-110",s?"opacity-100 scale-100":"opacity-0 scale-50 pointer-events-none"),"aria-label":"Remove ".concat(t.name),children:(0,v.jsx)(Nt,{})})})]})}function Na(e){var t=e.attachment,r=e.originRect,n=e.onClose,a=T2((0,g.useState)("opening"),2),o=a[0],i=a[1],s=T2((0,g.useState)(null),2),l=s[0],u=s[1],c=(0,g.useRef)(null);(0,g.useEffect)(function(){var e=Math.min(.86*window.innerWidth,560),r=Math.min(.78*window.innerHeight,720),n=t.width||800,a=t.height||600,o=Math.min(e/n,r/a,1.6),s=n*o,l=a*o;u({top:(window.innerHeight-l)/2,left:(window.innerWidth-s)/2,width:s,height:l,radius:20});var c=requestAnimationFrame(function(){return i("open")});return function(){return cancelAnimationFrame(c)}},[t]);var d=(0,g.useCallback)(function(){return i("closing")},[]);(0,g.useEffect)(function(){var e=function(e){"Escape"===e.key&&d()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[d]);var f="open"===o,p="closing"===o,m=f&&l?l:{top:r.top,left:r.left,width:r.width,height:r.height,radius:12},h=p?"ease-out":"cubic-bezier(0.175, 0.885, 0.32, 1.275)",y=p?"0.3s":"0.45s",b="top ".concat(y," ").concat(h,", left ").concat(y," ").concat(h,", width ").concat(y," ").concat(h,", height ").concat(y," ").concat(h,", border-radius ").concat(y," ").concat(h);return(0,v.jsxs)("div",{className:"fixed inset-0 z-[100]",onClick:d,role:"dialog","aria-modal":"true",children:[(0,v.jsx)("div",{className:"absolute inset-0 bg-background/70 backdrop-blur-md transition-opacity duration-400",style:{opacity:+!!f}}),(0,v.jsx)("div",{style:{position:"fixed",top:m.top,left:m.left,width:m.width,height:m.height,borderRadius:m.radius,transition:b,overflow:"hidden",boxShadow:f?"0 24px 60px -12px rgb(0 0 0 / 0.35)":"0 0px 0px 0px rgb(0 0 0 / 0)"},className:"bg-muted",onTransitionEnd:function(){"closing"===o&&n()},onClick:function(e){return e.stopPropagation()},children:(0,v.jsx)("img",{ref:c,src:t.url,alt:t.name,className:"size-full object-cover",draggable:!1})}),(0,v.jsx)("button",{type:"button",onClick:d,style:{opacity:+!!f,transform:f?"scale(1)":"scale(0.7)"},className:(0,w.cn)("fixed right-4 top-4 flex size-9 items-center justify-center rounded-full bg-card/90 text-foreground/70 shadow-md backdrop-blur-sm","transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] hover:bg-card hover:text-foreground",!f&&"pointer-events-none"),children:(0,v.jsx)("span",{className:"scale-150",children:(0,v.jsx)(Nt,{})})})]})}var No=g.forwardRef(function(e,t){var r=e.onSubmit,n=e.placeholder,a=void 0===n?"Ask anything":n,o=e.className,i=e.models,s=void 0===i?["GPT 5.5","Opus 4.8","Gemini 3.5 Flash","Composer 2.5","GLM 5.2"]:i,l=e.efforts,u=void 0===l?["Low","Medium","Max Effort"]:l,c=e.defaultValue,d=e.value,f=e.onChange,p=e.maxAttachments,m=void 0===p?6:p,h=T2((0,g.useState)(!1),2),y=h[0],b=h[1],x=T2((0,g.useState)(!1),2),j=x[0],O=x[1],S=T2((0,g.useState)(void 0===c?"":c),2),k=S[0],E=S[1],P=T2((0,g.useState)(s[0]),2),A=P[0],D=P[1],C=T2((0,g.useState)(1),2),T=C[0],N=C[1],R=T2((0,g.useState)(!1),2),M=R[0],I=R[1],L=T2((0,g.useState)([]),2),F=L[0],B=L[1],V=T2((0,g.useState)(null),2),z=V[0],W=V[1],U=T2((0,g.useState)(!1),2),$=U[0],H=U[1],K=T2((0,g.useState)([,,,,,].fill(0)),2),G=K[0],q=K[1],Y=(0,g.useRef)(void 0!==d?d:k),X=(0,g.useRef)(null),Z=(0,g.useRef)(null),Q=(0,g.useRef)(null),J=(0,g.useRef)(null),ee=(0,g.useRef)(null),et=(0,g.useRef)(null),er=T2((0,g.useState)({opacity:0,transform:"translateY(0px) scale(0.95)",transition:"none"}),2),en=er[0],ea=er[1],eo=T2((0,g.useState)(116),2),ei=eo[0],es=eo[1],el=T2((0,g.useState)(68),2),eu=el[0],ec=el[1],ed=T2((0,g.useState)(!1),2),ef=ed[0],ep=ed[1],em=void 0!==d,eh=em?d:k,ey=""!==eh.trim()||F.length>0,ev=F.length>0,eg=(0,g.useRef)(null),eb=(0,g.useRef)(null),ex=(0,g.useRef)(null),ew=(0,g.useRef)(null),ej=(0,g.useRef)(null),eO=(0,g.useRef)(new Map);(0,g.useEffect)(function(){Y.current=eh},[eh]);var eS=function(){var e=eg.current;if(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;ex.current&&(ex.current.style.opacity=Math.min(t/20,1).toString()),ew.current&&(ew.current.style.opacity=Math.min(Math.max(r-n-t-16,0)/10,1).toString())}},ek=(0,g.useCallback)(function(e){O(!0),em||E(e),null==f||f(e)},[em,f]),eE=(0,g.useCallback)(function(){J.current&&(J.current.stop(),J.current=null),Q.current&&(cancelAnimationFrame(Q.current),Q.current=null),X.current&&(X.current.getTracks().forEach(function(e){return e.stop()}),X.current=null),Z.current&&(Z.current.close(),Z.current=null),ee.current&&(window.clearInterval(ee.current),ee.current=null),et.current&&(window.clearInterval(et.current),et.current=null),H(!1),q([,,,,,].fill(0))},[]),eP=(0,g.useCallback)(function(){return T1(function(){var e,t,r,n,a,o,i,s;function l(){var e="Can you build a high fidelity Framer Motion layout animation for a dark mode dashboard?".split(" "),t=0,r=Y.current;et.current=window.setInterval(function(){t<e.length?(ek(r=(r?r+" ":"")+e[t]),t++):eE()},300)}return T4(this,function(u){switch(u.label){case 0:O(!1),b(!0),e=null,u.label=1;case 1:if(u.trys.push([1,4,,5]),!(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia))return[3,3];return[4,navigator.mediaDevices.getUserMedia({audio:!0})];case 2:e=u.sent(),u.label=3;case 3:return[3,5];case 4:return u.sent(),console.warn("Microphone access denied or unavailable. Falling back to simulated voice mode for demo."),[3,5];case 5:return H(!0),e?(X.current=e,Z.current=t=new(window.AudioContext||window.webkitAudioContext),(r=t.createAnalyser()).fftSize=64,t.createMediaStreamSource(e).connect(r),n=new Uint8Array(r.frequencyBinCount),(a=function(){r.getByteFrequencyData(n);for(var e=[,,,,,].fill(0),t=Math.floor(n.length/5),o=0;o<5;o++){for(var i=0,s=0;s<t;s++)i+=n[o*t+s];e[o]=i/t/255}q(e),Q.current=requestAnimationFrame(a)})(),(o=window.SpeechRecognition||window.webkitSpeechRecognition)?((i=new o).continuous=!0,i.interimResults=!0,s=Y.current,i.onresult=function(e){for(var t="",r="",n=e.resultIndex;n<e.results.length;++n)e.results[n].isFinal?r+=e.results[n][0].transcript:t+=e.results[n][0].transcript;r&&(s+=(s?" ":"")+r),ek((s+(t?" "+t:"")).trim())},i.onerror=function(e){console.error("Speech recognition error",e),eE()},i.onend=function(){eE()},J.current=i,i.start()):(console.warn("Speech Recognition API not supported in this browser. Using simulated text."),l())):(ee.current=window.setInterval(function(){q(Array.from({length:5},function(){return .8*Math.random()+.1}))},100),l()),[2]}})})()},[ek,eE]);(0,g.useEffect)(function(){$&&eg.current&&(eg.current.scrollTop=eg.current.scrollHeight)},[eh,$]),(0,g.useEffect)(function(){return function(){eE(),F.forEach(function(e){return URL.revokeObjectURL(e.url)})}},[eE,F]),(0,g.useEffect)(function(){(""!==eh.trim()||ev)&&!y&&(O(!1),b(!0))},[eh,y,ev]),(0,g.useEffect)(function(){if(y&&!$){var e=setTimeout(function(){if(eg.current){eg.current.focus();var e=eg.current.value.length;eg.current.setSelectionRange(e,e)}},50);return function(){return clearTimeout(e)}}},[y,$]),(0,g.useEffect)(function(){if(eg.current){var e=eg.current,t=e.style.height;e.style.transition="none",e.style.height="0px";var r=e.scrollHeight;e.style.height=t,e.offsetHeight,e.style.transition="";var n=Math.max(68,Math.min(r,160));e.style.height="".concat(n,"px"),ec(n),ep(r>160),setTimeout(eS,0)}},[eh,y]),(0,g.useEffect)(function(){es(Math.max(116,eu+48)),setTimeout(eS,0)},[eu]),(0,g.useEffect)(function(){if(M){var e=function(e){eb.current&&!eb.current.contains(e.target)&&I(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[M]);var eA=function(){(""!==eh.trim()||ev)&&(O(!1),null==r||r(eh,{model:A,effort:u[T],attachments:F.map(function(e){return e.file})}),ek(""),F.forEach(function(e){return URL.revokeObjectURL(e.url)}),B([]),b(!1),I(!1))},eD=function(e,t,r,n){var a="".concat(e.name,"-").concat(e.lastModified,"-").concat(Math.random().toString(36).slice(2,8));B(function(o){return((function(e){if(Array.isArray(e))return TJ(e)})(o)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||T3(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([{id:a,file:e,url:t,name:e.name,width:r,height:n}])})},eC=function(e){O(!0),B(function(t){var r=t.find(function(t){return t.id===e});return r&&URL.revokeObjectURL(r.url),t.filter(function(t){return t.id!==e})}),eO.current.delete(e)},eT=ey&&!$,eN=!ey&&!$;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{ref:function(e){"function"==typeof t?t(e):t&&(t.current=e),eb.current=e},onBlur:function(e){!(eb.current&&eb.current.contains(e.relatedTarget))&&(""!==eh.trim()||ev||$||(O(!1),b(!1),I(!1)))},className:(0,w.cn)("relative flex flex-col w-full",o),style:{maxWidth:"100%",transition:j?"max-width 0.15s ease-out":"max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},children:[(0,v.jsx)("input",{ref:ej,type:"file",accept:"image/*",multiple:!0,onChange:function(e){return T1(function(){var t,r,n,a,o,i,s,l,u,c;return T4(this,function(d){if(!(t=e.target.files)||(r=Array.from(t).filter(function(e){return e.type.startsWith("image/")}),e.target.value="",0===r.length))return[2];n=Math.max(0,m-F.length),a=r.slice(0,n),y?O(!0):(O(!1),b(!0)),o=!0,i=!1,s=void 0;try{for(l=function(){var e=c.value,t=URL.createObjectURL(e),r=new Image;r.onload=function(){return eD(e,t,r.naturalWidth,r.naturalHeight)},r.onerror=function(){return eD(e,t,800,600)},r.src=t},u=a[Symbol.iterator]();!(o=(c=u.next()).done);o=!0)l()}catch(e){i=!0,s=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw s}}return[2]})})()},className:"hidden",tabIndex:-1,"aria-hidden":"true"}),(0,v.jsx)("div",{"aria-hidden":!ev,style:{height:ev&&y?68:0,transition:j?"height 0.15s ease-out":"height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:"w-full relative z-0 overflow-hidden",children:(0,v.jsx)("div",{style:{position:"absolute",bottom:-8,left:20,right:20,height:68,transform:ev&&y?"translateY(0)":"translateY(100%)",opacity:ev&&y?1:0,transition:j?"transform 0.15s ease-out, opacity 0.15s ease-out":"transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease-out"},className:"border border-border border-b-0 bg-muted rounded-t-2xl px-2 pt-2 pb-1 flex items-start gap-2 overflow-x-auto prompt-scrollbar",children:F.map(function(e,t){return(0,v.jsx)(Nn,{attachment:e,index:t,onRemove:eC,onOpen:function(e,t){return W({attachment:e,rect:t})},registerRef:function(e,t){return eO.current.set(e,t)}},e.id)})})}),(0,v.jsxs)("div",{onMouseDown:function(e){var t,r=e.target===eg.current;!y||r||$||(e.preventDefault(),null==(t=eg.current)||t.focus())},style:{borderRadius:24,height:y?ei:48,transition:j?"max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.15s ease-out":"max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)",overflow:y?"visible":"hidden"},className:(0,w.cn)("relative w-full border border-border bg-card shadow-sm focus-within:border-ring/40 focus-within:ring-1 focus-within:ring-ring/20 hover:border-border/80 z-10",y?"cursor-text":"cursor-default"),children:[(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n .prompt-scrollbar::-webkit-scrollbar { width: 4px; height: 4px; background: transparent; }\n .prompt-scrollbar::-webkit-scrollbar-track { background: transparent; }\n .prompt-scrollbar::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; }\n .prompt-scrollbar:hover::-webkit-scrollbar-thumb { background: hsl(var(--muted-foreground) / 0.3); }\n "}}),(0,v.jsx)("textarea",{ref:eg,value:eh,onChange:function(e){return ek(e.target.value)},onScroll:eS,onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),eA()),"Escape"!==e.key||""!==eh.trim()||ev||(O(!1),b(!1),I(!1))},placeholder:a,"aria-label":"Prompt",disabled:$,style:{transition:j?"height 0.15s ease-out":"opacity 0.3s ease-out, transform 0.3s ease-out, height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:(0,w.cn)("prompt-scrollbar absolute top-0 inset-x-0 z-[1] w-full resize-none bg-transparent pl-4 pr-12 py-3.5 text-sm leading-[22px] text-foreground outline-none placeholder:font-medium placeholder:text-muted-foreground/80 cursor-text",y?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 -translate-y-1 pointer-events-none",ef?"overflow-y-auto":"overflow-y-hidden",$&&"pointer-events-none")}),(0,v.jsx)("div",{ref:ex,className:"absolute left-4 right-12 top-0 z-[2] h-8 bg-gradient-to-b from-card via-card/90 to-transparent pointer-events-none"}),(0,v.jsx)("div",{ref:ew,className:"absolute left-4 right-12 z-[2] h-8 bg-gradient-to-t from-card via-card/90 to-transparent pointer-events-none",style:{opacity:0,top:"".concat(eu-32,"px"),transition:j?"top 0.15s ease-out":"top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"}}),(0,v.jsx)("button",{type:"button",onClick:function(){O(!1),b(!0)},style:{transition:j?"none":"all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:(0,w.cn)("absolute inset-x-0 top-0 z-[1] cursor-text pl-4 pr-12 py-[15px] text-left text-sm font-medium leading-[17px] text-muted-foreground/80 outline-none truncate",y?"opacity-0 scale-105 translate-y-1 pointer-events-none":"opacity-100 scale-100 translate-y-0"),"aria-label":"Open prompt input",children:a}),(0,v.jsxs)("div",{className:(0,w.cn)("absolute bottom-2 left-3 right-12 z-[10] flex items-center gap-0 transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",y&&!$?"opacity-100 blur-0 translate-y-0 pointer-events-auto":"opacity-0 blur-sm translate-y-2 pointer-events-none"),children:[(0,v.jsxs)("div",{className:"relative",children:[(0,v.jsxs)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),I(function(e){return!e})},className:(0,w.cn)("group flex items-center gap-1 rounded-full px-2 py-1 text-foreground/50 transition-all duration-200 outline-none hover:bg-accent/60 hover:text-foreground cursor-default",M?"bg-accent/60 text-foreground":""),"aria-label":"Select model. Current: ".concat(A),children:[(0,v.jsx)(T6,{model:A,className:"size-3.5 opacity-70 group-hover:opacity-100 transition-opacity"}),(0,v.jsx)("span",{className:"text-xs font-semibold select-none transition-colors",children:(0,v.jsx)(T5,{text:A})})]}),(0,v.jsx)("div",{style:{transformOrigin:"bottom left"},onMouseLeave:function(){ea(function(e){var t,r;return t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={opacity:0,transform:e.transform.replace("scale(1)","scale(0.95)"),transition:"opacity 0.2s ease-in, transform 0.2s ease-out"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t})},className:(0,w.cn)("absolute bottom-full left-0 mb-2.5 z-50 w-44 rounded-2xl border border-border bg-card/95 p-1 shadow-xl backdrop-blur-md flex flex-col gap-0.5 transition-all duration-400 cursor-default",M?"opacity-100 scale-100 translate-y-0 pointer-events-auto ease-[cubic-bezier(0.34,1.56,0.64,1)]":"opacity-0 scale-95 translate-y-3 pointer-events-none ease-[cubic-bezier(0.175,0.885,0.32,1.275)]"),children:(0,v.jsxs)("div",{className:"relative flex flex-col gap-0.5",children:[(0,v.jsx)("div",{style:en,className:"absolute left-0 right-0 top-0 h-8 -z-10 rounded-xl bg-accent pointer-events-none"}),s.map(function(e,t){return(0,v.jsx)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onMouseEnter:function(){ea(function(e){return{opacity:1,transform:"translateY(".concat(34*t,"px) scale(1)"),transition:0===e.opacity?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.15s ease"}})},onClick:function(t){t.stopPropagation(),D(e),I(!1)},className:"group relative flex h-8 w-full items-center justify-between rounded-xl px-2.5 py-1.5 text-left text-xs font-medium text-foreground/80 outline-none active:scale-[0.98] cursor-default",children:(0,v.jsxs)("span",{className:"flex items-center gap-2",children:[(0,v.jsx)(T6,{model:e,className:"size-3.5 opacity-85 group-hover:opacity-100 transition-opacity"}),e]})},e)})]})})]}),(0,v.jsxs)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),N(function(e){return(e+1)%u.length})},className:"group flex items-center gap-1 rounded-full px-2 py-1 text-foreground/50 transition-all duration-200 hover:bg-accent/60 hover:text-foreground outline-none cursor-default",children:[(0,v.jsx)(Nr,{level:u[T]}),(0,v.jsx)("span",{className:"text-xs font-semibold select-none transition-colors",children:(0,v.jsx)(T5,{text:u[T]})})]}),(0,v.jsx)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){var t;e.stopPropagation(),null==(t=ej.current)||t.click()},disabled:F.length>=m,className:"ml-auto flex size-7 items-center justify-center rounded-full text-foreground/50 transition-all duration-200 hover:bg-accent/60 hover:text-foreground outline-none cursor-default disabled:opacity-40 disabled:pointer-events-none",children:(0,v.jsx)(Ne,{})})]}),(0,v.jsx)("div",{className:(0,w.cn)("absolute right-12 bottom-2 z-[10] flex h-8 items-center justify-end gap-[3px] transition-all duration-400 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",$?"w-16 opacity-100 translate-x-0":"w-0 opacity-0 translate-x-4 pointer-events-none"),children:G.map(function(e,t){return(0,v.jsx)("div",{className:"w-1 rounded-full bg-primary transition-[height] duration-75 ease-out",style:{height:"".concat(Math.max(4,24*e),"px")}},t)})}),(0,v.jsx)("button",{type:"button",onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onClick:function(e){e.preventDefault(),$?eE():ey?eA():eP()},"aria-label":eT?"Send prompt":$?"Stop recording":"Use voice input",style:{borderRadius:9999},className:"absolute right-2 bottom-2 z-[10] flex h-8 w-8 items-center justify-center bg-primary text-primary-foreground transition-all duration-300 hover:opacity-90 outline-none focus-visible:ring-2 focus-visible:ring-ring cursor-default",children:(0,v.jsxs)("span",{className:"relative flex h-full w-full items-center justify-center",children:[(0,v.jsx)("span",{className:(0,w.cn)("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",eT?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 rotate-45 blur-[1px] pointer-events-none"),children:(0,v.jsx)(T8,{})}),(0,v.jsx)("span",{className:(0,w.cn)("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",eN?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 -rotate-45 blur-[1px] pointer-events-none"),children:(0,v.jsx)(T9,{})}),(0,v.jsx)("span",{className:(0,w.cn)("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",$?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 rotate-45 blur-[1px] pointer-events-none"),children:(0,v.jsx)(T7,{})})]})})]})]}),z&&(0,v.jsx)(Na,{attachment:z.attachment,originRect:z.rect,onClose:function(){return W(null)}})]})});No.displayName="PromptInput";var Ni=r(3766);function Ns(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Nl=(0,g.lazy)(function(){return r.e("1808").then(r.bind(r,339))}),Nu=new Set;function Nc(e){if(!("u"<typeof document||(0,Ni.$)()||Nu.has(e))){Nu.add(e);var t=document.createElement("link");t.rel="preload",t.as="fetch",t.crossOrigin="anonymous",t.href=e,document.head.appendChild(t)}}function Nd(e){var t,r=e.scene,n=e.className,a=void 0===n?"w-full h-full":n,o=e.onLoad,i=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Ns(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ns(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=i[0],l=i[1];return(0,Ni.$)()?(0,v.jsx)("div",{className:"relative ".concat(a," overflow-hidden"),"data-egen-3d":"unavailable","data-testid":"spline-unavailable","aria-hidden":"true"}):(0,v.jsxs)("div",{className:"relative ".concat(a," overflow-hidden"),children:[!s&&(0,v.jsxs)("div",{className:"absolute inset-0 z-10 flex flex-col items-center justify-center bg-[#030708] text-teal-400 gap-3 transition-opacity duration-300",children:[(0,v.jsx)("div",{className:"w-10 h-10 border-2 border-teal-400 border-t-transparent rounded-full animate-spin"}),(0,v.jsx)("span",{className:"text-xs font-mono tracking-widest text-teal-300/80 uppercase animate-pulse",children:"Initialisation Robot 3D..."})]}),(0,v.jsx)("div",{className:"w-full h-full transition-opacity duration-500 ".concat(s?"opacity-100":"opacity-0"),children:(0,v.jsx)(g.Suspense,{fallback:null,children:(0,v.jsx)(Nl,{scene:r,className:"w-full h-full",onLoad:function(e){l(!0),o&&o(e)}})})})]})}var Nf={mode:"dark",hue:0,saturation:1,brightness:1},Np={title:"Recursive Erosion particle sphere background",source:"<!DOCTYPE html>\n<html lang=\"fr\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Recursive Erosion Particle Sphere</title>\n <style>\n * { margin: 0; padding: 0; box-sizing: border-box; }\n html, body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n background: #0a0908;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n #stage {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n display: block;\n }\n </style>\n <script src=\"https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js\"><\/script>\n</head>\n<body>\n <canvas id=\"stage\"></canvas>\n\n <script>\n (function() {\n var canvas = document.getElementById('stage');\n var width = window.innerWidth;\n var height = window.innerHeight;\n\n // Ensure canvas has dimension\n canvas.width = width;\n canvas.height = height;\n\n // Mouse tracking\n var mouseX = 0, mouseY = 0;\n var targetRotX = 0, targetRotY = 0;\n window.addEventListener('mousemove', function(e) {\n mouseX = (e.clientX / window.innerWidth) * 2 - 1;\n mouseY = -(e.clientY / window.innerHeight) * 2 + 1;\n });\n\n // Simple 3D noise approximation\n function snoise(x, y, z) {\n return Math.sin(x * 1.7 + y * 2.3) * Math.cos(y * 1.5 + z * 2.1) * Math.sin(z * 1.9 + x * 0.9);\n }\n\n // Check if THREE is loaded\n if (typeof THREE !== 'undefined') {\n initThree();\n } else {\n // In case external CDN fails, fallback to standalone canvas 2D rendering\n initCanvasFallback();\n }\n\n function initThree() {\n var scene = new THREE.Scene();\n var camera = new THREE.PerspectiveCamera(50, width / height, 0.1, 1000);\n camera.position.z = 240;\n\n var renderer = new THREE.WebGLRenderer({\n canvas: canvas,\n antialias: true,\n alpha: true,\n powerPreference: \"high-performance\"\n });\n renderer.setSize(width, height);\n renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 2));\n\n // Create 7,000 points on Fibonacci sphere\n var particleCount = 7000;\n var geometry = new THREE.BufferGeometry();\n var positions = new Float32Array(particleCount * 3);\n var basePositions = new Float32Array(particleCount * 3);\n var colors = new Float32Array(particleCount * 3);\n var sizes = new Float32Array(particleCount);\n\n var sphereRadius = 82;\n var goldenRatio = (1 + Math.sqrt(5)) / 2;\n\n for (var i = 0; i < particleCount; i++) {\n var y = 1 - (i / (particleCount - 1)) * 2;\n var radiusAtY = Math.sqrt(Math.max(0, 1 - y * y));\n var theta = 2 * Math.PI * i / goldenRatio;\n\n var x = Math.cos(theta) * radiusAtY;\n var z = Math.sin(theta) * radiusAtY;\n\n var bx = x * sphereRadius;\n var by = y * sphereRadius;\n var bz = z * sphereRadius;\n\n basePositions[i * 3] = bx;\n basePositions[i * 3 + 1] = by;\n basePositions[i * 3 + 2] = bz;\n\n positions[i * 3] = bx;\n positions[i * 3 + 1] = by;\n positions[i * 3 + 2] = bz;\n\n // Warm orange / amber / golden palette with organic gradient\n var ratio = (y + 1) * 0.5;\n var r = 1.0;\n var g = 0.38 + ratio * 0.28 + Math.random() * 0.12;\n var b = 0.05 + ratio * 0.08;\n\n colors[i * 3] = r;\n colors[i * 3 + 1] = g;\n colors[i * 3 + 2] = b;\n\n sizes[i] = 1.2 + Math.random() * 2.0;\n }\n\n geometry.setAttribute('position', new THREE.BufferAttribute(positions, 3));\n geometry.setAttribute('color', new THREE.BufferAttribute(colors, 3));\n\n // Circular glow particle texture\n var circleCanvas = document.createElement('canvas');\n circleCanvas.width = 64;\n circleCanvas.height = 64;\n var ctx = circleCanvas.getContext('2d');\n var grad = ctx.createRadialGradient(32, 32, 0, 32, 32, 32);\n grad.addColorStop(0, 'rgba(255, 255, 255, 1)');\n grad.addColorStop(0.2, 'rgba(255, 160, 60, 0.9)');\n grad.addColorStop(0.5, 'rgba(255, 90, 20, 0.4)');\n grad.addColorStop(1, 'rgba(255, 60, 0, 0)');\n ctx.fillStyle = grad;\n ctx.fillRect(0, 0, 64, 64);\n\n var pTexture = new THREE.CanvasTexture(circleCanvas);\n\n var material = new THREE.PointsMaterial({\n size: 3.2,\n vertexColors: true,\n map: pTexture,\n transparent: true,\n blending: THREE.AdditiveBlending,\n depthWrite: false,\n opacity: 0.92\n });\n\n var points = new THREE.Points(geometry, material);\n scene.add(points);\n\n // 8 jagged lightning arcs that strike across the sphere\n var arcGroup = new THREE.Group();\n var arcLines = [];\n var ARC_COUNT = 8;\n var ARC_SEGMENTS = 20;\n\n for (var a = 0; a < ARC_COUNT; a++) {\n var arcGeo = new THREE.BufferGeometry();\n var arcPos = new Float32Array(ARC_SEGMENTS * 3);\n arcGeo.setAttribute('position', new THREE.BufferAttribute(arcPos, 3));\n\n var arcMat = new THREE.LineBasicMaterial({\n color: new THREE.Color(1.0, 0.72 + Math.random() * 0.25, 0.3),\n transparent: true,\n opacity: 0.75,\n blending: THREE.AdditiveBlending,\n linewidth: 1.5\n });\n\n var line = new THREE.Line(arcGeo, arcMat);\n arcLines.push({ line: line, geo: arcGeo, phase: Math.random() * Math.PI * 2, speed: 0.8 + Math.random() * 0.6 });\n arcGroup.add(line);\n }\n scene.add(arcGroup);\n\n // Inner glowing core\n var coreGeo = new THREE.SphereGeometry(sphereRadius * 0.3, 16, 16);\n var coreMat = new THREE.MeshBasicMaterial({\n color: 0xff5500,\n transparent: true,\n opacity: 0.08,\n blending: THREE.AdditiveBlending,\n wireframe: true\n });\n var coreMesh = new THREE.Mesh(coreGeo, coreMat);\n scene.add(coreMesh);\n\n var clock = new THREE.Clock();\n\n function animate() {\n requestAnimationFrame(animate);\n var time = clock.getElapsedTime();\n\n // 4-second erosion breathing loop\n var loopCycle = (time % 4.0) / 4.0; // 0 to 1\n var erosionPulse = Math.sin(loopCycle * Math.PI * 2);\n\n var posAttr = geometry.attributes.position;\n var posArray = posAttr.array;\n\n for (var i = 0; i < particleCount; i++) {\n var i3 = i * 3;\n var bx = basePositions[i3];\n var by = basePositions[i3 + 1];\n var bz = basePositions[i3 + 2];\n\n // 3D noise for recursive erosion crumpling & hole creation\n var nVal = snoise(bx * 0.025 + time * 0.4, by * 0.025 + time * 0.3, bz * 0.025);\n var isHole = nVal > (0.42 - erosionPulse * 0.25);\n\n var displace = isHole ? (1.0 + (nVal - 0.3) * 0.65) : (1.0 + nVal * 0.12 * erosionPulse);\n posArray[i3] = bx * displace;\n posArray[i3 + 1] = by * displace;\n posArray[i3 + 2] = bz * displace;\n }\n posAttr.needsUpdate = true;\n\n // Lightning arcs updates\n for (var a = 0; a < ARC_COUNT; a++) {\n var arcObj = arcLines[a];\n var aGeo = arcObj.geo;\n var aPos = aGeo.attributes.position.array;\n\n var tPhase = time * arcObj.speed + arcObj.phase;\n var p1Idx = Math.floor(Math.abs(Math.sin(tPhase * 0.7) * (particleCount - 1)));\n var p2Idx = Math.floor(Math.abs(Math.cos(tPhase * 0.5) * (particleCount - 1)));\n\n var x1 = posArray[p1Idx * 3], y1 = posArray[p1Idx * 3 + 1], z1 = posArray[p1Idx * 3 + 2];\n var x2 = posArray[p2Idx * 3], y2 = posArray[p2Idx * 3 + 1], z2 = posArray[p2Idx * 3 + 2];\n\n for (var s = 0; s < ARC_SEGMENTS; s++) {\n var tSeg = s / (ARC_SEGMENTS - 1);\n var sx = x1 + (x2 - x1) * tSeg;\n var sy = y1 + (y2 - y1) * tSeg;\n var sz = z1 + (z2 - z1) * tSeg;\n\n // Jagged lightning noise displacement\n if (s > 0 && s < ARC_SEGMENTS - 1) {\n var jitter = Math.sin(tSeg * Math.PI) * 7.5;\n sx += (Math.random() - 0.5) * jitter;\n sy += (Math.random() - 0.5) * jitter;\n sz += (Math.random() - 0.5) * jitter;\n }\n\n aPos[s * 3] = sx;\n aPos[s * 3 + 1] = sy;\n aPos[s * 3 + 2] = sz;\n }\n aGeo.attributes.position.needsUpdate = true;\n arcObj.line.material.opacity = 0.3 + Math.random() * 0.65;\n }\n\n // Smooth rotation & interactive mouse tilt\n targetRotX = mouseY * 0.45;\n targetRotY = mouseX * 0.55;\n\n points.rotation.y += 0.0035;\n points.rotation.x += (targetRotX - points.rotation.x) * 0.05;\n points.rotation.z += (targetRotY * 0.2 - points.rotation.z) * 0.05;\n\n arcGroup.rotation.copy(points.rotation);\n coreMesh.rotation.copy(points.rotation);\n\n renderer.render(scene, camera);\n }\n\n animate();\n\n window.addEventListener('resize', function() {\n width = window.innerWidth;\n height = window.innerHeight;\n camera.aspect = width / height;\n camera.updateProjectionMatrix();\n renderer.setSize(width, height);\n });\n }\n\n function initCanvasFallback() {\n var ctx = canvas.getContext('2d');\n var particles = [];\n var count = 3000;\n for (var i = 0; i < count; i++) {\n var y = 1 - (i / (count - 1)) * 2;\n var rAtY = Math.sqrt(Math.max(0, 1 - y * y));\n var theta = 2 * Math.PI * i / 1.6180339887;\n particles.push({\n x: Math.cos(theta) * rAtY,\n y: y,\n z: Math.sin(theta) * rAtY,\n baseRadius: 180\n });\n }\n\n var angleX = 0, angleY = 0;\n function renderLoop() {\n requestAnimationFrame(renderLoop);\n ctx.fillStyle = '#0a0908';\n ctx.fillRect(0, 0, width, height);\n\n var cx = width / 2;\n var cy = height / 2;\n\n angleY += 0.005;\n angleX = mouseY * 0.3;\n\n for (var i = 0; i < count; i += 2) {\n var p = particles[i];\n var cosY = Math.cos(angleY), sinY = Math.sin(angleY);\n var cosX = Math.cos(angleX), sinX = Math.sin(angleX);\n\n var x1 = p.x * cosY - p.z * sinY;\n var z1 = p.z * cosY + p.x * sinY;\n\n var y2 = p.y * cosX - z1 * sinX;\n var z2 = z1 * cosX + p.y * sinX;\n\n var scale = 400 / (400 + z2 * p.baseRadius);\n var px = cx + x1 * p.baseRadius * scale;\n var py = cy + y2 * p.baseRadius * scale;\n\n var alpha = Math.max(0.1, Math.min(1, (z2 + 1.2) * 0.45));\n ctx.fillStyle = 'rgba(255, 140, 40, ' + alpha + ')';\n ctx.beginPath();\n ctx.arc(px, py, Math.max(1, 2.0 * scale), 0, Math.PI * 2);\n ctx.fill();\n }\n }\n renderLoop();\n\n window.addEventListener('resize', function() {\n width = window.innerWidth;\n height = window.innerHeight;\n canvas.width = width;\n canvas.height = height;\n });\n }\n })();\n <\/script>\n</body>\n</html>",background:"#0a0908",theme:{lightBackground:"#f4f3f1",darkBackground:"#0a0908"},targets:[{selector:"#stage",role:"background"}],hiddenTargets:["#badge",".sr"]};function Nm(e,t,r){return Math.min(r,Math.max(t,e))}function Nh(e,t){var r,n;return null!=(r=null==(n=e.theme)?void 0:n["".concat(t,"Background")])?r:e.background}function Ny(e){var t=e.mode,r=void 0===t?Nf.mode:t,n=e.hue,a=void 0===n?Nf.hue:n,o=e.saturation,i=void 0===o?Nf.saturation:o,s=e.brightness,l=void 0===s?Nf.brightness:s,u=e.className,c=e.style,d="light"===r?"light":"dark",f=Nh(Np,d),p=(0,g.useMemo)(function(){var e,t,r,n,a,o,i,s;return t=Nh(Np,d),r=Np.source,n=JSON.stringify(Np.targets).replace(/</g,"\\u003c"),a=JSON.stringify(null!=(e=Np.hiddenTargets)?e:[]).replace(/</g,"\\u003c"),o=JSON.stringify(d),i="<style data-threeui-focus>\nhtml, body { width: 100% !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; background: ".concat(t," !important; color-scheme: ").concat(d,' !important; }\nbody { position: relative !important; display: flex !important; align-items: center !important; justify-content: center !important; }\nbody > * { visibility: hidden !important; }\nbody[data-threeui-ready] > [data-threeui-role] { visibility: visible !important; }\n[data-threeui-residual] { display: none !important; }\n[data-threeui-hidden] { display: none !important; }\n[data-threeui-role="background"] { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; z-index: 0 !important; opacity: 1 !important; pointer-events: none !important; }\n[data-threeui-role="button"] { position: relative !important; z-index: 2 !important; opacity: 1 !important; flex: none !important; }\n[data-threeui-role="visual"] { position: relative !important; z-index: 1 !important; width: min(100%, 1040px) !important; max-width: 1040px !important; max-height: 100% !important; margin: auto !important; padding: 24px !important; overflow: auto !important; opacity: 1 !important; filter: none !important; }\n</style>'),s="<script data-threeui-focus>\n(function () {\n document.documentElement.dataset.sfMode = ".concat(o,";\n var isolated = false;\n function isolate() {\n if (isolated) return;\n var specs = ").concat(n,";\n var hiddenSelectors = ").concat(a,";\n var roots = [];\n hiddenSelectors.forEach(function (selector) {\n document.querySelectorAll(selector).forEach(function (element) {\n element.setAttribute('data-threeui-hidden', '');\n element.setAttribute('aria-hidden', 'true');\n if ('inert' in element) element.inert = true;\n });\n });\n specs.forEach(function (spec) {\n var element = document.querySelector(spec.selector);\n if (!element) return;\n element.setAttribute('data-threeui-role', spec.role);\n if (!roots.some(function (root) { return root.contains(element); })) roots.push(element);\n });\n if (!roots.length) return;\n isolated = true;\n roots.forEach(function (root) {\n var placeholderLink = root.matches('a[href=\"#\"]') ? root : root.querySelector('a[href=\"#\"]');\n if (placeholderLink) placeholderLink.addEventListener('click', function (event) { event.preventDefault(); });\n document.body.appendChild(root);\n });\n Array.from(document.body.children).forEach(function (element) {\n if (roots.indexOf(element) !== -1) return;\n element.setAttribute('data-threeui-residual', '');\n element.setAttribute('aria-hidden', 'true');\n if ('inert' in element) element.inert = true;\n });\n document.body.setAttribute('data-threeui-ready', '');\n requestAnimationFrame(function () { window.dispatchEvent(new Event('resize')); });\n }\n function scheduleIsolation() { setTimeout(isolate, 100); }\n if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', scheduleIsolation, { once: true });\n else scheduleIsolation();\n window.addEventListener('load', isolate, { once: true });\n})();\n<\/script>"),r.replace(/<\/head>/i,"".concat(i,"</head>")).replace(/<\/body>/i,"".concat(s,"</body>"))},[d]),m=Nm(a,-180,180),h=Nm(i,0,2),y=Nm(l,.35,1.65),b=0===m&&1===h&&1===y?void 0:"hue-rotate(".concat(m,"deg) saturate(").concat(h,") brightness(").concat(y,")");return(0,v.jsx)("iframe",{className:u,"data-mode":d,title:Np.title,srcDoc:p,sandbox:"allow-scripts",loading:"eager",style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({display:"block",width:"100%",height:"100%",border:0,background:f,filter:b},c)})}function Nv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ng(e){if(Array.isArray(e))return e}function Nb(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Nx(e,t){if(e){if("string"==typeof e)return Nv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nv(e,t)}}var Nw=(0,g.forwardRef)(function(e,t){var r,n,a,o=Ng(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||Nx(r)||Nb(),i=o[0],s=o.slice(1),l=i.children,u=i.optionsComponent,c=i.header,d=i.footer,f=i.align,p=i.width,m=i.className,h=void 0===m?"":m,y=i.contentClassName,g=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(i,["children","optionsComponent","header","footer","align","width","className","contentClassName"]),b=(Ng(s)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(s)||Nx(s,1)||Nb())[0],x=h.includes("fixed")||h.includes("absolute");return(0,v.jsx)("div",(n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({ref:b,className:"".concat(x?"":"absolute top-full mt-2"," z-[9999] text-xs text-slate-100 select-none overflow-hidden\n bg-slate-950/90 backdrop-blur-3xl rounded-2xl border border-white/20\n shadow-[0_16px_48px_0_rgba(0,0,0,0.65)]\n before:absolute before:inset-0 before:rounded-2xl before:bg-gradient-to-b before:from-white/[0.12] before:to-transparent before:pointer-events-none\n animate-in fade-in zoom-in-95 duration-150\n ").concat({right:"right-0",left:"left-0",center:"left-1/2 -translate-x-1/2",none:""}[void 0===f?"right":f],"\n ").concat(p||"","\n ").concat(h,"\n ")},g),a=a={children:(0,v.jsxs)("div",{className:"relative z-10 p-1.5 ".concat(void 0===y?"":y),children:[c&&(0,v.jsx)("div",{className:"pb-1.5 mb-1.5 border-b border-white/10 px-2 pt-1",children:c}),u||l,d&&(0,v.jsx)("div",{className:"pt-1.5 mt-1.5 border-t border-white/10 px-2 pb-1",children:d})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(a)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(a,e))}),n))});Nw.displayName="WaterGlassModal";function Nj(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var NO=new(function(){var e;function t(){var e=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");Nj(this,"ctx",null),Nj(this,"isMuted",!1),Nj(this,"volume",.5),Nj(this,"lastPlayTimes",{}),Nj(this,"noiseBuffer",null);try{var r=localStorage.getItem("egen_xbox_sound_muted");null!==r&&(this.isMuted="true"===r);var n=localStorage.getItem("egen_xbox_sound_volume");null!==n&&(this.volume=parseFloat(n)||.5)}catch(e){}if("u">typeof window){var a=function(){e.initContext(),window.removeEventListener("pointerdown",a),window.removeEventListener("keydown",a)};window.addEventListener("pointerdown",a,{passive:!0}),window.addEventListener("keydown",a,{passive:!0})}}return e=[{key:"initContext",value:function(){if(!this.ctx&&"u">typeof window){var e=window.AudioContext||window.webkitAudioContext;e&&(this.ctx=new e,this.generateNoiseBuffer())}return this.ctx&&"suspended"===this.ctx.state&&this.ctx.resume().catch(function(){}),this.ctx}},{key:"generateNoiseBuffer",value:function(){if(this.ctx){for(var e=.5*this.ctx.sampleRate,t=this.ctx.createBuffer(2,e,this.ctx.sampleRate),r=0;r<2;r++)for(var n=t.getChannelData(r),a=0;a<e;a++)n[a]=2*Math.random()-1;this.noiseBuffer=t}}},{key:"getIsMuted",value:function(){return this.isMuted}},{key:"setMuted",value:function(e){this.isMuted=e;try{localStorage.setItem("egen_xbox_sound_muted",String(e))}catch(e){}}},{key:"toggleMute",value:function(){return this.setMuted(!this.isMuted),this.isMuted||this.play("select"),this.isMuted}},{key:"getVolume",value:function(){return this.volume}},{key:"setVolume",value:function(e){this.volume=Math.max(0,Math.min(1,e));try{localStorage.setItem("egen_xbox_sound_volume",String(this.volume))}catch(e){}}},{key:"play",value:function(e){if(!this.isMuted){var t=performance.now();if(!this.lastPlayTimes[e]||!(t-this.lastPlayTimes[e]<({hover:40,scroll:40,boundary:160,select:60,back:60,modalOpen:100,folderOpen:120,notification:180,achievement:250,toastSuccess:120,toastInfo:120,toastWarning:120,toastError:120,toggle:60})[e])){this.lastPlayTimes[e]=t;var r=this.initContext();if(r)try{switch(e){case"hover":this.playHover(r);break;case"select":this.playSelect(r);break;case"back":this.playBack(r);break;case"modalOpen":this.playModalOpen(r);break;case"folderOpen":this.playFolderOpen(r);break;case"scroll":this.playScroll(r);break;case"boundary":this.playBoundary(r);break;case"notification":this.playNotification(r);break;case"achievement":this.playAchievement(r);break;case"toastSuccess":this.playToastSuccess(r);break;case"toastInfo":this.playToastInfo(r);break;case"toastWarning":this.playToastWarning(r);break;case"toastError":this.playToastError(r);break;case"toggle":this.playToggle(r)}}catch(e){console.warn("Xbox Audio error:",e)}}}}},{key:"playHover",value:function(e){var t=e.currentTime,r=e.createOscillator(),n=e.createGain(),a=e.createBiquadFilter();r.type="sine",r.frequency.setValueAtTime(2200,t),r.frequency.exponentialRampToValueAtTime(1400,t+.025),a.type="bandpass",a.frequency.setValueAtTime(1800,t),a.Q.setValueAtTime(3,t);var o=.12*this.volume;n.gain.setValueAtTime(0,t),n.gain.linearRampToValueAtTime(o,t+.002),n.gain.exponentialRampToValueAtTime(1e-4,t+.025),r.connect(a),a.connect(n),n.connect(e.destination),r.start(t),r.stop(t+.03)}},{key:"playSelect",value:function(e){var t=e.currentTime,r=e.createOscillator(),n=e.createGain();r.type="sine",r.frequency.setValueAtTime(920,t),r.frequency.exponentialRampToValueAtTime(1480,t+.035),r.frequency.exponentialRampToValueAtTime(1100,t+.07);var a=.28*this.volume;n.gain.setValueAtTime(0,t),n.gain.linearRampToValueAtTime(a,t+.003),n.gain.exponentialRampToValueAtTime(.001,t+.07),r.connect(n),n.connect(e.destination);var o=e.createOscillator(),i=e.createGain();o.type="triangle",o.frequency.setValueAtTime(460,t),o.frequency.exponentialRampToValueAtTime(320,t+.05);var s=.15*this.volume;i.gain.setValueAtTime(0,t),i.gain.linearRampToValueAtTime(s,t+.004),i.gain.exponentialRampToValueAtTime(.001,t+.05),o.connect(i),i.connect(e.destination),r.start(t),o.start(t),r.stop(t+.08),o.stop(t+.06)}},{key:"playBack",value:function(e){var t=e.currentTime,r=e.createOscillator(),n=e.createGain();r.type="triangle",r.frequency.setValueAtTime(750,t),r.frequency.exponentialRampToValueAtTime(260,t+.015);var a=.16*this.volume;n.gain.setValueAtTime(0,t),n.gain.linearRampToValueAtTime(a,t+.002),n.gain.exponentialRampToValueAtTime(1e-4,t+.018),r.connect(n),n.connect(e.destination),r.start(t),r.stop(t+.02);var o=e.createOscillator(),i=e.createGain(),s=e.createBiquadFilter();o.type="sine",o.frequency.setValueAtTime(540,t),o.frequency.exponentialRampToValueAtTime(210,t+.085),s.type="lowpass",s.frequency.setValueAtTime(1200,t),s.frequency.exponentialRampToValueAtTime(360,t+.09),s.Q.setValueAtTime(1.8,t);var l=.28*this.volume;i.gain.setValueAtTime(0,t),i.gain.linearRampToValueAtTime(l,t+.004),i.gain.exponentialRampToValueAtTime(1e-4,t+.095),o.connect(s),s.connect(i),i.connect(e.destination);var u=e.createOscillator(),c=e.createGain();u.type="sine",u.frequency.setValueAtTime(230,t),u.frequency.exponentialRampToValueAtTime(95,t+.095);var d=.18*this.volume;c.gain.setValueAtTime(0,t),c.gain.linearRampToValueAtTime(d,t+.005),c.gain.exponentialRampToValueAtTime(1e-4,t+.1),u.connect(c),c.connect(e.destination),o.start(t),u.start(t),o.stop(t+.1),u.stop(t+.11)}},{key:"playModalOpen",value:function(e){var t=this,r=e.currentTime,n=e.createBiquadFilter();if(n.type="lowpass",n.frequency.setValueAtTime(1100,r),n.Q.setValueAtTime(.7,r),n.connect(e.destination),this.noiseBuffer){var a=e.createBufferSource();a.buffer=this.noiseBuffer;var o=e.createBiquadFilter();o.type="bandpass",o.frequency.setValueAtTime(450,r),o.frequency.exponentialRampToValueAtTime(700,r+.1),o.Q.setValueAtTime(1.2,r);var i=e.createGain(),s=.045*this.volume;i.gain.setValueAtTime(0,r),i.gain.linearRampToValueAtTime(s,r+.03),i.gain.exponentialRampToValueAtTime(1e-4,r+.18),a.connect(o),o.connect(i),i.connect(n),a.start(r),a.stop(r+.19)}[{freqStart:370,freqEnd:392,startOffset:0,dur:.22,vol:.14},{freqStart:554,freqEnd:587.33,startOffset:.022,dur:.24,vol:.12},{freqStart:740,freqEnd:783.99,startOffset:.045,dur:.2,vol:.08}].forEach(function(a){var o=e.createOscillator(),i=e.createGain();o.type="sine";var s=r+a.startOffset;o.frequency.setValueAtTime(a.freqStart,s),o.frequency.exponentialRampToValueAtTime(a.freqEnd,s+.06);var l=t.volume*a.vol;i.gain.setValueAtTime(0,s),i.gain.linearRampToValueAtTime(l,s+.022),i.gain.exponentialRampToValueAtTime(1e-4,s+a.dur),o.connect(i),i.connect(n),o.start(s),o.stop(s+a.dur+.01)})}},{key:"playFolderOpen",value:function(e){var t=this,r=e.currentTime;if(this.noiseBuffer){var n=e.createBufferSource();n.buffer=this.noiseBuffer;var a=e.createBiquadFilter();a.type="bandpass",a.frequency.setValueAtTime(350,r),a.frequency.exponentialRampToValueAtTime(2400,r+.12),a.frequency.exponentialRampToValueAtTime(600,r+.28),a.Q.setValueAtTime(3.5,r);var o=e.createGain(),i=.2*this.volume;o.gain.setValueAtTime(0,r),o.gain.linearRampToValueAtTime(i,r+.08),o.gain.exponentialRampToValueAtTime(1e-4,r+.28),n.connect(a),a.connect(o),o.connect(e.destination),n.start(r),n.stop(r+.3)}[659.25,987.77,1318.5].forEach(function(n,a){var o=e.createOscillator(),i=e.createGain();o.type="sine",o.frequency.setValueAtTime(.85*n,r),o.frequency.exponentialRampToValueAtTime(n,r+.09);var s=.12*t.volume/(a+1);i.gain.setValueAtTime(0,r),i.gain.linearRampToValueAtTime(s,r+.04),i.gain.exponentialRampToValueAtTime(1e-4,r+.35),o.connect(i),i.connect(e.destination),o.start(r),o.stop(r+.36)})}},{key:"playScroll",value:function(e){var t=e.currentTime,r=e.createOscillator(),n=e.createGain(),a=e.createBiquadFilter();r.type="triangle",r.frequency.setValueAtTime(1400,t),r.frequency.exponentialRampToValueAtTime(800,t+.018),a.type="bandpass",a.frequency.setValueAtTime(1200,t),a.Q.setValueAtTime(2,t);var o=.16*this.volume;n.gain.setValueAtTime(0,t),n.gain.linearRampToValueAtTime(o,t+.002),n.gain.exponentialRampToValueAtTime(1e-4,t+.018),r.connect(a),a.connect(n),n.connect(e.destination),r.start(t),r.stop(t+.02)}},{key:"playBoundary",value:function(e){var t=e.currentTime,r=e.createBiquadFilter();r.type="lowpass",r.frequency.setValueAtTime(450,t),r.frequency.exponentialRampToValueAtTime(180,t+.06),r.Q.setValueAtTime(1.2,t),r.connect(e.destination);var n=e.createOscillator(),a=e.createGain();n.type="sine",n.frequency.setValueAtTime(210,t),n.frequency.exponentialRampToValueAtTime(85,t+.055);var o=.17*this.volume;a.gain.setValueAtTime(0,t),a.gain.linearRampToValueAtTime(o,t+.003),a.gain.exponentialRampToValueAtTime(1e-4,t+.065),n.connect(a),a.connect(r),n.start(t),n.stop(t+.07);var i=e.createOscillator(),s=e.createGain();i.type="triangle",i.frequency.setValueAtTime(110,t),i.frequency.exponentialRampToValueAtTime(55,t+.045);var l=.11*this.volume;s.gain.setValueAtTime(0,t),s.gain.linearRampToValueAtTime(l,t+.002),s.gain.exponentialRampToValueAtTime(1e-4,t+.05),i.connect(s),s.connect(r),i.start(t),i.stop(t+.055)}},{key:"playNotification",value:function(e){var t=this,r=e.currentTime;[{f:880,start:0,dur:.22,vol:.25},{f:1320,start:.08,dur:.35,vol:.3}].forEach(function(n){var a=e.createOscillator(),o=e.createGain();a.type="sine",a.frequency.setValueAtTime(n.f,r+n.start);var i=t.volume*n.vol;o.gain.setValueAtTime(0,r+n.start),o.gain.linearRampToValueAtTime(i,r+n.start+.01),o.gain.exponentialRampToValueAtTime(1e-4,r+n.start+n.dur),a.connect(o),o.connect(e.destination),a.start(r+n.start),a.stop(r+n.start+n.dur)})}},{key:"playAchievement",value:function(e){var t=this,r=e.currentTime;[{freq:739.99,time:0,dur:.15},{freq:1108.73,time:.08,dur:.55}].forEach(function(n){var a=e.createOscillator(),o=e.createGain();a.type="sine",a.frequency.setValueAtTime(n.freq,r+n.time);var i=.3*t.volume;o.gain.setValueAtTime(0,r+n.time),o.gain.linearRampToValueAtTime(i,r+n.time+.01),o.gain.exponentialRampToValueAtTime(1e-4,r+n.time+n.dur),a.connect(o),o.connect(e.destination),a.start(r+n.time),a.stop(r+n.time+n.dur)}),[1479.98,1864.66,2217.46,2959.96].forEach(function(n,a){var o=e.createOscillator(),i=e.createGain();o.type="sine",o.frequency.setValueAtTime(n,r+.12);var s=.22*t.volume/(a+1);i.gain.setValueAtTime(0,r+.12),i.gain.linearRampToValueAtTime(s,r+.14),i.gain.exponentialRampToValueAtTime(1e-4,r+.85),o.connect(i),i.connect(e.destination),o.start(r+.12),o.stop(r+.9)})}},{key:"playToastSuccess",value:function(e){var t=this,r=e.currentTime;[{f:739.99,delay:0,dur:.2,vol:.24},{f:932.33,delay:.04,dur:.22,vol:.26},{f:1108.73,delay:.08,dur:.42,vol:.3}].forEach(function(n){var a=e.createOscillator(),o=e.createGain();a.type="sine";var i=r+n.delay;a.frequency.setValueAtTime(n.f,i);var s=t.volume*n.vol;o.gain.setValueAtTime(0,i),o.gain.linearRampToValueAtTime(s,i+.008),o.gain.exponentialRampToValueAtTime(1e-4,i+n.dur),a.connect(o),o.connect(e.destination),a.start(i),a.stop(i+n.dur+.02)})}},{key:"playToastInfo",value:function(e){var t=this,r=e.currentTime;[{f:880,delay:0,dur:.22,vol:.24},{f:1318.5,delay:.045,dur:.3,vol:.26},{f:440,delay:0,dur:.15,vol:.12}].forEach(function(n){var a=e.createOscillator(),o=e.createGain();a.type="sine";var i=r+n.delay;a.frequency.setValueAtTime(n.f,i);var s=t.volume*n.vol;o.gain.setValueAtTime(0,i),o.gain.linearRampToValueAtTime(s,i+.006),o.gain.exponentialRampToValueAtTime(1e-4,i+n.dur),a.connect(o),o.connect(e.destination),a.start(i),a.stop(i+n.dur+.02)})}},{key:"playToastWarning",value:function(e){var t=this,r=e.currentTime;[{f:554.37,delay:0,dur:.06,vol:.25},{f:466.16,delay:.075,dur:.12,vol:.26}].forEach(function(n){var a=e.createOscillator(),o=e.createGain(),i=e.createBiquadFilter();a.type="triangle",i.type="bandpass",i.frequency.setValueAtTime(900,r+n.delay),i.Q.setValueAtTime(2.2,r+n.delay);var s=r+n.delay;a.frequency.setValueAtTime(n.f,s);var l=t.volume*n.vol;o.gain.setValueAtTime(0,s),o.gain.linearRampToValueAtTime(l,s+.005),o.gain.exponentialRampToValueAtTime(1e-4,s+n.dur),a.connect(i),i.connect(o),o.connect(e.destination),a.start(s),a.stop(s+n.dur+.01)})}},{key:"playToastError",value:function(e){var t=e.currentTime,r=e.createOscillator(),n=e.createGain(),a=e.createBiquadFilter();r.type="sawtooth",r.frequency.setValueAtTime(392,t),r.frequency.exponentialRampToValueAtTime(220,t+.12),a.type="lowpass",a.frequency.setValueAtTime(650,t),a.frequency.exponentialRampToValueAtTime(200,t+.12),a.Q.setValueAtTime(2,t);var o=.24*this.volume;n.gain.setValueAtTime(0,t),n.gain.linearRampToValueAtTime(o,t+.005),n.gain.exponentialRampToValueAtTime(1e-4,t+.13),r.connect(a),a.connect(n),n.connect(e.destination);var i=e.createOscillator(),s=e.createGain();i.type="sine",i.frequency.setValueAtTime(140,t),i.frequency.exponentialRampToValueAtTime(60,t+.15),s.gain.setValueAtTime(0,t),s.gain.linearRampToValueAtTime(.18*this.volume,t+.005),s.gain.exponentialRampToValueAtTime(1e-4,t+.15),i.connect(s),s.connect(e.destination),r.start(t),i.start(t),r.stop(t+.14),i.stop(t+.16)}},{key:"playToggle",value:function(e){var t=e.currentTime,r=e.createOscillator(),n=e.createGain();r.type="triangle",r.frequency.setValueAtTime(1100,t),r.frequency.exponentialRampToValueAtTime(1600,t+.02);var a=.18*this.volume;n.gain.setValueAtTime(0,t),n.gain.linearRampToValueAtTime(a,t+.002),n.gain.exponentialRampToValueAtTime(1e-4,t+.03),r.connect(n),n.connect(e.destination),r.start(t),r.stop(t+.035)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}());function NS(e){NO.play(e)}function Nk(){return NO.getIsMuted()}function NE(){return NO.toggleMute()}var NP=(0,g.lazy)(function(){return Promise.all([r.e("6880"),r.e("4646")]).then(r.bind(r,9477)).then(function(e){return{default:e.RobotStage}})});function NA(){Promise.all([r.e("6880"),r.e("4646")]).then(r.bind(r,9477))}function ND(e){return(0,v.jsx)(g.Suspense,{fallback:(0,v.jsx)("div",{role:"status","aria-label":"Chargement du robot",style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,v.jsx)("div",{className:"w-10 h-10 border-2 border-teal-400 border-t-transparent rounded-full animate-spin"})}),children:(0,v.jsx)(NP,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e))})}var NC=r(2707),NT=r(9881);function NN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function NR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){NR(e,t,r[t])})}return e}function NI(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function N_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||NF(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NL(e){return function(e){if(Array.isArray(e))return NN(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||NF(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NF(e,t){if(e){if("string"==typeof e)return NN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NN(e,t)}}var NB={type:"spring",stiffness:560,damping:34,mass:.7};function NV(e,t){return e.find(function(e){return e.id===t})}function Nz(e,t){return null==e?void 0:e.operators.find(function(e){return e.value===t})}function NW(e){var t,r,n=e.anchorKey,a=e.label,o=e.onClose,i=e.children,s=g.useRef(null),l=Ed(),u=N_(g.useState(null),2),c=u[0],d=u[1],f=N_(g.useState(!1),2),p=f[0],m=f[1],h=N_(g.useState(null),2),y=h[0],b=h[1];g.useLayoutEffect(function(){var e=document.querySelector('[data-fb-anchor="'.concat(n,'"]'));d(e),m(!!(null==e?void 0:e.closest(".dark")))},[n]);var x=g.useRef(n);return x.current=n,g.useEffect(function(){return function(){var e;null==(e=document.querySelector('[data-fb-anchor="'.concat(x.current,'"]')))||e.focus()}},[]),g.useLayoutEffect(function(){if(c){var e=function(){var e=s.current;if(e){var t=c.getBoundingClientRect(),r=e.offsetWidth,n=e.offsetHeight,a=t.left,o=t.bottom+6;a=Math.max(8,a=Math.min(a,window.innerWidth-r-8)),o+n>window.innerHeight-8&&(o=t.top-6-n),b({top:o,left:a})}};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}},[c]),g.useEffect(function(){var e=function(e){!s.current||s.current.contains(e.target)||c&&c.contains(e.target)||o()},t=function(e){"Escape"===e.key&&(e.stopPropagation(),o())};return document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",t,!0),function(){document.removeEventListener("pointerdown",e,!0),document.removeEventListener("keydown",t,!0)}},[c,o]),(0,tZ.createPortal)((0,v.jsx)("div",{className:p?"dark":"",style:{display:"contents"},children:(0,v.jsx)(mz.div,{ref:s,role:"dialog","aria-label":a,initial:!l&&{opacity:0,y:-3,scale:.985},animate:{opacity:1,y:0,scale:1},transition:{duration:.12,ease:[.2,.8,.2,1]},style:{position:"fixed",top:null!=(t=null==y?void 0:y.top)?t:-9999,left:null!=(r=null==y?void 0:y.left)?r:-9999,zIndex:60},className:"min-w-[13rem] max-w-[18rem] overflow-hidden rounded-lg border border-[var(--fb-border)] bg-[var(--fb-bg-surface)] shadow-[0_10px_30px_-8px_rgba(0,0,0,0.25)]",children:i})}),document.body)}function NU(e){var t=e.items,r=e.multi,n=e.loading,a=e.error,o=e.searchable,i=e.placeholder,s=e.onQuery,l=e.onPick,u=e.onRetry,c=e.ariaLabel,d=N_(g.useState(""),2),f=d[0],p=d[1],m=N_(g.useState(0),2),h=m[0],y=m[1],b=g.useId(),x=g.useRef(null),w=g.useRef(null),j=g.useMemo(function(){if(s)return t;var e=f.trim().toLowerCase();return e?t.filter(function(t){return t.label.toLowerCase().includes(e)}):t},[t,f,s]);g.useEffect(function(){var e=requestAnimationFrame(function(){var e;return null==(e=x.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[]),g.useEffect(function(){y(function(e){return Math.min(e,Math.max(0,j.length-1))})},[j.length]),g.useEffect(function(){var e,t=null==(e=w.current)?void 0:e.querySelector('[data-idx="'.concat(h,'"]'));null==t||t.scrollIntoView({block:"nearest"})},[h]);var O=function(e){var t=j[e];t&&l(t.value)},S=function(e){"ArrowDown"===e.key?(e.preventDefault(),y(function(e){return Math.min(e+1,j.length-1)})):"ArrowUp"===e.key?(e.preventDefault(),y(function(e){return Math.max(e-1,0)})):"Home"===e.key?(e.preventDefault(),y(0)):"End"===e.key?(e.preventDefault(),y(j.length-1)):"Enter"===e.key&&(e.preventDefault(),O(h))};return(0,v.jsxs)("div",{children:[(void 0===o||o)&&(0,v.jsx)("div",{className:"border-b border-[var(--fb-border)] p-1.5",children:(0,v.jsx)("input",{ref:x,role:"combobox","aria-expanded":"true","aria-controls":b,"aria-activedescendant":j[h]?"".concat(b,"-").concat(h):void 0,"aria-label":c,value:f,onChange:function(e){p(e.target.value),null==s||s(e.target.value)},onKeyDown:S,placeholder:void 0===i?"Rechercher…":i,className:"w-full bg-transparent px-1.5 py-1 text-[13px] text-[var(--fb-fg)] outline-none placeholder:text-[var(--fb-fg-subtle)]",autoComplete:"off",spellCheck:!1})}),(0,v.jsxs)("ul",{ref:w,id:b,role:"listbox","aria-multiselectable":r||void 0,"aria-label":c,className:"max-h-60 overflow-y-auto p-1",onKeyDown:S,tabIndex:-1,children:[n&&(0,v.jsxs)("li",{className:"flex items-center gap-2 px-2 py-3 text-[13px] text-[var(--fb-fg-muted)]",children:[(0,v.jsx)(NX,{})," Chargement des options…"]}),a&&!n&&(0,v.jsxs)("li",{className:"px-2 py-2.5 text-[13px]",children:[(0,v.jsx)("p",{className:"text-[var(--fb-fg-muted)]",children:"Impossible de charger les options."}),(0,v.jsx)("button",{type:"button",onClick:u,className:"mt-1 rounded-md px-1.5 py-0.5 text-[13px] font-medium text-[var(--fb-fg)] underline decoration-[var(--fb-fg-subtle)] underline-offset-2 hover:decoration-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/60",children:"R\xe9essayer"})]}),!n&&!a&&0===j.length&&(0,v.jsx)("li",{className:"px-2 py-3 text-[13px] text-[var(--fb-fg-muted)]",children:"Aucun r\xe9sultat"}),!n&&!a&&j.map(function(e,t){var n=t===h;return(0,v.jsxs)("li",{id:"".concat(b,"-").concat(t),"data-idx":t,role:"option","aria-selected":r?!!e.selected:n,onMouseEnter:function(){return y(t)},onClick:function(){return l(e.value)},className:["flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-[13px] text-[var(--fb-fg)]",n?"bg-[var(--fb-bg-active)]":"bg-transparent"].join(" "),children:[r&&(0,v.jsx)("span",{"aria-hidden":!0,className:["flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded-[4px] border transition-colors",e.selected?"border-[var(--fb-border-strong)] bg-[var(--fb-border-strong)] text-[var(--fb-fg-on-accent)]":"border-[var(--fb-border)]"].join(" "),children:e.selected&&(0,v.jsx)(NY,{})}),e.glyph&&(0,v.jsx)("span",{className:"shrink-0","aria-hidden":!0,children:e.glyph}),(0,v.jsx)("span",{className:"truncate",children:e.label}),!r&&e.selected&&(0,v.jsx)("span",{className:"ml-auto text-[var(--fb-fg-muted)]",children:(0,v.jsx)(NY,{})})]},e.value)})]})]})}function N$(e){var t=e.inputType,r=e.arity,n=e.values,a=e.onCommit,o=e.ariaLabel,i=e.rangeLabels,s=void 0===i?["Min","Max"]:i,l=e.placeholder,u=g.useRef(null);g.useEffect(function(){var e=requestAnimationFrame(function(){var e;return null==(e=u.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[]);var c="w-full rounded-md border border-[var(--fb-border)] bg-transparent px-2 py-1.5 text-[13px] text-[var(--fb-fg)] outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/60";if(2===r){var d=N_(n,2),f=d[0],p=void 0===f?"":f,m=d[1],h=void 0===m?"":m;return(0,v.jsxs)("div",{className:"flex items-start gap-2 p-2",children:[(0,v.jsxs)("label",{className:"flex flex-1 flex-col gap-1",children:[(0,v.jsx)("span",{className:"text-[11px] text-[var(--fb-fg-muted)]",children:s[0]}),(0,v.jsx)("input",{ref:u,type:t,value:p,"aria-label":"".concat(o," — ").concat(s[0]),onChange:function(e){return a([e.target.value,h])},className:c})]}),(0,v.jsxs)("label",{className:"flex flex-1 flex-col gap-1",children:[(0,v.jsx)("span",{className:"text-[11px] text-[var(--fb-fg-muted)]",children:s[1]}),(0,v.jsx)("input",{type:t,value:h,"aria-label":"".concat(o," — ").concat(s[1]),onChange:function(e){return a([p,e.target.value])},className:c})]})]})}var y=N_(n,1)[0];return(0,v.jsx)("div",{className:"p-2",children:(0,v.jsx)("input",{ref:u,type:t,value:void 0===y?"":y,placeholder:l,"aria-label":o,onChange:function(e){return a([e.target.value])},onKeyDown:function(e){"Enter"===e.key&&e.currentTarget.blur()},className:c})})}function NH(e){var t=e.role,r=e.children,n=e.onOpen,a=e.registerRef,o=e.tabIndex,i=e.ariaLabel,s=e.anchorKey,l=e.onFocus,u=e.muted,c=e.active,d=e.flash,f=e.disabled;return(0,v.jsx)("button",{type:"button",ref:a,tabIndex:o,"aria-label":i,"aria-haspopup":"listbox","aria-expanded":c,"aria-disabled":f||void 0,"data-fb-anchor":s,onFocus:l,onClick:n,"data-flash":d?"":void 0,className:["relative flex items-center gap-1 whitespace-nowrap px-2 py-[4px] text-[13px] leading-[1.35] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--fb-accent)]/70",f?"cursor-default":"active:scale-[0.98]",u?"text-[var(--fb-fg-muted)]":"text-[var(--fb-fg)]",c?"bg-[var(--fb-bg-active)]":f?"":"hover:bg-[var(--fb-bg-hover)]","field"===t?"rounded-l-md font-medium":"","data-[flash]:animate-[fb-flash_620ms_ease-out]"].join(" "),children:r})}function NK(e){var t,r,n=e.fields,a=e.value,o=e.onChange,i=e.addLabel,s=void 0===i?"Filtre":i,l=e.emptyLabel,u=void 0===l?"Ajouter un filtre":l,c=e.clearLabel,d=e.allowDuplicateFields,f=void 0!==d&&d,p=e.disabled,m=e.className,h=e["aria-label"],y=Ed(),b=N_(g.useState(null),2),x=b[0],w=b[1],j=N_(g.useState(null),2),O=j[0],S=j[1],k=g.useRef([]),E=N_(g.useState(0),2),P=E[0],A=E[1],D=N_(g.useState({}),2),C=D[0],T=D[1],N=[];a.forEach(function(e){N.push({filterId:e.id,kind:"field"}),N.push({filterId:e.id,kind:"operator"}),N.push({filterId:e.id,kind:"value"}),N.push({filterId:e.id,kind:"remove"})}),N.push({kind:"add"}),g.useEffect(function(){P>N.length-1&&A(N.length-1)},[N.length,P]);var R=function(e){var t,r=Math.max(0,Math.min(e,N.length-1));A(r),null==(t=k.current[r])||t.focus()},M=function(e){var t,r,i=NV(n,e);if(i){var s=i.operators[0],l={id:"u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"f_".concat(Math.random().toString(36).slice(2,9)),field:e,operator:null!=(t=null==s?void 0:s.value)?t:"is",values:[]};o(NL(a).concat([l])),w((null!=(r=null==s?void 0:s.arity)?r:1)===0?null:{kind:"value",filterId:l.id})}},I=function(e,t){var r,i=NV(n,t),s=null==i?void 0:i.operators[0];o(a.map(function(r){var n;return r.id===e?NI(NM({},r),{field:t,operator:null!=(n=null==s?void 0:s.value)?n:r.operator,values:[]}):r})),w((null!=(r=null==s?void 0:s.arity)?r:1)===0?null:{kind:"value",filterId:e})},L=function(e,t){var r,i,s=a.find(function(t){return t.id===e}),l=Nz(NV(n,null!=(r=null==s?void 0:s.field)?r:""),t),u=null!=(i=null==l?void 0:l.arity)?i:1;o(a.map(function(r){if(r.id!==e)return r;var n=0===u?[]:(null==l?void 0:l.multi)?r.values:r.values.slice(0,u);return NI(NM({},r),{operator:t,values:n})})),w(0===u?null:{kind:"value",filterId:e})},F=function(e,t,r){o(a.map(function(n){if(n.id!==e)return n;if(!r)return NI(NM({},n),{values:[t]});var a=n.values.includes(t);return NI(NM({},n),{values:a?n.values.filter(function(e){return e!==t}):NL(n.values).concat([t])})})),S(e),window.setTimeout(function(){return S(function(t){return t===e?null:t})},640),r||w(null)},B=function(e,t){o(a.map(function(r){return r.id===e?NI(NM({},r),{values:t}):r}))},V=function(e,t){o(a.filter(function(t){return t.id!==e})),w(null);var r=Math.max(0,(null!=t?t:P)-1);requestAnimationFrame(function(){return R(r)})},z=g.useCallback(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.loadOptions&&(T(function(t){var r,n;return NI(NM({},t),NR({},e.id,{loading:!0,error:!1,options:null!=(r=null==(n=t[e.id])?void 0:n.options)?r:[]}))}),e.loadOptions(t).then(function(t){return T(function(r){return NI(NM({},r),NR({},e.id,{loading:!1,error:!1,options:t}))})}).catch(function(){return T(function(t){return NI(NM({},t),NR({},e.id,{loading:!1,error:!0,options:[]}))})}))},[]);g.useEffect(function(){if(x&&"value"===x.kind){var e,t,r=a.find(function(e){return e.id===x.filterId}),o=NV(n,null!=(e=null==r?void 0:r.field)?e:"");(null==o?void 0:o.loadOptions)&&!(null==(t=C[o.id])?void 0:t.options.length)&&z(o)}},[x]);var W=0,U=function(){var e=W++;return{idx:e,register:function(t){return k.current[e]=t},tabIndex:e===P?0:-1,onFocus:function(){return A(e)}}},$=x?"add"===x.kind?"add":"".concat(x.filterId,":").concat(x.kind):null,H=function(){if(!x)return"";if("add"===x.kind)return u;if("field"===x.kind)return"Modifier le champ du filtre";if("operator"===x.kind)return"Choisir un op\xe9rateur";var e,t=a.find(function(e){return e.id===x.filterId}),r=NV(n,null!=(e=null==t?void 0:t.field)?e:"");return r?"Valeur pour ".concat(r.label):"Valeur du filtre"}(),K=a.length>1;return(0,v.jsxs)("div",{role:"toolbar","aria-label":void 0===h?"Filtres":h,"aria-orientation":"horizontal","aria-disabled":p||void 0,onKeyDown:function(e){if(!x){var t=N.length-1;if("ArrowRight"===e.key)e.preventDefault(),R(P>=t?0:P+1);else if("ArrowLeft"===e.key)e.preventDefault(),R(P<=0?t:P-1);else if("Home"===e.key)e.preventDefault(),R(0);else if("End"===e.key)e.preventDefault(),R(t);else if("Backspace"===e.key||"Delete"===e.key){var r=N[P];(null==r?void 0:r.filterId)&&(e.preventDefault(),V(r.filterId,P))}}},className:["flex flex-wrap items-center gap-1.5",p?"pointer-events-none opacity-50":"",null!=m?m:""].join(" "),children:[(0,v.jsx)("style",{children:"\n:root {\n --fb-fg: #18181b;\n --fb-fg-muted: #71717a;\n --fb-fg-subtle: #a1a1aa;\n --fb-fg-on-accent: #ffffff;\n --fb-bg-surface: #ffffff;\n --fb-bg-chip: rgba(24, 24, 27, 0.04);\n --fb-bg-hover: rgba(24, 24, 27, 0.06);\n --fb-bg-active: rgba(24, 24, 27, 0.08);\n --fb-border: rgba(24, 24, 27, 0.09);\n --fb-border-strong: #18181b;\n --fb-accent: #3b82f6;\n --fb-accent-rgb: 59 130 246;\n}\n.dark {\n --fb-fg: #f4f4f5;\n --fb-fg-muted: #a1a1aa;\n --fb-fg-subtle: #71717a;\n --fb-fg-on-accent: #18181b;\n --fb-bg-surface: #18181b;\n --fb-bg-chip: rgba(255, 255, 255, 0.05);\n --fb-bg-hover: rgba(255, 255, 255, 0.08);\n --fb-bg-active: rgba(255, 255, 255, 0.12);\n --fb-border: rgba(255, 255, 255, 0.08);\n --fb-border-strong: #f4f4f5;\n --fb-accent: #60a5fa;\n --fb-accent-rgb: 96 165 250;\n}\n@keyframes fb-flash {\n 0% { background-color: rgb(var(--fb-accent-rgb) / 0.18); }\n 100% { background-color: transparent; }\n}\n@media (prefers-reduced-motion: reduce) {\n @keyframes fb-flash {\n 0%, 100% { background-color: transparent; }\n }\n}\n"}),(0,v.jsx)(OA,{initial:!1,mode:"popLayout",children:a.map(function(e){var t,r,a,o,i,s,l,u,c,d=NV(n,e.field),f=Nz(d,e.operator),p=null!=(t=null==f?void 0:f.arity)?t:1,m=null!=(r=null==d?void 0:d.type)?r:"select",h=0===p?{text:"—",empty:!1,glyphs:[]}:"select"===m?function(e,t){if(!t.length)return{text:"Choisir…",empty:!0,glyphs:[]};var r=function(t){return null==e?void 0:e.find(function(e){return e.value===t})},n=function(e){var t,n;return null!=(t=null==(n=r(e))?void 0:n.label)?t:e},a=t.map(function(e){var t;return null==(t=r(e))?void 0:t.glyph}).filter(Boolean).slice(0,3);return 1===t.length?{text:n(t[0]),empty:!1,glyphs:a}:t.length<=3?{text:t.map(n).join(", "),empty:!1,glyphs:a}:{text:"".concat(n(t[0])," +").concat(t.length-1),empty:!1,glyphs:a}}((null==d?void 0:d.loadOptions)?null==(c=C[d.id])?void 0:c.options:null==d?void 0:d.options,e.values):function(e,t,r){if(0===t)return{text:"—",empty:!1,glyphs:[]};if(!r.some(function(e){return""!==e&&null!=e}))return{text:"Choisir une valeur…",empty:!0,glyphs:[]};var n,a,o,i=function(t){if(!t)return"…";if("date"!==e)return t;var r=new Date(t);return Number.isNaN(r.getTime())?t:r.toLocaleDateString()};return 2===t?{text:"".concat(i(null!=(a=r[0])?a:"")," – ").concat(i(null!=(o=r[1])?o:"")),empty:!1,glyphs:[]}:{text:i(null!=(n=r[0])?n:""),empty:!1,glyphs:[]}}(m,p,e.values),g=U(),b=U(),j=U(),S=U(),k=O===e.id;return(0,v.jsxs)(mz.div,{layout:!y,initial:!y&&{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:y?{opacity:0}:{opacity:0,scale:.9},transition:NB,className:"group flex items-stretch overflow-hidden rounded-md border border-[var(--fb-border)] bg-[var(--fb-bg-chip)]",children:[(0,v.jsxs)(NH,{role:"field",registerRef:g.register,tabIndex:g.tabIndex,onFocus:g.onFocus,anchorKey:"".concat(e.id,":field"),active:(null==x?void 0:x.kind)==="field"&&x.filterId===e.id,ariaLabel:"Champ : ".concat(null!=(a=null==d?void 0:d.label)?a:e.field,". Modifier le champ."),onOpen:function(){return w({kind:"field",filterId:e.id})},children:[(null==d?void 0:d.icon)&&(0,v.jsx)("span",{className:"text-[var(--fb-fg-muted)]","aria-hidden":!0,children:d.icon}),null!=(o=null==d?void 0:d.label)?o:e.field]}),(0,v.jsx)("span",{"aria-hidden":!0,className:"w-px self-stretch bg-[var(--fb-border)]"}),(0,v.jsx)(NH,{role:"operator",registerRef:b.register,tabIndex:b.tabIndex,onFocus:b.onFocus,anchorKey:"".concat(e.id,":operator"),muted:!0,active:(null==x?void 0:x.kind)==="operator"&&x.filterId===e.id,ariaLabel:"Op\xe9rateur : ".concat(null!=(i=null==f?void 0:f.label)?i:e.operator,". Modifier l'op\xe9rateur."),onOpen:function(){return w({kind:"operator",filterId:e.id})},children:null!=(s=null==f?void 0:f.label)?s:e.operator}),(0,v.jsx)("span",{"aria-hidden":!0,className:"w-px self-stretch bg-[var(--fb-border)]"}),(0,v.jsxs)(NH,{role:"value",registerRef:j.register,tabIndex:j.tabIndex,onFocus:j.onFocus,anchorKey:"".concat(e.id,":value"),muted:h.empty||0===p,disabled:0===p,active:(null==x?void 0:x.kind)==="value"&&x.filterId===e.id,flash:k,ariaLabel:0===p?"Valeur : aucune valeur requise pour l'op\xe9rateur ".concat(null!=(l=null==f?void 0:f.label)?l:e.operator,"."):"Valeur : ".concat(h.empty?"aucune s\xe9lectionn\xe9e":h.text,". Modifier la valeur."),onOpen:function(){0!==p&&w({kind:"value",filterId:e.id})},children:[!h.empty&&h.glyphs.length>0&&(0,v.jsx)("span",{className:"flex shrink-0 items-center gap-0.5","aria-hidden":!0,children:h.glyphs.map(function(e,t){return(0,v.jsx)("span",{className:"flex items-center",children:e},t)})}),(0,v.jsx)("span",{className:"max-w-[12rem] truncate font-medium text-[var(--fb-fg)]",children:h.empty?(0,v.jsx)("span",{className:"font-normal text-[var(--fb-fg-subtle)]",children:h.text}):h.text})]}),(0,v.jsx)("button",{type:"button",ref:S.register,tabIndex:S.tabIndex,onFocus:S.onFocus,onClick:function(){return V(e.id,S.idx)},"aria-label":"Supprimer le filtre ".concat(null!=(u=null==d?void 0:d.label)?u:e.field),className:"flex items-center px-1.5 text-[var(--fb-fg-subtle)] transition-colors hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--fb-accent)]/70 active:scale-[0.98]",children:(0,v.jsx)(Nq,{})})]},e.id)})}),(t=U(),r=0===a.length,(0,v.jsxs)("button",{type:"button",ref:t.register,tabIndex:t.tabIndex,onFocus:t.onFocus,"data-fb-anchor":"add","aria-label":r?u:s,"aria-haspopup":"listbox","aria-expanded":(null==x?void 0:x.kind)==="add",onClick:function(){return w({kind:"add"})},className:"flex items-center gap-1 rounded-md border border-dashed border-[var(--fb-border)] px-2 py-[6px] text-[13px] font-medium leading-none text-[var(--fb-fg-muted)] transition-colors hover:border-[var(--fb-border-strong)]/40 hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/70 active:scale-[0.98]",children:[(0,v.jsx)(NG,{}),r?u:s]})),K&&(0,v.jsx)("button",{type:"button",onClick:function(){o([]),w(null),requestAnimationFrame(function(){return R(0)})},className:"ml-0.5 rounded-md px-2 py-[6px] text-[13px] leading-none text-[var(--fb-fg-muted)] transition-colors hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/70",children:void 0===c?"R\xe9initialiser":c}),x&&$&&(0,v.jsx)(NW,{anchorKey:$,label:H,onClose:function(){return w(null)},children:function(){if(!x)return null;if("add"===x.kind||"field"===x.kind){var e,t,r,o,i,s="field"===x.kind?x.filterId:null,l=new Set(a.filter(function(e){return e.id!==s}).map(function(e){return e.field})),u=n.filter(function(e){return f||!l.has(e.id)}).map(function(e){return{value:e.id,label:e.label,glyph:e.icon}});return(0,v.jsx)(NU,{ariaLabel:H,items:u,multi:!1,onPick:function(e){return"add"===x.kind?M(e):I(x.filterId,e)}},null!=$?$:void 0)}var c=a.find(function(e){return e.id===x.filterId}),d=NV(n,null!=(e=null==c?void 0:c.field)?e:"");if(!c||!d)return null;if("operator"===x.kind){var p=d.operators.map(function(e){return{value:e.value,label:e.label,selected:e.value===c.operator}});return(0,v.jsx)(NU,{ariaLabel:H,items:p,multi:!1,searchable:p.length>6,onPick:function(e){return L(c.id,e)}},null!=$?$:void 0)}var m=Nz(d,c.operator),h=null!=(t=null==m?void 0:m.arity)?t:1;if(0===h)return null;var y=null!=(r=d.type)?r:"select";if("text"===y||"number"===y||"date"===y)return(0,v.jsx)(N$,{inputType:y,arity:h,values:c.values,onCommit:function(e){return B(c.id,e)},ariaLabel:H,rangeLabels:"date"===y?["Du","Au"]:["Min","Max"],placeholder:"text"===y?"Rechercher…":void 0},null!=$?$:void 0);var g=!!(null==m?void 0:m.multi),b=d.loadOptions?C[d.id]:void 0,w=(d.loadOptions?null!=(o=null==b?void 0:b.options)?o:[]:null!=(i=d.options)?i:[]).map(function(e){return{value:e.value,label:e.label,glyph:e.glyph,selected:c.values.includes(e.value)}});return(0,v.jsx)(NU,{ariaLabel:H,items:w,multi:g,loading:null==b?void 0:b.loading,error:null==b?void 0:b.error,onQuery:d.loadOptions?function(e){return z(d,e)}:void 0,onRetry:function(){return z(d)},onPick:function(e){return F(c.id,e,g)}},null!=$?$:void 0)}()})]})}function NG(){return(0,v.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,children:(0,v.jsx)("path",{d:"M6 2.5v7M2.5 6h7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function Nq(){return(0,v.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,children:(0,v.jsx)("path",{d:"M3 3l6 6M9 3l-6 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function NY(){return(0,v.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,children:(0,v.jsx)("path",{d:"M2.5 6.2l2.2 2.3L9.5 3.7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}function NX(){return(0,v.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":!0,className:"animate-spin",children:[(0,v.jsx)("circle",{cx:"7",cy:"7",r:"5.5",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"1.5"}),(0,v.jsx)("path",{d:"M12.5 7A5.5 5.5 0 0 0 7 1.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}let NZ=NK;var NQ={text:[{value:"contains",label:"contient"},{value:"not_contains",label:"ne contient pas"},{value:"equals",label:"est exactement"},{value:"starts_with",label:"commence par"},{value:"is_empty",label:"est vide",arity:0},{value:"is_not_empty",label:"n'est pas vide",arity:0}],number:[{value:"eq",label:"="},{value:"neq",label:"≠"},{value:"gt",label:">"},{value:"gte",label:"≥"},{value:"lt",label:"<"},{value:"lte",label:"≤"},{value:"between",label:"entre",arity:2}],date:[{value:"on",label:"le"},{value:"before",label:"avant le"},{value:"after",label:"apr\xe8s le"},{value:"between",label:"entre",arity:2}],boolean:[{value:"is",label:"est"}],select:[{value:"is",label:"est"},{value:"is_not",label:"n'est pas"},{value:"is_any_of",label:"est l'un de",multi:!0}]},NJ=[{value:"true",label:"Oui"},{value:"false",label:"Non"}];function N0(e,t){var r=function(e){var r,n;return null!=(r=null==(n=t.find(function(t){return t.field===e}))?void 0:n.values)?r:[]};return e.fields.filter(function(e){return!e.dependsOn||r(e.dependsOn).length>0}).map(function(e){if("boolean"===e.type)return{id:e.id,label:e.label,icon:e.icon,type:"select",operators:null!=(a=e.operators)?a:NQ.boolean,options:null!=(o=e.options)?o:NJ};var t,n,a,o,i=null!=(t=e.operators)?t:NQ[e.type];if("select"!==e.type)return{id:e.id,label:e.label,icon:e.icon,type:e.type,operators:i};var s=e.dependsOn?r(e.dependsOn):[];return e.optionsByParent?{id:e.id,label:e.label,icon:e.icon,type:"select",operators:i,options:s.flatMap(function(t){var r,n;return null!=(r=null==(n=e.optionsByParent)?void 0:n[t])?r:[]})}:e.loadOptions?{id:e.id,label:e.label,icon:e.icon,type:"select",operators:i,loadOptions:function(t){return e.loadOptions(t,{parentValues:s})}}:{id:e.id,label:e.label,icon:e.icon,type:"select",operators:i,options:null!=(n=e.options)?n:[]}})}function N1(e,t){for(var r=t,n=0;n<e.fields.length&&"break"!==function(){var t=!1,n=r.filter(function(n){var a=e.fields.find(function(e){return e.id===n.field});if(!(null==a?void 0:a.dependsOn))return!0;var o=r.find(function(e){return e.field===a.dependsOn}),i=!!o&&o.values.length>0;return i||(t=!0),i});if(r=n.map(function(r){var a,o=e.fields.find(function(e){return e.id===r.field});if(!(null==o?void 0:o.dependsOn)||!o.optionsByParent)return r;var i=n.find(function(e){return e.field===o.dependsOn}),s=new Set((null!=(a=null==i?void 0:i.values)?a:[]).flatMap(function(e){var t,r,n;return null!=(t=null==(n=o.optionsByParent)||null==(r=n[e])?void 0:r.map(function(e){return e.value}))?t:[]})),l=r.values.filter(function(e){return s.has(e)});return l.length!==r.values.length&&(t=!0),l.length===r.values.length?r:NI(NM({},r),{values:l})}),!t)return"break"}();n++);return r}function N2(e,t,r){return{fields:g.useMemo(function(){return N0(e,t)},[e,t]),onChange:g.useCallback(function(t){return r(N1(e,t))},[e,r])}}function N3(e,t,r,n){var a=function(e){return null==e?"":String(e)};switch(t){case"is_empty":return""===a(r);case"is_not_empty":return""!==a(r);case"contains":return a(r).toLowerCase().includes(a(n[0]).toLowerCase());case"not_contains":return!a(r).toLowerCase().includes(a(n[0]).toLowerCase());case"starts_with":return a(r).toLowerCase().startsWith(a(n[0]).toLowerCase());case"equals":return a(r).toLowerCase()===a(n[0]).toLowerCase();case"is":return a(r)===n[0];case"is_not":return a(r)!==n[0];case"is_any_of":return n.includes(a(r));case"eq":return Number(r)===Number(n[0]);case"neq":return Number(r)!==Number(n[0]);case"gt":return Number(r)>Number(n[0]);case"gte":return Number(r)>=Number(n[0]);case"lt":return Number(r)<Number(n[0]);case"lte":return Number(r)<=Number(n[0]);case"between":var o=N_(n,2),i=o[0],s=o[1];if("date"===e){var l=new Date(a(r)).getTime(),u=!i||l>=new Date(i).getTime(),c=!s||l<=new Date(s).getTime();return u&&c}var d=Number(r),f=void 0===i||""===i||d>=Number(i),p=void 0===s||""===s||d<=Number(s);return f&&p;case"on":return a(r).slice(0,10)===a(n[0]).slice(0,10);case"before":return new Date(a(r)).getTime()<new Date(n[0]).getTime();case"after":return new Date(a(r)).getTime()>new Date(n[0]).getTime();default:return!0}}function N4(e,t,r,n){return Array.isArray(r)?r.some(function(r){return N3(e,t,r,n)}):N3(e,t,r,n)}function N5(e,t){return"is_empty"===e||"is_not_empty"===e||t.some(function(e){return""!==e&&void 0!==e})}function N6(e,t,r,n){return t.every(function(t){if(!N5(t.operator,t.values))return!0;var a=r.fields.find(function(e){return e.id===t.field}),o=null==a?void 0:a.type;return N4("boolean"===o||void 0===o?"select":o,t.operator,n(e,t.field),t.values)})}var N8=["\xe9lections","corruption","budget","diplomatie","sant\xe9","\xe9ducation","climat","s\xe9curit\xe9"],N9={fields:[{id:"status",label:"Statut",type:"select",options:[{value:"draft",label:"Brouillon"},{value:"published",label:"Publi\xe9"},{value:"archived",label:"Archiv\xe9"}]},{id:"category",label:"Cat\xe9gorie",type:"select",options:[{value:"politique",label:"Politique"},{value:"sport",label:"Sport"},{value:"economie",label:"\xc9conomie"},{value:"culture",label:"Culture"}]},{id:"subcategory",label:"Sous-cat\xe9gorie",type:"select",dependsOn:"category",optionsByParent:{politique:[{value:"national",label:"National"},{value:"international",label:"International"},{value:"institutions",label:"Institutions"}],sport:[{value:"football",label:"Football"},{value:"basketball",label:"Basketball"},{value:"athletisme",label:"Athl\xe9tisme"}],economie:[{value:"marches",label:"March\xe9s"},{value:"entreprises",label:"Entreprises"},{value:"emploi",label:"Emploi"}],culture:[{value:"musique",label:"Musique"},{value:"cinema",label:"Cin\xe9ma"},{value:"litterature",label:"Litt\xe9rature"}]}},{id:"tags",label:"Tags",type:"select",loadOptions:function(e){return new Promise(function(t){window.setTimeout(function(){var r=e.trim().toLowerCase();t(N8.filter(function(e){return e.toLowerCase().includes(r)}).map(function(e){return{value:e,label:e}}))},350)})}},{id:"title",label:"Titre",type:"text"},{id:"views",label:"Vues",type:"number"},{id:"publishedAt",label:"Date de publication",type:"date"},{id:"featured",label:"\xc0 la une",type:"boolean"}]},N7=[{id:"1",title:"Le budget 2027 d\xe9voil\xe9 \xe0 l'Assembl\xe9e",status:"published",category:"politique",subcategory:"national",tags:["budget","\xe9lections"],views:4300,publishedAt:"2026-09-02",featured:!0},{id:"2",title:"Sommet r\xe9gional sur le climat \xe0 Libreville",status:"published",category:"politique",subcategory:"international",tags:["climat","diplomatie"],views:2100,publishedAt:"2026-08-20",featured:!1},{id:"3",title:"Les Panth\xe8res qualifi\xe9es pour la CAN",status:"published",category:"sport",subcategory:"football",tags:["football"],views:9800,publishedAt:"2026-09-10",featured:!0},{id:"4",title:"R\xe9forme du syst\xe8me \xe9ducatif : ce qui change",status:"draft",category:"politique",subcategory:"institutions",tags:["\xe9ducation"],views:120,publishedAt:"2026-09-15",featured:!1},{id:"5",title:"Les march\xe9s locaux r\xe9sistent \xe0 l'inflation",status:"published",category:"economie",subcategory:"marches",tags:["budget"],views:1560,publishedAt:"2026-07-30",featured:!1},{id:"6",title:"Festival de musique urbaine \xe0 Port-Gentil",status:"published",category:"culture",subcategory:"musique",tags:[],views:870,publishedAt:"2026-09-05",featured:!1},{id:"7",title:"Nouvelle campagne de sensibilisation lanc\xe9e",status:"published",category:"politique",subcategory:"national",tags:["sant\xe9"],views:3400,publishedAt:"2026-06-18",featured:!1},{id:"8",title:"Championnat national de basketball : bilan",status:"archived",category:"sport",subcategory:"basketball",tags:[],views:640,publishedAt:"2026-05-02",featured:!1}];function Re(e,t){switch(t){case"status":return e.status;case"category":return e.category;case"subcategory":return e.subcategory;case"tags":return e.tags;case"title":return e.title;case"views":return e.views;case"publishedAt":return e.publishedAt;case"featured":return e.featured;default:return}}var Rt={contains:"icontains",not_contains:"icontains",equals:"iexact",starts_with:"istartswith",is_empty:"isnull",is_not_empty:"isnull",eq:"exact",neq:"exact",gt:"gt",gte:"gte",lt:"lt",lte:"lte",on:"exact",before:"lt",after:"gt",is:"exact",is_not:"exact",is_any_of:"in"};function Rr(){var e=N_(g.useState([]),2),t=e[0],r=N2(N9,t,e[1]),n=r.fields,a=r.onChange,o=g.useMemo(function(){return N7.filter(function(e){return N6(e,t,N9,Re)})},[t]),i=g.useMemo(function(){return function(e){var t=new URLSearchParams,r=!0,n=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var s,l,u=o.value;if(N5(u.operator,u.values)){if("between"===u.operator){var c=N_(u.values,2),d=c[0],f=c[1];d&&t.append("".concat(u.field,"__gte"),d),f&&t.append("".concat(u.field,"__lte"),f);continue}if("is_empty"===u.operator){t.append("".concat(u.field,"__isnull"),"true");continue}if("is_not_empty"===u.operator){t.append("".concat(u.field,"__isnull"),"false");continue}var p=null!=(s=Rt[u.operator])?s:"exact",m="is_any_of"===u.operator?u.values.join(","):null!=(l=u.values[0])?l:"";t.append("".concat(u.field,"__").concat(p),m)}}}catch(e){n=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw a}}return t.toString()}(t)},[t]);return(0,v.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,v.jsx)(NK,{fields:n,value:t,onChange:a,"aria-label":"Filtrer les articles"}),(0,v.jsxs)("ul",{className:"flex flex-col gap-2",children:[o.map(function(e){return(0,v.jsxs)("li",{className:"rounded-md border border-[var(--fb-border)] px-3 py-2 text-[13px] text-[var(--fb-fg)]",children:[(0,v.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,v.jsx)("span",{className:"font-medium",children:e.title}),e.featured&&(0,v.jsx)("span",{className:"text-[var(--fb-fg-muted)]",children:"★ \xe0 la une"})]}),(0,v.jsxs)("div",{className:"mt-0.5 text-[12px] text-[var(--fb-fg-muted)]",children:[e.category," / ",e.subcategory," \xb7 ",e.views," vues \xb7 ",new Date(e.publishedAt).toLocaleDateString()]})]},e.id)}),0===o.length&&(0,v.jsx)("li",{className:"rounded-md border border-dashed border-[var(--fb-border)] px-3 py-4 text-center text-[13px] text-[var(--fb-fg-muted)]",children:"Aucun article ne correspond \xe0 ces filtres."})]}),(0,v.jsxs)("details",{className:"text-[12px] text-[var(--fb-fg-muted)]",children:[(0,v.jsx)("summary",{className:"cursor-pointer select-none",children:"Voir l'\xe9tat brut (\xe0 des fins p\xe9dagogiques)"}),(0,v.jsx)("p",{className:"mt-2",children:"\xc9tat `filters` produit par <FilterBar> :"}),(0,v.jsx)("pre",{className:"mt-1 overflow-x-auto rounded-md bg-[var(--fb-bg-chip)] p-2",children:JSON.stringify(t,null,2)}),(0,v.jsx)("p",{className:"mt-2",children:"Query string \xe9quivalente (convention django-filter) :"}),(0,v.jsxs)("pre",{className:"mt-1 overflow-x-auto rounded-md bg-[var(--fb-bg-chip)] p-2",children:["?",i||"(aucun filtre actif)"]})]})]})}var Rn=(0,ya.A)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),Ra=(0,ya.A)("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),Ro=(0,ya.A)("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]),Ri=(0,ya.A)("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]),Rs=r(9150),Rl=(0,ya.A)("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);function Ru(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Rc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ru(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ru(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rd(e){var t,r=e.currentCategory,n=e.onSelectCategory,a=e.sortOption,o=e.onSelectSort,i=e.viewMode,s=e.onToggleViewMode,l=e.typeFilter,u=e.onSelectTypeFilter,c=Rc((0,g.useState)(!1),2),d=c[0],f=c[1],p=Rc((0,g.useState)(!1),2),m=p[0],h=p[1],y=[{id:"all",label:"Tout",icon:(0,v.jsx)(SF,{className:"w-3.5 h-3.5"})},{id:"documents",label:"Documents",icon:(0,v.jsx)(SQ,{className:"w-3.5 h-3.5"})},{id:"images",label:"Images",icon:(0,v.jsx)(Rn,{className:"w-3.5 h-3.5"})},{id:"videos",label:"Vid\xe9os",icon:(0,v.jsx)(Ra,{className:"w-3.5 h-3.5"})},{id:"music",label:"Musique",icon:(0,v.jsx)(Ro,{className:"w-3.5 h-3.5"})},{id:"archives",label:"Archives",icon:(0,v.jsx)(Ri,{className:"w-3.5 h-3.5"})}],b=[{id:"recent",label:"Plus r\xe9cents"},{id:"oldest",label:"Plus anciens"},{id:"name_asc",label:"Nom A → Z"},{id:"name_desc",label:"Nom Z → A"},{id:"items_count",label:"Nombre d’\xe9l\xe9ments"}],x=(null==(t=b.find(function(e){return e.id===a}))?void 0:t.label)||"Plus r\xe9cents";return(0,v.jsxs)("div",{className:"w-full flex flex-col sm:flex-row items-stretch sm:items-center justify-between gap-2.5 py-1 relative z-20",children:[(0,v.jsx)("div",{className:"flex items-center gap-1.5 overflow-x-auto pb-1 sm:pb-0 scrollbar-none w-full sm:w-auto",children:y.map(function(e){var t=r===e.id;return(0,v.jsxs)("button",{onClick:function(){return n(e.id)},className:"flex items-center gap-1 px-2.5 py-1 rounded-lg text-[10px] sm:text-xs font-semibold whitespace-nowrap transition-all duration-200 cursor-pointer ".concat(t?"bg-emerald-500/25 text-white border border-emerald-400/80 shadow-[0_0_12px_rgba(16,185,129,0.3)] drop-shadow-[0_1px_2px_rgba(0,0,0,0.8)]":"bg-transparent text-white/70 hover:text-white hover:bg-white/5 border border-white/10 hover:border-white/20 drop-shadow-[0_1px_1px_rgba(0,0,0,0.8)]"),children:[(0,v.jsx)("span",{className:t?"text-emerald-400":"text-white/60",children:e.icon}),(0,v.jsx)("span",{children:e.label})]},e.id)})}),(0,v.jsxs)("div",{className:"flex items-center justify-between sm:justify-end gap-1.5 sm:gap-2 w-full sm:w-auto mt-0.5 sm:mt-0",children:[(0,v.jsxs)("div",{className:"relative flex-1 sm:flex-none",children:[(0,v.jsxs)("button",{onClick:function(){f(!d),h(!1)},className:"w-full sm:w-auto flex items-center justify-between sm:justify-start gap-1 px-2.5 py-1 rounded-lg text-[10px] sm:text-xs font-semibold bg-black/30 hover:bg-white/5 border border-white/10 hover:border-white/20 text-white/90 transition-colors cursor-pointer",children:[(0,v.jsxs)("div",{className:"flex items-center gap-1",children:[(0,v.jsx)("span",{className:"text-white/40 hidden xs:inline",children:"Tri :"}),(0,v.jsx)("span",{className:"text-white font-semibold truncate max-w-[70px] sm:max-w-none",children:x})]}),(0,v.jsx)(Rs.A,{className:"w-3 h-3 text-white/50 shrink-0"})]}),d&&(0,v.jsx)("div",{className:"absolute right-0 mt-2 w-44 py-1 rounded-lg bg-[#040d10]/95 border border-white/15 shadow-[0_10px_30px_rgba(0,0,0,0.9)] backdrop-blur-xl z-50 animate-in fade-in zoom-in-95 duration-150",children:b.map(function(e){return(0,v.jsx)("button",{onClick:function(){o(e.id),f(!1)},className:"w-full text-left px-3 py-1.5 text-[10px] sm:text-xs transition-colors cursor-pointer ".concat(a===e.id?"bg-emerald-500/20 text-emerald-300 font-bold":"text-white/75 hover:bg-white/[0.08] hover:text-white"),children:e.label},e.id)})})]}),(0,v.jsxs)("div",{className:"relative flex-1 sm:flex-none",children:[(0,v.jsxs)("button",{onClick:function(){h(!m),f(!1)},className:"w-full sm:w-auto flex items-center justify-between sm:justify-start gap-1 px-2.5 py-1 rounded-lg text-[10px] sm:text-xs font-semibold bg-black/30 hover:bg-white/5 border border-white/10 hover:border-white/20 text-white/90 transition-colors cursor-pointer",children:[(0,v.jsxs)("div",{className:"flex items-center gap-1",children:[(0,v.jsx)("span",{className:"text-white/40 hidden xs:inline",children:"Type :"}),(0,v.jsx)("span",{className:"text-white font-semibold truncate max-w-[60px] sm:max-w-none",children:l})]}),(0,v.jsx)(Rs.A,{className:"w-3 h-3 text-white/50 shrink-0"})]}),m&&(0,v.jsx)("div",{className:"absolute right-0 mt-2 w-36 py-1 rounded-lg bg-[#040d10]/95 border border-white/15 shadow-[0_10px_30px_rgba(0,0,0,0.9)] backdrop-blur-xl z-50 animate-in fade-in zoom-in-95 duration-150",children:["Tous","Dossiers","Documents","Images","Vid\xe9os","Archives"].map(function(e){return(0,v.jsx)("button",{onClick:function(){u(e),h(!1)},className:"w-full text-left px-3 py-1.5 text-[10px] sm:text-xs transition-colors cursor-pointer ".concat(l===e?"bg-emerald-500/20 text-emerald-300 font-bold":"text-white/75 hover:bg-white/[0.08] hover:text-white"),children:e},e)})})]}),(0,v.jsxs)("div",{className:"flex items-center p-0.5 rounded-lg bg-black/20 border border-white/10 shrink-0",children:[(0,v.jsx)("button",{onClick:function(){return s("grid")},className:"p-1 rounded-md transition-all cursor-pointer ".concat("grid"===i?"bg-emerald-500/20 text-emerald-400":"text-white/40 hover:text-white/70"),title:"Vue Grille",children:(0,v.jsx)(Rl,{className:"w-3.5 h-3.5"})}),(0,v.jsx)("button",{onClick:function(){return s("list")},className:"p-1 rounded-md transition-all cursor-pointer ".concat("list"===i?"bg-emerald-500/20 text-emerald-400":"text-white/40 hover:text-white/70"),title:"Vue Liste",children:(0,v.jsx)(C3,{className:"w-3.5 h-3.5"})})]})]})]})}},8969(e,t,r){"use strict";r.d(t,{cn:()=>ey});var n=r(7064);let a=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),o=[],i=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let n=e[t],a=r.nextPart.get(n);if(a){let r=i(e,t+1,a);if(r)return r}let o=r.validators;if(null===o)return;let s=0===t?e.join("-"):e.slice(t).join("-"),l=o.length;for(let e=0;e<l;e++){let t=o[e];if(t.validator(s))return t.classGroupId}},s=(e,t)=>{let r=a();for(let n in e)l(e[n],r,n,t);return r},l=(e,t,r,n)=>{let a=e.length;for(let o=0;o<a;o++)u(e[o],t,r,n)},u=(e,t,r,n)=>{"string"==typeof e?c(e,t,r):"function"==typeof e?d(e,t,r,n):f(e,t,r,n)},c=(e,t,r)=>{(""===e?t:p(t,e)).classGroupId=r},d=(e,t,r,n)=>{m(e)?l(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},f=(e,t,r,n)=>{let a=Object.entries(e),o=a.length;for(let e=0;e<o;e++){let[o,i]=a[e];l(i,p(t,o),r,n)}},p=(e,t)=>{let r=e,n=t.split("-"),o=n.length;for(let e=0;e<o;e++){let t=n[e],o=r.nextPart.get(t);o||(o=a(),r.nextPart.set(t,o)),r=o}return r},m=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,h=[],y=(e,t,r,n,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:a}),v=/\s+/,g=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=g(e[n]))&&(r&&(r+=" "),r+=t);return r},b=[],x=e=>{let t=t=>t[e]||b;return t.isThemeGetter=!0,t.themeKey=e,t},w=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,j=/^\((?:(\w[\w-]*):)?(.+)\)$/i,O=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k=/\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$/,E=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,P=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,A=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,D=e=>O.test(e),C=e=>!!e&&!Number.isNaN(Number(e)),T=e=>!!e&&Number.isInteger(Number(e)),N=e=>e.endsWith("%")&&C(e.slice(0,-1)),R=e=>S.test(e),M=()=>!0,I=e=>k.test(e)&&!E.test(e),L=()=>!1,F=e=>P.test(e),B=e=>A.test(e),V=e=>!U(e)&&!Z(e),z=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),W=e=>eo(e,eu,L),U=e=>w.test(e),$=e=>eo(e,ec,I),H=e=>eo(e,ed,C),K=e=>eo(e,ep,M),G=e=>eo(e,ef,L),q=e=>eo(e,es,L),Y=e=>eo(e,el,B),X=e=>eo(e,em,F),Z=e=>j.test(e),Q=e=>ei(e,ec),J=e=>ei(e,ef),ee=e=>ei(e,es),et=e=>ei(e,eu),er=e=>ei(e,el),en=e=>ei(e,em,!0),ea=e=>ei(e,ep,!0),eo=(e,t,r)=>{let n=w.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},ei=(e,t,r=!1)=>{let n=j.exec(e);return!!n&&(n[1]?t(n[1]):r)},es=e=>"position"===e||"percentage"===e,el=e=>"image"===e||"url"===e,eu=e=>"length"===e||"size"===e||"bg-size"===e,ec=e=>"length"===e,ed=e=>"number"===e,ef=e=>"family-name"===e,ep=e=>"number"===e||"weight"===e,em=e=>"shadow"===e,eh=((e,...t)=>{let r,n,a,l,u=e=>{let t=n(e);if(t)return t;let o=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:o,postfixLookupClassGroupIds:i}=t,s=[],l=e.trim().split(v),u="";for(let e=l.length-1;e>=0;e-=1){let t,c=l[e],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:h}=r(c);if(d){u=c+(u.length>0?" "+u:u);continue}let y=!!h;if(y){let e=(t=n(m.substring(0,h)))&&i[t]?n(m):void 0;e&&e!==t&&(t=e,y=!1)}else t=n(m);if(!t){if(!y||!(t=n(m))){u=c+(u.length>0?" "+u:u);continue}y=!1}let v=0===f.length?"":1===f.length?f[0]:o(f).join(":"),g=p?v+"!":v,b=g+t;if(s.indexOf(b)>-1)continue;s.push(b);let x=a(t,y);for(let e=0;e<x.length;++e){let t=x[e];s.push(g+t)}u=c+(u.length>0?" "+u:u)}return u})(e,r);return a(e,o),o};return l=c=>{var d;let f;return n=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),a=(a,o)=>{r[a]=o,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(a(e,t),t):void 0},set(e,t){e in r?r[e]=t:a(e,t)}}})((d=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r=[],n=0,a=0,o=0,i=e.length;for(let s=0;s<i;s++){let i=e[s];if(0===n&&0===a){if(":"===i){r.push(e.slice(o,s)),o=s+1;continue}if("/"===i){t=s;continue}}"["===i?n++:"]"===i?n--:"("===i?a++:")"===i&&a--}let s=0===r.length?e:e.slice(o),l=s,u=!1;return s.endsWith("!")?(l=s.slice(0,-1),u=!0):s.startsWith("!")&&(l=s.slice(1),u=!0),y(r,u,l,t&&t>o?t-o:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):y(h,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(d),sortModifiers:(f=new Map,d.orderSensitiveModifiers.forEach((e,t)=>{f.set(e,1e6+t)}),e=>{let t=[],r=[];for(let n=0;n<e.length;n++){let a=e[n],o="["===a[0],i=f.has(a);o||i?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(a)):r.push(a)}return r.length>0&&(r.sort(),t.push(...r)),t}),postfixLookupClassGroupIds:(e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t})(d),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return s(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,n,a;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(n=(t=r.slice(1,-1)).indexOf(":"),(a=t.slice(0,n))?"arbitrary.."+a:void 0)}let n=e.split("-"),a=+(""===n[0]&&n.length>1);return i(n,a,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=n[e],a=r[e];if(t){if(a){let e=Array(a.length+t.length);for(let t=0;t<a.length;t++)e[t]=a[t];for(let r=0;r<t.length;r++)e[a.length+r]=t[r];return e}return t}return a||o}return r[e]||o}}})(d)}).cache.get,a=r.cache.set,l=u,u(c)},(...e)=>l(((...e)=>{let t,r,n=0,a="";for(;n<e.length;)(t=e[n++])&&(r=g(t))&&(a&&(a+=" "),a+=r);return a})(...e))})(()=>{let e=x("color"),t=x("font"),r=x("text"),n=x("font-weight"),a=x("tracking"),o=x("leading"),i=x("breakpoint"),s=x("container"),l=x("spacing"),u=x("radius"),c=x("shadow"),d=x("inset-shadow"),f=x("text-shadow"),p=x("drop-shadow"),m=x("blur"),h=x("perspective"),y=x("aspect"),v=x("ease"),g=x("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...w(),Z,U],O=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],k=()=>[Z,U,l],E=()=>[D,"full","auto",...k()],P=()=>[T,"none","subgrid",Z,U],A=()=>["auto",{span:["full",T,Z,U]},T,Z,U],I=()=>[T,"auto",Z,U],L=()=>["auto","min","max","fr",Z,U],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],eo=()=>["auto",...k()],ei=()=>[D,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],es=()=>[s,D,"screen","full","dvw","lvw","svw","min","max","fit",...k()],el=()=>[D,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],eu=()=>[e,Z,U],ec=()=>[...w(),ee,q,{position:[Z,U]}],ed=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ef=()=>["auto","cover","contain",et,W,{size:[Z,U]}],ep=()=>[N,Q,$],em=()=>["","none","full",u,Z,U],eh=()=>["",C,Q,$],ey=()=>["solid","dashed","dotted","double"],ev=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],eg=()=>[C,N,ee,q],eb=()=>["","none",m,Z,U],ex=()=>["none",C,Z,U],ew=()=>["none",C,Z,U],ej=()=>[C,Z,U],eO=()=>[D,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[R],breakpoint:[R],color:[M],container:[R],"drop-shadow":[R],ease:["in","out","in-out"],font:[V],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[R],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[R],shadow:[R],spacing:["px",C],text:[R],"text-shadow":[R],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",D,U,Z,y]}],container:["container"],"container-type":[{"@container":["","normal","size",Z,U]}],"container-named":[z],columns:[{columns:[C,"auto",U,Z,s]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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"],sr:["sr-only","not-sr-only"],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:j()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[T,"auto",Z,U]}],basis:[{basis:[D,"full","auto",s,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[C,D,"auto","initial","none",U]}],grow:[{grow:["",C,Z,U]}],shrink:[{shrink:["",C,Z,U]}],order:[{order:[T,"first","last","none",Z,U]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:eo()}],mx:[{mx:eo()}],my:[{my:eo()}],ms:[{ms:eo()}],me:[{me:eo()}],mbs:[{mbs:eo()}],mbe:[{mbe:eo()}],mt:[{mt:eo()}],mr:[{mr:eo()}],mb:[{mb:eo()}],ml:[{ml:eo()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:ei()}],"inline-size":[{inline:["auto",...es()]}],"min-inline-size":[{"min-inline":["auto",...es()]}],"max-inline-size":[{"max-inline":["none",...es()]}],"block-size":[{block:["auto",...el()]}],"min-block-size":[{"min-block":["auto",...el()]}],"max-block-size":[{"max-block":["none",...el()]}],w:[{w:[s,"screen",...ei()]}],"min-w":[{"min-w":[s,"screen","none",...ei()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...ei()]}],h:[{h:["screen","lh",...ei()]}],"min-h":[{"min-h":["screen","lh","none",...ei()]}],"max-h":[{"max-h":["screen","lh","none",...ei()]}],"font-size":[{text:["base",r,Q,$]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ea,K]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",N,U]}],"font-family":[{font:[J,G,t]}],"font-features":[{"font-features":[U]}],"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:[a,Z,U]}],"line-clamp":[{"line-clamp":[C,"none",Z,H]}],leading:[{leading:["none",o,...k()]}],"list-image":[{"list-image":["none",Z,U]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:eu()}],"text-color":[{text:eu()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ey(),"wavy"]}],"text-decoration-thickness":[{decoration:[C,"from-font","auto",Z,$]}],"text-decoration-color":[{decoration:eu()}],"underline-offset":[{"underline-offset":[C,"auto",Z,U]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[T,Z,U]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z,U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ec()}],"bg-repeat":[{bg:ed()}],"bg-size":[{bg:ef()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},T,Z,U],radial:["",Z,U],conic:["",T,Z,U]},er,Y]}],"bg-color":[{bg:eu()}],"gradient-from-pos":[{from:ep()}],"gradient-via-pos":[{via:ep()}],"gradient-to-pos":[{to:ep()}],"gradient-from":[{from:eu()}],"gradient-via":[{via:eu()}],"gradient-to":[{to:eu()}],rounded:[{rounded:em()}],"rounded-s":[{"rounded-s":em()}],"rounded-e":[{"rounded-e":em()}],"rounded-t":[{"rounded-t":em()}],"rounded-r":[{"rounded-r":em()}],"rounded-b":[{"rounded-b":em()}],"rounded-l":[{"rounded-l":em()}],"rounded-ss":[{"rounded-ss":em()}],"rounded-se":[{"rounded-se":em()}],"rounded-ee":[{"rounded-ee":em()}],"rounded-es":[{"rounded-es":em()}],"rounded-tl":[{"rounded-tl":em()}],"rounded-tr":[{"rounded-tr":em()}],"rounded-br":[{"rounded-br":em()}],"rounded-bl":[{"rounded-bl":em()}],"border-w":[{border:eh()}],"border-w-x":[{"border-x":eh()}],"border-w-y":[{"border-y":eh()}],"border-w-s":[{"border-s":eh()}],"border-w-e":[{"border-e":eh()}],"border-w-bs":[{"border-bs":eh()}],"border-w-be":[{"border-be":eh()}],"border-w-t":[{"border-t":eh()}],"border-w-r":[{"border-r":eh()}],"border-w-b":[{"border-b":eh()}],"border-w-l":[{"border-l":eh()}],"divide-x":[{"divide-x":eh()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":eh()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ey(),"hidden","none"]}],"divide-style":[{divide:[...ey(),"hidden","none"]}],"border-color":[{border:eu()}],"border-color-x":[{"border-x":eu()}],"border-color-y":[{"border-y":eu()}],"border-color-s":[{"border-s":eu()}],"border-color-e":[{"border-e":eu()}],"border-color-bs":[{"border-bs":eu()}],"border-color-be":[{"border-be":eu()}],"border-color-t":[{"border-t":eu()}],"border-color-r":[{"border-r":eu()}],"border-color-b":[{"border-b":eu()}],"border-color-l":[{"border-l":eu()}],"divide-color":[{divide:eu()}],"outline-style":[{outline:[...ey(),"none","hidden"]}],"outline-offset":[{"outline-offset":[C,Z,U]}],"outline-w":[{outline:["",C,Q,$]}],"outline-color":[{outline:eu()}],shadow:[{shadow:["","inner","none",c,en,X]}],"shadow-color":[{shadow:eu()}],"inset-shadow":[{"inset-shadow":["none",d,en,X]}],"inset-shadow-color":[{"inset-shadow":eu()}],"ring-w":[{ring:eh()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:eu()}],"ring-offset-w":[{"ring-offset":[C,$]}],"ring-offset-color":[{"ring-offset":eu()}],"inset-ring-w":[{"inset-ring":eh()}],"inset-ring-color":[{"inset-ring":eu()}],"text-shadow":[{"text-shadow":["none",f,en,X]}],"text-shadow-color":[{"text-shadow":eu()}],opacity:[{opacity:[C,Z,U]}],"mix-blend":[{"mix-blend":[...ev(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ev()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[C]}],"mask-image-linear-from-pos":[{"mask-linear-from":eg()}],"mask-image-linear-to-pos":[{"mask-linear-to":eg()}],"mask-image-linear-from-color":[{"mask-linear-from":eu()}],"mask-image-linear-to-color":[{"mask-linear-to":eu()}],"mask-image-t-from-pos":[{"mask-t-from":eg()}],"mask-image-t-to-pos":[{"mask-t-to":eg()}],"mask-image-t-from-color":[{"mask-t-from":eu()}],"mask-image-t-to-color":[{"mask-t-to":eu()}],"mask-image-r-from-pos":[{"mask-r-from":eg()}],"mask-image-r-to-pos":[{"mask-r-to":eg()}],"mask-image-r-from-color":[{"mask-r-from":eu()}],"mask-image-r-to-color":[{"mask-r-to":eu()}],"mask-image-b-from-pos":[{"mask-b-from":eg()}],"mask-image-b-to-pos":[{"mask-b-to":eg()}],"mask-image-b-from-color":[{"mask-b-from":eu()}],"mask-image-b-to-color":[{"mask-b-to":eu()}],"mask-image-l-from-pos":[{"mask-l-from":eg()}],"mask-image-l-to-pos":[{"mask-l-to":eg()}],"mask-image-l-from-color":[{"mask-l-from":eu()}],"mask-image-l-to-color":[{"mask-l-to":eu()}],"mask-image-x-from-pos":[{"mask-x-from":eg()}],"mask-image-x-to-pos":[{"mask-x-to":eg()}],"mask-image-x-from-color":[{"mask-x-from":eu()}],"mask-image-x-to-color":[{"mask-x-to":eu()}],"mask-image-y-from-pos":[{"mask-y-from":eg()}],"mask-image-y-to-pos":[{"mask-y-to":eg()}],"mask-image-y-from-color":[{"mask-y-from":eu()}],"mask-image-y-to-color":[{"mask-y-to":eu()}],"mask-image-radial":[{"mask-radial":[Z,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":eg()}],"mask-image-radial-to-pos":[{"mask-radial-to":eg()}],"mask-image-radial-from-color":[{"mask-radial-from":eu()}],"mask-image-radial-to-color":[{"mask-radial-to":eu()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[C]}],"mask-image-conic-from-pos":[{"mask-conic-from":eg()}],"mask-image-conic-to-pos":[{"mask-conic-to":eg()}],"mask-image-conic-from-color":[{"mask-conic-from":eu()}],"mask-image-conic-to-color":[{"mask-conic-to":eu()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ec()}],"mask-repeat":[{mask:ed()}],"mask-size":[{mask:ef()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,U]}],filter:[{filter:["","none",Z,U]}],blur:[{blur:eb()}],brightness:[{brightness:[C,Z,U]}],contrast:[{contrast:[C,Z,U]}],"drop-shadow":[{"drop-shadow":["","none",p,en,X]}],"drop-shadow-color":[{"drop-shadow":eu()}],grayscale:[{grayscale:["",C,Z,U]}],"hue-rotate":[{"hue-rotate":[C,Z,U]}],invert:[{invert:["",C,Z,U]}],saturate:[{saturate:[C,Z,U]}],sepia:[{sepia:["",C,Z,U]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,U]}],"backdrop-blur":[{"backdrop-blur":eb()}],"backdrop-brightness":[{"backdrop-brightness":[C,Z,U]}],"backdrop-contrast":[{"backdrop-contrast":[C,Z,U]}],"backdrop-grayscale":[{"backdrop-grayscale":["",C,Z,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C,Z,U]}],"backdrop-invert":[{"backdrop-invert":["",C,Z,U]}],"backdrop-opacity":[{"backdrop-opacity":[C,Z,U]}],"backdrop-saturate":[{"backdrop-saturate":[C,Z,U]}],"backdrop-sepia":[{"backdrop-sepia":["",C,Z,U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,U]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[C,"initial",Z,U]}],ease:[{ease:["linear","initial",v,Z,U]}],delay:[{delay:[C,Z,U]}],animate:[{animate:["none",g,Z,U]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,Z,U]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:ex()}],"rotate-x":[{"rotate-x":ex()}],"rotate-y":[{"rotate-y":ex()}],"rotate-z":[{"rotate-z":ex()}],scale:[{scale:ew()}],"scale-x":[{"scale-x":ew()}],"scale-y":[{"scale-y":ew()}],"scale-z":[{"scale-z":ew()}],"scale-3d":["scale-3d"],skew:[{skew:ej()}],"skew-x":[{"skew-x":ej()}],"skew-y":[{"skew-y":ej()}],transform:[{transform:[Z,U,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eO()}],"translate-x":[{"translate-x":eO()}],"translate-y":[{"translate-y":eO()}],"translate-z":[{"translate-z":eO()}],"translate-none":["translate-none"],zoom:[{zoom:[T,Z,U]}],accent:[{accent:eu()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:eu()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Z,U]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":eu()}],"scrollbar-track-color":[{"scrollbar-track":eu()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",Z,U]}],fill:[{fill:["none",...eu()]}],"stroke-w":[{stroke:[C,Q,$,H]}],stroke:[{stroke:["none",...eu()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function ey(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return eh((0,n.$)(t))}},4625(e,t,r){"use strict";let n;r.d(t,{A0:()=>lH,ub:()=>cu,lG:()=>oH,jl:()=>l2,LC:()=>oY,ty:()=>ll,dc:()=>ls,M5:()=>lx,g:()=>cj,AV:()=>cO,mB:()=>ly,dO:()=>at,Cv:()=>ck,p7:()=>ah,As:()=>cs,m_:()=>nd,lv:()=>lg,zM:()=>oK,K0:()=>ng,$m:()=>cl,GR:()=>cS,Nj:()=>cb,tD:()=>un,BF:()=>lK,j7:()=>lB,FA:()=>ad,ik:()=>af,ZI:()=>np,HM:()=>oq,rr:()=>o0,CU:()=>c3,r6:()=>lZ,Bc:()=>nc,Hj:()=>lq,nD:()=>ci,pd:()=>nH,hO:()=>lf,Wd:()=>al,Ad:()=>l8,Es:()=>oQ,nV:()=>lb,y$:()=>aa,rQ:()=>l0,ci:()=>ur,_2:()=>ld,lp:()=>lh,yA:()=>cp,Ou:()=>as,ks:()=>nX,x:()=>am,JU:()=>nV,I:()=>lc,Fc:()=>aw,TN:()=>aO,ul:()=>ut,SQ:()=>lu,XI:()=>l$,ru:()=>G,Dr:()=>cg,Gg:()=>lG,Ex:()=>nD,$n:()=>q,Sc:()=>ub,ZJ:()=>oG,wv:()=>nL,av:()=>lz,V0:()=>lv,nd:()=>lY,e5:()=>nA,jJ:()=>ue,cw:()=>l1,cO:()=>cy,Um:()=>cE,Ht:()=>lm,zr:()=>ap,rI:()=>li,z6:()=>c2,L3:()=>oJ,tU:()=>lL,Yq:()=>nO,DO:()=>c6,Hr:()=>lp,XL:()=>aj,Cf:()=>oX,EA:()=>ux,_P:()=>ay,uP:()=>av,Xi:()=>lV,nA:()=>lX,c7:()=>oZ,k$:()=>nf});var a,o,i,s,l,u,c,d,f=r(2883),p=r(8783),m=r(7064);let h=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,y=m.$,v=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return y(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:o}=t,i=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==o?void 0:o[e];if(null===t)return null;let i=h(t)||h(n);return a[e][i]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return y(e,i,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...s}[t]):({...o,...s})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)};var g=r(8969),b=Object.defineProperty,x=(e,t)=>b(e,"name",{value:t,configurable:!0});function w(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function j(...e){return t=>{let r=!1,n=e.map(e=>{let n=w(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():w(e[t],null)}}}}function O(...e){return p.useCallback(j(...e),e)}x(w,"setRef"),x(j,"composeRefs"),x(O,"useComposedRefs");var S=Object.defineProperty,k=(e,t)=>S(e,"name",{value:t,configurable:!0});function E(e){let t=p.forwardRef((t,r)=>{let{children:n,...a}=t,o=null,i=!1,s=[];n=F(n),p.Children.forEach(n,e=>{if(R(e)){i=!0;let t="child"in e.props?e.props.child:e.props.children;for(;I(t)&&"function"==typeof W;)t=W(t._payload);o=C(e,t),s.push(o?.props?.children)}else s.push(e)}),o?o=p.cloneElement(o,void 0,s):!i&&1===p.Children.count(n)&&p.isValidElement(n)&&(o=n);let l=o?N(o):void 0,u=O(r,l);if(!o){if(n||0===n)throw Error(i?z(e):V(e));return n}let c=T(a,o.props??{});return o.type!==p.Fragment&&(c.ref=r?u:l),p.cloneElement(o,c)});return t.displayName=`${e}.Slot`,t}k(E,"createSlot");var P=E("Slot"),A=Symbol.for("radix.slottable");function D(e){let t=k(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=A,t}k(D,"createSlottable");var C=k((e,t)=>"child"in e.props?p.isValidElement(t)?p.cloneElement(t,void 0,e.props.children(t.props.children)):null:p.isValidElement(t)?t:null,"getSlottableElementFromSlottable");function T(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n?r[n]=[a,o].filter(Boolean).join(" "):"aria-describedby"===n&&(r[n]=B(o,a))}return{...e,...r}}function N(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function R(e){return p.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===A}k(T,"mergeProps"),k(N,"getElementRef"),k(R,"isSlottable");var M=Symbol.for("react.lazy");function I(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===M&&"_payload"in e&&L(e._payload)}function L(e){return"object"==typeof e&&null!==e&&"then"in e}function F(e){let t=e;for(;I(t)&&"function"==typeof W;)t=W(t._payload);return t}function B(...e){let t=new Set;for(let r of e)if("string"==typeof r)for(let e of String(r).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}k(I,"isLazyComponent"),k(L,"isPromiseLike"),k(F,"useUnwrappedLazy"),k(B,"concatAriaDescribedby");var V=k(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),z=k(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),W=p[" use ".trim().toString()];function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function $(e){if(Array.isArray(e))return e}function H(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function K(e,t){if(e){if("string"==typeof e)return U(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return U(e,t)}}var G=v("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),q=p.forwardRef(function(e,t){var r,n=$(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||K(r)||H(),a=n[0],o=n.slice(1),i=a.className,s=a.variant,l=void 0===s?"default":s,u=a.size,c=void 0===u?"default":u,d=a.asChild,p=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(a,["className","variant","size","asChild"]),m=($(o)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(o)||K(o,1)||H())[0];return(0,f.jsx)(void 0!==d&&d?P:"button",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({ref:m,"data-slot":"button","data-variant":l,"data-size":c,className:(0,g.cn)(G({variant:l,size:c,className:i}))},p))}),Y=Object.defineProperty,X=(e,t)=>Y(e,"name",{value:t,configurable:!0}),Z=!!("u">typeof window&&window.document&&window.document.createElement);function Q(e,t,{checkForDefaultPrevented:r=!0}={}){return X(function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function J(e){if(!Z)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function ee(e){return"IFRAME"===e.tagName}X(Q,"composeEventHandlers"),X(function(e){if(!Z)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),X(J,"getOwnerDocument"),X(function e(t,r=!1){let{activeElement:n}=J(t);if(!n?.nodeName)return null;if(ee(n)&&n.contentDocument)return e(n.contentDocument.body,r);if(r){let e=n.getAttribute("aria-activedescendant");if(e){let t=J(n).getElementById(e);if(t)return t}}return n},"getActiveElement"),X(ee,"isFrame");var et=Object.defineProperty,er=(e,t)=>et(e,"name",{value:t,configurable:!0});function en(e,t=[]){let r=[];function n(t,n){let a=p.createContext(n);a.displayName=t+"Context";let o=r.length;r=[...r,n];let i=er(t=>{let{scope:r,children:n,...i}=t,s=r?.[e]?.[o]||a,l=p.useMemo(()=>i,Object.values(i));return(0,f.jsx)(s.Provider,{value:l,children:n})},"Provider");function s(r,i,l={}){let{optional:u=!1}=l,c=i?.[e]?.[o]||a,d=p.useContext(c);if(d)return d;if(void 0!==n)return n;if(!u)throw Error(`\`${r}\` must be used within \`${t}\``)}return i.displayName=t+"Provider",er(s,"useContext"),[i,s]}er(n,"createContext");let a=er(()=>{let t=r.map(e=>p.createContext(e));return er(function(r){let n=r?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])},"useScope")},"createScope");return a.scopeName=e,[n,ea(a,...t)]}function ea(...e){let t=e[0];if(1===e.length)return t;let r=er(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return er(function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let a=r(e)[`__scope${n}`];return{...t,...a}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}er(function(e,t){let r=p.createContext(t);r.displayName=e+"Context";let n=er(e=>{let{children:t,...n}=e,a=p.useMemo(()=>n,Object.values(n));return(0,f.jsx)(r.Provider,{value:a,children:t})},"Provider");function a(n,o={}){let{optional:i=!1}=o,s=p.useContext(r);if(s)return s;if(void 0!==t)return t;if(!i)throw Error(`\`${n}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",er(a,"useContext"),[n,a]},"createContext"),er(en,"createContextScope"),er(ea,"composeContextScopes");var eo=r(803),ei=Object.defineProperty,es=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=E(`Primitive.${t}`),n=p.forwardRef((e,n)=>{let{asChild:a,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(a?r:t,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function el(e,t){e&&eo.flushSync(()=>e.dispatchEvent(t))}ei(el,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var eu=globalThis?.document?p.useLayoutEffect:()=>{},ec=Object.defineProperty,ed=p[" useInsertionEffect ".trim().toString()];function ef(e){let t=p.useRef(e);return"function"==typeof ed?ed(()=>{t.current=e}):eu(()=>{t.current=e}),p.useMemo(()=>(...e)=>t.current?.(...e),[])}ec(ef,"name",{value:"useCallbackRef",configurable:!0});var ep=Object.defineProperty,em=(e,t)=>ep(e,"name",{value:t,configurable:!0}),eh="dismissableLayer.update",ey=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ev=p.forwardRef(em(function(e,t){let{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...u}=e,d=p.useContext(ey),[m,h]=p.useState(null),y=m?.ownerDocument??globalThis?.document,[,v]=p.useState({}),g=O(t,h),b=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=x?b.indexOf(x):-1,j=m?b.indexOf(m):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,k=j>=w,E=p.useRef(!1),P=ex(e=>{o?.(e),s?.(e),e.defaultPrevented||l?.()},{ownerDocument:y,deferPointerDownOutside:n,isDeferredPointerDownOutsideRef:E,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:p.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...d.branches].some(t=>t.contains(e));return k&&!t},[d.branches,k])}),A=ew(e=>{if(n&&E.current)return;let t=e.target;![...d.branches].some(e=>e.contains(t))&&(i?.(e),s?.(e),e.defaultPrevented||l?.())},y),D=!!m&&j===b.length-1,C=ef(e=>{"Escape"===e.key&&(a?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return p.useEffect(()=>{if(D)return y.addEventListener("keydown",C,{capture:!0}),()=>y.removeEventListener("keydown",C,{capture:!0})},[y,D,C]),p.useEffect(()=>{if(m)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(c=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),ej(),()=>{r&&(d.layersWithOutsidePointerEventsDisabled.delete(m),0===d.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=c))}},[m,y,r,d]),p.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),ej())},[m,d]),p.useEffect(()=>{let e=em(()=>v({}),"handleUpdate");return document.addEventListener(eh,e),()=>document.removeEventListener(eh,e)},[]),(0,f.jsx)(es.div,{...u,ref:g,style:{pointerEvents:S?k?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,P.onPointerDownCapture)})},"DismissableLayer"));function eg(){let e=p.useContext(ey),[t,r]=p.useState(null);return p.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r}em(eg,"useDismissableLayerSurface");var eb=em(()=>!0,"IS_TRUE");function ex(e,t){let{ownerDocument:r=globalThis?.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:o,shouldHandlePointerDownOutside:i=eb}=t,s=ef(e),l=p.useRef(!1),u=p.useRef(!1),c=p.useRef(new Map),d=p.useRef(()=>{});return p.useEffect(()=>{function e(){u.current=!1,a.current=!1,c.current.clear()}function t(){return Array.from(c.current.values()).some(Boolean)}function f(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...o].some(e=>e.contains(t))||c.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{u.current&&d.current()},0)}function p(e){u.current&&c.current.set(e.type,!1)}em(e,"resetOutsideInteraction"),em(t,"isOutsideInteractionIntercepted"),em(f,"handleInteractionCapture"),em(p,"handleInteractionBubble");let m=em(o=>{if(o.target&&!l.current){let f=function(){r.removeEventListener("click",d.current);let n=t();e(),n||eO("dismissableLayer.pointerDownOutside",s,p,{discrete:!0})};if(em(f,"handleAndDispatchPointerDownOutsideEvent"),!i(o.target)){r.removeEventListener("click",d.current),e(),l.current=!1;return}let p={originalEvent:o};u.current=!0,a.current=n&&0===o.button,c.current.clear(),n&&0===o.button?(r.removeEventListener("click",d.current),d.current=f,r.addEventListener("click",d.current,{once:!0})):f()}else r.removeEventListener("click",d.current),e();l.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of h)r.addEventListener(e,f,!0),r.addEventListener(e,p);let y=window.setTimeout(()=>{r.addEventListener("pointerdown",m)},0);return()=>{for(let e of(window.clearTimeout(y),r.removeEventListener("pointerdown",m),r.removeEventListener("click",d.current),h))r.removeEventListener(e,f,!0),r.removeEventListener(e,p)}},[r,s,n,a,o,i]),{onPointerDownCapture:em(()=>l.current=!0,"onPointerDownCapture")}}function ew(e,t=globalThis?.document){let r=ef(e),n=p.useRef(!1);return p.useEffect(()=>{let e=em(e=>{e.target&&!n.current&&eO("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:em(()=>n.current=!0,"onFocusCapture"),onBlurCapture:em(()=>n.current=!1,"onBlurCapture")}}function ej(){let e=new CustomEvent(eh);document.dispatchEvent(e)}function eO(e,t,r,{discrete:n}){let a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?el(a,o):a.dispatchEvent(o)}em(ex,"usePointerDownOutside"),em(ew,"useFocusOutside"),em(ej,"dispatchUpdate"),em(eO,"handleAndDispatchCustomEvent");var eS=Object.defineProperty,ek=(e,t)=>eS(e,"name",{value:t,configurable:!0}),eE="focusScope.autoFocusOnMount",eP="focusScope.autoFocusOnUnmount",eA={bubbles:!1,cancelable:!0},eD=p.forwardRef(ek(function(e,t){let{loop:r=!1,trapped:n=!1,branches:a,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,u]=p.useState(null),c=ef(o),d=ef(i),m=p.useRef(null),h=O(t,u),y=p.useRef(a);p.useEffect(()=>{y.current=a});let v=p.useCallback(e=>!!e&&(!!l?.contains(e)||!!y.current?.some(t=>t.contains(e))),[l]),g=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let e=function(e){if(g.paused||!l)return;let t=e.target;v(t)?m.current=t:eV(m.current,{select:!0})},t=function(e){if(g.paused||!l)return;let t=e.relatedTarget;null!==t&&(v(t)||eV(m.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&eV(l)};ek(e,"handleFocusIn"),ek(t,"handleFocusOut"),ek(r,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(r);return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[n,l,g.paused,v]),p.useEffect(()=>{if(l){ez.add(g);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(eE,eA);l.addEventListener(eE,c),l.dispatchEvent(t),t.defaultPrevented||(eM(e$(e_(l)),{select:!0}),document.activeElement===e&&eV(l))}return()=>{l.removeEventListener(eE,c);let t=l.ownerDocument,r=CustomEvent;setTimeout(()=>{let n=new r(eP,eA);l.addEventListener(eP,d),l.dispatchEvent(n),n.defaultPrevented||eV(e??t.body,{select:!0}),l.removeEventListener(eP,d),ez.remove(g)},0)}}},[l,c,d,g]);let b=p.useCallback(e=>{if(!r&&!n||g.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){let t=e.currentTarget,[n,o]=eI(t);n&&o?e.shiftKey||a!==o?e.shiftKey&&a===n&&(e.preventDefault(),r&&eV(o,{select:!0})):(e.preventDefault(),r&&eV(n,{select:!0})):a===t&&e.preventDefault()}},[r,n,g.paused]);return(0,f.jsx)(es.div,{tabIndex:-1,...s,ref:h,onKeyDown:b})},"FocusScope")),eC=p.createContext(null);function eT({registry:e,children:t}){return e?(0,f.jsx)(eC.Provider,{value:e,children:t}):t}function eN(){let[e,t]=p.useState([]);return{nodes:e,registry:p.useMemo(()=>({add:ek(e=>t(t=>t.includes(e)?t:[...t,e]),"add"),remove:ek(e=>t(t=>t.filter(t=>t!==e)),"remove")}),[])}}function eR(e){let t=p.useContext(eC);p.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}function eM(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(eV(n,{select:t}),document.activeElement!==r)return}function eI(e){let t=e_(e);return[eL(t,e),eL(t.reverse(),e)]}function e_(e){let t=[],r=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ek(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}function eL(e,t){let r="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let n of e)if(!(r?!n.checkVisibility({checkVisibilityCSS:!0}):eF(n,{upTo:t})))return n}function eF(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function eB(e){return"INPUT"===e.tagName&&"function"==typeof e.select}function eV(e,{select:t=!1}={}){if(e&&e.focus){let r=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==r&&eB(e)&&t&&e.select()}}ek(eT,"FocusScopeBranchProvider"),ek(eN,"useFocusScopeBranchRegistry"),ek(eR,"useFocusScopeBranch"),ek(eM,"focusFirst"),ek(eI,"getTabbableEdges"),ek(e_,"getTabbableCandidates"),ek(eL,"findVisible"),ek(eF,"isHidden"),ek(eB,"isSelectableInput"),ek(eV,"focus");var ez=eW();function eW(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),(e=eU(e,t)).unshift(t)},remove(t){e=eU(e,t),e[0]?.resume()}}}function eU(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}function e$(e){return e.filter(e=>"A"!==e.tagName)}ek(eW,"createFocusScopesStack"),ek(eU,"arrayRemove"),ek(e$,"removeLinks");var eH=Object.defineProperty,eK=p[" useId ".trim().toString()]||(()=>void 0),eG=0;function eq(e){let[t,r]=p.useState(eK());return eu(()=>{e||r(e=>e??String(eG++))},[e]),e||(t?`radix-${t}`:"")}eH(eq,"name",{value:"useId",configurable:!0});let eY=["top","right","bottom","left"],eX=Math.min,eZ=Math.max,eQ=Math.round,eJ=Math.floor,e0=e=>({x:e,y:e}),e1={left:"right",right:"left",bottom:"top",top:"bottom"};function e2(e,t){return"function"==typeof e?e(t):e}function e3(e){return e.split("-")[0]}function e4(e){return e.split("-")[1]}function e5(e){return"x"===e?"y":"x"}function e6(e){return"y"===e?"height":"width"}function e8(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function e9(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let e7=["left","right"],te=["right","left"],tt=["top","bottom"],tr=["bottom","top"];function tn(e){let t=e3(e);return e1[t]+e.slice(t.length)}function ta(e){var t,r,n,a;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(r=e.right)?r:0,bottom:null!=(n=e.bottom)?n:0,left:null!=(a=e.left)?a:0}:{top:e,right:e,bottom:e,left:e}}function to(e){let{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function ti(e,t,r){let n,{reference:a,floating:o}=e,i=e8(t),s=e5(e8(t)),l=e6(s),u=e3(t),c=a.x+a.width/2-o.width/2,d=a.y+a.height/2-o.height/2,f=a[l]/2-o[l]/2;switch(u){case"top":n={x:c,y:a.y-o.height};break;case"bottom":n={x:c,y:a.y+a.height};break;case"right":n={x:a.x+a.width,y:d};break;case"left":n={x:a.x-o.width,y:d};break;default:n={x:a.x,y:a.y}}let p=e4(t);return p&&(n[s]+=f*("end"===p?1:-1)*(r&&"y"===i?-1:1)),n}async function ts(e,t){var r;void 0===t&&(t={});let{x:n,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=e2(t,e),m=ta(p),h=s[f?"floating"===d?"reference":"floating":d],y=to(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(h)))||r?h:h.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:n,y:a,width:i.floating.width,height:i.floating.height}:i.reference,g=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await (null==o.isElement?void 0:o.isElement(g))&&await (null==o.getScale?void 0:o.getScale(g))||{x:1,y:1},x=to(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:g,strategy:l}):v);return{top:(y.top-x.top+m.top)/b.y,bottom:(x.bottom-y.bottom+m.bottom)/b.y,left:(y.left-x.left+m.left)/b.x,right:(x.right-y.right+m.right)/b.x}}let tl=async(e,t,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:i}=r,s=i.detectOverflow?i:{...i,detectOverflow:ts},l=await (null==i.isRTL?void 0:i.isRTL(t)),u=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:d}=ti(u,n,l),f=n,p=0,m={};for(let r=0;r<o.length;r++){let h=o[r];if(!h)continue;let{name:y,fn:v}=h,{x:g,y:b,data:x,reset:w}=await v({x:c,y:d,initialPlacement:n,placement:f,strategy:a,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=b?b:d,m[y]={...m[y],...x},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):w.rects),{x:c,y:d}=ti(u,f,l)),r=-1)}return{x:c,y:d,placement:f,strategy:a,middlewareData:m}};function tu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tc(e){return eY.some(t=>e[t]>=0)}let td=new Set(["left","top"]);async function tf(e,t){let{placement:r,platform:n,elements:a}=e,o=await (null==n.isRTL?void 0:n.isRTL(a.floating)),i=e3(r),s=e4(r),l="y"===e8(r),u=td.has(i)?-1:1,c=o&&l?-1:1,d=e2(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function tp(){return"u">typeof window}function tm(e){return tv(e)?(e.nodeName||"").toLowerCase():"#document"}function th(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ty(e){var t;return null==(t=(tv(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function tv(e){return!!tp()&&(e instanceof Node||e instanceof th(e).Node)}function tg(e){return!!tp()&&(e instanceof Element||e instanceof th(e).Element)}function tb(e){return!!tp()&&(e instanceof HTMLElement||e instanceof th(e).HTMLElement)}function tx(e){return!(!tp()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof th(e).ShadowRoot)}function tw(e){let{overflow:t,overflowX:r,overflowY:n,display:a}=tD(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==a&&"contents"!==a}function tj(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let tO=/transform|translate|scale|rotate|perspective|filter/,tS=/paint|layout|strict|content/,tk=e=>!!e&&"none"!==e;function tE(e){let t=tg(e)?tD(e):e;return tk(t.transform)||tk(t.translate)||tk(t.scale)||tk(t.rotate)||tk(t.perspective)||!tP()&&(tk(t.backdropFilter)||tk(t.filter))||tO.test(t.willChange||"")||tS.test(t.contain||"")}function tP(){return null==n&&(n="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),n}function tA(e){return/^(html|body|#document)$/.test(tm(e))}function tD(e){return th(e).getComputedStyle(e)}function tC(e){return tg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tT(e){if("html"===tm(e))return e;let t=e.assignedSlot||e.parentNode||tx(e)&&e.host||ty(e);return tx(t)?t.host:t}function tN(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let a=function e(t){let r=tT(t);return tA(r)?(t.ownerDocument||t).body:tb(r)&&tw(r)?r:e(r)}(e),o=a===(null==(n=e.ownerDocument)?void 0:n.body),i=th(a);if(!o)return t.concat(a,tN(a,[],r));{let e=tR(i);return t.concat(i,i.visualViewport||[],tw(a)?a:[],e&&r?tN(e):[])}}function tR(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tM(e){let t=tD(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=tb(e),o=a?e.offsetWidth:r,i=a?e.offsetHeight:n,s=eQ(r)!==o||eQ(n)!==i;return s&&(r=o,n=i),{width:r,height:n,$:s}}function tI(e){return tg(e)?e:e.contextElement}function t_(e){let t=tI(e);if(!tb(t))return e0(1);let r=t.getBoundingClientRect(),{width:n,height:a,$:o}=tM(t),i=(o?eQ(r.width):r.width)/n,s=(o?eQ(r.height):r.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}let tL=e0(0);function tF(e){let t=th(e);return tP()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:tL}function tB(e,t,r,n){var a;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),i=tI(e),s=e0(1);t&&(n?tg(n)&&(s=t_(n)):s=t_(e));let l=(void 0===(a=r)&&(a=!1),n&&a&&n===th(i))?tF(i):e0(0),u=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i&&n){let e=th(i),t=tg(n)?th(n):n,r=e,a=tR(r);for(;a&&t!==r;){let e=t_(a),t=a.getBoundingClientRect(),n=tD(a),o=t.left+(a.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=o,c+=i,a=tR(r=th(a))}}return to({width:d,height:f,x:u,y:c})}function tV(e,t){let r=tC(e).scrollLeft;return t?t.left+r:tB(ty(e)).left+r}function tz(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-tV(e,r),y:r.top+t.scrollTop}}function tW(e,t,r){var n;let a;if("viewport"===t||"layoutViewport"===t)a=function(e,t,r){void 0===r&&(r="viewport");let n="layoutViewport"===r,a=th(e),o=ty(e),i=a.visualViewport,s=o.clientWidth,l=o.clientHeight,u=0,c=0;if(i){let e=!tP()||"fixed"===t;n?e||(u=-i.offsetLeft,c=-i.offsetTop):(s=i.width,l=i.height,e&&(u=i.offsetLeft,c=i.offsetTop))}if(0>=tV(o)){let e=o.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(o.clientWidth-t.clientWidth-n),i="stable both-edges"===getComputedStyle(o).scrollbarGutter?a/2:a;i<=25&&(s-=i)}return{width:s,height:l,x:u,y:c}}(e,r,t);else if("document"===t){let t,r,o,i,s,l;t=tC(n=ty(e)),r=n.ownerDocument.body,o=eZ(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),i=eZ(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+tV(n),l=-t.scrollTop,"rtl"===tD(r).direction&&(s+=eZ(n.clientWidth,r.clientWidth)-o),a={width:o,height:i,x:s,y:l}}else if(tg(t)){let e,n,o,i,s,l;n=(e=tB(t,!0,"fixed"===r)).top+t.clientTop,o=e.left+t.clientLeft,i=t_(t),s=t.clientWidth*i.x,l=t.clientHeight*i.y,a={width:s,height:l,x:o*i.x,y:n*i.y}}else{let r=tF(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return to(a)}function tU(e){return"static"===tD(e).position}function t$(e,t){if(!tb(e)||"fixed"===tD(e).position)return null;if(t)return t(e);let r=e.offsetParent;return ty(e)===r&&(r=r.ownerDocument.body),r}function tH(e,t){var r;let n=th(e);if(tj(e))return n;if(!tb(e)){let t=tT(e);for(;t&&!tA(t);){if(tg(t)&&!tU(t))return t;t=tT(t)}return n}let a=t$(e,t);for(;a&&(r=a,/^(table|td|th)$/.test(tm(r)))&&tU(a);)a=t$(a,t);return a&&tA(a)&&tU(a)&&!tE(a)?n:a||function(e){let t=tT(e);for(;tb(t)&&!tA(t);){if(tE(t))return t;if(tj(t))break;t=tT(t)}return null}(e)||n}let tK=async function(e){let t=this.getOffsetParent||tH,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=tb(t),a=ty(t),o="fixed"===r,i=tB(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=e0(0);if((n||!o)&&(("body"!==tm(t)||tw(a))&&(s=tC(t)),n)){let e=tB(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!n&&a&&(l.x=tV(a));let u=!a||n||o?e0(0):tz(a,s);return{x:i.left+s.scrollLeft-l.x-u.x,y:i.top+s.scrollTop-l.y-u.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},tG={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e,o="fixed"===a,i=ty(n),s=!!t&&tj(t.floating);if(n===i||s&&o)return r;let l={scrollLeft:0,scrollTop:0},u=e0(1),c=e0(0),d=tb(n);if((d||!o)&&(("body"!==tm(n)||tw(i))&&(l=tC(n)),d)){let e=tB(n);u=t_(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let f=!i||d||o?e0(0):tz(i,l);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:r.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:ty,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,o=[..."clippingAncestors"===r?tj(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=tN(e,[],!1).filter(e=>tg(e)&&"body"!==tm(e)),a=null,o="fixed"===tD(e).position,i=o?tT(e):e;for(;tg(i)&&!tA(i);){let e=tD(i),t=tE(i),r=a?a.position:o?"fixed":"";t||"fixed"!==r&&("absolute"!==r||"static"!==e.position)?a=e:n=n.filter(e=>e!==i),i=tT(i)}return t.set(e,n),n}(t,this._c):[].concat(r),n],i=tW(t,o[0],a),s=i.top,l=i.right,u=i.bottom,c=i.left;for(let e=1;e<o.length;e++){let r=tW(t,o[e],a);s=eZ(r.top,s),l=eX(r.right,l),u=eX(r.bottom,u),c=eZ(r.left,c)}return{width:l-c,height:u-s,x:c,y:s}},getOffsetParent:tH,getElementRects:tK,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:r}=tM(e);return{width:t,height:r}},getScale:t_,isElement:tg,isRTL:function(e){return"rtl"===tD(e).direction}};function tq(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let tY=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=e2(e,t)||{};if(null==u)return{};let d=ta(c),f={x:r,y:n},p=e5(e8(a)),m=e6(p),h=await i.getDimensions(u),y="y"===p,v=y?"clientHeight":"clientWidth",g=o.reference[m]+o.reference[p]-f[p]-o.floating[m],b=f[p]-o.reference[p],x=await (null==i.getOffsetParent?void 0:i.getOffsetParent(u)),w=x?x[v]:0;w&&await (null==i.isElement?void 0:i.isElement(x))||(w=s.floating[v]||o.floating[m]);let j=w/2-h[m]/2-1,O=eX(d[y?"top":"left"],j),S=eX(d[y?"bottom":"right"],j),k=w-h[m]-S,E=w/2-h[m]/2+(g/2-b/2),P=eZ(O,eX(E,k)),A=!l.arrow&&null!=e4(a)&&E!==P&&o.reference[m]/2-(E<O?O:S)-h[m]/2<0,D=A?E<O?E-O:E-k:0;return{[p]:f[p]+D,data:{[p]:P,centerOffset:E-P-D,...A&&{alignmentOffset:D}},reset:A}}});var tX="u">typeof document?p.useLayoutEffect:function(){};function tZ(e,t){let r,n,a;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!tZ(e[n],t[n]))return!1;return!0}if((r=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,a[n]))return!1;for(n=r;0!=n--;){let r=a[n];if(("_owner"!==r||!e.$$typeof)&&!tZ(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function tQ(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tJ(e,t){let r=tQ(e);return Math.round(t*r)/r}function t0(e){let t=p.useRef(e);return tX(()=>{t.current=e}),t}var t1=Object.defineProperty,t2=p.forwardRef(t1(function(e,t){let{children:r,width:n=10,height:a=5,...o}=e;return(0,f.jsx)(es.svg,{...o,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0}));function t3(e){let[t,r]=p.useState(void 0);return eu(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=0,n=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;let a=n[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,n;if("borderBoxSize"in a){let e=a.borderBoxSize,r=Array.isArray(e)?e[0]:e;t=r.inlineSize,n=r.blockSize}else t=e.offsetWidth,n=e.offsetHeight;r({width:t,height:n})})});return n.observe(e,{box:"border-box"}),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}r(void 0)},[e]),t}(0,Object.defineProperty)(t3,"name",{value:"useSize",configurable:!0});var t4=Object.defineProperty,t5=(e,t)=>t4(e,"name",{value:t,configurable:!0}),t6="partial",t8="Popper",[t9,t7]=en(t8),[re,rt]=t9(t8),rr=t5(e=>{let{__scopePopper:t,children:r}=e,[n,a]=p.useState(null),[o,i]=p.useState(void 0);return(0,f.jsx)(re,{scope:t,anchor:n,onAnchorChange:a,placementState:o,setPlacementState:i,children:r})},"Popper"),rn=p.forwardRef(t5(function(e,t){let{__scopePopper:r,virtualRef:n,...a}=e,o=rt("PopperAnchor",r),i=p.useRef(null),s=o.onAnchorChange,l=O(t,p.useCallback(e=>{i.current=e,e&&s(e)},[s])),u=p.useRef(null);p.useEffect(()=>{if(!n)return;let e=u.current;u.current=n.current,e!==u.current&&s(u.current)});let c=o.placementState&&rf(o.placementState),d=c?.[0],m=c?.[1];return n?null:(0,f.jsx)(es.div,{"data-radix-popper-side":d,"data-radix-popper-align":m,...a,ref:l})},"PopperAnchor")),ra="PopperContent",[ro,ri]=t9(ra),rs=p.forwardRef(t5(function(e,t){var r,n,a,o,i,s,l,u,c,d,m,h,y,v,g,b,x,w,j,S,k;let E,P,A,D,C,T,{__scopePopper:N,side:R="bottom",sideOffset:M=0,align:I="center",alignOffset:L=0,arrowPadding:F=0,avoidCollisions:B=!0,collisionBoundary:V=[],collisionPadding:z=0,sticky:W=t6,hideWhenDetached:U=!1,updatePositionStrategy:$="optimized",onPlaced:H,...K}=e,G=rt(ra,N),[q,Y]=p.useState(null),X=O(t,Y),[Z,Q]=p.useState(null),J=t3(Z),ee=J?.width??0,et=J?.height??0,er="number"==typeof z?z:{top:0,right:0,bottom:0,left:0,...z},en=Array.isArray(V)?V:[V],ea=en.length>0,ei={padding:er,boundary:en.filter(rc),altBoundary:ea},{refs:el,floatingStyles:ec,placement:ed,isPositioned:ep,middlewareData:em}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=p.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=p.useState(n);tZ(f,n)||m(n);let[h,y]=p.useState(null),[v,g]=p.useState(null),b=p.useCallback(e=>{e!==O.current&&(O.current=e,y(e))},[]),x=p.useCallback(e=>{e!==S.current&&(S.current=e,g(e))},[]),w=o||h,j=i||v,O=p.useRef(null),S=p.useRef(null),k=p.useRef(c),E=null!=l,P=t0(l),A=t0(a),D=t0(u),C=p.useCallback(()=>{var e,n;let a,o,i;if(!O.current||!S.current)return;let s={placement:t,strategy:r,middleware:f};A.current&&(s.platform=A.current),(e=O.current,n=S.current,a=new Map,o=null!=s?s:{},i={...tG,...o.platform,_c:a},tl(e,n,{...o,platform:i})).then(e=>{let t={...e,isPositioned:!1!==D.current};T.current&&!tZ(k.current,t)&&(k.current=t,eo.flushSync(()=>{d(t)}))})},[f,t,r,A,D]);tX(()=>{!1===u&&k.current.isPositioned&&(k.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let T=p.useRef(!1);tX(()=>(T.current=!0,()=>{T.current=!1}),[]),tX(()=>{if(w&&(O.current=w),j&&(S.current=j),w&&j){if(P.current)return P.current(w,j,C);C()}},[w,j,C,P,E]);let N=p.useMemo(()=>({reference:O,floating:S,setReference:b,setFloating:x}),[b,x]),R=p.useMemo(()=>({reference:w,floating:j}),[w,j]),M=p.useMemo(()=>{let e={position:r,left:0,top:0};if(!R.floating)return e;let t=tJ(R.floating,c.x),n=tJ(R.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...tQ(R.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,R.floating,c.x,c.y]);return p.useMemo(()=>({...c,update:C,refs:N,elements:R,floatingStyles:M}),[c,C,N,R,M])}({strategy:"fixed",placement:R+("center"!==I?"-"+I:""),whileElementsMounted:t5((...e)=>(function(e,t,r,n){let a;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=tI(e),d=o||i?[...c?tN(c):[],...t?tN(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",r),i&&e.addEventListener("resize",r)});let f=c&&l?function(e,t,r){let n,a=null,o=ty(e);function i(){var e;clearTimeout(n),null==(e=a)||e.disconnect(),a=null}function s(r,l){void 0===r&&(r=!1),void 0===l&&(l=1),i();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(r||t(),!f||!p)return;let m={rootMargin:-eJ(d)+"px "+-eJ(o.clientWidth-(c+f))+"px "+-eJ(o.clientHeight-(d+p))+"px "+-eJ(c)+"px",threshold:eZ(0,eX(1,l))||1},h=!0;function y(t){let r=t[0].intersectionRatio;if(!tq(u,e.getBoundingClientRect()))return s();if(r!==l){if(!h)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}h=!1}try{a=new IntersectionObserver(y,{...m,root:o.ownerDocument})}catch(e){a=new IntersectionObserver(y,m)}a.observe(e)}let l=th(e),u=()=>s(r);return l.addEventListener("resize",u),s(!0),()=>{l.removeEventListener("resize",u),i()}}(c,r,i):null,p=-1,m=null;s&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),c&&!u&&m.observe(c),t&&m.observe(t));let h=u?tB(e):null;return u&&function t(){let n=tB(e);h&&!tq(h,n)&&r(),h=n,a=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,u&&cancelAnimationFrame(a)}})(...e,{animationFrame:"always"===$}),"whileElementsMounted"),elements:{reference:G.anchor},middleware:[{name:(E={name:"offset",options:a=r={mainAxis:M+et,alignmentAxis:L},async fn(e){var t,r;let{x:n,y:o,placement:i,middlewareData:s}=e,l=await tf(e,a);return i===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:n+l.x,y:o+l.y,data:{...l,placement:i}}}}).name,fn:E.fn,options:[r,n]},B&&{name:(P={name:"shift",options:c=l={mainAxis:!0,crossAxis:!1,...W===t6?{limiter:{fn:(void 0===(s=o)&&(s={}),{options:s,fn(e){var t,r,n,a;let{x:o,y:i,placement:l,rects:u,middlewareData:c}=e,{offset:d=0,mainAxis:f=!0,crossAxis:p=!0}=e2(s,e),m={x:o,y:i},h=e8(l),y=e5(h),v=m[y],g=m[h],b=e2(d,e),x="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(t=b.mainAxis)?t:0,crossAxis:null!=(r=b.crossAxis)?r:0};if(f){let e="y"===y?"height":"width",t=u.reference[y]-u.floating[e]+x.mainAxis,r=u.reference[y]+u.reference[e]-x.mainAxis;v<t?v=t:v>r&&(v=r)}if(p){let e="y"===y?"width":"height",t=td.has(e3(l)),r=u.reference[h]-u.floating[e]+(t&&(null==(n=c.offset)?void 0:n[h])||0)+(t?0:x.crossAxis),o=u.reference[h]+u.reference[e]+(t?0:(null==(a=c.offset)?void 0:a[h])||0)-(t?x.crossAxis:0);g<r?g=r:g>o&&(g=o)}return{[y]:v,[h]:g}}}).fn,options:[o,i]}}:{},...ei},async fn(e){let{x:t,y:r,placement:n,platform:a}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=e2(c,e),u={x:t,y:r},d=await a.detectOverflow(e,l),f=e8(n),p=e5(f),m=u[p],h=u[f],y=(e,t)=>eZ(t+d["y"===e?"top":"left"],eX(t,t-d["y"===e?"bottom":"right"]));o&&(m=y(p,m)),i&&(h=y(f,h));let v=s.fn({...e,[p]:m,[f]:h});return{...v,data:{x:v.x-t,y:v.y-r,enabled:{[p]:o,[f]:i}}}}}).name,fn:P.fn,options:[l,u]},B&&{name:(A={name:"flip",options:h=d={...ei},async fn(e){var t,r,n,a,o,i,s,l;let u,c,d,{placement:f,middlewareData:p,rects:m,initialPlacement:y,platform:v,elements:g}=e,{mainAxis:b=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:S=!0,...k}=e2(h,e);if(null!=(t=p.arrow)&&t.alignmentOffset)return{};let E=e3(f),P=e8(y),A=e3(y)===y,D=await (null==v.isRTL?void 0:v.isRTL(g.floating)),C=w||(A||!S?[tn(y)]:(u=tn(y),[e9(y),u,e9(u)])),T="none"!==O;!w&&T&&C.push(...(c=e4(y),d=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?te:e7;return t?e7:te;case"left":case"right":return t?tt:tr;default:return[]}}(e3(y),"start"===O,D),c&&(d=d.map(e=>e+"-"+c),S&&(d=d.concat(d.map(e9)))),d));let N=[y,...C],R=await v.detectOverflow(e,k),M=[],I=(null==(r=p.flip)?void 0:r.overflows)||[];if(b&&M.push(R[E]),x){let e,t,r,n,a=(i=f,s=m,void 0===(l=D)&&(l=!1),e=e4(i),r=e6(t=e5(e8(i))),n="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[r]>s.floating[r]&&(n=tn(n)),[n,tn(n)]);M.push(R[a[0]],R[a[1]])}if(I=[...I,{placement:f,overflows:M}],!M.every(e=>e<=0)){let e=((null==(n=p.flip)?void 0:n.index)||0)+1,t=N[e];if(t&&("alignment"!==x||P===e8(t)||I.every(e=>e8(e.placement)!==P||e.overflows[0]>0)))return{data:{index:e,overflows:I},reset:{placement:t}};let r=null==(a=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!r)switch(j){case"bestFit":{let e=null==(o=I.filter(e=>{if(T){let t=e8(e.placement);return t===P||"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:o[0];e&&(r=e);break}case"initialPlacement":r=y}if(f!==r)return{reset:{placement:r}}}return{}}}).name,fn:A.fn,options:[d,m]},{name:(D={name:"size",options:g=y={...ei,apply:t5(({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${r}px`),i.setProperty("--radix-popper-available-height",`${n}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)},"apply")},async fn(e){let t,r,{placement:n,rects:a,platform:o,elements:i}=e,{apply:s=()=>{},...l}=e2(g,e),u=await o.detectOverflow(e,l),c=e3(n),d=e4(n),f="y"===e8(n),{width:p,height:m}=a.floating;"top"===c||"bottom"===c?(t=c,r=d===(await (null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(r=c,t="end"===d?"top":"bottom");let h=m-u.top-u.bottom,y=p-u.left-u.right,v=eX(m-u[t],h),b=eX(p-u[r],y),x=e.middlewareData.shift,w=!x,j=v,O=b;null!=x&&x.enabled.x&&(O=y),null!=x&&x.enabled.y&&(j=h),w&&!d&&(f?O=p-2*eZ(u.left,u.right):j=m-2*eZ(u.top,u.bottom)),await s({...e,availableWidth:O,availableHeight:j});let S=await o.getDimensions(i.floating);return p!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}).name,fn:D.fn,options:[y,v]},Z&&{name:(C={name:"arrow",options:w=b={element:Z,padding:F},fn(e){let{element:t,padding:r}="function"==typeof w?w(e):w;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?tY({element:t.current,padding:r}).fn(e):{}:t?tY({element:t,padding:r}).fn(e):{}}}).name,fn:C.fn,options:[b,x]},rd({arrowWidth:ee,arrowHeight:et}),U&&{name:(T={name:"hide",options:k=j=ea?{strategy:"referenceHidden",...ei}:{strategy:"referenceHidden",padding:ei.padding,altBoundary:ei.altBoundary},async fn(e){let{rects:t,platform:r}=e,{strategy:n="referenceHidden",...a}=e2(k,e);switch(n){case"referenceHidden":{let n=tu(await r.detectOverflow(e,{...a,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:tc(n)}}}case"escaped":{let n=tu(await r.detectOverflow(e,{...a,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:tc(n)}}}default:return{}}}}).name,fn:T.fn,options:[j,S]}]}),eh=G.setPlacementState;eu(()=>(eh(ed),()=>{eh(void 0)}),[ed,eh]);let[ey,ev]=rf(ed),eg=ef(H);eu(()=>{ep&&eg?.()},[ep,eg]);let eb=em.arrow?.x,ex=em.arrow?.y,ew=em.arrow?.centerOffset!==0,[ej,eO]=p.useState();return eu(()=>{q&&eO(window.getComputedStyle(q).zIndex)},[q]),(0,f.jsx)("div",{ref:el.setFloating,"data-radix-popper-content-wrapper":"",style:{...ec,transform:ep?ec.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ej,"--radix-popper-transform-origin":[em.transformOrigin?.x,em.transformOrigin?.y].join(" "),...em.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(ro,{scope:N,placedSide:ey,placedAlign:ev,onArrowChange:Q,arrowX:eb,arrowY:ex,shouldHideArrow:ew,children:(0,f.jsx)(es.div,{"data-side":ey,"data-align":ev,...K,ref:X,style:{...K.style,animation:ep?K.style?.animation:"none"}})})})},"PopperContent")),rl={top:"bottom",right:"left",bottom:"top",left:"right"},ru=p.forwardRef(t5(function(e,t){let{__scopePopper:r,...n}=e,a=ri("PopperArrow",r),o=rl[a.placedSide];return(0,f.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,f.jsx)(t2,{...n,ref:t,style:{...n.style,display:"block"}})})},"PopperArrow"));function rc(e){return null!==e}t5(rc,"isNotNull");var rd=t5(e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:a}=t,o=a.arrow?.centerOffset!==0,i=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[l,u]=rf(r),c={start:"0%",center:"50%",end:"100%"}[u],d=(a.arrow?.x??0)+i/2,f=(a.arrow?.y??0)+s/2,p="",m="";return"bottom"===l?(p=o?c:`${d}px`,m=`${-s}px`):"top"===l?(p=o?c:`${d}px`,m=`${n.floating.height+s}px`):"right"===l?(p=`${-s}px`,m=o?c:`${f}px`):"left"===l&&(p=`${n.floating.width+s}px`,m=o?c:`${f}px`),{data:{x:p,y:m}}}}),"transformOrigin");function rf(e){let[t,r="center"]=e.split("-");return[t,r]}t5(rf,"getSideAndAlignFromPlacement");var rp=Object.defineProperty,rm=p.forwardRef(rp(function(e,t){let{container:r,...n}=e,[a,o]=p.useState(!1);eu(()=>o(!0),[]);let i=r||a&&globalThis?.document?.body;return i?eo.createPortal((0,f.jsx)(es.div,{...n,ref:t}),i):null},"name",{value:"Portal",configurable:!0})),rh=Object.defineProperty,ry=(e,t)=>rh(e,"name",{value:t,configurable:!0});function rv(e,t){return p.useReducer((e,r)=>t[e][r]??e,e)}ry(rv,"useStateMachine");var rg=ry(e=>{let{present:t,children:r}=e,n=rb(t),a="function"==typeof r?r({present:n.isPresent}):p.Children.only(r),o=rw(n.ref,rO(a));return"function"==typeof r||n.isPresent?p.cloneElement(a,{ref:o}):null},"Presence");function rb(e){let[t,r]=p.useState(),n=p.useRef(null),a=p.useRef(e),o=p.useRef("none"),i=p.useRef(void 0),[s,l]=rv(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{"mounted"===s?(o.current=i.current??rj(n.current),i.current=void 0):o.current="none"},[s]),eu(()=>{let t=n.current,r=a.current;if(r!==e){let n=o.current,s=rj(t);e?(i.current=s,l("MOUNT")):"none"===s||t?.display==="none"?l("UNMOUNT"):r&&n!==s?l("ANIMATION_OUT"):l("UNMOUNT"),a.current=e}},[e,l]),eu(()=>{if(t){let e,r=t.ownerDocument.defaultView??window,i=ry(o=>{let i=rj(n.current).includes(CSS.escape(o.animationName));if(o.target===t&&i&&(l("ANIMATION_END"),!a.current)){let n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},"handleAnimationEnd"),s=ry(e=>{e.target===t&&(o.current=rj(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:p.useCallback(e=>{if(e){let t=getComputedStyle(e);n.current=t,i.current=rj(t)}else n.current=null;r(e)},[])}}function rx(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function rw(...e){let t=p.useRef(e);return t.current=e,p.useCallback(e=>{let r=t.current,n=!1,a=r.map(t=>{let r=rx(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<a.length;e++){let t=a[e];"function"==typeof t?t():rx(r[e],null)}}},[])}function rj(e){return e?.animationName||"none"}function rO(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}ry(rb,"usePresence"),ry(rx,"setRef"),ry(rw,"useStableComposedRefs"),ry(rj,"getAnimationName"),ry(rO,"getElementRef");var rS=Object.defineProperty,rk=p[" useEffectEvent ".trim().toString()],rE=p[" useInsertionEffect ".trim().toString()];function rP(e){if("function"==typeof rk)return rk(e);let t=p.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof rE?rE(()=>{t.current=e}):eu(()=>{t.current=e}),p.useMemo(()=>(...e)=>t.current?.(...e),[])}rS(rP,"name",{value:"useEffectEvent",configurable:!0});var rA=Object.defineProperty,rD=(e,t)=>rA(e,"name",{value:t,configurable:!0}),rC=p[" useInsertionEffect ".trim().toString()]||eu;function rT({prop:e,defaultProp:t,onChange:r=rD(()=>{},"onChange"),caller:n}){let[a,o,i]=rN({defaultProp:t,onChange:r}),s=void 0!==e,l=s?e:a;return[l,p.useCallback(t=>{if(s){let r=rR(t)?t(e):t;r!==e&&i.current?.(r)}else o(t)},[s,e,o,i])]}function rN({defaultProp:e,onChange:t}){let[r,n]=p.useState(e),a=p.useRef(r),o=p.useRef(t);return rC(()=>{o.current=t},[t]),p.useEffect(()=>{a.current!==r&&(o.current?.(r),a.current=r)},[r,a]),[r,n,o]}function rR(e){return"function"==typeof e}rD(rT,"useControllableState"),rD(rN,"useUncontrolledState"),rD(rR,"isFunction");var rM=Symbol("RADIX:SYNC_STATE");rD(function(e,t,r,n){let{prop:a,defaultProp:o,onChange:i,caller:s}=t,l=void 0!==a,u=rP(i),c=[{...r,state:o}];n&&c.push(n);let[d,f]=p.useReducer((t,r)=>{if(r.type===rM)return{...t,state:r.state};let n=e(t,r);return l&&!Object.is(n.state,t.state)&&u(n.state),n},...c),m=d.state,h=p.useRef(m);p.useEffect(()=>{h.current!==m&&(h.current=m,l||u(m))},[m,h,l]);let y=p.useMemo(()=>void 0!==a?{...d,state:a}:d,[d,a]);return p.useEffect(()=>{l&&!Object.is(a,d.state)&&f({type:rM,state:a})},[a,d.state,l]),[y,f]},"useControllableStateReducer");var rI=Object.defineProperty,r_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),rL=p.forwardRef(rI(function(e,t){return(0,f.jsx)(es.span,{...e,ref:t,style:{...r_,...e.style}})},"name",{value:"VisuallyHidden",configurable:!0})),rF=Object.defineProperty,rB=(e,t)=>rF(e,"name",{value:t,configurable:!0}),[rV,rz]=en("Tooltip",[t7]),rW=t7(),rU="tooltip.open",[r$,rH]=rV("TooltipProvider"),rK=rB(e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:o}=e,i=p.useRef(!0),s=p.useRef(!1),l=p.useRef(0);return p.useEffect(()=>{let e=l.current;return()=>window.clearTimeout(e)},[]),(0,f.jsx)(r$,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:p.useCallback(()=>{n<=0||(window.clearTimeout(l.current),i.current=!1)},[n]),onClose:p.useCallback(()=>{n<=0||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,n))},[n]),isPointerInTransitRef:s,onPointerInTransitChange:p.useCallback(e=>{s.current=e},[]),disableHoverableContent:a,children:o})},"TooltipProvider"),rG="Tooltip",[rq,rY]=rV(rG),rX=rB(e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:a,onOpenChange:o,disableHoverableContent:i,delayDuration:s}=e,l=rH(rG,e.__scopeTooltip),u=rW(t),[c,d]=p.useState(null),[m,h]=p.useState(void 0),y=eq(),v=p.useRef(0),g=i??l.disableHoverableContent,b=s??l.delayDuration,x=p.useRef(!1),[w,j]=rT({prop:n,defaultProp:a??!1,onChange:rB(e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(rU))):l.onClose(),o?.(e)},"onChange"),caller:rG}),O=p.useMemo(()=>w?x.current?"delayed-open":"instant-open":"closed",[w]),S=p.useCallback(()=>{window.clearTimeout(v.current),v.current=0,x.current=!1,j(!0)},[j]),k=p.useCallback(()=>{window.clearTimeout(v.current),v.current=0,j(!1)},[j]),E=p.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{x.current=!0,j(!0),v.current=0},b)},[b,j]);return p.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),(0,f.jsx)(rr,{...u,children:(0,f.jsx)(rq,{scope:t,contentId:m??y,setContentId:h,open:w,stateAttribute:O,trigger:c,onTriggerChange:d,onTriggerEnter:p.useCallback(()=>{l.isOpenDelayedRef.current?E():S()},[l.isOpenDelayedRef,E,S]),onTriggerLeave:p.useCallback(()=>{g?k():(window.clearTimeout(v.current),v.current=0)},[k,g]),onOpen:S,onClose:k,disableHoverableContent:g,children:r})})},"Tooltip"),rZ="TooltipTrigger",rQ=p.forwardRef(rB(function(e,t){let{__scopeTooltip:r,"aria-describedby":n,...a}=e,o=rY(rZ,r),i=rH(rZ,r),s=rW(r),l=O(t,p.useRef(null),o.onTriggerChange),u=p.useRef(!1),c=p.useRef(!1),d=p.useCallback(()=>u.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,f.jsx)(rn,{asChild:!0,...s,children:(0,f.jsx)(es.button,{"aria-describedby":o.open?no(n,o.contentId):n,"data-state":o.stateAttribute,...a,ref:l,onPointerMove:Q(e.onPointerMove,e=>{"touch"!==e.pointerType&&(c.current||i.isPointerInTransitRef.current||(o.onTriggerEnter(),c.current=!0))}),onPointerLeave:Q(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:Q(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Q(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Q(e.onBlur,o.onClose),onClick:Q(e.onClick,o.onClose)})})},"TooltipTrigger")),rJ="TooltipPortal",[r0,r1]=rV(rJ,{forceMount:void 0}),r2=rB(e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:a}=e,o=rY(rJ,t);return(0,f.jsx)(r0,{scope:t,forceMount:r,children:(0,f.jsx)(rg,{present:r||o.open,children:(0,f.jsx)(rm,{asChild:!0,container:a,children:n})})})},"TooltipPortal"),r3="TooltipContent",r4=p.forwardRef(rB(function(e,t){let r=r1(r3,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...o}=e,i=rY(r3,e.__scopeTooltip);return(0,f.jsx)(rg,{present:n||i.open,children:i.disableHoverableContent?(0,f.jsx)(r8,{side:a,...o,ref:t}):(0,f.jsx)(r5,{side:a,...o,ref:t})})},"TooltipContent")),r5=p.forwardRef(rB(function(e,t){let r=rY(r3,e.__scopeTooltip),n=rH(r3,e.__scopeTooltip),a=p.useRef(null),o=O(t,a),[i,s]=p.useState(null),{trigger:l,onClose:u}=r,c=a.current,{onPointerInTransitChange:d}=n,m=p.useCallback(()=>{s(null),d(!1)},[d]),h=p.useCallback((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},a=r7(n,r.getBoundingClientRect());s(nn([...ne(n,a),...nt(t.getBoundingClientRect())])),d(!0)},[d]);return p.useEffect(()=>()=>m(),[m]),p.useEffect(()=>{if(l&&c){let e=rB(e=>h(e,c),"handleTriggerLeave"),t=rB(e=>h(e,l),"handleContentLeave");return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,m]),p.useEffect(()=>{if(i){let e=rB(e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=l?.contains(t)||c?.contains(t),a=!nr(r,i);n?m():a&&(m(),u())},"handleTrackPointerGrace");return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,i,u,m]),(0,f.jsx)(r8,{...e,ref:o})},"TooltipContentHoverable")),r6=D("TooltipContent"),r8=p.forwardRef(rB(function(e,t){let{__scopeTooltip:r,children:n,"aria-label":a,id:o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,u=rY(r3,r),c=rW(r),{onClose:d}=u,[m,h]=p.useState(null),y=O(t,h);eR(m),p.useEffect(()=>(document.addEventListener(rU,d),()=>document.removeEventListener(rU,d)),[d]),p.useEffect(()=>{if(u.trigger){let e=rB(e=>{e.target instanceof Node&&e.target.contains(u.trigger)&&d()},"handleScroll");return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[u.trigger,d]);let{setContentId:v}=u;return eu(()=>(v(o),()=>{v(void 0)}),[o,v]),(0,f.jsx)(ev,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,f.jsxs)(rs,{"data-state":u.stateAttribute,role:a?void 0:"tooltip",id:a?void 0:u.contentId,...c,...l,ref:y,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,f.jsx)(r6,{children:n}),a?(0,f.jsx)(rL,{id:u.contentId,role:"tooltip",children:a}):null]})})},"TooltipContentImpl")),r9=p.forwardRef(rB(function(e,t){let{__scopeTooltip:r,...n}=e,a=rW(r);return(0,f.jsx)(ru,{...a,...n,ref:t})},"TooltipArrow"));function r7(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,a,o)){case o:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}function ne(e,t,r=5){let n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}function nt(e){let{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}function nr(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let i=t[e],s=t[o],l=i.x,u=i.y,c=s.x,d=s.y;u>n!=d>n&&r<(c-l)*(n-u)/(d-u)+l&&(a=!a)}return a}function nn(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),na(t)}function na(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}function no(...e){let t=new Set;for(let r of e)if("string"==typeof r)for(let e of String(r).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}function ni(){return(ni=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ns(e){if(null==e)throw TypeError("Cannot destructure "+e);return e}function nl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function nu(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function nc(e){var t=e.delayDuration,r=nu(e,["delayDuration"]);return(0,f.jsx)(rK,nl({"data-slot":"tooltip-provider",delayDuration:void 0===t?0:t},r))}function nd(e){ns(e);var t=ni({},e);return(0,f.jsx)(rX,nl({"data-slot":"tooltip"},t))}function nf(e){ns(e);var t=ni({},e);return(0,f.jsx)(rQ,nl({"data-slot":"tooltip-trigger"},t))}function np(e){var t,r,n=e.className,a=e.sideOffset,o=e.children,i=nu(e,["className","sideOffset","children"]);return(0,f.jsx)(r2,{children:(0,f.jsxs)(r4,(t=nl({"data-slot":"tooltip-content",sideOffset:void 0===a?0:a,className:(0,g.cn)("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",n)},i),r=r={children:[o,(0,f.jsx)(r9,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))})}function nm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function nh(e){if(Array.isArray(e))return e}function ny(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nv(e,t){if(e){if("string"==typeof e)return nm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nm(e,t)}}rB(r7,"getExitSideFromRect"),rB(ne,"getPaddedExitPoints"),rB(nt,"getPointsFromRect"),rB(nr,"isPointInPolygon"),rB(nn,"getHull"),rB(na,"getHullPresorted"),rB(no,"concatAriaDescribedby");var ng=p.forwardRef(function(e,t){var r,n,a,o=nh(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||nv(r)||ny(),i=o[0],s=o.slice(1),l=i.icon,u=i.label,c=i.size,d=i.variant,p=i.tooltipSide,m=i.noTooltip,h=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(i,["icon","label","size","variant","tooltipSide","noTooltip"]),y=(nh(s)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(s)||nv(s,1)||ny())[0],v=(0,f.jsx)(q,(n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({ref:y,type:"button",variant:void 0===d?"ghost":d,size:void 0===c?"icon":c,"aria-label":u},h),a=a={children:l},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(a)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(a,e))}),n));return void 0!==m&&m?v:(0,f.jsx)(nc,{children:(0,f.jsxs)(nd,{children:[(0,f.jsx)(nf,{asChild:!0,children:v}),(0,f.jsx)(np,{side:void 0===p?"top":p,children:u})]})})});function nb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function nx(e){if(Array.isArray(e))return e}function nw(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nj(e,t){if(e){if("string"==typeof e)return nb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nb(e,t)}}var nO=p.forwardRef(function(e,t){var r,n=nx(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||nj(r)||nw(),a=n[0],o=n.slice(1),i=a.className,s=a.asChild,l=a.underline,u=a.target,c=a.rel,d=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(a,["className","asChild","underline","target","rel"]),p=(nx(o)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(o)||nj(o,1)||nw())[0];return(0,f.jsx)(void 0!==s&&s?P:"a",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({ref:p,"data-slot":"link",target:u,rel:null!=c?c:"_blank"===u?"noopener noreferrer":void 0,className:(0,g.cn)("rounded-sm text-primary underline-offset-4 outline-none hover:underline focus-visible:ring-[3px] focus-visible:ring-ring/50",void 0!==l&&l&&"underline",i)},d))});function nS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function nk(e){if(Array.isArray(e))return e}function nE(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nP(e,t){if(e){if("string"==typeof e)return nS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nS(e,t)}}var nA=v("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}}),nD=p.forwardRef(function(e,t){var r,n=nk(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||nP(r)||nE(),a=n[0],o=n.slice(1),i=a.className,s=a.variant,l=void 0===s?"default":s,u=a.asChild,c=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(a,["className","variant","asChild"]),d=(nk(o)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(o)||nP(o,1)||nE())[0];return(0,f.jsx)(void 0!==u&&u?P:"span",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({ref:d,"data-slot":"badge","data-variant":l,className:(0,g.cn)(nA({variant:l}),i)},c))}),nC=Object.defineProperty,nT=(e,t)=>nC(e,"name",{value:t,configurable:!0}),nN={Horizontal:"horizontal",Vertical:"vertical"},nR=nN.Horizontal,nM=Object.values(nN),nI=p.forwardRef(nT(function(e,t){let{decorative:r,orientation:n=nR,...a}=e,o=n_(n)?n:nR,i=o===nN.Vertical?o:void 0;return(0,f.jsx)(es.div,{"data-orientation":o,...r?{role:"none"}:{"aria-orientation":i,role:"separator"},...a,ref:t})},"Separator"));function n_(e){return nM.includes(e)}function nL(e){var t=e.className,r=e.orientation,n=e.decorative,a=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["className","orientation","decorative"]);return(0,f.jsx)(nI,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({"data-slot":"separator",decorative:void 0===n||n,orientation:void 0===r?"horizontal":r,className:(0,g.cn)("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t)},a))}nT(n_,"isValidOrientation");var nF=Object.defineProperty,nB=p.forwardRef(nF(function(e,t){return(0,f.jsx)(es.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"name",{value:"Label",configurable:!0}));function nV(e){var t=e.className,r=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["className"]);return(0,f.jsx)(nB,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({"data-slot":"label",className:(0,g.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t)},r))}function nz(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function nW(e){if(Array.isArray(e))return e}function nU(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n$(e,t){if(e){if("string"==typeof e)return nz(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nz(e,t)}}var nH=p.forwardRef(function(e,t){var r,n=nW(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||n$(r)||nU(),a=n[0],o=n.slice(1),i=a.className,s=a.type,l=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(a,["className","type"]),u=(nW(o)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(o)||n$(o,1)||nU())[0];return(0,f.jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({ref:u,type:s,"data-slot":"input",className:(0,g.cn)("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",i)},l))});function nK(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function nG(e){if(Array.isArray(e))return e}function nq(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nY(e,t){if(e){if("string"==typeof e)return nK(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nK(e,t)}}var nX=p.forwardRef(function(e,t){var r,n=nG(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||nY(r)||nq(),a=n[0],o=n.slice(1),i=a.label,s=a.id,l=a.helperText,u=a.errorText,c=a.hideLabel,d=a.containerClassName,m=a.className,h=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(a,["label","id","helperText","errorText","hideLabel","containerClassName","className"]),y=(nG(o)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),1!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(o)||nY(o,1)||nq())[0],v=p.useId(),b=null!=s?s:v,x="".concat(b,"-message"),w=null!=u?u:l;return(0,f.jsxs)("div",{"data-slot":"text-input",className:(0,g.cn)("grid gap-1.5",d),children:[(0,f.jsx)(nV,{htmlFor:b,className:(0,g.cn)(void 0!==c&&c&&"sr-only"),children:i}),(0,f.jsx)(nH,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({ref:y,id:b,"aria-invalid":!!u||void 0,"aria-describedby":w?x:void 0,className:m},h)),w?(0,f.jsx)("p",{id:x,className:(0,g.cn)("text-xs",u?"text-destructive":"text-muted-foreground"),children:w}):null]})}),nZ=Object.defineProperty,nQ=(e,t)=>nZ(e,"name",{value:t,configurable:!0}),nJ="Switch",[n0,n1]=en(nJ),[n2,n3]=n0(nJ);function n4(e){let{__scopeSwitch:t,checked:r,children:n,defaultChecked:a,disabled:o,form:i,name:s,onCheckedChange:l,required:u,value:c="on",internal_do_not_use_render:d}=e,[m,h]=rT({prop:r,defaultProp:a??!1,onChange:l,caller:nJ}),[y,v]=p.useState(null),[g,b]=p.useState(null),[x,w]=p.useState(null),j=!y||!!i||!!y.closest("form"),O={checked:m,setChecked:h,disabled:o,control:y,setControl:v,name:s,form:i,value:c,userClick:x,onUserClick:w,required:u,defaultChecked:a,isFormControl:j,bubbleInput:g,setBubbleInput:b};return(0,f.jsx)(n2,{scope:t,...O,children:n7(d)?d(O):n})}nQ(n4,"SwitchProvider");var n5=p.forwardRef(nQ(function({__scopeSwitch:e,onClick:t,...r},n){let{control:a,form:o,value:i,disabled:s,checked:l,required:u,setControl:c,setChecked:d,onUserClick:m,isFormControl:h,bubbleInput:y}=n3("SwitchTrigger",e),v=O(n,c),g=p.useRef(l);return p.useEffect(()=>{let e=o?a?.ownerDocument.getElementById(o):a?.form;if(e instanceof HTMLFormElement){let t=nQ(()=>d(g.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[a,o,d]),(0,f.jsx)(es.button,{type:"button",role:"switch","aria-checked":l,"aria-required":u,"data-state":ae(l),"data-disabled":s?"":void 0,disabled:s,value:i,...r,ref:v,onClick:Q(t,e=>{let t=e.isPropagationStopped();m({requestedChecked:!l,hasConsumerStoppedPropagation:t}),d(e=>!e),y&&h&&!t&&e.stopPropagation()})})},"SwitchTrigger")),n6=p.forwardRef(nQ(function(e,t){let{__scopeSwitch:r,name:n,checked:a,defaultChecked:o,required:i,disabled:s,value:l,onCheckedChange:u,form:c,...d}=e;return(0,f.jsx)(n4,{__scopeSwitch:r,checked:a,defaultChecked:o,disabled:s,required:i,onCheckedChange:u,name:n,form:c,value:l,internal_do_not_use_render:({isFormControl:e})=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(n5,{...d,ref:t,__scopeSwitch:r}),e&&(0,f.jsx)(n9,{__scopeSwitch:r})]})})},"Switch")),n8=p.forwardRef(nQ(function(e,t){let{__scopeSwitch:r,...n}=e,a=n3("SwitchThumb",r);return(0,f.jsx)(es.span,{"data-state":ae(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t})},"SwitchThumb")),n9=p.forwardRef(nQ(function({__scopeSwitch:e,onClick:t,...r},n){let{control:a,userClick:o,checked:i,defaultChecked:s,required:l,disabled:u,name:c,value:d,form:m,bubbleInput:h,setBubbleInput:y}=n3("SwitchBubbleInput",e),v=O(n,y),g=t3(a),b=p.useRef(!1),x=p.useRef(i),w=p.useRef(o),j=p.useRef(null);p.useEffect(()=>{if(!h)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(!e)return;let t=x.current!==i;x.current=i;let r=null!==o&&o!==w.current;if(w.current=o,r)j.current=t?null:o,t&&e.call(h,i),h.dispatchEvent(new Event("click",{bubbles:!o.hasConsumerStoppedPropagation}));else if(t){let t=j.current;j.current=null;let r=t?.requestedChecked===i;b.current=!0,e.call(h,i),h.dispatchEvent(new Event("click",{bubbles:!(r&&t.hasConsumerStoppedPropagation)})),b.current=!1}},[h,i,o]);let S=p.useRef(i);return(0,f.jsx)(es.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??S.current,required:l,disabled:u,name:c,value:d,form:m,...r,tabIndex:-1,ref:v,onClick:Q(t,e=>{b.current&&e.stopPropagation()}),style:{...r.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function n7(e){return"function"==typeof e}function ae(e){return e?"checked":"unchecked"}function at(e){var t,r,n=e.className,a=e.size,o=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["className","size"]);return(0,f.jsx)(n6,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({"data-slot":"switch","data-size":void 0===a?"default":a,className:(0,g.cn)("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",n)},o),r=r={children:(0,f.jsx)(n8,{"data-slot":"switch-thumb",className:(0,g.cn)("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")})},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}nQ(n7,"isFunction"),nQ(ae,"getState");var ar=r(4347),an=(0,ar.A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function aa(e){var t=e.className,r=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["className"]);return(0,f.jsx)(an,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({role:"status","aria-label":"Loading",className:(0,g.cn)("size-4 animate-spin",t)},r))}var ao=r(3601),ai=(0,ar.A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);function as(e){var t,r,n=e.status,a=void 0===n?"active":n,o=e.description,i=e.className,s=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["status","description","className"]);return"inactive"===a?null:(0,f.jsxs)("div",(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({"data-slot":"inline-loading","data-status":a,role:"status","aria-live":"polite",className:(0,g.cn)("inline-flex items-center gap-2 text-sm text-muted-foreground",i)},s),r=r={children:["active"===a&&(0,f.jsx)(aa,{"aria-label":void 0,role:"presentation"}),"finished"===a&&(0,f.jsx)(ao.A,{className:"size-4 text-emerald-500","aria-hidden":"true"}),"error"===a&&(0,f.jsx)(ai,{className:"size-4 text-destructive","aria-hidden":"true"}),o?(0,f.jsx)("span",{children:o}):null]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}function al(e){var t=e.className,r=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["className"]);return(0,f.jsx)("div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({"data-slot":"layer",className:(0,g.cn)("bg-card text-card-foreground",t)},r))}function au(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function ac(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function ad(e){var t=e.className,r=ac(e,["className"]);return(0,f.jsx)("div",au({"data-slot":"tile",className:(0,g.cn)("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",t)},r))}function af(e){var t=e.className,r=ac(e,["className"]);return(0,f.jsx)("div",au({"data-slot":"tile-header",className:(0,g.cn)("@container/tile-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=tile-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t)},r))}function ap(e){var t=e.className,r=ac(e,["className"]);return(0,f.jsx)("div",au({"data-slot":"tile-title",className:(0,g.cn)("leading-none font-semibold",t)},r))}function am(e){var t=e.className,r=ac(e,["className"]);return(0,f.jsx)("div",au({"data-slot":"tile-description",className:(0,g.cn)("text-sm text-muted-foreground",t)},r))}function ah(e){var t=e.className,r=ac(e,["className"]);return(0,f.jsx)("div",au({"data-slot":"tile-action",className:(0,g.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",t)},r))}function ay(e){var t=e.className,r=ac(e,["className"]);return(0,f.jsx)("div",au({"data-slot":"tile-content",className:(0,g.cn)("px-6",t)},r))}function av(e){var t=e.className,r=ac(e,["className"]);return(0,f.jsx)("div",au({"data-slot":"tile-footer",className:(0,g.cn)("flex items-center px-6 [.border-t]:pt-6",t)},r))}function ag(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function ab(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}var ax=v("relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current",info:"border-l-4 border-l-primary bg-card text-card-foreground [&>svg]:text-primary",success:"border-l-4 border-l-emerald-500 bg-card text-card-foreground [&>svg]:text-emerald-500",warning:"border-l-4 border-l-amber-500 bg-card text-card-foreground [&>svg]:text-amber-500",error:"border-l-4 border-l-destructive bg-card text-card-foreground [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}});function aw(e){var t=e.className,r=e.variant,n=ab(e,["className","variant"]);return(0,f.jsx)("div",ag({"data-slot":"alert",role:"alert",className:(0,g.cn)(ax({variant:r}),t)},n))}function aj(e){var t=e.className,r=ab(e,["className"]);return(0,f.jsx)("div",ag({"data-slot":"alert-title",className:(0,g.cn)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",t)},r))}function aO(e){var t=e.className,r=ab(e,["className"]);return(0,f.jsx)("div",ag({"data-slot":"alert-description",className:(0,g.cn)("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",t)},r))}var aS=r(822),ak=Object.defineProperty,aE=(e,t)=>ak(e,"name",{value:t,configurable:!0}),aP=0,aA=null;function aD(){p.useEffect(()=>{aA||(aA={start:aC(),end:aC()});let{start:e,end:t}=aA;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),aP++,()=>{1===aP&&(aA?.start.remove(),aA?.end.remove(),aA=null),aP=Math.max(0,aP-1)}},[])}function aC(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}aE(function(e){return aD(),e.children},"FocusGuards"),aE(aD,"useFocusGuards"),aE(aC,"createFocusGuard");var aT=r(5823),aN="right-scroll-bar-position",aR="width-before-scroll-bar";function aM(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var aI="u">typeof window?p.useLayoutEffect:p.useEffect,a_=new WeakMap,aL=(void 0===a&&(a={}),(void 0===o&&(o=function(e){return e}),i=[],s=!1,l={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=o(e,s);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){s=!0;var t=[];if(i.length){var r=i;i=[],r.forEach(e),t=i}var n=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(n)};a(),i={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),i}}}}).options=(0,aT.Cl)({async:!0,ssr:!1},a),l),aF=function(){},aB=p.forwardRef(function(e,t){var r,n,a,o,i=p.useRef(null),s=p.useState({onScrollCapture:aF,onWheelCapture:aF,onTouchMoveCapture:aF}),l=s[0],u=s[1],c=e.forwardProps,d=e.children,f=e.className,m=e.removeScrollBar,h=e.enabled,y=e.shards,v=e.sideCar,g=e.noRelative,b=e.noIsolation,x=e.inert,w=e.allowPinchZoom,j=e.as,O=e.gapMode,S=(0,aT.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(r=[i,t],n=function(e){return r.forEach(function(t){return aM(t,e)})},(a=(0,p.useState)(function(){return{value:null,callback:n,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=n,o=a.facade,aI(function(){var e=a_.get(o);if(e){var t=new Set(e),n=new Set(r),a=o.current;t.forEach(function(e){n.has(e)||aM(e,null)}),n.forEach(function(e){t.has(e)||aM(e,a)})}a_.set(o,r)},[r]),o),E=(0,aT.Cl)((0,aT.Cl)({},S),l);return p.createElement(p.Fragment,null,h&&p.createElement(v,{sideCar:aL,removeScrollBar:m,shards:y,noRelative:g,noIsolation:b,inert:x,setCallbacks:u,allowPinchZoom:!!w,lockRef:i,gapMode:O}),c?p.cloneElement(p.Children.only(d),(0,aT.Cl)((0,aT.Cl)({},E),{ref:k})):p.createElement(void 0===j?"div":j,(0,aT.Cl)({},E,{className:f,ref:k}),d))});aB.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},aB.classNames={fullWidth:aR,zeroRight:aN};var aV=function(e){var t=e.sideCar,r=(0,aT.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return p.createElement(n,(0,aT.Cl)({},r))};aV.isSideCarExport=!0;var az=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=d||r.nc;return t&&e.setAttribute("nonce",t),e}())){var a,o;(a=t).styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},aW=function(){var e=az();return function(t,r){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},aU=function(){var e=aW();return function(t){return e(t.styles,t.dynamic),null}},a$={left:0,top:0,right:0,gap:0},aH=function(e){return parseInt(e||"",10)||0},aK=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[aH(r),aH(n),aH(a)]},aG=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return a$;var t=aK(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},aq=aU(),aY="data-scroll-locked",aX=function(e,t,r,n){var a=e.left,o=e.top,i=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body[").concat(aY,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(aN," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(aR," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(aN," .").concat(aN," {\n right: 0 ").concat(n,";\n }\n \n .").concat(aR," .").concat(aR," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(aY,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},aZ=function(){var e=parseInt(document.body.getAttribute(aY)||"0",10);return isFinite(e)?e:0},aQ=function(){p.useEffect(function(){return document.body.setAttribute(aY,(aZ()+1).toString()),function(){var e=aZ()-1;e<=0?document.body.removeAttribute(aY):document.body.setAttribute(aY,e.toString())}},[])},aJ=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;aQ();var o=p.useMemo(function(){return aG(a)},[a]);return p.createElement(aq,{styles:aX(o,!t,a,r?"":"!important")})},a0=!1;if("u">typeof window)try{var a1=Object.defineProperty({},"passive",{get:function(){return a0=!0,!0}});window.addEventListener("test",a1,a1),window.removeEventListener("test",a1,a1)}catch(e){a0=!1}var a2=!!a0&&{passive:!1};function a3(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var a4=function(e,t){if(!a3(e,Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},a5=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&a3(n,ShadowRoot)&&(n=n.host),a6(e,n)){var a=a8(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},a6=function(e,t){return"v"===e?a4(t,"overflowY"):a4(t,"overflowX")},a8=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},a9=function(e,t,r,n,a){var o,i=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=i*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,p=0;do{if(!l)break;var m=a8(e,l),h=m[0],y=m[1]-m[2]-i*h;(h||y)&&a6(e,l)&&(f+=y,p+=h);var v=l.parentNode;l=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(a&&1>Math.abs(f)||!a&&s>f)?c=!0:!d&&(a&&1>Math.abs(p)||!a&&-s>p)&&(c=!0),c},a7=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oe=function(e){return[e.deltaX,e.deltaY]},ot=function(e){return e&&"current"in e?e.current:e},or=0,on=[];let oa=(u=function(e){var t=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),a=p.useState(or++)[0],o=p.useState(aU)[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,aT.fX)([e.lockRef.current],(e.shards||[]).map(ot),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=p.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=a7(e),s=r.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var m=a5(d,c);if(!m)return!0;if(m?a=d:(a="v"===d?"h":"v",m=a5(d,c)),!m)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=a),!a)return!0;var h=n.current||a;return a9(h,t,e,"h"===h?l:u,!0)},[]),l=p.useCallback(function(e){if(on.length&&on[on.length-1]===o){var r="deltaY"in e?oe(e):a7(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var a=(i.current.shards||[]).map(ot).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?s(e,a[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=p.useCallback(function(e,r,n,a){var o={name:e,delta:r,target:n,should:a,shadowParent:function(e){for(var t,r,n=null;null!==e;)t=e,(null!=(r=ShadowRoot)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](t):t instanceof r)&&(n=e.host,e=e.host),e=e.parentNode;return n}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=p.useCallback(function(e){r.current=a7(e),n.current=void 0},[]),d=p.useCallback(function(t){u(t.type,oe(t),t.target,s(t,e.lockRef.current))},[]),f=p.useCallback(function(t){u(t.type,a7(t),t.target,s(t,e.lockRef.current))},[]);p.useEffect(function(){return on.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,a2),document.addEventListener("touchmove",l,a2),document.addEventListener("touchstart",c,a2),function(){on=on.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,a2),document.removeEventListener("touchmove",l,a2),document.removeEventListener("touchstart",c,a2)}},[]);var m=e.removeScrollBar,h=e.inert;return p.createElement(p.Fragment,null,h?p.createElement(o,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,m?p.createElement(aJ,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},aL.useMedium(u),aV);var oo=p.forwardRef(function(e,t){return p.createElement(aB,(0,aT.Cl)({},e,{ref:t,sideCar:oa}))});oo.classNames=aB.classNames;var oi=new WeakMap,os=new WeakMap,ol={},ou=0,oc=function(e){return e&&(e.host||oc(e.parentNode))},od=function(e,t,r,n){var a=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=oc(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});ol[r]||(ol[r]=new WeakMap);var o=ol[r],i=[],s=new Set,l=new Set(a),u=function(e){!e||s.has(e)||(s.add(e),u(e.parentNode))};a.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,l=(oi.get(e)||0)+1,u=(o.get(e)||0)+1;oi.set(e,l),o.set(e,u),i.push(e),1===l&&a&&os.set(e,!0),1===u&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),ou++,function(){i.forEach(function(e){var t=oi.get(e)-1,a=o.get(e)-1;oi.set(e,t),o.set(e,a),t||(os.has(e)||e.removeAttribute(n),os.delete(e)),a||e.removeAttribute(r)}),--ou||(oi=new WeakMap,oi=new WeakMap,os=new WeakMap,ol={})}},of=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),od(n,a,r,"aria-hidden")):function(){return null}},op=Object.defineProperty,om=(e,t)=>op(e,"name",{value:t,configurable:!0}),oh="Dialog",[oy,ov]=en(oh),[og,ob]=oy(oh),ox=om(e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=p.useRef(null),l=p.useRef(null),{nodes:u,registry:c}=eN(),[d,m]=rT({prop:n,defaultProp:a??!1,onChange:o,caller:oh}),[h,y]=p.useState(0),[v,g]=p.useState(0);return(0,f.jsx)(og,{scope:t,triggerRef:s,contentRef:l,contentId:eq(),titleId:eq(),descriptionId:eq(),titlePresent:h>0,descriptionPresent:v>0,setTitleCount:y,setDescriptionCount:g,open:d,onOpenChange:m,onOpenToggle:p.useCallback(()=>m(e=>!e),[m]),modal:i,branchNodes:u,branchRegistry:c,children:r})},"Dialog"),ow=p.forwardRef(om(function(e,t){let{__scopeDialog:r,...n}=e,a=ob("DialogTrigger",r),o=O(t,a.triggerRef);return(0,f.jsx)(es.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":oB(a.open),...n,ref:o,onClick:Q(e.onClick,a.onOpenToggle)})},"DialogTrigger")),oj="DialogPortal",[oO,oS]=oy(oj,{forceMount:void 0}),ok=om(e=>{let{__scopeDialog:t,forceMount:r,children:n,container:a}=e,o=ob(oj,t);return(0,f.jsx)(oO,{scope:t,forceMount:r,children:p.Children.map(n,e=>(0,f.jsx)(rg,{present:r||o.open,children:(0,f.jsx)(rm,{asChild:!0,container:a,children:e})}))})},"DialogPortal"),oE="DialogOverlay",oP=p.forwardRef(om(function(e,t){let r=oS(oE,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=ob(oE,e.__scopeDialog);return o.modal?(0,f.jsx)(rg,{present:n||o.open,children:(0,f.jsx)(oD,{...a,ref:t})}):null},"DialogOverlay")),oA=E("DialogOverlay.RemoveScroll"),oD=p.forwardRef(om(function(e,t){let{__scopeDialog:r,...n}=e,a=ob(oE,r),o=O(t,eg());return(0,f.jsx)(oo,{as:oA,allowPinchZoom:!0,shards:p.useMemo(()=>[a.contentRef,...a.branchNodes.map(e=>({current:e}))],[a.contentRef,a.branchNodes]),children:(0,f.jsx)(es.div,{"data-state":oB(a.open),...n,ref:o,style:{pointerEvents:"auto",...n.style}})})},"DialogOverlayImpl")),oC="DialogContent",oT=p.forwardRef(om(function(e,t){let r=oS(oC,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=ob(oC,e.__scopeDialog);return(0,f.jsx)(rg,{present:n||o.open,children:o.modal?(0,f.jsx)(oN,{...a,ref:t}):(0,f.jsx)(oR,{...a,ref:t})})},"DialogContent")),oN=p.forwardRef(om(function(e,t){let r=ob(oC,e.__scopeDialog),n=p.useRef(null),a=O(t,r.contentRef,n);return p.useEffect(()=>{let e=n.current;if(e)return of(e)},[]),(0,f.jsx)(oM,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:Q(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),oR=p.forwardRef(om(function(e,t){let r=ob(oC,e.__scopeDialog),n=p.useRef(!1),a=p.useRef(!1);return(0,f.jsx)(oM,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let o=t.target;r.triggerRef.current?.contains(o)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})},"DialogContentNonModal")),oM=p.forwardRef(om(function(e,t){let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,"aria-describedby":i,children:s,...l}=e,u=ob(oC,r);return aD(),(0,f.jsx)(eT,{registry:u.branchRegistry,children:(0,f.jsx)(eD,{asChild:!0,loop:!0,trapped:n,branches:u.branchNodes,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,f.jsx)(ev,{role:"dialog",id:u.contentId,"aria-labelledby":u.titlePresent?u.titleId:void 0,"aria-describedby":u.descriptionPresent?oF(i,u.descriptionId):i,"data-state":oB(u.open),...l,ref:t,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1),children:s})})})},"DialogContentImpl")),oI=p.forwardRef(om(function(e,t){let{__scopeDialog:r,...n}=e,a=ob("DialogTitle",r),{setTitleCount:o}=a;return eu(()=>(o(e=>e+1),()=>o(e=>e-1)),[o]),(0,f.jsx)(es.h2,{id:a.titleId,...n,ref:t})},"DialogTitle")),o_=p.forwardRef(om(function(e,t){let{__scopeDialog:r,...n}=e,a=ob("DialogDescription",r),{setDescriptionCount:o}=a;return eu(()=>(o(e=>e+1),()=>o(e=>e-1)),[o]),(0,f.jsx)(es.p,{id:a.descriptionId,...n,ref:t})},"DialogDescription")),oL=p.forwardRef(om(function(e,t){let{__scopeDialog:r,...n}=e,a=ob("DialogClose",r);return(0,f.jsx)(es.button,{type:"button",...n,ref:t,onClick:Q(e.onClick,()=>a.onOpenChange(!1))})},"DialogClose"));function oF(...e){let t=new Set;for(let r of e)if("string"==typeof r)for(let e of String(r).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}function oB(e){return e?"open":"closed"}function oV(){return(oV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function oz(e){if(null==e)throw TypeError("Cannot destructure "+e);return e}function oW(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function oU(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function o$(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function oH(e){oz(e);var t=oV({},e);return(0,f.jsx)(ox,oW({"data-slot":"dialog"},t))}function oK(e){oz(e);var t=oV({},e);return(0,f.jsx)(ow,oW({"data-slot":"dialog-trigger"},t))}function oG(e){oz(e);var t=oV({},e);return(0,f.jsx)(ok,oW({"data-slot":"dialog-portal"},t))}function oq(e){oz(e);var t=oV({},e);return(0,f.jsx)(oL,oW({"data-slot":"dialog-close"},t))}function oY(e){var t=e.className,r=o$(e,["className"]);return(0,f.jsx)(oP,oW({"data-slot":"dialog-overlay",className:(0,g.cn)("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",t)},r))}function oX(e){var t=e.className,r=e.children,n=e.showCloseButton,a=o$(e,["className","children","showCloseButton"]);return(0,f.jsxs)(oG,{"data-slot":"dialog-portal",children:[(0,f.jsx)(oY,{}),(0,f.jsxs)(oT,oU(oW({"data-slot":"dialog-content",className:(0,g.cn)("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",t)},a),{children:[r,(void 0===n||n)&&(0,f.jsxs)(oL,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,f.jsx)(aS.A,{}),(0,f.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]})}function oZ(e){var t=e.className,r=o$(e,["className"]);return(0,f.jsx)("div",oW({"data-slot":"dialog-header",className:(0,g.cn)("flex flex-col gap-2 text-center sm:text-left",t)},r))}function oQ(e){var t=e.className,r=e.showCloseButton,n=e.children,a=o$(e,["className","showCloseButton","children"]);return(0,f.jsxs)("div",oU(oW({"data-slot":"dialog-footer",className:(0,g.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t)},a),{children:[n,void 0!==r&&r&&(0,f.jsx)(oL,{asChild:!0,children:(0,f.jsx)(q,{variant:"outline",children:"Close"})})]}))}function oJ(e){var t=e.className,r=o$(e,["className"]);return(0,f.jsx)(oI,oW({"data-slot":"dialog-title",className:(0,g.cn)("text-lg leading-none font-semibold",t)},r))}function o0(e){var t=e.className,r=o$(e,["className"]);return(0,f.jsx)(o_,oW({"data-slot":"dialog-description",className:(0,g.cn)("text-sm text-muted-foreground",t)},r))}om(oF,"concatAriaDescribedby"),om(oB,"getState");var o1=r(2930),o2=(0,ar.A)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),o3=r(7190),o4=Object.defineProperty,o5=(e,t)=>o4(e,"name",{value:t,configurable:!0});function o6(e){let t=e+"CollectionProvider",[r,n]=en(t),[a,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=o5(e=>{let{scope:t,children:r}=e,n=p.useRef(null),o=p.useRef(new Map).current;return(0,f.jsx)(a,{scope:t,itemMap:o,collectionRef:n,children:r})},"CollectionProvider");i.displayName=t;let s=e+"CollectionSlot",l=E(s),u=p.forwardRef((e,t)=>{let{scope:r,children:n}=e,a=O(t,o(s,r).collectionRef);return(0,f.jsx)(l,{ref:a,children:n})});u.displayName=s;let c=e+"CollectionItemSlot",d="data-radix-collection-item",m=E(c),h=p.forwardRef((e,t)=>{let{scope:r,children:n,...a}=e,i=p.useRef(null),s=O(t,i),l=o(c,r);return p.useEffect(()=>(l.itemMap.set(i,{ref:i,...a}),()=>void l.itemMap.delete(i))),(0,f.jsx)(m,{...{[d]:""},ref:s,children:n})});function y(t){let r=o(e+"CollectionConsumer",t);return p.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])}return h.displayName=c,o5(y,"useCollection"),[{Provider:i,Slot:u,ItemSlot:h},y,n]}o5(o6,"createCollection");var o8=new WeakMap,o9=class e extends Map{static{o5(this,"OrderedDict")}#t;constructor(e){super(e),this.#t=[...super.keys()],o8.set(this,!0)}set(e,t){return o8.get(this)&&!this.has(e)&&this.#t.push(e),super.set(e,t),this}insert(e,t,r){let n=this.has(t),a=n?this.size:this.size+1,o=it(e),i=o>=0?Math.min(o,a-1):Math.max(a+o,0);if(n?this.#t.indexOf(t)===i:i===this.size)return this.set(t,r),this;let s=this.#t.filter(e=>e!==t);s.splice(i,0,t);let l=s.map(e=>[e,e===t?r:this.get(e)]);for(let[e,t]of(this.clear(),l))this.set(e,t);return this}with(t,r,n){let a=new e(this);return a.insert(t,r,n),a}before(e){let t=this.#t.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#t.indexOf(e);if(-1===n)return this;let a=this.#t.indexOf(t);return this.insert(-1!==a&&a<n?n-1:n,t,r)}after(e){let t=this.#t.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#t.indexOf(e);if(-1===n)return this;let a=this.#t.indexOf(t);return this.insert(-1!==a&&a<=n?n:n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#t=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#t.splice(this.#t.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o7(this.#t,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o7(this.#t,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#t.indexOf(e)}keyAt(e){return o7(this.#t,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],a=0;for(let e of this)Reflect.apply(t,r,[e,a,this])&&n.push(e),a++;return new e(n)}map(t,r){let n=[],a=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,a,this])]),a++;return new e(n)}reduce(...e){let[t,r]=e,n=e.length>1;if(!n&&0===this.size)throw TypeError("Reduce of empty OrderedDict with no initial value");let a=0,o=r;for(let e of this)o=0!==a||n?Reflect.apply(t,this,[o,e,a,this]):e,a++;return o}reduceRight(...e){let[t,r]=e,n=e.length>1;if(!n&&0===this.size)throw TypeError("Reduce of empty OrderedDict with no initial value");let a=r;for(let e=this.size-1;e>=0;e--){let r=this.entryAt(e);a=e!==this.size-1||n?Reflect.apply(t,this,[a,r,e,this]):r}return a}sort(e){if("function"!=typeof e)throw TypeError("OrderedDict.sort requires a compare function");let t=[...this.entries()].sort(e);for(let[e,r]of(this.clear(),t))this.set(e,r);return this}toSorted(t){if("function"!=typeof t)throw TypeError("OrderedDict.toSorted requires a compare function");return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e;for(let e of this.#t.slice(t,r))n.set(e,this.get(e));return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}};function o7(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=ie(e,t);return -1===r?void 0:e[r]}function ie(e,t){let r=e.length,n=it(t),a=n>=0?n:r+n;return a<0||a>=r?-1:a}function it(e){return e!=e||0===e?0:Math.trunc(e)}function ir(e){let t=e+"CollectionProvider",[r,n]=en(t),[a,o]=r(t);a.displayName=e+"CollectionStableContextProvider";let[i,s]=r(t);i.displayName=e+"CollectionStatefulContextProvider";let l=o5(({state:e,...t})=>e?(0,f.jsx)(c,{...t,state:e}):(0,f.jsx)(u,{...t}),"CollectionProvider");l.displayName=t;let u=o5(e=>{let t=b();return(0,f.jsx)(c,{...e,state:t})},"CollectionInit");u.displayName=e+"CollectionInit";let c=o5(e=>{let{scope:t,children:r,state:n}=e,o=p.useRef(null),[s,l]=p.useState(null),u=O(o,l),[c,d]=n,m=p.useRef(new o9),h=p.useCallback(()=>{let e=m.current;return ii(e)||e.sort(is),e},[]);return p.useEffect(()=>{if(!s)return;let e=il(()=>{d(e=>{let t=e.toSorted(is);return t.some(([t],r)=>e.keyAt(r)!==t)?t:e})});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s,d]),(0,f.jsx)(a,{scope:t,collectionElementRef:u,collectionElementRefObject:o,getCollection:h,setCollection:d,registryRef:m,children:(0,f.jsx)(i,{scope:t,collectionElement:s,collection:c,children:r})})},"CollectionProviderImpl");c.displayName=e+"CollectionProviderImpl";let d=e+"CollectionSlot",m=E(d),h=p.forwardRef((e,t)=>{let{scope:r,children:n}=e,a=O(t,o(d,r).collectionElementRef);return(0,f.jsx)(m,{ref:a,children:n})});h.displayName=d;let y=e+"CollectionItemSlot",v=E(y),g=p.forwardRef((e,t)=>{let{scope:r,children:n,...a}=e,i=p.useRef(null),{setCollection:s,registryRef:l}=o(y,r),u=p.useRef(a);ia(u.current,a)||(u.current=a);let c=u.current,d=O(t,p.useCallback(e=>{let t=l.current;e?t.set(e,{...u.current,element:e}):i.current&&t.delete(i.current)},[l]),i);eu(()=>{let e=i.current,t=l.current;e&&t.has(e)&&t.set(e,{...c,element:e})},[c,l]);let m=p.useRef(null);return p.useEffect(()=>{let e=i.current,t=m.current;((t?.element??null)!==e||e&&t?.itemData!==c)&&(m.current=e?{element:e,itemData:c}:null,s(r=>{let n=new o9(r);return t&&t.element!==e&&n.delete(t.element),e&&n.set(e,{...c,element:e}),n.sort(is)}))}),p.useEffect(()=>()=>{let e=m.current;m.current=null,e&&s(t=>{if(!t.has(e.element))return t;let r=new o9(t);return r.delete(e.element),r})},[s]),(0,f.jsx)(v,{"data-radix-collection-item":"",ref:d,children:n})});function b(){return p.useState(new o9)}function x(t){let{collection:r}=s(e+"CollectionConsumer",t);return r}function w(t){let{getCollection:r}=o(e+"CollectionConsumer",t);return r}return g.displayName=y,o5(b,"useInitCollection"),o5(x,"useCollection"),o5(w,"useGetCollection"),[{Provider:l,Slot:h,ItemSlot:g},{createCollectionScope:n,useCollection:x,useGetCollection:w,useInitCollection:b}]}function ia(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(!Object.prototype.hasOwnProperty.call(t,n)||e[n]!==t[n])return!1;return!0}function io(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function ii(e){let t;for(let r of e.keys()){if(t){let e=t.compareDocumentPosition(r);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=r}return!0}function is(e,t){return e[1].element&&t[1].element?io(e[1].element,t[1].element)?-1:1:0}function il(e){return new MutationObserver(t=>{for(let r of t)if("childList"===r.type)return void e()})}o5(o7,"at"),o5(ie,"toSafeIndex"),o5(it,"toSafeInteger"),o5(ir,"createCollection"),o5(ia,"shallowEqual"),o5(io,"isElementPreceding"),o5(ii,"isInDocumentOrder"),o5(is,"sortByDocumentPosition"),o5(il,"getChildListObserver");var iu=Object.defineProperty,ic=p.createContext(void 0);function id(e){let t=p.useContext(ic);return e||t||"ltr"}iu(id,"name",{value:"useDirection",configurable:!0});var ip=Object.defineProperty,im=(e,t)=>ip(e,"name",{value:t,configurable:!0}),ih=!1;function iy(){let[e,t]=p.useState(ih);return p.useEffect(()=>{ih||(ih=!0,t(!0))},[]),e}im(iy,"useIsHydrated");var iv=p[" useSyncExternalStore ".trim().toString()];function ig(){return()=>{}}function ib(){return iv(ig,()=>!0,()=>!1)}im(ig,"subscribe"),im(ib,"useIsHydratedModern");var ix="function"==typeof iv?ib:iy,iw=Object.defineProperty,ij=(e,t)=>iw(e,"name",{value:t,configurable:!0}),iO="rovingFocusGroup.onEntryFocus",iS={bubbles:!1,cancelable:!0},ik="RovingFocusGroup",[iE,iP,iA]=o6(ik),[iD,iC]=en(ik,[iA]),[iT,iN]=iD(ik),iR=p.forwardRef(ij(function(e,t){return(0,f.jsx)(iE.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(iE.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(iM,{...e,ref:t})})})},"RovingFocusGroup")),iM=p.forwardRef(ij(function(e,t){let{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,m=p.useRef(null),h=O(t,m),y=id(o),[v,g]=rT({prop:i,defaultProp:s??null,onChange:l,caller:ik}),[b,x]=p.useState(!1),w=ef(u),j=iP(r),S=p.useRef(!1),[k,E]=p.useState(0);return p.useEffect(()=>{let e=m.current;if(e)return e.addEventListener(iO,w),()=>e.removeEventListener(iO,w)},[w]),(0,f.jsx)(iT,{scope:r,orientation:n,dir:y,loop:a,currentTabStopId:v,onItemFocus:p.useCallback(e=>g(e),[g]),onItemShiftTab:p.useCallback(()=>x(!0),[]),onFocusableItemAdd:p.useCallback(()=>E(e=>e+1),[]),onFocusableItemRemove:p.useCallback(()=>E(e=>e-1),[]),children:(0,f.jsx)(es.div,{tabIndex:b||0===k?-1:0,"data-orientation":n,...d,ref:h,style:{outline:"none",...e.style},onMouseDown:Q(e.onMouseDown,()=>{S.current=!0}),onFocus:Q(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!b){let t=new CustomEvent(iO,iS);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=j().filter(e=>e.focusable);iB([e.find(e=>e.active),e.find(e=>e.id===v),...e].filter(Boolean).map(e=>e.ref.current),c)}}S.current=!1}),onBlur:Q(e.onBlur,()=>x(!1))})})},"RovingFocusGroupImpl")),iI=p.forwardRef(ij(function(e,t){let{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:o,children:i,...s}=e,l=eq(),u=o||l,c=iN("RovingFocusGroupItem",r),d=c.currentTabStopId===u,m=iP(r),{onFocusableItemAdd:h,onFocusableItemRemove:y,currentTabStopId:v}=c,g=ix();return eu(()=>{if(g&&n)return h(),()=>y()},[g,n,h,y]),p.useEffect(()=>{if(!g&&n)return h(),()=>y()},[g,n,h,y]),(0,f.jsx)(iE.ItemSlot,{scope:r,id:u,focusable:n,active:a,children:(0,f.jsx)(es.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:Q(e.onMouseDown,e=>{n?c.onItemFocus(u):e.preventDefault()}),onFocus:Q(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:Q(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=iF(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=c.loop?iV(r,n+1):r.slice(n+1)}setTimeout(()=>iB(r))}}),children:"function"==typeof i?i({isCurrentTabStop:d,hasTabStop:null!=v}):i})})},"RovingFocusGroupItem")),i_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function iL(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function iF(e,t,r){let n=iL(e.key,r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return i_[n]}function iB(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function iV(e,t){return e.map((r,n)=>e[(t+n)%e.length])}ij(iL,"getDirectionAwareKey"),ij(iF,"getFocusIntent"),ij(iB,"focusFirst"),ij(iV,"wrapArray");var iz=Object.defineProperty,iW=(e,t)=>iz(e,"name",{value:t,configurable:!0}),iU=["Enter"," "],i$=["ArrowUp","PageDown","End"],iH=["ArrowDown","PageUp","Home",...i$],iK={ltr:[...iU,"ArrowRight"],rtl:[...iU,"ArrowLeft"]},iG={ltr:["ArrowLeft"],rtl:["ArrowRight"]},iq="Menu",[iY,iX,iZ]=o6(iq),[iQ,iJ]=en(iq,[iZ,t7,iC]),i0=t7(),i1=iC(),[i2,i3]=iQ(iq),[i4,i5]=iQ(iq),i6=iW(e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:a,onOpenChange:o,modal:i=!0}=e,s=i0(t),[l,u]=p.useState(null),c=p.useRef(!1),d=ef(o),m=id(a);return p.useEffect(()=>{let e=iW(()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},"handleKeyDown"),t=iW(()=>c.current=!1,"handlePointer");return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),p.useEffect(()=>{if(!r)return;let e=iW(()=>d(!1),"handleBlur");return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[r,d]),(0,f.jsx)(rr,{...s,children:(0,f.jsx)(i2,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,f.jsx)(i4,{scope:t,onClose:p.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:m,modal:i,children:n})})})},"Menu"),i8=p.forwardRef(iW(function(e,t){let{__scopeMenu:r,...n}=e,a=i0(r);return(0,f.jsx)(rn,{...a,...n,ref:t})},"MenuAnchor")),i9="MenuPortal",[i7,se]=iQ(i9,{forceMount:void 0}),st=iW(e=>{let{__scopeMenu:t,forceMount:r,children:n,container:a}=e,o=i3(i9,t);return(0,f.jsx)(i7,{scope:t,forceMount:r,children:(0,f.jsx)(rg,{present:r||o.open,children:(0,f.jsx)(rm,{asChild:!0,container:a,children:n})})})},"MenuPortal"),sr="MenuContent",[sn,sa]=iQ(sr),so=p.forwardRef(iW(function(e,t){let r=se(sr,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=i3(sr,e.__scopeMenu),i=i5(sr,e.__scopeMenu);return(0,f.jsx)(iY.Provider,{scope:e.__scopeMenu,children:(0,f.jsx)(rg,{present:n||o.open,children:(0,f.jsx)(iY.Slot,{scope:e.__scopeMenu,children:i.modal?(0,f.jsx)(si,{...a,ref:t}):(0,f.jsx)(ss,{...a,ref:t})})})})},"MenuContent")),si=p.forwardRef(iW(function(e,t){let r=i3(sr,e.__scopeMenu),n=p.useRef(null),a=O(t,n);return p.useEffect(()=>{let e=n.current;if(e)return of(e)},[]),(0,f.jsx)(su,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Q(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentModal")),ss=p.forwardRef(iW(function(e,t){let r=i3(sr,e.__scopeMenu);return(0,f.jsx)(su,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentNonModal")),sl=E("MenuContent.ScrollLock"),su=p.forwardRef(iW(function(e,t){let{__scopeMenu:r,loop:n=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:h,disableOutsideScroll:y,...v}=e,g=i3(sr,r),b=i5(sr,r),x=i0(r),w=i1(r),j=iX(r),[S,k]=p.useState(null),E=p.useRef(null),[P,A]=p.useState(null);eR(P);let{nodes:D,registry:C}=eN(),T=!!(a||y),N=O(t,E,g.onContentChange,A),R=p.useRef(0),M=p.useRef(""),I=p.useRef(0),L=p.useRef(null),F=p.useRef("right"),B=p.useRef(0),V=p.useMemo(()=>y?[E,...D.map(e=>({current:e}))]:[],[E,D,y]),z=y?oo:p.Fragment,W=iW(e=>{let t=M.current+e,r=j().filter(e=>!e.disabled),n=document.activeElement,a=r.find(e=>e.ref.current===n)?.textValue,o=sF(r.map(e=>e.textValue),t,a),i=r.find(e=>e.textValue===o)?.ref.current;function s(e){M.current=e,window.clearTimeout(R.current),""!==e&&(R.current=window.setTimeout(()=>s(""),1e3))}iW(s,"updateSearch"),s(t),i&&setTimeout(()=>i.focus())},"handleTypeaheadSearch");p.useEffect(()=>()=>window.clearTimeout(R.current),[]),aD();let U=p.useCallback(e=>F.current===L.current?.side&&sV(e,L.current?.area),[]);return(0,f.jsx)(sn,{scope:r,searchRef:M,onItemEnter:p.useCallback(e=>{U(e)&&e.preventDefault()},[U]),onItemLeave:p.useCallback(e=>{U(e)||(E.current?.focus(),k(null))},[U]),onTriggerLeave:p.useCallback(e=>{U(e)&&e.preventDefault()},[U]),pointerGraceTimerRef:I,onPointerGraceIntentChange:p.useCallback(e=>{L.current=e},[]),children:(0,f.jsx)(eT,{registry:T?C:null,children:(0,f.jsx)(z,{...y?{as:sl,allowPinchZoom:!0,shards:V}:void 0,children:(0,f.jsx)(eD,{asChild:!0,trapped:a,branches:D,onMountAutoFocus:Q(o,e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:(0,f.jsx)(ev,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:h,children:(0,f.jsx)(iR,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:S,onCurrentTabStopIdChange:k,onEntryFocus:Q(l,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,f.jsx)(rs,{role:"menu","aria-orientation":"vertical","data-state":sR(g.open),"data-radix-menu-content":"",dir:b.dir,...x,...v,ref:N,style:{outline:"none",...v.style},onKeyDown:Q(v.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&W(e.key));let a=E.current;if(e.target!==a||!iH.includes(e.key))return;e.preventDefault();let o=j().filter(e=>!e.disabled).map(e=>e.ref.current);i$.includes(e.key)&&o.reverse(),s_(o)}),onBlur:Q(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(R.current),M.current="")}),onPointerMove:Q(e.onPointerMove,sz(e=>{let t=e.target,r=B.current!==e.clientX;e.currentTarget.contains(t)&&r&&(F.current=e.clientX>B.current?"right":"left",B.current=e.clientX)}))})})})})})})})},"MenuContentImpl")),sc=p.forwardRef(iW(function(e,t){let{__scopeMenu:r,...n}=e;return(0,f.jsx)(es.div,{role:"group",...n,ref:t})},"MenuGroup")),sd=p.forwardRef(iW(function(e,t){let{__scopeMenu:r,...n}=e;return(0,f.jsx)(es.div,{...n,ref:t})},"MenuLabel")),sf="MenuItem",sp="menu.itemSelect",sm=p.forwardRef(iW(function(e,t){let{disabled:r=!1,onSelect:n,...a}=e,o=p.useRef(null),i=i5(sf,e.__scopeMenu),s=sa(sf,e.__scopeMenu),l=O(t,o),u=p.useRef(!1),c=iW(()=>{let e=o.current;if(!r&&e){let t=new CustomEvent(sp,{bubbles:!0,cancelable:!0});e.addEventListener(sp,e=>n?.(e),{once:!0}),el(e,t),t.defaultPrevented?u.current=!1:i.onClose()}},"handleSelect");return(0,f.jsx)(sh,{...a,ref:l,disabled:r,onClick:Q(e.onClick,c),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:Q(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:Q(e.onKeyDown,e=>{r||e.target!==e.currentTarget||(""===s.searchRef.current||" "!==e.key)&&iU.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},"MenuItem")),sh=p.forwardRef(iW(function(e,t){let{__scopeMenu:r,disabled:n=!1,textValue:a,...o}=e,i=sa(sf,r),s=i1(r),l=p.useRef(null),u=O(t,l),[c,d]=p.useState(!1),[m,h]=p.useState("");return p.useEffect(()=>{let e=l.current;e&&h((e.textContent??"").trim())},[o.children]),(0,f.jsx)(iY.ItemSlot,{scope:r,disabled:n,textValue:a??m,children:(0,f.jsx)(iI,{asChild:!0,...s,focusable:!n,children:(0,f.jsx)(es.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...o,ref:u,onPointerMove:Q(e.onPointerMove,sz(e=>{n?i.onItemLeave(e):(i.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Q(e.onPointerLeave,sz(e=>i.onItemLeave(e))),onFocus:Q(e.onFocus,()=>d(!0)),onBlur:Q(e.onBlur,()=>d(!1))})})})},"MenuItemImpl")),sy=p.forwardRef(iW(function(e,t){let{checked:r=!1,onCheckedChange:n,...a}=e;return(0,f.jsx)(sj,{scope:e.__scopeMenu,checked:r,children:(0,f.jsx)(sm,{role:"menuitemcheckbox","aria-checked":sM(r)?"mixed":r,...a,ref:t,"data-state":sI(r),onSelect:Q(a.onSelect,()=>n?.(!!sM(r)||!r),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),[sv,sg]=iQ("MenuRadioGroup",{value:void 0,onValueChange:iW(()=>{},"onValueChange")}),sb=p.forwardRef(iW(function(e,t){let{value:r,onValueChange:n,...a}=e,o=ef(n);return(0,f.jsx)(sv,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,f.jsx)(sc,{...a,ref:t})})},"MenuRadioGroup")),sx=p.forwardRef(iW(function(e,t){let{value:r,...n}=e,a=sg("MenuRadioItem",e.__scopeMenu),o=r===a.value;return(0,f.jsx)(sj,{scope:e.__scopeMenu,checked:o,children:(0,f.jsx)(sm,{role:"menuitemradio","aria-checked":o,...n,ref:t,"data-state":sI(o),onSelect:Q(n.onSelect,()=>a.onValueChange?.(r),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),sw="MenuItemIndicator",[sj,sO]=iQ(sw,{checked:!1}),sS=p.forwardRef(iW(function(e,t){let{__scopeMenu:r,forceMount:n,...a}=e,o=sO(sw,r);return(0,f.jsx)(rg,{present:n||sM(o.checked)||!0===o.checked,children:(0,f.jsx)(es.span,{...a,ref:t,"data-state":sI(o.checked)})})},"MenuItemIndicator")),sk=p.forwardRef(iW(function(e,t){let{__scopeMenu:r,...n}=e;return(0,f.jsx)(es.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})},"MenuSeparator")),sE="MenuSub",[sP,sA]=iQ(sE),sD=iW(e=>{let{__scopeMenu:t,children:r,open:n=!1,onOpenChange:a}=e,o=i3(sE,t),i=i0(t),[s,l]=p.useState(null),[u,c]=p.useState(null),d=ef(a);return p.useEffect(()=>(!1===o.open&&d(!1),()=>d(!1)),[o.open,d]),(0,f.jsx)(rr,{...i,children:(0,f.jsx)(i2,{scope:t,open:n,onOpenChange:d,content:u,onContentChange:c,children:(0,f.jsx)(sP,{scope:t,contentId:eq(),triggerId:eq(),trigger:s,onTriggerChange:l,children:r})})})},"MenuSub"),sC="MenuSubTrigger",sT=p.forwardRef(iW(function(e,t){let r=i3(sC,e.__scopeMenu),n=i5(sC,e.__scopeMenu),a=sA(sC,e.__scopeMenu),o=sa(sC,e.__scopeMenu),i=p.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=p.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);p.useEffect(()=>c,[c]),p.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]);let d=O(t,a.onTriggerChange);return(0,f.jsx)(i8,{asChild:!0,...u,children:(0,f.jsx)(sh,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?a.contentId:void 0,"data-state":sR(r.open),...e,ref:d,onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:Q(e.onPointerMove,sz(t=>{o.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||i.current||(o.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),c()},100)))})),onPointerLeave:Q(e.onPointerLeave,sz(e=>{c();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,a="right"===n,i=t[a?"left":"right"],l=t[a?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:i,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:i,y:t.bottom}],side:n}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:Q(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||(""===o.searchRef.current||" "!==t.key)&&iK[n.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})},"MenuSubTrigger")),sN=p.forwardRef(iW(function(e,t){let r=se(sr,e.__scopeMenu),{forceMount:n=r.forceMount,align:a="start",...o}=e,i=i3(sr,e.__scopeMenu),s=i5(sr,e.__scopeMenu),l=sA("MenuSubContent",e.__scopeMenu),u=p.useRef(null),c=O(t,u);return(0,f.jsx)(iY.Provider,{scope:e.__scopeMenu,children:(0,f.jsx)(rg,{present:n||i.open,children:(0,f.jsx)(iY.Slot,{scope:e.__scopeMenu,children:(0,f.jsx)(su,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:c,align:a,side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&u.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Q(e.onFocusOutside,e=>{e.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Q(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:Q(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=iG[s.dir].includes(e.key);t&&r&&(i.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())})})})})})},"MenuSubContent"));function sR(e){return e?"open":"closed"}function sM(e){return"indeterminate"===e}function sI(e){return sM(e)?"indeterminate":e?"checked":"unchecked"}function s_(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function sL(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function sF(e,t,r){let n=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=r?e.indexOf(r):-1,o=sL(e,Math.max(a,0));1===n.length&&(o=o.filter(e=>e!==r));let i=o.find(e=>e.toLowerCase().startsWith(n.toLowerCase()));return i!==r?i:void 0}function sB(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let i=t[e],s=t[o],l=i.x,u=i.y,c=s.x,d=s.y;u>n!=d>n&&r<(c-l)*(n-u)/(d-u)+l&&(a=!a)}return a}function sV(e,t){return!!t&&sB({x:e.clientX,y:e.clientY},t)}function sz(e){return t=>"mouse"===t.pointerType?e(t):void 0}iW(sR,"getOpenState"),iW(sM,"isIndeterminate"),iW(sI,"getCheckedState"),iW(s_,"focusFirst"),iW(sL,"wrapArray"),iW(sF,"getNextMatch"),iW(sB,"isPointInPolygon"),iW(sV,"isPointerInGraceArea"),iW(sz,"whenMouse");var sW=Object.defineProperty,sU=(e,t)=>sW(e,"name",{value:t,configurable:!0}),s$="DropdownMenu",[sH,sK]=en(s$,[iJ]),sG=iJ(),[sq,sY]=sH(s$),sX=sU(e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:a,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,l=sG(t),u=p.useRef(null),[c,d]=rT({prop:a,defaultProp:o??!1,onChange:i,caller:s$});return(0,f.jsx)(sq,{scope:t,triggerId:eq(),triggerRef:u,contentId:eq(),open:c,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,f.jsx)(i6,{...l,open:c,onOpenChange:d,dir:n,modal:s,children:r})})},"DropdownMenu"),sZ=p.forwardRef(sU(function(e,t){let{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,o=sY("DropdownMenuTrigger",r),i=sG(r),s=O(t,o.triggerRef);return(0,f.jsx)(i8,{asChild:!0,...i,children:(0,f.jsx)(es.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:s,onPointerDown:Q(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:Q(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})},"DropdownMenuTrigger")),sQ=sU(e=>{let{__scopeDropdownMenu:t,...r}=e,n=sG(t);return(0,f.jsx)(st,{...n,...r})},"DropdownMenuPortal"),sJ=p.forwardRef(sU(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=sY("DropdownMenuContent",r),o=sG(r),i=p.useRef(!1);return(0,f.jsx)(so,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...n,ref:t,onCloseAutoFocus:Q(e.onCloseAutoFocus,e=>{i.current||a.triggerRef.current?.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:Q(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!a.modal||n)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),s0=p.forwardRef(sU(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=sG(r);return(0,f.jsx)(sc,{...a,...n,ref:t})},"DropdownMenuGroup")),s1=p.forwardRef(sU(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=sG(r);return(0,f.jsx)(sd,{...a,...n,ref:t})},"DropdownMenuLabel")),s2=p.forwardRef(sU(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=sG(r);return(0,f.jsx)(sm,{...a,...n,ref:t})},"DropdownMenuItem")),s3=p.forwardRef(sU(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=sG(r);return(0,f.jsx)(sy,{...a,...n,ref:t})},"DropdownMenuCheckboxItem")),s4=p.forwardRef(sU(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=sG(r);return(0,f.jsx)(sb,{...a,...n,ref:t})},"DropdownMenuRadioGroup")),s5=p.forwardRef(sU(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=sG(r);return(0,f.jsx)(sx,{...a,...n,ref:t})},"DropdownMenuRadioItem")),s6=p.forwardRef(sU(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=sG(r);return(0,f.jsx)(sS,{...a,...n,ref:t})},"DropdownMenuItemIndicator")),s8=p.forwardRef(sU(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=sG(r);return(0,f.jsx)(sk,{...a,...n,ref:t})},"DropdownMenuSeparator")),s9=sU(e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:a,defaultOpen:o}=e,i=sG(t),[s,l]=rT({prop:n,defaultProp:o??!1,onChange:a,caller:"DropdownMenuSub"});return(0,f.jsx)(sD,{...i,open:s,onOpenChange:l,children:r})},"DropdownMenuSub"),s7=p.forwardRef(sU(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=sG(r);return(0,f.jsx)(sT,{...a,...n,ref:t})},"DropdownMenuSubTrigger")),le=p.forwardRef(sU(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=sG(r);return(0,f.jsx)(sN,{...a,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuSubContent"));function lt(){return(lt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function lr(e){if(null==e)throw TypeError("Cannot destructure "+e);return e}function ln(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function la(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function lo(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function li(e){lr(e);var t=lt({},e);return(0,f.jsx)(sX,ln({"data-slot":"dropdown-menu"},t))}function ls(e){lr(e);var t=lt({},e);return(0,f.jsx)(sQ,ln({"data-slot":"dropdown-menu-portal"},t))}function ll(e){lr(e);var t=lt({},e);return(0,f.jsx)(sZ,ln({"data-slot":"dropdown-menu-trigger"},t))}function lu(e){var t=e.className,r=e.sideOffset,n=lo(e,["className","sideOffset"]);return(0,f.jsx)(sQ,{children:(0,f.jsx)(sJ,ln({"data-slot":"dropdown-menu-content",sideOffset:void 0===r?4:r,className:(0,g.cn)("z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",t)},n))})}function lc(e){lr(e);var t=lt({},e);return(0,f.jsx)(s0,ln({"data-slot":"dropdown-menu-group"},t))}function ld(e){var t=e.className,r=e.inset,n=e.variant,a=lo(e,["className","inset","variant"]);return(0,f.jsx)(s2,ln({"data-slot":"dropdown-menu-item","data-inset":r,"data-variant":void 0===n?"default":n,className:(0,g.cn)("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!",t)},a))}function lf(e){var t=e.className,r=e.children,n=e.checked,a=lo(e,["className","children","checked"]);return(0,f.jsxs)(s3,la(ln({"data-slot":"dropdown-menu-checkbox-item",className:(0,g.cn)("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),checked:n},a),{children:[(0,f.jsx)("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:(0,f.jsx)(s6,{children:(0,f.jsx)(o1.A,{className:"size-4"})})}),r]}))}function lp(e){lr(e);var t=lt({},e);return(0,f.jsx)(s4,ln({"data-slot":"dropdown-menu-radio-group"},t))}function lm(e){var t=e.className,r=e.children,n=lo(e,["className","children"]);return(0,f.jsxs)(s5,la(ln({"data-slot":"dropdown-menu-radio-item",className:(0,g.cn)("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t)},n),{children:[(0,f.jsx)("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:(0,f.jsx)(s6,{children:(0,f.jsx)(o2,{className:"size-2 fill-current"})})}),r]}))}function lh(e){var t=e.className,r=e.inset,n=lo(e,["className","inset"]);return(0,f.jsx)(s1,ln({"data-slot":"dropdown-menu-label","data-inset":r,className:(0,g.cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t)},n))}function ly(e){var t=e.className,r=lo(e,["className"]);return(0,f.jsx)(s8,ln({"data-slot":"dropdown-menu-separator",className:(0,g.cn)("-mx-1 my-1 h-px bg-border",t)},r))}function lv(e){var t=e.className,r=lo(e,["className"]);return(0,f.jsx)("span",ln({"data-slot":"dropdown-menu-shortcut",className:(0,g.cn)("ml-auto text-xs tracking-widest text-muted-foreground",t)},r))}function lg(e){lr(e);var t=lt({},e);return(0,f.jsx)(s9,ln({"data-slot":"dropdown-menu-sub"},t))}function lb(e){var t=e.className,r=e.inset,n=e.children,a=lo(e,["className","inset","children"]);return(0,f.jsxs)(s7,la(ln({"data-slot":"dropdown-menu-sub-trigger","data-inset":r,className:(0,g.cn)("flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",t)},a),{children:[n,(0,f.jsx)(o3.A,{className:"ml-auto size-4"})]}))}function lx(e){var t=e.className,r=lo(e,["className"]);return(0,f.jsx)(le,ln({"data-slot":"dropdown-menu-sub-content",className:(0,g.cn)("z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",t)},r))}var lw=Object.defineProperty,lj=(e,t)=>lw(e,"name",{value:t,configurable:!0}),lO="Tabs",[lS,lk]=en(lO,[iC]),lE=iC(),[lP,lA]=lS(lO),lD=p.forwardRef(lj(function(e,t){let{__scopeTabs:r,value:n,onValueChange:a,defaultValue:o,orientation:i="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=id(s),[d,p]=rT({prop:n,onChange:a,defaultProp:o??"",caller:lO});return(0,f.jsx)(lP,{scope:r,baseId:eq(),value:d,onValueChange:p,orientation:i,dir:c,activationMode:l,children:(0,f.jsx)(es.div,{dir:c,"data-orientation":i,...u,ref:t})})},"Tabs")),lC=p.forwardRef(lj(function(e,t){let{__scopeTabs:r,loop:n=!0,...a}=e,o=lA("TabsList",r),i=lE(r);return(0,f.jsx)(iR,{asChild:!0,...i,orientation:o.orientation,dir:o.dir,loop:n,children:(0,f.jsx)(es.div,{role:"tablist","aria-orientation":o.orientation,...a,ref:t})})},"TabsList")),lT=p.forwardRef(lj(function(e,t){let{__scopeTabs:r,value:n,disabled:a=!1,...o}=e,i=lA("TabsTrigger",r),s=lE(r),l=lR(i.baseId,n),u=lM(i.baseId,n),c=n===i.value;return(0,f.jsx)(iI,{asChild:!0,...s,focusable:!a,active:c,children:(0,f.jsx)(es.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:l,...o,ref:t,onMouseDown:Q(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():(e.currentTarget.focus(),i.onValueChange(n))}),onKeyDown:Q(e.onKeyDown,e=>{!a&&e.target===e.currentTarget&&[" ","Enter"].includes(e.key)&&i.onValueChange(n)}),onFocus:Q(e.onFocus,()=>{let e="manual"!==i.activationMode;c||a||!e||i.onValueChange(n)})})})},"TabsTrigger")),lN=p.forwardRef(lj(function(e,t){let{__scopeTabs:r,value:n,forceMount:a,children:o,...i}=e,s=lA("TabsContent",r),l=lR(s.baseId,n),u=lM(s.baseId,n),c=n===s.value,d=p.useRef(c);return p.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(rg,{present:a||c,children:({present:r})=>(0,f.jsx)(es.div,{"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!r,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:r&&o})})},"TabsContent"));function lR(e,t){return`${e}-trigger-${t}`}function lM(e,t){return`${e}-content-${t}`}function lI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function l_(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function lL(e){var t=e.className,r=e.orientation,n=void 0===r?"horizontal":r,a=l_(e,["className","orientation"]);return(0,f.jsx)(lD,lI({"data-slot":"tabs","data-orientation":n,orientation:n,className:(0,g.cn)("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",t)},a))}lj(lR,"makeTriggerId"),lj(lM,"makeContentId");var lF=v("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function lB(e){var t=e.className,r=e.variant,n=void 0===r?"default":r,a=l_(e,["className","variant"]);return(0,f.jsx)(lC,lI({"data-slot":"tabs-list","data-variant":n,className:(0,g.cn)(lF({variant:n}),t)},a))}function lV(e){var t=e.className,r=l_(e,["className"]);return(0,f.jsx)(lT,lI({"data-slot":"tabs-trigger",className:(0,g.cn)("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",t)},r))}function lz(e){var t=e.className,r=l_(e,["className"]);return(0,f.jsx)(lN,lI({"data-slot":"tabs-content",className:(0,g.cn)("flex-1 outline-none",t)},r))}function lW(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function lU(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function l$(e){var t=e.className,r=lU(e,["className"]);return(0,f.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,f.jsx)("table",lW({"data-slot":"table",className:(0,g.cn)("w-full caption-bottom text-sm",t)},r))})}function lH(e){var t=e.className,r=lU(e,["className"]);return(0,f.jsx)("thead",lW({"data-slot":"table-header",className:(0,g.cn)("[&_tr]:border-b",t)},r))}function lK(e){var t=e.className,r=lU(e,["className"]);return(0,f.jsx)("tbody",lW({"data-slot":"table-body",className:(0,g.cn)("[&_tr:last-child]:border-0",t)},r))}function lG(e){var t=e.className,r=lU(e,["className"]);return(0,f.jsx)("tfoot",lW({"data-slot":"table-footer",className:(0,g.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t)},r))}function lq(e){var t=e.className,r=lU(e,["className"]);return(0,f.jsx)("tr",lW({"data-slot":"table-row",className:(0,g.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",t)},r))}function lY(e){var t=e.className,r=lU(e,["className"]);return(0,f.jsx)("th",lW({"data-slot":"table-head",className:(0,g.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t)},r))}function lX(e){var t=e.className,r=lU(e,["className"]);return(0,f.jsx)("td",lW({"data-slot":"table-cell",className:(0,g.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t)},r))}function lZ(e){var t=e.className,r=lU(e,["className"]);return(0,f.jsx)("caption",lW({"data-slot":"table-caption",className:(0,g.cn)("mt-4 text-sm text-muted-foreground",t)},r))}function lQ(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function lJ(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function l0(e){var t,r,n=e.title,a=e.label,o=e.onClose,i=e.closeLabel,s=void 0===i?"Close":i,l=e.className,u=e.children,c=lJ(e,["title","label","onClose","closeLabel","className","children"]);return(0,f.jsxs)("div",(t=lQ({"data-slot":"modal-header",className:(0,g.cn)("relative flex shrink-0 flex-col gap-1 border-b px-6 py-4 pr-14 text-left",l)},c),r=r={children:[a?(0,f.jsx)("p",{className:"text-xs text-muted-foreground",children:a}):null,n?(0,f.jsx)("h2",{className:"text-lg leading-snug font-semibold",children:n}):null,u,o?(0,f.jsx)("button",{type:"button",onClick:o,"aria-label":s,title:s,className:"absolute top-3 right-3 inline-flex size-8 items-center justify-center rounded-md text-muted-foreground outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50",children:(0,f.jsx)(aS.A,{className:"size-4","aria-hidden":"true"})}):null]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}function l1(e){var t=e.className,r=lJ(e,["className"]);return(0,f.jsx)("div",lQ({"data-slot":"modal-body",className:(0,g.cn)("min-h-0 flex-1 overflow-y-auto px-6 py-4",t)},r))}function l2(e){var t=e.className,r=lJ(e,["className"]);return(0,f.jsx)("div",lQ({"data-slot":"modal-footer",className:(0,g.cn)("flex shrink-0 flex-wrap items-center justify-end gap-2 border-t px-6 py-4",t)},r))}var l3=r(8032),l4=(0,ar.A)("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"}]]),l5=(0,ar.A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),l6={info:l3.A,success:ao.A,warning:l4,error:l5};function l8(e){var t,r,n=e.kind,a=e.title,o=e.subtitle,i=e.actionLabel,s=e.onAction,l=e.onClose,u=e.closeLabel,c=void 0===u?"Close":u,d=e.statusLabel,m=e.className,h=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["kind","title","subtitle","actionLabel","onAction","onClose","closeLabel","statusLabel","className"]),y="error"===n?"error":"success"===n?"success":"warning"===n||"warning-alt"===n?"warning":"info",v=p.useId(),b=!!(i||l),x=l6[y];return(0,f.jsxs)(aw,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({variant:y,"data-kind":y,role:b?"alertdialog":"alert","aria-labelledby":a?v:void 0,"aria-label":a?void 0:d,className:(0,g.cn)("grid-cols-[auto_1fr_auto] items-center gap-x-3",m)},h),r=r={children:[(0,f.jsx)(x,{"aria-hidden":"true"}),(0,f.jsxs)("div",{className:"col-start-2 min-w-0",children:[a?(0,f.jsx)(aj,{id:v,children:a}):null,o?(0,f.jsx)(aO,{children:o}):null]}),(0,f.jsxs)("div",{className:"col-start-3 flex items-center gap-1",children:[i?(0,f.jsx)(q,{type:"button",variant:"ghost",size:"sm",onClick:s,children:i}):null,l?(0,f.jsx)(q,{type:"button",variant:"ghost",size:"icon-sm",onClick:l,"aria-label":c,title:c,children:(0,f.jsx)(aS.A,{"aria-hidden":"true"})}):null]})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}function l9(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function l7(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function ue(e){var t=e.className,r=l7(e,["className"]);return(0,f.jsx)("header",l9({"data-slot":"app-header",className:(0,g.cn)("relative flex h-12 items-center bg-card text-foreground",t)},r))}function ut(e){var t=e.className,r=l7(e,["className"]);return(0,f.jsx)("span",l9({"data-slot":"app-header-name",className:(0,g.cn)("flex h-12 items-center truncate px-4 text-sm font-semibold",t)},r))}function ur(e){var t=e.className,r=l7(e,["className"]);return(0,f.jsx)("div",l9({"data-slot":"app-header-bar",className:(0,g.cn)("flex h-full items-center",t)},r))}function un(e){var t=e.className,r=e.type,n=e["aria-label"],a=e.title,o=l7(e,["className","type","aria-label","title"]);return(0,f.jsx)("button",l9({"data-slot":"app-header-action",type:void 0===r?"button":r,"aria-label":n,title:null!=a?a:n,className:(0,g.cn)("inline-flex size-12 shrink-0 cursor-pointer items-center justify-center border-0 bg-transparent text-current outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset [&_svg]:size-4",t)},o))}var ua=Object.defineProperty,uo=(e,t)=>ua(e,"name",{value:t,configurable:!0}),ui="Checkbox",[us,ul]=en(ui),[uu,uc]=us(ui);function ud(e){let{__scopeCheckbox:t,checked:r,children:n,defaultChecked:a,disabled:o,form:i,name:s,onCheckedChange:l,required:u,value:c="on",internal_do_not_use_render:d}=e,[m,h]=rT({prop:r,defaultProp:a??!1,onChange:l,caller:ui}),[y,v]=p.useState(null),[g,b]=p.useState(null),[x,w]=p.useState(null),j=!y||!!i||!!y.closest("form"),O={checked:m,disabled:o,setChecked:h,control:y,setControl:v,name:s,form:i,value:c,userClick:x,onUserClick:w,required:u,defaultChecked:!uv(a)&&a,isFormControl:j,bubbleInput:g,setBubbleInput:b};return(0,f.jsx)(uu,{scope:t,...O,children:uy(d)?d(O):n})}uo(ud,"CheckboxProvider");var uf=p.forwardRef(uo(function({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},a){let{control:o,value:i,disabled:s,checked:l,required:u,setControl:c,setChecked:d,onUserClick:m,isFormControl:h,bubbleInput:y}=uc("CheckboxTrigger",e),v=O(a,c),g=p.useRef(l);return p.useEffect(()=>{let e=o?.form;if(e){let t=uo(()=>d(g.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[o,d]),(0,f.jsx)(es.button,{type:"button",role:"checkbox","aria-checked":uv(l)?"mixed":l,"aria-required":u,"data-state":ug(l),"data-disabled":s?"":void 0,disabled:s,value:i,...n,ref:v,onKeyDown:Q(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:Q(r,e=>{let t=e.isPropagationStopped();m({requestedChecked:!!uv(l)||!l,hasConsumerStoppedPropagation:t}),d(e=>!!uv(e)||!e),y&&h&&!t&&e.stopPropagation()})})},"CheckboxTrigger")),up=p.forwardRef(uo(function(e,t){let{__scopeCheckbox:r,name:n,checked:a,defaultChecked:o,required:i,disabled:s,value:l,onCheckedChange:u,form:c,...d}=e;return(0,f.jsx)(ud,{__scopeCheckbox:r,checked:a,defaultChecked:o,disabled:s,required:i,onCheckedChange:u,name:n,form:c,value:l,internal_do_not_use_render:({isFormControl:e})=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(uf,{...d,ref:t,__scopeCheckbox:r}),e&&(0,f.jsx)(uh,{__scopeCheckbox:r})]})})},"Checkbox")),um=p.forwardRef(uo(function(e,t){let{__scopeCheckbox:r,forceMount:n,...a}=e,o=uc("CheckboxIndicator",r);return(0,f.jsx)(rg,{present:n||uv(o.checked)||!0===o.checked,children:(0,f.jsx)(es.span,{"data-state":ug(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),uh=p.forwardRef(uo(function({__scopeCheckbox:e,onClick:t,...r},n){let{control:a,userClick:o,checked:i,defaultChecked:s,required:l,disabled:u,name:c,value:d,form:m,bubbleInput:h,setBubbleInput:y}=uc("CheckboxBubbleInput",e),v=O(n,y),g=t3(a),b=p.useRef(!1),x=p.useRef(i),w=p.useRef(o),j=p.useRef(null);p.useEffect(()=>{if(!h)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(!e)return;let t=x.current!==i;x.current=i;let r=null!==o&&o!==w.current;if(w.current=o,r)j.current=t?null:o,t&&(h.indeterminate=uv(i),e.call(h,!uv(i)&&i)),h.dispatchEvent(new Event("click",{bubbles:!o.hasConsumerStoppedPropagation}));else if(t){let t=j.current;j.current=null;let r=t?.requestedChecked===i;b.current=!0,h.indeterminate=uv(i),e.call(h,!uv(i)&&i),h.dispatchEvent(new Event("click",{bubbles:!(r&&t.hasConsumerStoppedPropagation)})),b.current=!1}},[h,i,o]);let S=p.useRef(!uv(i)&&i);return(0,f.jsx)(es.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??S.current,required:l,disabled:u,name:c,value:d,form:m,...r,tabIndex:-1,ref:v,onClick:Q(t,e=>{b.current&&e.stopPropagation()}),style:{...r.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function uy(e){return"function"==typeof e}function uv(e){return"indeterminate"===e}function ug(e){return uv(e)?"indeterminate":e?"checked":"unchecked"}function ub(e){var t,r,n=e.className,a=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["className"]);return(0,f.jsx)(up,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({"data-slot":"checkbox",className:(0,g.cn)("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",n)},a),r=r={children:(0,f.jsx)(um,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:(0,f.jsx)(o1.A,{className:"size-3.5"})})},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}function ux(e){var t=e.className,r=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["className"]);return(0,f.jsx)("div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({"data-slot":"skeleton",className:(0,g.cn)("animate-pulse rounded-md bg-accent",t)},r))}uo(uy,"isFunction"),uo(uv,"isIndeterminate"),uo(ug,"getState");var uw=r(9150),uj=Object.defineProperty,uO=(e,t)=>uj(e,"name",{value:t,configurable:!0}),uS="Collapsible",[uk,uE]=en(uS),[uP,uA]=uk(uS),uD=p.forwardRef(uO(function(e,t){let{__scopeCollapsible:r,open:n,defaultOpen:a,disabled:o,onOpenChange:i,...s}=e,[l,u]=rT({prop:n,defaultProp:a??!1,onChange:i,caller:uS});return(0,f.jsx)(uP,{scope:r,disabled:o,contentId:eq(),open:l,onOpenToggle:p.useCallback(()=>u(e=>!e),[u]),children:(0,f.jsx)(es.div,{"data-state":uM(l),"data-disabled":o?"":void 0,...s,ref:t})})},"Collapsible")),uC=p.forwardRef(uO(function(e,t){let{__scopeCollapsible:r,...n}=e,a=uA("CollapsibleTrigger",r);return(0,f.jsx)(es.button,{type:"button","aria-controls":a.open?a.contentId:void 0,"aria-expanded":a.open||!1,"data-state":uM(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...n,ref:t,onClick:Q(e.onClick,a.onOpenToggle)})},"CollapsibleTrigger")),uT="CollapsibleContent",uN=p.forwardRef(uO(function(e,t){let{forceMount:r,...n}=e,a=uA(uT,e.__scopeCollapsible);return(0,f.jsx)(rg,{present:r||a.open,children:({present:e})=>(0,f.jsx)(uR,{...n,ref:t,present:e})})},"CollapsibleContent")),uR=p.forwardRef(uO(function(e,t){let{__scopeCollapsible:r,present:n,children:a,...o}=e,i=uA(uT,r),[s,l]=p.useState(n),u=p.useRef(null),c=O(t,u),d=p.useRef(0),m=d.current,h=p.useRef(0),y=h.current,v=i.open||s,g=p.useRef(v),b=p.useRef(void 0);return p.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),eu(()=>{let e=u.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,g.current||(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),l(n)}},[i.open,n]),(0,f.jsx)(es.div,{"data-state":uM(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!v,...o,ref:c,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:v&&a})},"CollapsibleContentImpl"));function uM(e){return e?"open":"closed"}uO(uM,"getState");var uI=Object.defineProperty,u_=(e,t)=>uI(e,"name",{value:t,configurable:!0}),uL="vertical",uF="horizontal",uB="Accordion",uV=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[uz,{useGetCollection:uW,createCollectionScope:uU}]=ir(uB),[u$,uH]=en(uB,[uU,uE]),uK=uE(),uG=p.forwardRef(u_(function(e,t){let{type:r,...n}=e;return(0,f.jsx)(uz.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,f.jsx)(uJ,{...n,ref:t}):(0,f.jsx)(uQ,{...n,ref:t})})},"Accordion")),[uq,uY]=u$(uB),[uX,uZ]=u$(uB,{collapsible:!1}),uQ=p.forwardRef(u_(function(e,t){let{value:r,defaultValue:n,onValueChange:a=u_(()=>{},"onValueChange"),collapsible:o=!1,...i}=e,[s,l]=rT({prop:r,defaultProp:n??"",onChange:a,caller:uB});return(0,f.jsx)(uq,{scope:e.__scopeAccordion,value:p.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:p.useCallback(()=>o&&l(""),[o,l]),children:(0,f.jsx)(uX,{scope:e.__scopeAccordion,collapsible:o,children:(0,f.jsx)(u2,{...i,ref:t})})})},"AccordionImplSingle")),uJ=p.forwardRef(u_(function(e,t){let{value:r,defaultValue:n,onValueChange:a=u_(()=>{},"onValueChange"),...o}=e,[i,s]=rT({prop:r,defaultProp:n??[],onChange:a,caller:uB}),l=p.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=p.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,f.jsx)(uq,{scope:e.__scopeAccordion,value:i,onItemOpen:l,onItemClose:u,children:(0,f.jsx)(uX,{scope:e.__scopeAccordion,collapsible:!0,children:(0,f.jsx)(u2,{...o,ref:t})})})},"AccordionImplMultiple")),[u0,u1]=u$(uB),u2=p.forwardRef(u_(function(e,t){let{__scopeAccordion:r,disabled:n,dir:a,orientation:o=uL,...i}=e,s=O(p.useRef(null),t),l=uW(r),u="ltr"===id(a),c=Q(e.onKeyDown,e=>{if(!uV.includes(e.key))return;let t=l(),r=e.target,n=t.filter(([,e])=>!e.element.disabled),a=n.findIndex(([,e])=>e.element===r),i=n.size;if(-1===a)return;e.preventDefault();let s=a,c=i-1,d=u_(()=>{(s=a+1)>c&&(s=0)},"moveNext"),f=u_(()=>{(s=a-1)<0&&(s=c)},"movePrev");switch(e.key){case"Home":s=0;break;case"End":s=c;break;case"ArrowRight":o===uF&&(u?d():f());break;case"ArrowDown":o===uL&&d();break;case"ArrowLeft":o===uF&&(u?f():d());break;case"ArrowUp":o===uL&&f()}let p=s%i;n.at(p)?.element.focus()});return(0,f.jsx)(u0,{scope:r,disabled:n,direction:a,orientation:o,children:(0,f.jsx)(uz.Slot,{scope:r,children:(0,f.jsx)(es.div,{...i,"data-orientation":o,ref:s,onKeyDown:n?void 0:c})})})},"AccordionImpl")),u3="AccordionItem",[u4,u5]=u$(u3),u6=p.forwardRef(u_(function(e,t){let{__scopeAccordion:r,value:n,...a}=e,o=u1(u3,r),i=uY(u3,r),s=uK(r),l=eq(),u=n&&i.value.includes(n)||!1,c=o.disabled||e.disabled;return(0,f.jsx)(u4,{scope:r,open:u,disabled:c,triggerId:l,children:(0,f.jsx)(uD,{"data-orientation":o.orientation,"data-state":ct(u),...s,...a,ref:t,disabled:c,open:u,onOpenChange:e=>{e?i.onItemOpen(n):i.onItemClose(n)}})})},"AccordionItem")),u8=p.forwardRef(u_(function(e,t){let{__scopeAccordion:r,...n}=e,a=u1(uB,r),o=u5("AccordionHeader",r);return(0,f.jsx)(es.h3,{"data-orientation":a.orientation,"data-state":ct(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:t})},"AccordionHeader")),u9="AccordionTrigger",u7=p.forwardRef(u_(function(e,t){let{__scopeAccordion:r,...n}=e,a=u1(uB,r),o=u5(u9,r),i=uZ(u9,r),s=uK(r);return(0,f.jsx)(uz.ItemSlot,{scope:r,children:(0,f.jsx)(uC,{"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":a.orientation,id:o.triggerId,...s,...n,ref:t})})},"AccordionTrigger")),ce=p.forwardRef(u_(function(e,t){let{__scopeAccordion:r,...n}=e,a=u1(uB,r),o=u5("AccordionContent",r),i=uK(r);return(0,f.jsx)(uN,{role:"region","aria-labelledby":o.triggerId,"data-orientation":a.orientation,...i,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})},"AccordionContent"));function ct(e){return e?"open":"closed"}function cr(){return(cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function cn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function ca(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function co(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function ci(e){var t=e;if(null==t)throw TypeError("Cannot destructure "+t);var r=cr({},e);return(0,f.jsx)(uG,cn({"data-slot":"accordion"},r))}function cs(e){var t=e.className,r=co(e,["className"]);return(0,f.jsx)(u6,cn({"data-slot":"accordion-item",className:(0,g.cn)("border-b last:border-b-0",t)},r))}function cl(e){var t=e.className,r=e.children,n=co(e,["className","children"]);return(0,f.jsx)(u8,{className:"flex",children:(0,f.jsxs)(u7,ca(cn({"data-slot":"accordion-trigger",className:(0,g.cn)("flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",t)},n),{children:[r,(0,f.jsx)(uw.A,{className:"pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200"})]}))})}function cu(e){var t=e.className,r=e.children,n=co(e,["className","children"]);return(0,f.jsx)(ce,ca(cn({"data-slot":"accordion-content",className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"},n),{children:(0,f.jsx)("div",{className:(0,g.cn)("pt-0 pb-4",t),children:r})}))}u_(ct,"getState");var cc=(0,ar.A)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),cd=(0,ar.A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);function cf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function cp(e){var t,r,n,a=e.showPasswordLabel,o=e.hidePasswordLabel,i=e.containerClassName,s=e.className,l=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["showPasswordLabel","hidePasswordLabel","containerClassName","className"]),u=function(e){if(Array.isArray(e))return e}(t=p.useState(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return cf(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return cf(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],m=c?void 0===o?"Hide password":o:void 0===a?"Show password":a;return(0,f.jsxs)("div",{className:(0,g.cn)("relative",i),children:[(0,f.jsx)(nX,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},l),n=n={containerClassName:"w-full",type:c?"text":"password",className:(0,g.cn)("pr-10",s)},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r)),(0,f.jsx)("button",{type:"button","aria-label":m,title:m,onClick:function(){return d(function(e){return!e})},className:"absolute right-1 bottom-0 inline-flex size-9 items-center justify-center rounded-md text-muted-foreground outline-none hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50",children:c?(0,f.jsx)(cc,{className:"size-4","aria-hidden":"true"}):(0,f.jsx)(cd,{className:"size-4","aria-hidden":"true"})})]})}function cm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function ch(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function cy(e){var t=e.className,r=ch(e,["className"]);return(0,f.jsx)("ul",cm({"data-slot":"menu-list",role:"menu",className:(0,g.cn)("m-0 flex list-none flex-col p-0",t)},r))}var cv="flex min-h-10 w-full cursor-pointer items-center gap-2 border-0 bg-transparent px-4 py-2 text-left text-sm text-foreground no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset disabled:pointer-events-none disabled:opacity-50";function cg(e){var t,r,n=e.className,a=e.href,o=e.target,i=e.rel,s=e.selected,l=e.children,u=e.type,c=ch(e,["className","href","target","rel","selected","children","type"]);return(0,f.jsx)("li",{role:"none","data-slot":"menu-item",children:a?(0,f.jsx)("a",{role:"menuitem",href:a,target:o,rel:null!=i?i:"_blank"===o?"noopener noreferrer":void 0,"aria-current":s||void 0,className:(0,g.cn)(cv,s&&"font-semibold",n),children:l}):(0,f.jsx)("button",(t=cm({role:"menuitem",type:void 0===u?"button":u,"aria-current":s||void 0,className:(0,g.cn)(cv,s&&"font-semibold",n)},c),r=r={children:l},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))})}function cb(e){var t=e.className,r=ch(e,["className"]);return(0,f.jsx)("li",cm({role:"separator","data-slot":"menu-divider",className:(0,g.cn)("my-1 h-px bg-border",t)},r))}function cx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function cw(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function cj(e){var t=e.className,r=cw(e,["className"]);return(0,f.jsx)("div",cx({"data-slot":"structured-list",role:"table",className:(0,g.cn)("flex w-full flex-col",t)},r))}function cO(e){var t=e.className,r=cw(e,["className"]);return(0,f.jsx)("div",cx({"data-slot":"structured-list-head",role:"rowgroup",className:(0,g.cn)("border-b text-xs font-semibold text-muted-foreground",t)},r))}function cS(e){var t=e.className,r=cw(e,["className"]);return(0,f.jsx)("div",cx({"data-slot":"structured-list-body",role:"rowgroup",className:(0,g.cn)("flex flex-col",t)},r))}function ck(e){var t=e.className,r=cw(e,["className"]);return(0,f.jsx)("div",cx({"data-slot":"structured-list-row",role:"row",className:(0,g.cn)("flex items-center border-b border-border last:border-b-0",t)},r))}function cE(e){var t=e.className,r=e.head,n=cw(e,["className","head"]);return(0,f.jsx)("div",cx({"data-slot":"structured-list-cell",role:void 0!==r&&r?"columnheader":"cell",className:(0,g.cn)("min-w-0 flex-1 px-3 py-2 text-sm",t)},n))}var cP=Object.defineProperty,cA=(e,t)=>cP(e,"name",{value:t,configurable:!0}),cD="Radio",[cC,cT]=en(cD),[cN,cR]=cC(cD);function cM(e){let{__scopeRadio:t,checked:r=!1,children:n,disabled:a,form:o,name:i,onCheck:s,required:l,value:u="on",internal_do_not_use_render:c}=e,[d,m]=p.useState(null),[h,y]=p.useState(null),[v,g]=p.useState(null),b=!d||!!o||!!d.closest("form"),x={checked:r,disabled:a,required:l,name:i,form:o,value:u,control:d,setControl:m,userClick:v,onUserClick:g,isFormControl:b,bubbleInput:h,setBubbleInput:y,onCheck:cA(()=>s?.(),"onCheck")};return(0,f.jsx)(cN,{scope:t,...x,children:cF(c)?c(x):n})}cA(cM,"RadioProvider");var cI=p.forwardRef(cA(function({__scopeRadio:e,onClick:t,...r},n){let{checked:a,disabled:o,value:i,setControl:s,onCheck:l,onUserClick:u,isFormControl:c,bubbleInput:d}=cR("RadioTrigger",e),p=O(n,s);return(0,f.jsx)(es.button,{type:"button",role:"radio","aria-checked":a,"data-state":cB(a),"data-disabled":o?"":void 0,disabled:o,value:i,...r,ref:p,onClick:Q(t,e=>{let t=e.isPropagationStopped();a||(u({hasConsumerStoppedPropagation:t}),l()),d&&c&&!t&&e.stopPropagation()})})},"RadioTrigger")),c_=p.forwardRef(cA(function(e,t){let{__scopeRadio:r,forceMount:n,...a}=e,o=cR("RadioIndicator",r);return(0,f.jsx)(rg,{present:n||o.checked,children:(0,f.jsx)(es.span,{"data-state":cB(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t})})},"RadioIndicator")),cL=p.forwardRef(cA(function({__scopeRadio:e,onClick:t,...r},n){let{control:a,checked:o,required:i,disabled:s,name:l,value:u,form:c,bubbleInput:d,setBubbleInput:m,userClick:h}=cR("RadioBubbleInput",e),y=O(n,m),v=t3(a),g=p.useRef(!1),b=p.useRef(o),x=p.useRef(h),w=p.useRef(null);p.useEffect(()=>{if(!d)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(!e)return;let t=b.current!==o;b.current=o;let r=null!==h&&h!==x.current;if(x.current=h,r)w.current=t?null:h,t&&e.call(d,o),d.dispatchEvent(new Event("click",{bubbles:!h.hasConsumerStoppedPropagation}));else if(t){let t=w.current;w.current=null;let r=o&&null!==t;g.current=!0,e.call(d,o),d.dispatchEvent(new Event("click",{bubbles:!(r&&t.hasConsumerStoppedPropagation)})),g.current=!1}},[d,o,h]);let j=p.useRef(o);return(0,f.jsx)(es.input,{type:"radio","aria-hidden":!0,defaultChecked:j.current,required:i,disabled:s,name:l,value:u,form:c,...r,tabIndex:-1,ref:y,onClick:Q(t,e=>{g.current&&e.stopPropagation()}),style:{...r.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"RadioBubbleInput"));function cF(e){return"function"==typeof e}function cB(e){return e?"checked":"unchecked"}cA(cF,"isFunction"),cA(cB,"getState");var cV=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],cz="RadioGroup",[cW,cU]=en(cz,[iC,cT]),c$=iC(),cH=cT(),[cK,cG]=cW(cz),cq=p.forwardRef(cA(function(e,t){let{__scopeRadioGroup:r,name:n,form:a,defaultValue:o,value:i,required:s=!1,disabled:l=!1,orientation:u,dir:c,loop:d=!0,onValueChange:m,...h}=e,y=c$(r),v=id(c),[g,b]=rT({prop:i,defaultProp:o??null,onChange:m,caller:cz}),[x,w]=p.useState(null),j=O(t,w),S=p.useRef(g);return p.useEffect(()=>{let e=a?x?.ownerDocument.getElementById(a):x?.closest("form");if(e instanceof HTMLFormElement){let t=cA(()=>b(S.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[x,a,b]),(0,f.jsx)(cK,{scope:r,name:n,form:a,required:s,disabled:l,value:g,onValueChange:b,children:(0,f.jsx)(iR,{asChild:!0,...y,orientation:u,dir:v,loop:d,children:(0,f.jsx)(es.div,{role:"radiogroup","aria-required":s,"aria-orientation":u,"data-disabled":l?"":void 0,dir:v,...h,ref:j})})})},"RadioGroup"));function cY(e){let{__scopeRadioGroup:t,value:r,disabled:n,children:a,internal_do_not_use_render:o}=e,i=cG("RadioGroupItemProvider",t),s=cH(t),l=i.disabled||n;return(0,f.jsx)(cM,{...s,checked:i.value===r,disabled:l,required:i.required,name:i.name,form:i.form,value:r,onCheck:()=>i.onValueChange(r),internal_do_not_use_render:o,children:a})}cA(cY,"RadioGroupItemProvider");var cX=p.forwardRef(cA(function(e,t){let{__scopeRadioGroup:r,...n}=e,a=c$(r),o=cH(r),{checked:i,disabled:s}=cR("RadioGroupItemTrigger",o.__scopeRadio),l=p.useRef(null),u=O(t,l),c=p.useRef(!1);return p.useEffect(()=>{let e=cA(e=>{cV.includes(e.key)&&(c.current=!0)},"handleKeyDown"),t=cA(()=>c.current=!1,"handleKeyUp");return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,f.jsx)(iI,{asChild:!0,...a,focusable:!s,active:i,children:(0,f.jsx)(cI,{...o,...n,ref:u,onKeyDown:Q(n.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:Q(n.onFocus,()=>{c.current&&l.current?.click()})})})},"RadioGroupItemTrigger")),cZ=p.forwardRef(cA(function(e,t){let{__scopeRadioGroup:r,value:n,disabled:a,...o}=e;return(0,f.jsx)(cY,{__scopeRadioGroup:r,value:n,disabled:a,internal_do_not_use_render:({isFormControl:e})=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(cX,{...o,ref:t,__scopeRadioGroup:r}),e&&(0,f.jsx)(cQ,{__scopeRadioGroup:r})]})})},"RadioGroupItem")),cQ=p.forwardRef(cA(function(e,t){let{__scopeRadioGroup:r,...n}=e,a=cH(r);return(0,f.jsx)(cL,{...a,...n,ref:t})},"RadioGroupItemBubbleInput")),cJ=p.forwardRef(cA(function(e,t){let{__scopeRadioGroup:r,...n}=e,a=cH(r);return(0,f.jsx)(c_,{...a,...n,ref:t})},"RadioGroupIndicator"));function c0(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function c1(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function c2(e){var t=e.className,r=c1(e,["className"]);return(0,f.jsx)(cq,c0({"data-slot":"radio-group",className:(0,g.cn)("grid gap-3",t)},r))}function c3(e){var t,r,n=e.className,a=c1(e,["className"]);return(0,f.jsx)(cZ,(t=c0({"data-slot":"radio-group-item",className:(0,g.cn)("aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40",n)},a),r=r={children:(0,f.jsx)(cJ,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:(0,f.jsx)(o2,{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary"})})},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}var c4=r(8428);function c5(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c6(e){var t,r=e.label,n=e.value,a=e.defaultValue,o=e.onValueChange,i=e.clearLabel,s=void 0===i?"Clear search":i,l=e.className,u=e.containerClassName,c=e.onKeyDown,d=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["label","value","defaultValue","onValueChange","clearLabel","className","containerClassName","onKeyDown"]),m=function(e){if(Array.isArray(e))return e}(t=p.useState(void 0===a?"":a))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return c5(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c5(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=m[0],y=m[1],v=void 0!==n,b=v?n:h,x=function(e){v||y(e),null==o||o(e)};return(0,f.jsxs)("div",{"data-slot":"search-input",className:(0,g.cn)("relative flex items-center",u),children:[(0,f.jsx)(c4.A,{className:"pointer-events-none absolute left-3 size-4 text-muted-foreground","aria-hidden":"true"}),(0,f.jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({type:"search",role:"searchbox","aria-label":r,value:b,onChange:function(e){return x(e.target.value)},onKeyDown:function(e){null==c||c(e),"Escape"===e.key&&b&&(e.stopPropagation(),x(""))},className:(0,g.cn)("h-9 w-full min-w-0 rounded-md border border-input bg-transparent pr-9 pl-9 text-sm shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-search-cancel-button]:hidden",l)},d)),b?(0,f.jsx)("button",{type:"button","aria-label":s,title:s,onClick:function(){return x("")},className:"absolute right-1 inline-flex size-7 items-center justify-center rounded-md text-muted-foreground outline-none hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50",children:(0,f.jsx)(aS.A,{className:"size-4","aria-hidden":"true"})}):null]})}},9663(e){function t(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(e=a(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if((void 0===e?"undefined":t(e))!=="object")return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var i in e)r.call(e,i)&&e[i]&&(o=a(o,i));return o}(i)))}return e}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"===t(define.amd)&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()},5923(e,t,r){"use strict";r.d(t,{Ip:()=>f,_l:()=>d,gX:()=>c,ng:()=>u});var n=r(2974),a=r(240),o=r(2298),i=r(345),s=r(9405);function l(e){let t,r="object"==typeof e[0]?e.shift():new(0,i.FG);if("string"==typeof e[0])t=e.shift();else{let e=r.getEras();t=e[e.length-1]}return[r,t,e.shift(),e.shift(),e.shift()]}class u{#r;constructor(...e){let[t,r,a,o,i]=l(e);this.calendar=t,this.era=r,this.year=a,this.month=o,this.day=i,(0,n.AU)(this)}copy(){return this.era?new u(this.calendar,this.era,this.year,this.month,this.day):new u(this.calendar,this.year,this.month,this.day)}add(e){return(0,n.WQ)(this,e)}subtract(e){return(0,n.Re)(this,e)}set(e){return(0,n.hZ)(this,e)}cycle(e,t,r){return(0,n.xy)(this,e,t,r)}toDate(e){return(0,s.ay)(this,e)}toString(){return(0,o.$T)(this)}compare(e){return(0,a.SE)(this,e)}}class c{#r;constructor(e=0,t=0,r=0,a=0){this.hour=e,this.minute=t,this.second=r,this.millisecond=a,(0,n.Rb)(this)}copy(){return new c(this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,n.tY)(this,e)}subtract(e){return(0,n.YP)(this,e)}set(e){return(0,n.ib)(this,e)}cycle(e,t,r){return(0,n.gt)(this,e,t,r)}toString(){return(0,o.ot)(this)}compare(e){return(0,a.Nu)(this,e)}}class d{#r;constructor(...e){let[t,r,a,o,i]=l(e);this.calendar=t,this.era=r,this.year=a,this.month=o,this.day=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,n.AU)(this)}copy(){return this.era?new d(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new d(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,n.WQ)(this,e)}subtract(e){return(0,n.Re)(this,e)}set(e){return(0,n.hZ)((0,n.ib)(this,e),e)}cycle(e,t,r){switch(e){case"era":case"year":case"month":case"day":return(0,n.xy)(this,e,t,r);default:return(0,n.gt)(this,e,t,r)}}toDate(e,t){return(0,s.ay)(this,e,t)}toString(){return(0,o.qk)(this)}compare(e){let t=(0,a.SE)(this,e);return 0===t?(0,a.Nu)(this,(0,s.tR)(e)):t}}class f{#r;constructor(...e){let[t,r,a,o,i]=l(e),s=e.shift(),u=e.shift();this.calendar=t,this.era=r,this.year=a,this.month=o,this.day=i,this.timeZone=s,this.offset=u,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,n.AU)(this)}copy(){return this.era?new f(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new f(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,n.E0)(this,e)}subtract(e){return(0,n.d_)(this,e)}set(e,t){return(0,n.D8)(this,e,t)}cycle(e,t,r){return(0,n.XH)(this,e,t,r)}toDate(){return(0,s.cd)(this)}toString(){return(0,o.e6)(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(0,s.uB)(e,this.timeZone).toDate().getTime()}}},345(e,t,r){"use strict";r.d(t,{FG:()=>c,LA:()=>s,U_:()=>i,f5:()=>l,rG:()=>o});var n=r(5923),a=r(5504);function o(e,t,r,n){let a=(t=s(e,t))-1,o=-2;return r<=2?o=0:i(t)&&(o=-1),1721425+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*r-362)/12+o+n)}function i(e){return e%4==0&&(e%100!=0||e%400==0)}function s(e,t){return"BC"===e?1-t:t}function l(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}let u={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class c{fromJulianDay(e){let t=e-1721426,r=Math.floor(t/146097),s=(0,a.z)(t,146097),u=Math.floor(s/36524),c=(0,a.z)(s,36524),d=Math.floor(c/1461),f=Math.floor((0,a.z)(c,1461)/365),[p,m]=l(400*r+100*u+4*d+f+ +(4!==u&&4!==f)),h=e-o(p,m,1,1),y=2;e<o(p,m,3,1)?y=0:i(m)&&(y=1);let v=Math.floor(((h+y)*12+373)/367),g=e-o(p,m,v,1)+1;return new(0,n.ng)(p,m,v,g)}toJulianDay(e){return o(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return u[i(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return i(e.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}},9405(e,t,r){"use strict";r.d(t,{Ou:()=>w,Tr:()=>f,Yd:()=>m,ay:()=>p,cd:()=>b,gw:()=>h,oU:()=>s,tR:()=>y,uB:()=>g,yP:()=>v});var n=r(5923),a=r(2974),o=r(345),i=r(240);function s(e){return e=v(e,new(0,o.FG)),l((0,o.LA)(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function l(e,t,r,n,a,o,i){let s=new Date;return s.setUTCHours(n,a,o,i),s.setUTCFullYear(e,t-1,r),s.getTime()}function u(e,t){if("UTC"===t)return 0;if(e>0&&t===(0,i.Xj)()&&!(0,i.rS)())return -6e4*new Date(e).getTimezoneOffset();let{year:r,month:n,day:a,hour:o,minute:s,second:u}=d(e,t);return l(r,n,a,o,s,u,0)-1e3*Math.floor(e/1e3)}let c=new Map;function d(e,t){let r=c.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),c.set(t,r));let n=r.formatToParts(new Date(e)),a={};for(let e of n)"literal"!==e.type&&(a[e.type]=e.value);return{year:"BC"===a.era||"B"===a.era?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:"24"===a.hour?0:+a.hour,minute:+a.minute,second:+a.second}}function f(e,t,r="compatible"){var n,a,l;let c=y(e);if("UTC"===t)return s(c);if(t===(0,i.Xj)()&&"compatible"===r&&!(0,i.rS)()){c=v(c,new(0,o.FG));let e=new Date,t=(0,o.LA)(c.era,c.year);return e.setFullYear(t,c.month-1,c.day),e.setHours(c.hour,c.minute,c.second,c.millisecond),e.getTime()}let p=s(c),m=u(p-864e5,t),h=u(p+864e5,t),g=(n=c,((a=p-m)==(l=p-h)?[a]:[a,l]).filter(e=>{var r;let a;return r=n,a=d(e,t),r.year===a.year&&r.month===a.month&&r.day===a.day&&r.hour===a.hour&&r.minute===a.minute&&r.second===a.second}));if(1===g.length)return g[0];if(g.length>1)switch(r){case"compatible":case"earlier":return g[0];case"later":return g[g.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(p-m,p-h);case"compatible":case"later":return Math.max(p-m,p-h);case"reject":throw RangeError("No such absolute time found")}}function p(e,t,r="compatible"){return new Date(f(e,t,r))}function m(e,t){let r=u(e,t),a=new Date(e+r),o=a.getUTCFullYear(),i=a.getUTCMonth()+1,s=a.getUTCDate(),l=a.getUTCHours(),c=a.getUTCMinutes(),d=a.getUTCSeconds(),f=a.getUTCMilliseconds();return new(0,n.Ip)(o<1?"BC":"AD",o<1?-o+1:o,i,s,t,r,l,c,d,f)}function h(e){return new(0,n.ng)(e.calendar,e.era,e.year,e.month,e.day)}function y(e,t){let r=0,a=0,o=0,i=0;if("timeZone"in e)({hour:r,minute:a,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:a,second:o,millisecond:i}=t),new(0,n._l)(e.calendar,e.era,e.year,e.month,e.day,r,a,o,i)}function v(e,t){if((0,i.Jg)(e.calendar,t))return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,(0,a.AU)(n),n}function g(e,t,r){return e instanceof n.Ip?e.timeZone===t?e:x(e,t):m(f(e,t,r),t)}function b(e){return new Date(s(e)-e.offset)}function x(e,t){return v(m(s(e)-e.offset,t),e.calendar)}function w(e){return x(e,(0,i.Xj)())}},227(e,t,r){"use strict";let n,a;r.d(t,{d:()=>X});var o=r(5923),i=r(345);class s extends i.FG{fromJulianDay(e){let t=super.fromJulianDay(e),r=(0,i.LA)(t.era,t.year);return new(0,o.ng)(this,r- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(l(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(l(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function l(e){let[t,r]=(0,i.f5)(e.year+-543);return new(0,o.ng)(t,r,e.month,e.day)}function u(e,t,r,n){return e+365*t+Math.floor(t/4)+30*(r-1)+n-1}function c(e,t){let r=Math.floor(4*(t-e)/1461);t>=u(e,r+1,1,1)&&r++;let n=1+Math.floor((t-u(e,r,1,1))/30),a=t+1-u(e,r,n,1);return[r,n,a]}function d(e){return Math.floor(e%4/3)}function f(e,t){return t%13!=0?30:d(e)+5}class p{fromJulianDay(e){let[t,r,n]=c(1723856,e),a="AM";return t<=0&&(a="AA",t+=5500),new(0,o.ng)(this,a,t,r,n)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=5500),u(1723856,t,e.month,e.day)}getDaysInMonth(e){return f(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+d(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class m extends p{fromJulianDay(e){let[t,r,n]=c(1723856,e);return t+=5500,new(0,o.ng)(this,"AA",t,r,n)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class h extends p{fromJulianDay(e){let[t,r,n]=c(1824665,e),a="CE";return t<=0&&(a="BCE",t=1-t),new(0,o.ng)(this,a,t,r,n)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),u(1824665,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),f(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}var y=r(5504);let v=765433;function g(e){return 7>(0,y.z)(7*e+1,19)}function b(e){let t=Math.floor((235*e-234)/19),r=29*t+Math.floor((12084+13753*t)/25920);return 3>(0,y.z)(3*(r+1),7)&&(r+=1),r}function x(e){let t,r;return b(e)+(t=b(e-1),r=b(e),b(e+1)-r==356?2:+(r-t==382))}function w(e){return x(e+1)-x(e)}function j(e,t){if(t>=6&&!g(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let r=function(e){let t=w(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===r?30:29:3===t?0===r?29:30:6===t?30*!!g(e):30}class O{fromJulianDay(e){let t=e-347997,r=Math.floor((25920*t/v*19+234)/235)+1,n=x(r),a=Math.floor(t-n);for(;a<1;)a=Math.floor(t-(n=x(--r)));let i=1,s=0;for(;s<a;)s+=j(r,i),i++;let l=a-(s-=j(r,--i));return new(0,o.ng)(this,r,i,l)}toJulianDay(e){let t=x(e.year);for(let r=1;r<e.month;r++)t+=j(e.year,r);return t+e.day+347997}getDaysInMonth(e){return j(e.year,e.month)}getMonthsInYear(e){return g(e.year)?13:12}getDaysInYear(e){return w(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(g(t.year)&&!g(e.year)&&t.month>6?e.month--:!g(t.year)&&g(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class S extends i.FG{fromJulianDay(e){let t,r,n,a=super.fromJulianDay(e),s=a.year-78,l=e-(0,i.rG)(a.era,a.year,1,1);if(l<80?(s--,l+=(t=(0,i.U_)(a.year-1)?31:30)+155+90+10):(t=(0,i.U_)(a.year)?31:30,l-=80),l<t)r=1,n=l+1;else{let e=l-t;e<155?(r=Math.floor(e/31)+2,n=e%31+1):(e-=155,r=Math.floor(e/30)+7,n=e%30+1)}return new(0,o.ng)(this,s,r,n)}toJulianDay(e){let t,r,n=e.year+78,[a,o]=(0,i.f5)(n);return((0,i.U_)(o)?(t=31,r=(0,i.rG)(a,o,3,21)):(t=30,r=(0,i.rG)(a,o,3,22)),1===e.month)?r+e.day-1:(r+=t+31*Math.min(e.month-2,5),e.month>=8&&(r+=(e.month-7)*30),r+=e.day-1)}getDaysInMonth(e){return 1===e.month&&(0,i.U_)(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}function k(e,t,r,n){return n+Math.ceil(29.5*(r-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function E(e,t,r){let n=Math.floor((30*(r-t)+10646)/10631),a=Math.min(12,Math.ceil((r-(29+k(t,n,1,1)))/29.5)+1),i=r-k(t,n,a,1)+1;return new(0,o.ng)(e,n,a,i)}function P(e){return(14+11*e)%30<11}class A{fromJulianDay(e){return E(this,1948440,e)}toJulianDay(e){return k(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&P(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return P(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class D extends A{fromJulianDay(e){return E(this,1948439,e)}toJulianDay(e){return k(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function C(e){return 460322+a[e-1300]}function T(e,t){return(n[e-1300]&1<<11-(t-1))==0?29:30}function N(e,t){let r=C(e);for(let n=1;n<t;n++)r+=T(e,n);return r}function R(e){return a[e+1-1300]-a[e-1300]}class M extends A{constructor(){if(super(),this.identifier="islamic-umalqura",n||(n=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!a){a=new Uint32Array(301);let e=0;for(let t=1300;t<=1600;t++){a[t-1300]=e;for(let r=1;r<=12;r++)e+=T(t,r)}}}fromJulianDay(e){let t=e-1948440,r=C(1300),n=C(1600);if(t<r||t>n)return super.fromJulianDay(e);{let e=1299,r=1,n=1;for(;n>0;){n=t-C(++e)+1;let a=R(e);if(n===a){r=12;break}if(n<a){let t=T(e,r);for(r=1;n>t;)n-=t,t=T(e,++r);break}}return new(0,o.ng)(this,e,r,t-N(e,r)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+N(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):T(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):R(e.year)}}let I=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],L=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],F=[1867,1911,1925,1988,2018],B=["meiji","taisho","showa","heisei","reiwa"];function V(e){let t=I.findIndex(([t,r,n])=>!!(e.year<t)||e.year===t&&!!(e.month<r)||e.year===t&&e.month===r&&!!(e.day<n));return -1===t?I.length-1:0===t?0:t-1}function z(e){let t=F[B.indexOf(e.era)];if(!t)throw Error("Unknown era: "+e.era);return new(0,o.ng)(e.year+t,e.month,e.day)}class W extends i.FG{fromJulianDay(e){let t=super.fromJulianDay(e),r=V(t);return new(0,o.ng)(this,B[r],t.year-F[r],t.month,t.day)}toJulianDay(e){return super.toJulianDay(z(e))}balanceDate(e){let t=z(e),r=V(t);B[r]!==e.era&&(e.era=B[r],e.year=t.year-F[r]),this.constrainDate(e)}constrainDate(e){let t=B.indexOf(e.era),r=L[t];if(null!=r){let[n,a,o]=r,i=n-F[t];e.year=Math.max(1,Math.min(i,e.year)),e.year===i&&(e.month=Math.min(a,e.month),e.month===a&&(e.day=Math.min(o,e.day)))}if(1===e.year&&t>=0){let[,r,n]=I[t];e.month=Math.max(r,e.month),e.month===r&&(e.day=Math.max(n,e.day))}}getEras(){return B}getYearsInEra(e){let t=B.indexOf(e.era),r=I[t],n=I[t+1];if(null==n)return 9999-r[0]+1;let a=n[0]-r[0];return(e.month<n[1]||e.month===n[1]&&e.day<n[2])&&a++,a}getDaysInMonth(e){return super.getDaysInMonth(z(e))}getMinimumMonthInYear(e){let t=U(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=U(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function U(e){if(1===e.year)return I[B.indexOf(e.era)]}let $=[0,31,62,93,124,155,186,216,246,276,306,336];class H{fromJulianDay(e){let t=e-1948320,r=1+Math.floor((33*t+3)/12053),n=t-(365*(r-1)+Math.floor((8*r+21)/33)),a=n<216?Math.floor(n/31):Math.floor((n-6)/30),i=n-$[a]+1;return new(0,o.ng)(this,r,a+1,i)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=$[e.month-1],t+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>(0,y.z)(25*e.year+11,33)?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function K(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function G(e){let t=e-1911;return t>0?["minguo",t]:["before_minguo",1-t]}class q extends i.FG{fromJulianDay(e){let t=super.fromJulianDay(e),[r,n]=G((0,i.LA)(t.era,t.year));return new(0,o.ng)(this,r,n,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Y(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,r]=G(K(e));e.era=t,e.year=r}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(Y(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function Y(e){let[t,r]=(0,i.f5)(K(e));return new(0,o.ng)(t,r,e.month,e.day)}function X(e){switch(e){case"buddhist":return new s;case"ethiopic":return new p;case"ethioaa":return new m;case"coptic":return new h;case"hebrew":return new O;case"indian":return new S;case"islamic-civil":return new A;case"islamic-tbla":return new D;case"islamic-umalqura":return new M;case"japanese":return new W;case"persian":return new H;case"roc":return new q;default:return new(0,i.FG)}}},2974(e,t,r){"use strict";r.d(t,{AU:()=>u,D8:()=>k,E0:()=>j,Rb:()=>m,Re:()=>d,WQ:()=>o,XH:()=>S,YP:()=>g,d_:()=>O,gt:()=>x,hZ:()=>f,ib:()=>p,tY:()=>v,xy:()=>b});var n=r(9405),a=r(345);function o(e,t){let r=e.copy(),n="hour"in r?y(r,t):0;i(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,s(r),l(r),r.day+=7*(t.weeks||0),r.day+=t.days||0,r.day+=n,function(e){for(;e.day<1;)e.month--,s(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,s(e)}(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let a=r.calendar.getYearsInEra(r);if(r.year>a){let e=r.calendar.isInverseEra?.(r);r.year=a,r.month=e?1:r.calendar.getMonthsInYear(r),r.day=e?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let o=r.calendar.getMonthsInYear(r);return r.month>o&&(r.month=o,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function i(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function s(e){for(;e.month<1;)i(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,i(e,1)}function l(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function u(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),l(e)}function c(e){let t={};for(let r in e)"number"==typeof e[r]&&(t[r]=-e[r]);return t}function d(e,t){return o(e,c(t))}function f(e,t){let r=e.copy();return null!=t.era&&(r.era=t.era),null!=t.year&&(r.year=t.year),null!=t.month&&(r.month=t.month),null!=t.day&&(r.day=t.day),u(r),r}function p(e,t){let r=e.copy();return null!=t.hour&&(r.hour=t.hour),null!=t.minute&&(r.minute=t.minute),null!=t.second&&(r.second=t.second),null!=t.millisecond&&(r.millisecond=t.millisecond),m(r),r}function m(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function h(e,t){let r=e%t;return r<0&&(r+=t),r}function y(e,t){let r;return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=h(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=h(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=h(e.minute,60),r=Math.floor(e.hour/24),e.hour=h(e.hour,24),r}function v(e,t){let r=e.copy();return y(r,t),r}function g(e,t){return v(e,c(t))}function b(e,t,r,n){let a=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),o=t.indexOf(e.era);if(o<0)throw Error("Invalid era: "+e.era);o=w(o,r,0,t.length-1,n?.round),a.era=t[o],u(a);break}case"year":a.calendar.isInverseEra?.(a)&&(r=-r),a.year=w(e.year,r,-1/0,9999,n?.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=w(e.month,r,1,e.calendar.getMonthsInYear(e),n?.round);break;case"day":a.day=w(e.day,r,1,e.calendar.getDaysInMonth(e),n?.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),u(a),a}function x(e,t,r,n){let a=e.copy();switch(t){case"hour":{let t=e.hour,o=0,i=23;if(n?.hourCycle===12){let e=t>=12;o=12*!!e,i=e?23:11}a.hour=w(t,r,o,i,n?.round);break}case"minute":a.minute=w(e.minute,r,0,59,n?.round);break;case"second":a.second=w(e.second,r,0,59,n?.round);break;case"millisecond":a.millisecond=w(e.millisecond,r,0,999,n?.round);break;default:throw Error("Unsupported field "+t)}return a}function w(e,t,r,n,a=!1){if(a){(e+=Math.sign(t))<r&&(e=n);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>n&&(e=r)}else(e+=t)<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function j(e,t){let r;if(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days){let a=o((0,n.tR)(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=(0,n.Tr)(a,e.timeZone)}else r=(0,n.oU)(e)-e.offset;r+=t.milliseconds||0,r+=1e3*(t.seconds||0),r+=6e4*(t.minutes||0),r+=36e5*(t.hours||0);let a=(0,n.Yd)(r,e.timeZone);return(0,n.yP)(a,e.calendar)}function O(e,t){return j(e,c(t))}function S(e,t,r,o){switch(t){case"hour":{let t=0,i=23;if(o?.hourCycle===12){let r=e.hour>=12;t=12*!!r,i=r?23:11}let s=(0,n.tR)(e),l=(0,n.yP)(p(s,{hour:t}),new(0,a.FG)),u=[(0,n.Tr)(l,e.timeZone,"earlier"),(0,n.Tr)(l,e.timeZone,"later")].filter(t=>(0,n.Yd)(t,e.timeZone).day===l.day)[0],c=(0,n.yP)(p(s,{hour:i}),new(0,a.FG)),d=[(0,n.Tr)(c,e.timeZone,"earlier"),(0,n.Tr)(c,e.timeZone,"later")].filter(t=>(0,n.Yd)(t,e.timeZone).day===c.day).pop(),f=(0,n.oU)(e)-e.offset,m=Math.floor(f/36e5),h=f%36e5;return f=36e5*w(m,r,Math.floor(u/36e5),Math.floor(d/36e5),o?.round)+h,(0,n.yP)((0,n.Yd)(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return x(e,t,r,o);case"era":case"year":case"month":case"day":{let a=b((0,n.tR)(e),t,r,o),i=(0,n.Tr)(a,e.timeZone);return(0,n.yP)((0,n.Yd)(i,e.timeZone),e.calendar)}default:throw Error("Unsupported field "+t)}}function k(e,t,r){let a=(0,n.tR)(e),o=p(f(a,t),t);if(0===o.compare(a))return e;let i=(0,n.Tr)(o,e.timeZone,r);return(0,n.yP)((0,n.Yd)(i,e.timeZone),e.calendar)}},240(e,t,r){"use strict";r.d(t,{p9:()=>w,$I:()=>S,RZ:()=>P,tB:()=>f,rS:()=>b,kq:()=>O,Jg:()=>l,Py:()=>A,tF:()=>i,Xj:()=>g,Nu:()=>h,SJ:()=>d,SE:()=>m,ro:()=>o,D:()=>j,ZI:()=>D,Ec:()=>p,cK:()=>u,NV:()=>s,wH:()=>x});var n=r(9405);let a={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function o(e,t){return t=(0,n.yP)(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function i(e,t){return t=(0,n.yP)(t,e.calendar),e=x(e),t=x(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function s(e,t){return l(e.calendar,t.calendar)&&o(e,t)}function l(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function u(e,t){return o(e,p(t))}let c={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function d(e,t,r){let n=Math.ceil(e.calendar.toJulianDay(e)+1-(r?c[r]:function(e){let t=E.get(e);if(!t){if(Intl.Locale){let r=new Intl.Locale(e);if("getWeekInfo"in r&&(t=r.getWeekInfo()))return E.set(e,t),t.firstDay}let r=function(e){if(Intl.Locale){let t=k.get(e);return!t&&(t=new Intl.Locale(e).maximize().region)&&k.set(e,t),t}let t=e.split("-")[1];return"u"===t?void 0:t}(e);if(e.includes("-fw-")){let r=e.split("-fw-")[1].split("-")[0];t="mon"===r?{firstDay:1}:"tue"===r?{firstDay:2}:"wed"===r?{firstDay:3}:"thu"===r?{firstDay:4}:"fri"===r?{firstDay:5}:"sat"===r?{firstDay:6}:{firstDay:0}}else t=e.includes("-ca-iso8601")?{firstDay:1}:{firstDay:r&&a[r]||0};E.set(e,t)}return t.firstDay}(t)))%7;return n<0&&(n+=7),n}function f(e){return(0,n.Yd)(Date.now(),e)}function p(e){return(0,n.gw)(f(e))}function m(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function h(e,t){return y(e)-y(t)}function y(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let v=null;function g(){return null==v&&(v=new Intl.DateTimeFormat().resolvedOptions().timeZone),v}function b(){return!1}function x(e){return e.subtract({days:e.day-1})}function w(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function j(e){return x(e.subtract({months:e.month-1}))}function O(e,t,r){let n=d(e,t,r);return e.subtract({days:n})}function S(e,t,r){return O(e,t,r).add({days:6})}let k=new Map,E=new Map;function P(e,t,r){let n=e.calendar.getDaysInMonth(e);return Math.ceil((d(x(e),t,r)+n)/7)}function A(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function D(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}},2298(e,t,r){"use strict";r.d(t,{$T:()=>p,DP:()=>c,_U:()=>u,e6:()=>h,ot:()=>f,qk:()=>m});var n=r(5923),a=r(9405),o=r(345);let i=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,s=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,l=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function u(e){let t=e.match(i);if(!t){if(l.test(e))throw Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date string: "+e)}let r=new(0,n.ng)(d(t[1],0,9999),d(t[2],1,12),1);return r.day=d(t[3],1,r.calendar.getDaysInMonth(r)),r}function c(e){let t=e.match(s);if(!t){if(l.test(e))throw Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date time string: "+e)}let r=d(t[1],-9999,9999),a=new(0,n._l)(r<1?"BC":"AD",r<1?-r+1:r,d(t[2],1,12),1,t[4]?d(t[4],0,23):0,t[5]?d(t[5],0,59):0,t[6]?d(t[6],0,59):0,t[7]?1e3*d(t[7],0,1/0):0);return a.day=d(t[3],0,a.calendar.getDaysInMonth(a)),a}function d(e,t,r){let n=Number(e);if(n<t||n>r)throw RangeError(`Value out of range: ${t} <= ${n} <= ${r}`);return n}function f(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function p(e){let t,r=(0,a.yP)(e,new(0,o.FG));return t="BC"===r.era?1===r.year?"0000":"-"+String(Math.abs(1-r.year)).padStart(6,"00"):String(r.year).padStart(4,"0"),`${t}-${String(r.month).padStart(2,"0")}-${String(r.day).padStart(2,"0")}`}function m(e){return`${p(e)}T${f(e)}`}function h(e){var t;let r,n,a,o,i;return`${m(e)}${r=0>Math.sign(t=e.offset)?"-":"+",n=Math.floor((t=Math.abs(t))/36e5),a=Math.floor(t%36e5/6e4),o=Math.floor(t%36e5%6e4/1e3),i=`${r}${String(n).padStart(2,"0")}:${String(a).padStart(2,"0")}`,0!==o&&(i+=`:${String(o).padStart(2,"0")}`),i}[${e.timeZone}]`}},5504(e,t,r){"use strict";function n(e,t){return e-t*Math.floor(e/t)}r.d(t,{z:()=>n})},7064(e,t,r){"use strict";function n(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=function e(t){var r,n,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n,A:()=>a});let a=n},1400(e,t,r){"use strict";r.d(t,{A:()=>i});for(var n=new Uint8Array(16),a=[],o=0;o<256;++o)a.push((o+256).toString(16).slice(1));let i=function(e,t,r){return t||e||!crypto.randomUUID?function(e,t,r){var o,i,s,l=null!=(o=null!=(i=(e=e||{}).random)?i:null==(s=e.rng)?void 0:s.call(e))?o:crypto.getRandomValues(n);if(l.length<16)throw Error("Random bytes length must be >= 16");if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError("UUID byte range ".concat(r,":").concat(r+15," is out of buffer bounds"));for(var u=0;u<16;++u)t[r+u]=l[u];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}(l)}(e,t,r):crypto.randomUUID()}},99(e,t,r){"use strict";r.d(t,{Ln:()=>p,Yv:()=>c,rL:()=>d,zC:()=>f});var n=r(9726),a=r(5565),o=r(8048);function i(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function s(e){i(o,n,a,s,l,"next",e)}function l(e){i(o,n,a,s,l,"throw",e)}s(void 0)})}}function l(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function u(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function c(e){return e.replace(/[\/\-@]/g,"_")}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"./start",n=arguments.length>2?arguments[2]:void 0;return s(function(){var a,o,i,s,d,p,m;return u(this,function(u){switch(u.label){case 0:return a=(null==n?void 0:n.maxLoadingTime)&&!(n.maxLoadingTime<=0)?n.maxLoadingTime:6e5,o=void 0,[4,Promise.race([f(e,null==n?void 0:n.importMap),new Promise(function(t,r){o=setTimeout(function(){var t;r(Error("Could not resolve requested script, ".concat(e,", within ").concat((t=a)<1e3?"".concat(t," milliseconds"):t<6e4?"".concat(Math.floor(t/1e3)," seconds"):t<36e5?"".concat(Math.floor(t/6e4)," minutes"):t<864e5?"".concat(Math.floor(t/36e5)," hours"):"".concat(Math.floor(t/864e5)," days"),".")))},a)})])];case 1:var h;if(u.sent(),o&&clearTimeout(o),i=c(e),!((void 0===(h=s=window[i])?"undefined":l(h))==="object"&&null!==h&&"init"in h&&"function"==typeof h.init&&"get"in h&&"function"==typeof h.get))throw console.error(d="The global variable ".concat(i," does not refer to a federated module")),Error(d);return s.init(r.S.default),[4,s.get(t)];case 2:if((void 0===(p=u.sent()())?"undefined":l(p))!=="object"||null===p)throw console.error(m="Container for ".concat(e," did not return an ESM module as expected")),Error(m);return[2,p]}})})()}function f(e,t){return s(function(){var r,i,s,l,d,f,h;return u(this,function(u){switch(u.label){case 0:if("string"!=typeof e||0===e.trim().length)throw console.error("Attempted to call importDynamic() without supplying a package to load"),Error("Attempted to call importDynamic() without supplying a package to load");if(r=c(e),window[r])return[3,7];if(null==t)return[3,1];return s=t,[3,3];case 1:return[4,p()];case 2:s=u.sent(),u.label=3;case 3:if(!(i=s).imports.hasOwnProperty(e))throw console.error(l="Could not find the package ".concat(e," defined in the current importmap")),Error(l);(d=i.imports[e]).startsWith("./")&&(d=window.spaBase+d.substring(1)),f=e in(0,o.uT)().imports,u.label=4;case 4:return u.trys.push([4,6,,7]),[4,new Promise(function(e,t){!function(e,t,r){var n,a,o,i=document.head.querySelector('script[src="'.concat(e,'"]')),s=window[m];if(s||(s=window[m]=new Set([])),i)s.has(e)?(o=function(){n&&i.removeEventListener("load",n),a&&i.removeEventListener("error",a)},n=function(){o(),t(null)},a=function(e){o(),r(e.message)},i.addEventListener("load",n),i.addEventListener("error",a)):(console.warn("Script at ".concat(e," already loaded. Not loading it again.")),t(null));else{s.add(e);var l,u,c,d=document.createElement("script");d.src=e,d.type="text/javascript",d.async=!0;var f=setTimeout(function(){console.error("The script at ".concat(e," did not load within 5 seconds. This may indicate an issue with the imports in the script's entry-point file or with the script's bundler configuration."))},5e3);c=function(){clearTimeout(f),s.delete(e),l&&d.removeEventListener("load",l),u&&d.removeEventListener("error",u)},l=function(){c(),t(null)},u=function(t){c();var n,a="Failed to load script from ".concat(e);console.error(a,t),r(null!=(n=t.message)?n:a)},d.addEventListener("load",l),d.addEventListener("error",u),document.head.appendChild(d)}}(d,e,t)})];case 5:return[2,u.sent()];case 6:return h=u.sent(),f&&(0,n.Vt)({kind:"error",title:(0,a.V)("scriptLoadingFailed","Error: Script failed to load"),description:(0,a.V)("scriptLoadingError","Failed to load overridden script from {{- url}}. Please check that the bundled script is available at the expected URL. Click the button below to reset all import map overrides.",{url:d}),actionButtonLabel:(0,a.V)("resetOverrides","Reset overrides"),onActionButtonClick:function(){(0,o.w_)(),window.location.reload()}}),[2,Promise.reject(h)];case 7:return[2,Promise.resolve()]}})})()}function p(){return s(function(){return u(this,function(e){return[2,(0,o.F$)()]})})()}var m=Symbol("__egen_script_loading")},8048(e,t,r){"use strict";r.d(t,{BX:()=>S,E:()=>j,F$:()=>h,SM:()=>E,fd:()=>w,o5:()=>v,q1:()=>x,tK:()=>y,uT:()=>g,w_:()=>O,xI:()=>b});var n=r(3766);function a(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function o(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){a(i,n,o,s,l,"next",e)}function l(e){a(i,n,o,s,l,"throw",e)}s(void 0)})}}function i(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var s="import-map-override:",l="import-map-overrides-disabled",u="import-map-overrides:change",c=!1,d=null;function f(){return o(function(){var e,t,r,n,a,o,s;return i(this,function(i){switch(i.label){case 0:e=document.querySelectorAll('script[type="systemjs-importmap"]'),t=[],r=0,i.label=1;case 1:if(!(r<e.length))return[3,9];n=e[r],i.label=2;case 2:if(i.trys.push([2,7,,8]),!n.src)return[3,5];return[4,fetch(n.src)];case 3:return a=i.sent(),o=t.push,[4,a.json()];case 4:return o.apply(t,[i.sent()]),[3,6];case 5:n.textContent&&t.push(JSON.parse(n.textContent)),i.label=6;case 6:return[3,8];case 7:return s=i.sent(),console.warn("[import-maps] Failed to parse import map from script tag at index ".concat(r),s),[3,8];case 8:return r++,[3,1];case 9:return[2,p(t)]}})})()}function p(e){var t={imports:{}},r=!0,n=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var s=o.value;(null==s?void 0:s.imports)&&Object.assign(t.imports,s.imports)}}catch(e){n=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw a}}return t}function m(){var e={};try{for(var t=b(),r=0;r<localStorage.length;r++){var n=localStorage.key(r);if(null==n?void 0:n.startsWith(s)){var a=n.slice(s.length);if(!t.includes(a)){var o=localStorage.getItem(n);o&&(e[a]=o)}}}}catch(e){console.warn("[import-maps] Failed to read import-map overrides from localStorage",e)}return{imports:e}}function h(){return o(function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,f()];case 1:if(e=t.sent(),!c)return[2,e];return[2,p([e,null!=d?d:m()])]}})})()}function y(){return o(function(){return i(this,function(e){return[2,f()]})})()}function v(){return o(function(){return i(this,function(e){switch(e.label){case 0:if(!c)return[2,f()];return[4,f()];case 1:return[2,p([e.sent(),m()])]}})})()}function g(e){if(!c)return{imports:{}};if(e){for(var t={},r=0;r<localStorage.length;r++){var n=localStorage.key(r);if(null==n?void 0:n.startsWith(s)){var a=localStorage.getItem(n);a&&(t[n.slice(s.length)]=a)}}return{imports:t}}return m()}function b(){if(!c)return[];try{var e=localStorage.getItem(l);if(e){var t=JSON.parse(e);if(Array.isArray(t))return t}}catch(e){}return[]}function x(e){return!!c&&b().includes(e)}function w(e,t){if(!c)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{localStorage.setItem(s+e,t),window.dispatchEvent(new CustomEvent(u))}catch(e){console.warn("[import-maps] Failed to write import-map override to localStorage",e)}}function j(e){if(!c)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{localStorage.removeItem(s+e);var t=b().filter(function(t){return t!==e});t.length>0?localStorage.setItem(l,JSON.stringify(t)):localStorage.removeItem(l),window.dispatchEvent(new CustomEvent(u))}catch(e){console.warn("[import-maps] Failed to update import-map overrides in localStorage",e)}}function O(){if(!c)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{for(var e=[],t=0;t<localStorage.length;t++){var r=localStorage.key(t);(null==r?void 0:r.startsWith(s))&&e.push(r)}e.forEach(function(e){return localStorage.removeItem(e)}),localStorage.removeItem(l),window.dispatchEvent(new CustomEvent(u))}catch(e){console.warn("[import-maps] Failed to clear import-map overrides from localStorage",e)}}function S(e){if(!c)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{var t=b().filter(function(t){return t!==e});t.length>0?localStorage.setItem(l,JSON.stringify(t)):localStorage.removeItem(l),window.dispatchEvent(new CustomEvent(u))}catch(e){console.warn("[import-maps] Failed to update import-map overrides in localStorage",e)}}var k=!1;function E(){!k&&(k=!0,(c="development"===window.spaEnv&&!(0,n.$)())&&(d=m()))}},101(e,t,r){"use strict";r.d(t,{xI:()=>a.xI,E:()=>a.E,eH:()=>O,SM:()=>a.SM,zU:()=>g,BX:()=>a.BX,w_:()=>a.w_,Y6:()=>b,Yv:()=>n.Yv,tK:()=>a.tK,Ln:()=>n.Ln,FM:()=>v,o5:()=>a.o5,fd:()=>a.fd,Tx:()=>w,KI:()=>j,rL:()=>n.rL,WY:()=>x,F$:()=>a.F$,zC:()=>n.zC,_m:()=>k,q1:()=>a.q1,uT:()=>a.uT});var n=r(99),a=r(8048),o=r(2235),i=r(3766);function s(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function l(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(e){s(o,n,a,i,l,"next",e)}function l(e){s(o,n,a,i,l,"throw",e)}i(void 0)})}}function u(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var c="egen-routes:",d="egen-routes:change",f=!1,p=null;function m(){return l(function(){var e,t,r,n,a,i;return u(this,function(s){switch(s.label){case 0:e=document.querySelectorAll("script[type='egen-routes']"),t=[],r=0,s.label=1;case 1:if(!(r<e.length))return[3,9];n=e[r],s.label=2;case 2:if(s.trys.push([2,7,,8]),a=void 0,!n.src)return[3,5];return[4,fetch(n.src)];case 3:return[4,s.sent().json()];case 4:return a=s.sent(),[3,6];case 5:n.textContent&&(a=JSON.parse(n.textContent)),s.label=6;case 6:return a&&(0,o.S)(a)&&t.push(a),[3,8];case 7:return i=s.sent(),console.warn("[route-maps] Failed to parse routes from script tag at index ".concat(r),i),[3,8];case 8:return r++,[3,1];case 9:return[2,h(t)]}})})()}function h(e){var t={},r=!0,n=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var s=o.value;s&&(void 0===s?"undefined":s&&"u">typeof Symbol&&s.constructor===Symbol?"symbol":typeof s)=="object"&&Object.assign(t,s)}}catch(e){n=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw a}}return t}function y(){return l(function(){var e,t,r,n,a,i,s,d,f,p,m,h;return u(this,function(y){switch(y.label){case 0:e={},y.label=1;case 1:for(y.trys.push([1,3,,4]),t=[],r=0;r<localStorage.length;r++)(null==(n=localStorage.key(r))?void 0:n.startsWith(c))&&(a=localStorage.getItem(n))&&t.push({moduleName:n.slice(c.length),raw:a});return[4,Promise.allSettled(t.map(function(e){var t=e.moduleName,r=e.raw;return l(function(){var e,n;return u(this,function(a){switch(a.label){case 0:if(e=JSON.parse(r),(0,o.j)(e))return[2,{moduleName:t,routes:e}];if(!("string"==typeof e&&e.startsWith("http")))return[3,3];return[4,fetch(e)];case 1:return[4,a.sent().json()];case 2:if(n=a.sent(),(0,o.j)(n))return[2,{moduleName:t,routes:n}];throw Error("".concat(e," did not resolve to a valid EgenAppRoutes object"));case 3:throw Error("Override for ".concat(t," is neither a valid routes object nor a URL"))}})})()}))];case 2:i=y.sent(),s=!0,d=!1,f=void 0;try{for(p=i[Symbol.iterator]();!(s=(m=p.next()).done);s=!0)h=m.value,"fulfilled"===h.status?e[h.value.moduleName]=h.value.routes:console.warn("[route-maps] Failed to load route override",h.reason)}catch(e){d=!0,f=e}finally{try{s||null==p.return||p.return()}finally{if(d)throw f}}return[3,4];case 3:return console.warn("[route-maps] Failed to read route overrides from localStorage",y.sent()),[3,4];case 4:return[2,e]}})})()}function v(){return l(function(){var e,t;return u(this,function(r){switch(r.label){case 0:return[4,m()];case 1:if(e=r.sent(),!f)return[2,e];if(null==p)return[3,2];return t=p,[3,4];case 2:return[4,y()];case 3:t=r.sent(),r.label=4;case 4:return[2,h([e,t])]}})})()}function g(){return l(function(){return u(this,function(e){return[2,m()]})})()}function b(){return l(function(){var e;return u(this,function(t){switch(t.label){case 0:if(!f)return[2,m()];return[4,m()];case 1:return e=[t.sent()],[4,y()];case 2:return[2,h.apply(void 0,[e.concat([t.sent()])])]}})})()}function x(){if(!f)return{};var e={};try{for(var t=0;t<localStorage.length;t++){var r=localStorage.key(t);if(null==r?void 0:r.startsWith(c)){var n=localStorage.getItem(r);n&&(e[r.slice(c.length)]=n)}}}catch(e){console.warn("[route-maps] Failed to read route overrides from localStorage",e)}return e}function w(e,t){if(!f)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{if("string"==typeof t)if(t.startsWith("http"))localStorage.setItem(c+e,JSON.stringify(t));else{var r,n=JSON.parse(t);if(!(0,o.j)(n))return void console.error("The supplied routes for ".concat(e," is not a valid EgenAppRoutes object"),t);localStorage.setItem(c+e,JSON.stringify(n))}else if(r=URL,null!=r&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](t):t instanceof r)localStorage.setItem(c+e,JSON.stringify(t.toString()));else{if(!(0,o.j)(t))return void console.error("Override for ".concat(e," is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL"),t);localStorage.setItem(c+e,JSON.stringify(t))}window.dispatchEvent(new CustomEvent(d))}catch(e){console.warn("[route-maps] Failed to write route override to localStorage",e)}}function j(e){if(!f)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{localStorage.removeItem(c+e),window.dispatchEvent(new CustomEvent(d))}catch(e){console.warn("[route-maps] Failed to remove route override from localStorage",e)}}function O(){if(!f)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{for(var e=[],t=0;t<localStorage.length;t++){var r=localStorage.key(t);(null==r?void 0:r.startsWith(c))&&e.push(r)}e.forEach(function(e){return localStorage.removeItem(e)}),window.dispatchEvent(new CustomEvent(d))}catch(e){console.warn("[route-maps] Failed to clear route overrides from localStorage",e)}}var S=null;function k(){return S||(S=(f="development"===window.spaEnv&&!(0,i.$)())?y().then(function(e){p=e}):Promise.resolve())}},8507(e,t,r){"use strict";r.d(t,{J:()=>o,N:()=>a});var n=r(9726);function a(e){var t=i(e);setTimeout(function(){throw t})}function o(){var e=Error();return function(t){var r=i(t);r.stack+="\nAsync stacktrace:\n".concat(e.stack),a(t)}}function i(e){var t,r;if(null!=(r=Error)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r)return e;if(null===e)return Error("'null' was thrown as an error");if((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"){try{t="Object thrown as error: ".concat(JSON.stringify(e))}catch(r){t="Object thrown as error with the following properties: ".concat(Object.keys(e))}return Error(t)}if(void 0===e)return Error("'undefined' was thrown as an error");return Error(e.toString())}window.onerror=function(e){return console.error("Unexpected error: ",e),(0,n.Vt)({description:null!=e?e:"Oops! An unexpected error occurred.",kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){var t;console.error("Unhandled rejection: ",e.reason),(0,n.Vt)({description:null!=(t=e.reason)?t:"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},9360(e,t,r){"use strict";r.d(t,{dX:()=>n.dX,wE:()=>n.wE,_3:()=>n._3,uN:()=>n.uN,$F:()=>n.$F,Gz:()=>n.Gz,eb:()=>n.eb,Sj:()=>n.Sj,mv:()=>n.mv,yp:()=>l,PQ:()=>n.PQ});var n=r(6014),a=r(4356),o=r(4693);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function l(e){if("string"!=typeof e&&((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)!="object"||!e||!("type"in e)))throw"Unknown expression type ".concat(e,". Expressions must either be a string or pre-compiled string.");var t,r={globals:s({},o.f),isLocalExpression:!1,variables:new Set};return u("string"==typeof e?(0,a.A)(e):e,r),function(e){if(Array.isArray(e))return i(e)}(t=r.variables)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return i(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){switch(e.type){case"UnaryExpression":return r=e,n=t,u(r.argument,n);case"BinaryExpression":return a=e,o=t,[u(a.left,o),u(a.right,o)].filter(Boolean);case"ConditionalExpression":return i=e,l=t,[u(i.consequent,l),u(i.test,l),u(i.alternate,l)].filter(Boolean);case"CallExpression":return d=e,f=t,m=u(d.callee,f),null==(p=d.arguments)||p.map(c(f)),m;case"ArrowFunctionExpression":return function(e,t){var r=s({},t);r.isLocalExpression=!0;var n=null!=(d=null==(p=e.params)?void 0:p.map(c(r)))?d:[],a=null!=(f=u(e.body,r))?f:[];if(a&&Array.isArray(a)){var o=!0,i=!1,l=void 0;try{for(var d,f,p,m,h=a[Symbol.iterator]();!(o=(m=h.next()).done);o=!0){var y=m.value;n.includes(y)||t.variables.add(y)}}catch(e){i=!0,l=e}finally{try{o||null==h.return||h.return()}finally{if(i)throw l}}}}(e,t);case"MemberExpression":return h=e,y=t,u(h.object,y),void((v=s({},y)).isLocalExpression=!0,u(h.property,v));case"ArrayExpression":return g=e,b=t,void(null==(x=g.elements)||x.map(c(b)));case"SequenceExpression":return w=e,j=t,void(null==(O=w.expressions)||O.map(c(j)));case"NewExpression":return S=e,k=t,void(null==(E=S.arguments)||E.map(c(k)));case"Literal":case"TemplateElement":return;case"Identifier":var r,n,a,o,i,l,d,f,p,m,h,y,v,g,b,x,w,j,O,S,k,E,P,A,D,C,T=e,N=t;if(!(T.name in N.globals))if(N.isLocalExpression)return T.name;else N.variables.add(T.name);return;case"TemplateLiteral":return P=e,A=t,void(null==(D=P.expressions)||D.map(c(A)),null==(C=P.quasis)||C.map(c(A)));default:throw"Expression evaluator does not support expression of type '".concat(e.type,"'")}}function c(e){return function(t){return null===t?null:u(t,e)}}},8162(e,t,r){"use strict";r.r(t),r.d(t,{ASSISTANT_MODES:()=>b.wJ8,Accordion:()=>b.nD3,AccordionContent:()=>b.ub_,AccordionItem:()=>b.AsP,AccordionTrigger:()=>b.$m7,ActionMenu:()=>b.WyE,ActionMenuButton:()=>b.EDM,ActionMenuButton2:()=>b.Wjo,ActionableNotificationComponent:()=>b.drd,ActivityIcon:()=>b.npY,AddIcon:()=>b.REV,Alert:()=>b.FcD,AlertDescription:()=>b.TND,AlertTitle:()=>b.XL1,AnimatedHomeBackground:()=>b.BpM,AppHeader:()=>b.jJZ,AppHeaderAction:()=>b.tDv,AppHeaderBar:()=>b.ciK,AppHeaderName:()=>b.ulw,ArrowDownIcon:()=>b.ZLN,ArrowLeftIcon:()=>b.A60,ArrowRightIcon:()=>b.flY,ArrowUpIcon:()=>b.Kpk,AssistantRobotScene:()=>b.JvV,AsyncSelect:()=>b.DWK,AttachmentIcon:()=>b.PtA,Autocomplete:()=>b.jT8,Badge:()=>b.Exy,Breakpoint:()=>b.EA,Button:()=>b.$nd,CalendarHeatMapIcon:()=>b.mmM,CalendarIcon:()=>b.CTc,CardHeader:()=>b.aRn,CardModal:()=>b.oVc,CardModalWarpGlow:()=>b.F$l,CaretDownIcon:()=>b.bDP,CaretLeftIcon:()=>b.eCO,CaretRightIcon:()=>b.JJd,CaretUpIcon:()=>b.SwV,Carousel:()=>b.FNf,CarouselContext:()=>b.Ycj,CascadingNavDropdown:()=>b._PX,ChartAverageIcon:()=>b.ZHE,ChartLineIcon:()=>b.SCH,Checkbox:()=>b.Sc0,CheckmarkFilledIcon:()=>b.FtQ,CheckmarkOutlineIcon:()=>b.pm$,ChevronDownIcon:()=>b.D3D,ChevronLeftIcon:()=>b.YJP,ChevronRightIcon:()=>b.vKP,ChevronUpIcon:()=>b.Mtm,CircularGallery:()=>b.GF9,ClassificationTags:()=>b.QpY,CloseFilledIcon:()=>b.oCk,CloseIcon:()=>b.USm,CloseOutlineIcon:()=>b.Wdn,ColumnWithSearch:()=>b.Fny,Combobox:()=>b.G3_,CompartmentSplitter:()=>b.i_j,ContentSection:()=>b.Fe_,CornerSplitter:()=>b.rGP,CustomOverflowMenu:()=>b.TQT,CustomOverflowMenuItem:()=>b.cxd,DEFAULT_BOOLEAN_OPTIONS:()=>b.ofx,DEFAULT_COMPARTMENT_HEIGHTS:()=>c.eh,DEFAULT_COMPARTMENT_ID:()=>b.hpF,DEFAULT_COMPARTMENT_LIMITS:()=>b.oSs,DEFAULT_OPERATORS:()=>b.whL,DEFAULT_STAGGERED_MENU_AREA:()=>c.fP,DEFAULT_ZONE_SIZES:()=>b.AnT,DecoratedCard:()=>b.mqB,DefaultPageBackground:()=>b.NOx,Dialog:()=>b.lGe,DialogClose:()=>b.HMX,DialogContent:()=>b.Cff,DialogDescription:()=>b.rrK,DialogFooter:()=>b.Esm,DialogHeader:()=>b.c75,DialogOverlay:()=>b.LCd,DialogPortal:()=>b.ZJt,DialogTitle:()=>b.L33,DialogTrigger:()=>b.zMO,DocumentAttachmentIcon:()=>b.Ce6,DocumentIcon:()=>b.pyG,DocumentToolbar:()=>b.PAB,DownloadIcon:()=>b.s3U,DropdownMenu:()=>b.rId,DropdownMenuCheckboxItem:()=>b.hOu,DropdownMenuContent:()=>b.SQm,DropdownMenuGroup:()=>b.Ia5,DropdownMenuItem:()=>b._26,DropdownMenuLabel:()=>b.lpj,DropdownMenuPortal:()=>b.dce,DropdownMenuRadioGroup:()=>b.HrQ,DropdownMenuRadioItem:()=>b.Ht1,DropdownMenuSeparator:()=>b.mBJ,DropdownMenuShortcut:()=>b.V0J,DropdownMenuSub:()=>b.lvB,DropdownMenuSubContent:()=>b.M56,DropdownMenuSubTrigger:()=>b.nVd,DropdownMenuTrigger:()=>b.tyb,DynamicField:()=>b.koC,EditIcon:()=>b.qUP,EgenDatePicker:()=>b.O_s,EgenDateRangePicker:()=>b.tKr,EmptyCard:()=>b.slS,EmptyCardIllustration:()=>b.Ua6,EntityDetailBrowser:()=>b.NIm,ErrorCard:()=>b.JrA,ErrorState:()=>b.W5n,EventScheduleIcon:()=>b.XaH,EventsIcon:()=>b.Jc,FilterBar:()=>b.Qnn,FilterBarDefault:()=>b.vNL,FilterBarDemo:()=>b.RJr,FolderGallery:()=>b.fNA,GESTURE_NAMES:()=>b.rGw,GlobalPageBackground:()=>b.Nqf,GradientBlur:()=>b.wtE,GradientWave:()=>b.GcC,GroupAccessIcon:()=>b.Pyy,GroupIcon:()=>b.nFg,HeroMosaic:()=>b.LdX,HeroTileCard:()=>b.b6Z,HomePictogram:()=>b.KKH,Icon:()=>b.Int,IconButton:()=>b.K0,ImageSwiper:()=>b.QeH,InformationFilledIcon:()=>b._e_,InformationIcon:()=>b.uQc,InformationSquareIcon:()=>b.ZrL,InlineLoading:()=>b.OuH,Input:()=>b.pde,InteractiveSelector:()=>b.wmT,InventoryManagementIcon:()=>b.vFG,Label:()=>b.JU7,Layer:()=>b.Wdr,LayoutGrid:()=>b.D6i,LeftRail:()=>b.IHy,LiquidGlassCard:()=>b.lok,ListCheckedIcon:()=>b.Rt$,LiveOrb:()=>b.AFR,Loader:()=>b.aHM,LocationIcon:()=>b.BT6,MORPH_SELECT_DEFAULT_TRANSITION:()=>b.AOq,MaximizeIcon:()=>b._Xm,MaybeIcon:()=>b.oy0,MaybePictogram:()=>b.bmf,MenuDivider:()=>b.Njx,MenuItem:()=>b.Drp,MenuList:()=>b.cOG,MenuToggleButton:()=>b.qLc,MessageQueueIcon:()=>b.uFu,ModalBody:()=>b.cwr,ModalFooter:()=>b.jlY,ModalHeader:()=>b.rQ0,MoneyIcon:()=>b.yBj,MorphSelect:()=>b.NGl,MorphSelectContent:()=>b.EiO,MorphSelectItem:()=>b.iRo,MorphSelectTrigger:()=>b.PK0,MorphSelectValue:()=>b.qXl,MovementIcon:()=>b.lyJ,NAV_ALL_WORKSPACES:()=>c.Xr,Notification:()=>b.Eg0,NotificationBanner:()=>b.AdF,OverflowMenuHorizontalIcon:()=>b.rv3,OverflowMenuVerticalIcon:()=>b.Rnm,PageBackground:()=>b.Kz$,PageBackgroundProvider:()=>b.z0Y,PageHeader:()=>b.zYs,PageHeaderContent:()=>b.gpz,Pagination:()=>b.dKS,PasswordIcon:()=>b.BGy,PasswordInput:()=>b.yAz,PaymentsDeskPictogram:()=>b.dNG,PedestrianFamilyIcon:()=>b.PPo,PenIcon:()=>b.rZj,Pictogram:()=>b.bF1,PrinterIcon:()=>b.wwY,ProgramsIcon:()=>b.lq$,PromptInput:()=>b.Plc,RECURSIVE_EROSION_DEFAULTS:()=>b.Km0,RadioGroup:()=>b.z6M,RadioGroupItem:()=>b.CUM,RecursiveErosionBackground:()=>b.OoY,RenewIcon:()=>b.JTN,ReportIcon:()=>b.cQD,ResetIcon:()=>b.NAP,ResponsiveWrapper:()=>b.KFv,RightRail:()=>b.Bic,RobotController:()=>b.LMw,SECTION_CARD_CLASS:()=>b.YpM,SHELL_RAIL_BOTTOM_SLOT:()=>c.R6,SHELL_RAIL_LEFT_SLOT:()=>c.p$,SHELL_RAIL_RIGHT_SLOT:()=>c.SW,SIDE_ANCHORS:()=>b.RPL,STAGGERED_MENU_AREAS:()=>c.SK,STAGGERED_MENU_SLOT:()=>c.y$,STICKY_VARS:()=>b.Ddn,SaveIcon:()=>b.LPu,SearchIcon:()=>b.WIv,SearchInput:()=>b.DOo,Section:()=>b.wn6,SectionAction:()=>b.SnF,SectionBody:()=>b.iq0,SectionCard:()=>b.ivh,SectionCardTitleButton:()=>b.Q5Y,SectionDivider:()=>b.nBS,SectionFooter:()=>b.lFh,SectionGrid:()=>b.KGd,SectionHeader:()=>b.X3I,SectionNavPanel:()=>b.frg,SectionSlot:()=>b.y0l,Select:()=>b.l6P,SelectContent:()=>b.gCo,SelectContext:()=>b.CW5,SelectTrigger:()=>b.bqE,Separator:()=>b.wvv,ServiceQueuesPictogram:()=>b.Y21,SettingsIcon:()=>b.Zes,Sheet:()=>b.cjw,SheetClose:()=>b.kNS,SheetContent:()=>b.hae,SheetContext:()=>b.P8U,SheetDescription:()=>b.Qsg,SheetFooter:()=>b.XWC,SheetHeader:()=>b.Fm9,SheetOverlay:()=>b.YP7,SheetPortal:()=>b.yde,SheetRoot:()=>b.KId,SheetTitle:()=>b.qpM,SheetTrigger:()=>b.CGR,ShoppingCartAddItemIcon:()=>b.Uve,ShoppingCartArrowDownIcon:()=>b.Lfm,ShoppingCartIcon:()=>b.aJF,SiteActivityPanel:()=>b.Xac,SiteApplicationsPanel:()=>b.pyx,SiteBanner:()=>b.cBB,SiteCarousel:()=>b.aiS,SiteMembersPanel:()=>b.tyG,SitePanelHeader:()=>b.Xhy,SiteResourcesPanel:()=>b.Nvq,SiteSearchBar:()=>b.ttj,SiteSettingsPanel:()=>b.rmb,SiteTabbedLayout:()=>b.eFc,SiteTasksPanel:()=>b.SLu,Skeleton:()=>b.EAD,Slider:()=>b.Apm,SliderContainer:()=>b.Jbi,SliderDotButton:()=>b.vY7,Snackbar:()=>b.qb_,Spinner:()=>b.y$y,SplineScene:()=>b.C44,Splitter:()=>b.O3W,StaggeredMenuPanel:()=>b._kB,StickyNoteAddIcon:()=>b.OC$,StockManagementPictogram:()=>b.q__,StructuredList:()=>b.gaZ,StructuredListBody:()=>b.GRJ,StructuredListCell:()=>b.Um2,StructuredListHead:()=>b.AVA,StructuredListRow:()=>b.Cvq,Switch:()=>b.dOG,SwitcherIcon:()=>b.RFy,TOOL_WINDOW_CONTAINER_ATTRIBUTE:()=>b.ZLW,TOOL_WINDOW_HEADER_ATTRIBUTE:()=>b.lHJ,TOOL_WINDOW_SLOTS:()=>c.As,TOPBAR_NAV_SLOT:()=>c.yS,TOPBAR_SLOT:()=>c.sO,Table:()=>b.XIK,TableBatchActions:()=>b.GGC,TableBody:()=>b.BFY,TableCaption:()=>b.r6L,TableCell:()=>b.nA6,TableFooter:()=>b.Gg1,TableHead:()=>b.ndF,TableHeader:()=>b.A0N,TableIcon:()=>b.KbA,TableOfContentsIcon:()=>b.pYV,TableRow:()=>b.Hjg,Tabs:()=>b.tUM,TabsContent:()=>b.avX,TabsList:()=>b.j7C,TabsTrigger:()=>b.Xib,TestimonialCard:()=>b._f_,TestimonialCardStack:()=>b.uDL,TextInput:()=>b.ksK,TextLink:()=>b.YqK,ThumbsSlider:()=>b.BM2,Tile:()=>b.FAs,TileAction:()=>b.p7N,TileContent:()=>b._PB,TileDescription:()=>b.xaH,TileFooter:()=>b.uPh,TileHeader:()=>b.ikI,TileTitle:()=>b.zrV,TimeIcon:()=>b.b1c,Toast:()=>b.y8,ToolWindowHeader:()=>b.ICb,ToolWindowZone:()=>b.p4K,ToolsIcon:()=>b.dwU,Tooltip:()=>b.m_M,TooltipContent:()=>b.ZIw,TooltipProvider:()=>b.Bcw,TooltipTrigger:()=>b.k$k,TopBar:()=>b.Vsm,TopBarAvatar:()=>b.mIk,TopBarDivider:()=>b.AA7,TopBarIconButton:()=>b.gFP,TransferPictogram:()=>b.SKX,TranslateIcon:()=>b.SwB,TrashCanIcon:()=>b.EJV,TreeViewAltIcon:()=>b.MO4,UserAvatarIcon:()=>b.yDT,UserFollowIcon:()=>b.osL,UserIcon:()=>b.nys,ViewIcon:()=>b.tCQ,ViewOffIcon:()=>b.Oi_,WORKBENCH_ICONS:()=>b.BDu,WORKBENCH_STORAGE_KEY:()=>b.gHx,WarningIcon:()=>b.id,WaterGlassModal:()=>b.BIq,WorkSessionMode:()=>s.TG,WorkSessionStatus:()=>s.qd,Workspace2:()=>b.ozP,WorkspaceContainer:()=>b.XvC,WorkspaceNotification:()=>b.tMf,ZONE_ANCHORS:()=>b.c0o,activateOfflineCapability:()=>m.nr,addImportMapOverride:()=>i.fd,addRouteMapOverride:()=>i.Tx,attach:()=>c.K0,attachmentUrl:()=>s.Zu,badgeVariants:()=>b.e5j,beginEditSynchronizationItem:()=>m.FO,buildFilterFields:()=>b.mOW,buttonVariants:()=>b.ruM,canAccessStorage:()=>w._g,canBeginEditSynchronizationItemsOfType:()=>m.xN,canCloseWorkspaceWithoutPrompting:()=>b.SvQ,cancelPrompt:()=>b.zlb,cardModalAnimationPresets:()=>b.QsE,cardModalPresetStyles:()=>b.Zqu,changeWorkspaceContext:()=>b.JKc,checkStatus:()=>c.dO,checkStatusFor:()=>c.Ef,clampZoneSize:()=>b.foY,cleanCascadingFilters:()=>b._Jn,cleanupObsoleteFeatureFlags:()=>d.D3,clearHistory:()=>p.g4,closeAllWorkspaces:()=>b.G_3,closeCompartment:()=>b.lA$,closeToolWindow:()=>b.T7Q,closeWorkspace:()=>b.MJ8,closeWorkspaceGroup2:()=>b.biy,cn:()=>b.cn,compartmentKey:()=>b.aXL,compile:()=>u.wE,convertToLocaleCalendar:()=>w.d4,createAttachment:()=>s.cD,createErrorHandler:()=>l.J,createLiveOrb:()=>b.Ogf,defaultValidation:()=>b.n$t,defaultWorkSessionCustomRepresentation:()=>s.pJ,deleteAttachmentPermanently:()=>s.SY,deleteSynchronizationItem:()=>m.lY,detach:()=>c.Yo,detachAll:()=>c.No,dispatchActionableNotificationShown:()=>f.LQ,dispatchConnectivityChanged:()=>f.Yt,dispatchNotificationShown:()=>f.FI,dispatchPrecacheStaticDependencies:()=>f.pc,dispatchSnackbarShown:()=>f.$3,dispatchToastShown:()=>f.Vt,duration:()=>w.p0,egenOfflineCachingStrategyHttpHeaderName:()=>m.T$,egenOfflineResponseBodyHttpHeaderName:()=>m.Q1,egenOfflineResponseStatusHttpHeaderName:()=>m.Gt,enableImportMapOverride:()=>i.BX,esmStyleGuideSchema:()=>b.uQD,evaluate:()=>u._3,evaluateAsBoolean:()=>u.eb,evaluateAsBooleanAsync:()=>u.Gz,evaluateAsNumber:()=>u.dX,evaluateAsNumberAsync:()=>u.$F,evaluateAsType:()=>u.Sj,evaluateAsTypeAsync:()=>u.uN,evaluateAsync:()=>u.mv,evaluateFilter:()=>b.Ws0,extractVariableNames:()=>u.yp,featureFlagsStore:()=>d.jX,filterBreadcrumbs:()=>p.D_,finishRegisteringAllApps:()=>v.yw,fireEgenEvent:()=>s.g8,fitCompartmentHeights:()=>b.gz6,formatDate:()=>w.Yq,formatDatetime:()=>w.Rt,formatDuration:()=>w.a3,formatDurationBetween:()=>w.g2,formatPartialDate:()=>w.LW,formatTime:()=>w.fU,formatToolWindowBadge:()=>b.pd,generateOfflineUuid:()=>m.sA,getActiveModuleNames:()=>b.pJo,getAssignedExtensions:()=>c.zx,getAttachmentByUuid:()=>s.KU,getAttachments:()=>s.Bv,getBreadcrumbs:()=>p.lz,getBreadcrumbsFor:()=>p.qh,getCoreTranslation:()=>x.V,getCurrentImportMap:()=>i.Ln,getCurrentOfflineMode:()=>m.wJ,getCurrentPageMap:()=>i.F$,getCurrentRouteMap:()=>i.FM,getDefaultCalendar:()=>w.a7,getDefaultsFromConfigSchema:()=>w.kd,getDynamicOfflineDataEntries:()=>m.FE,getDynamicOfflineDataEntriesFor:()=>m.WA,getDynamicOfflineDataHandlers:()=>m.qb,getEgenServiceWorker:()=>m.b1,getEgenTarget:()=>f.tM,getExtensionInternalStore:()=>c.a9,getExtensionNameFromId:()=>c.ES,getExtensionRegistration:()=>c.Tj,getExtensionRegistrationFrom:()=>c.xg,getExtensionStore:()=>c.zF,getFeatureFlag:()=>d.jj,getFullSynchronizationItems:()=>m.C$,getFullSynchronizationItemsFor:()=>m.xc,getGroupByWindowName:()=>c.o1,getHistory:()=>p.JK,getImportMapDefaultMap:()=>i.tK,getImportMapDisabledOverrides:()=>i.xI,getImportMapNextPageMap:()=>i.o5,getImportMapOverrideMap:()=>i.uT,getLocale:()=>w.JK,getLocations:()=>s.Vs,getModalRegistration:()=>c.Fg,getNavBehavior:()=>c.Yw,getOfflineDb:()=>m.e,getOfflineEntityDataStore:()=>m.sm,getOfflineSynchronizationStore:()=>m.LM,getOpenCompartments:()=>b.u7L,getOpenedWindowIndexByWorkspace:()=>c.YX,getPromptBeforeClosingFcn:()=>b.OeE,getRegisteredWorkspace2Names:()=>b.uBm,getRouteMapDefaultMap:()=>i.zU,getRouteMapNextPageMap:()=>i.Y6,getRouteMapOverrideMap:()=>i.WY,getSavedAssistantMode:()=>b.T7$,getStaggeredMenuEntryProblems:()=>c.uu,getStartedWorkSession:()=>s.rm,getSynchronizationItem:()=>m.Gp,getSynchronizationItems:()=>m.pb,getSynchronizationItemsFor:()=>m.Io,getToolWindowCompartment:()=>c.lN,getToolWindowMetaProblems:()=>c.Sk,getWindowByWorkspaceName:()=>c.Ml,getWorkSessionStore:()=>s.r_,getWorkSessionTypes:()=>s.Ty,getWorkSessionsForEntity:()=>s.ly,getWorkspaceGroupRegistration:()=>c.Q_,getWorkspaceGroupStore:()=>b.e_T,getWorkspaceRegistration:()=>c.Xb,getWorkspaceStore:()=>b.XzH,goBackInHistory:()=>p.tA,hasCapability:()=>f.p0,hasOwnCompartment:()=>b.XWY,iconIds:()=>b.kE8,importDynamic:()=>i.rL,integrateBreakpoints:()=>b.WMK,interpolateString:()=>p.zl,interpolateUrl:()=>p.JG,isEgenAppRoutes:()=>f.j0,isEgenDateStrict:()=>w.pf,isEgenDateToday:()=>w.L8,isEgenRoutes:()=>f.Ss,isFilterReady:()=>b.iVR,isImportMapOverrideDisabled:()=>i.q1,isNativeTarget:()=>f.$6,isNavEntryInWorkspace:()=>c.oE,isNavEntryMeta:()=>c.DK,isOfflineUuid:()=>m.bO,isOnline:()=>w.sc,isSafeToolWindowIconUrl:()=>c.e4,isStaggeredMenuArea:()=>c.ND,isStaggeredMenuEntryMeta:()=>c.Te,isToolWindowMeta:()=>c.oW,isToolWindowSlot:()=>c.rq,isVersionSatisfied:()=>w.rX,isXboxAudioMuted:()=>b.lgu,jsep:()=>u.PQ,launchWorkspace:()=>b.TC2,launchWorkspace2:()=>b.pTx,launchWorkspaceGroup:()=>b.aN0,launchWorkspaceGroup2:()=>b.GYk,loadLifeCycles:()=>v.oB,loaderMarkup:()=>b.ilK,matchLocale:()=>w.w7,matchesFilters:()=>b.lu9,messageEgenServiceWorker:()=>m.Oc,navBehaviorStore:()=>c.rf,navigate:()=>p.oo,navigateAndLaunchWorkspace:()=>b.Fmw,offlineUuidPrefix:()=>m.jU,openCompartment:()=>b.$Kb,openToolWindow:()=>b.xlj,parseDate:()=>w._U,parseDateInput:()=>w.qE,pictogramIds:()=>b.vJW,playPageEnter:()=>b.m9A,playXboxSound:()=>b.x4I,preloadAssistantRobot:()=>b.mjw,preloadImport:()=>i.zC,preloadSplineScene:()=>b.Pfj,promptBeforeClosing:()=>b.F3N,promptForClosingWorkspaces:()=>b.hLN,putDynamicOfflineData:()=>m.yD,putDynamicOfflineDataFor:()=>m.ff,queueSynchronizationItem:()=>m.Zr,queueSynchronizationItemFor:()=>m.Iq,registerApp:()=>v.FZ,registerBreadcrumb:()=>p.vf,registerBreadcrumbs:()=>p.MY,registerDefaultCalendar:()=>w.XE,registerEgenServiceWorker:()=>m.QP,registerExtension:()=>c.VK,registerExtensionSlot:()=>c.FY,registerFeatureFlag:()=>d.uA,registerModal:()=>c.Ju,registerNavBehavior:()=>c.ZJ,registerOfflineEntityHandler:()=>m.Wo,registerStaggeredMenuEntry:()=>c.BR,registerToolWindow:()=>c.QS,registerWorkspace:()=>c.pm,registerWorkspaceGroup:()=>c.io,registerWorkspaceGroups2:()=>c.rD,registerWorkspaceWindows2:()=>c.Qb,registerWorkspaces2:()=>c.Uh,removeDynamicOfflineData:()=>m.NU,removeDynamicOfflineDataFor:()=>m.wn,removeImportMapOverride:()=>i.E,removeRouteMapOverride:()=>i.KI,renderActionableNotifications:()=>b.zfR,renderExtension:()=>c.wG,renderInlineNotifications:()=>b.CU$,renderLoadingSpinner:()=>b.uWG,renderPageBackground:()=>b.uTG,renderSnackbars:()=>b.ZLm,renderToasts:()=>b.f1b,renderWorkbench:()=>b.OFC,renderWorkspaceWindowsAndMenu:()=>b.jCr,reportError:()=>l.N,reset:()=>c.cL,resetImportMapOverrides:()=>i.w_,resetRouteMapOverrides:()=>i.eH,resetWorkspaceStore:()=>b._1W,resetZoneSize:()=>b.zkr,resizeCompartmentBoundary:()=>b.No8,resolveStaggeredMenuEntries:()=>c.wR,resolveWorkbenchIcon:()=>b.zLd,retry:()=>w.L5,runSynchronization:()=>m.AO,saveAssistantMode:()=>b.Pe5,saveWorkSession:()=>s.XM,setCapabilityResolver:()=>f.Zv,setCompartmentHeights:()=>b.lbO,setCurrentOfflineMode:()=>m.Og,setCurrentWorkSession:()=>s.R5,setFeatureFlag:()=>d.B4,setToolWindowBadge:()=>b.a8E,setZoneSize:()=>b.uge,setupDynamicOfflineDataHandler:()=>m.iD,setupHistory:()=>p.Wh,setupImportMapOverrides:()=>i.SM,setupModals:()=>b.EPe,setupOfflineSync:()=>m.cy,setupPageTransitions:()=>b.d1P,setupRouteMapOverrides:()=>i._m,shallowEqual:()=>w.bN,showActionableNotification:()=>b.ZyP,showModal:()=>b.toY,showNotification:()=>b.Dsh,showPageLoader:()=>b.EDr,showSnackbar:()=>b.tdF,showToast:()=>b.P0c,showWorkspacePrompts:()=>b.ctS,slugify:()=>i.Yv,staggeredMenuEntryTitle:()=>b.kxh,stickyStyleVars:()=>b.paI,subscribeActionableNotificationShown:()=>f.bK,subscribeConnectivity:()=>f.sT,subscribeConnectivityChanged:()=>f.gj,subscribeEgenEvent:()=>s.mI,subscribeNotificationShown:()=>f.bJ,subscribePrecacheStaticDependencies:()=>f.ff,subscribeSnackbarShown:()=>f.ls,subscribeToFeatureFlag:()=>d.sM,subscribeToastShown:()=>f.dX,syncAllDynamicOfflineData:()=>m.Td,syncDynamicOfflineData:()=>m.u1,syncOfflineEntityData:()=>m.Oj,toDateObjectStrict:()=>w.kQ,toEgenIsoString:()=>w.L3,toLocationObject:()=>s.E$,toWorkSessionTypeObject:()=>s.iS,toggleCompartment:()=>b.pdq,toggleToolWindow:()=>b.Hwc,toggleXboxAudio:()=>b.MiD,toolWindowTitle:()=>b.tp2,translateFrom:()=>x.t,tryRegisterExtension:()=>v.Y1,updateExtensionSlotState:()=>c.ap,updateInternalExtensionStore:()=>c.DQ,updateWorkSession:()=>s.bS,updateWorkspaceWindowState:()=>b._RD,useActiveAppModules:()=>b.Y26,useCarouselContext:()=>b.RGi,useCustomOverflowMenu:()=>b.ckU,useFilterSchema:()=>b.d4y,usePageBackground:()=>b.DYW,usePageLoading:()=>b.v99,useSelectContext:()=>b.hPu,useSheetContext:()=>b.sCq,useStaggeredMenuEntries:()=>b.NNe,useToolWindows:()=>b.ncA,useWorkspace2Context:()=>b.WO_,useWorkspace2Store:()=>b.AkA,useWorkspaces:()=>b.CH0,validateBuildManifest:()=>f.q0,workbenchBadgeStore:()=>b.UcB,workbenchStore:()=>b.Tqd,workspace2Store:()=>c.J_,workspace2StoreActions:()=>b.cJy,workspaceStore:()=>b.x9q,xboxAudio:()=>b.o81});var n=r(70),a={};for(let e in n)"default"!==e&&(a[e]=()=>n[e]);r.d(t,a);var o=r(3645),a={};for(let e in o)"default"!==e&&(a[e]=()=>o[e]);r.d(t,a);var i=r(101),s=r(3400),l=r(8507),u=r(9360),c=r(7267),d=r(5794),f=r(8840),p=r(7774),m=r(6563),h=r(4592),a={};for(let e in h)0>["registerBreadcrumbs","getImportMapOverrideMap","evaluateAsNumber","TOOL_WINDOW_SLOTS","importDynamic","registerNavBehavior","evaluateAsTypeAsync","getGroupByWindowName","WorkSessionMode","TOPBAR_SLOT","getToolWindowMetaProblems","updateInternalExtensionStore","compile","removeRouteMapOverride","checkStatus","getWorkSessionStore","goBackInHistory","getDynamicOfflineDataHandlers","dispatchConnectivityChanged","setCurrentOfflineMode","dispatchActionableNotificationShown","resetRouteMapOverrides","saveWorkSession","getModalRegistration","queueSynchronizationItem","setCapabilityResolver","getRouteMapNextPageMap","getBreadcrumbsFor","isToolWindowSlot","setupRouteMapOverrides","getEgenTarget","getWorkspaceGroupRegistration","hasCapability","registerWorkspace","registerEgenServiceWorker","DEFAULT_STAGGERED_MENU_AREA","attach","updateWorkSession","reset","validateBuildManifest","beginEditSynchronizationItem","offlineUuidPrefix","SHELL_RAIL_RIGHT_SLOT","getEgenServiceWorker","STAGGERED_MENU_SLOT","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","resolveStaggeredMenuEntries","detach","getToolWindowCompartment","canBeginEditSynchronizationItemsOfType","preloadImport","STAGGERED_MENU_AREAS","getCurrentImportMap","registerWorkspaceWindows2","toLocationObject","activateOfflineCapability","egenOfflineResponseBodyHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","updateExtensionSlotState","getLocations","isEgenAppRoutes","clearHistory","dispatchSnackbarShown","NAV_ALL_WORKSPACES","egenOfflineResponseStatusHttpHeaderName","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","putDynamicOfflineDataFor","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","removeDynamicOfflineData","getStaggeredMenuEntryProblems","subscribePrecacheStaticDependencies","getOfflineSynchronizationStore","getExtensionNameFromId","getNavBehavior","cleanupObsoleteFeatureFlags","dispatchPrecacheStaticDependencies","deleteSynchronizationItem","subscribeNotificationShown","putDynamicOfflineData","registerBreadcrumb","subscribeActionableNotificationShown","TOPBAR_NAV_SLOT","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","subscribeConnectivityChanged","getWorkSessionTypes","interpolateUrl","setupHistory","getOfflineEntityDataStore","getCurrentPageMap","registerStaggeredMenuEntry","subscribeToastShown","detachAll","generateOfflineUuid","queueSynchronizationItemFor","isNavEntryInWorkspace","setupDynamicOfflineDataHandler","filterBreadcrumbs","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","SHELL_RAIL_LEFT_SLOT","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","DEFAULT_COMPARTMENT_HEIGHTS","getExtensionRegistration","registerExtension","getExtensionInternalStore","dispatchToastShown","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","isSafeToolWindowIconUrl","workspace2Store","getFullSynchronizationItems","getFullSynchronizationItemsFor","getSynchronizationItemsFor","runSynchronization","setupOfflineSync","default","isStaggeredMenuEntryMeta","featureFlagsStore","navBehaviorStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","isStaggeredMenuArea","registerWorkspaceGroup","slugify","reportError","registerToolWindow","getExtensionStore","registerWorkspaces2","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","isNavEntryMeta","getDynamicOfflineDataEntries","WorkSessionStatus","syncOfflineEntityData","getExtensionRegistrationFrom","isToolWindowMeta","SHELL_RAIL_BOTTOM_SLOT","isNativeTarget","navigate"].indexOf(e)&&(a[e]=()=>h[e]);r.d(t,a);var y=r(7388),a={};for(let e in y)0>["registerBreadcrumbs","getImportMapOverrideMap","evaluateAsNumber","TOOL_WINDOW_SLOTS","importDynamic","registerNavBehavior","evaluateAsTypeAsync","getGroupByWindowName","WorkSessionMode","TOPBAR_SLOT","getToolWindowMetaProblems","updateInternalExtensionStore","compile","removeRouteMapOverride","checkStatus","getWorkSessionStore","goBackInHistory","getDynamicOfflineDataHandlers","dispatchConnectivityChanged","setCurrentOfflineMode","dispatchActionableNotificationShown","resetRouteMapOverrides","saveWorkSession","getModalRegistration","queueSynchronizationItem","setCapabilityResolver","getRouteMapNextPageMap","getBreadcrumbsFor","isToolWindowSlot","setupRouteMapOverrides","getEgenTarget","getWorkspaceGroupRegistration","hasCapability","registerWorkspace","registerEgenServiceWorker","DEFAULT_STAGGERED_MENU_AREA","attach","updateWorkSession","reset","validateBuildManifest","beginEditSynchronizationItem","offlineUuidPrefix","SHELL_RAIL_RIGHT_SLOT","getEgenServiceWorker","STAGGERED_MENU_SLOT","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","resolveStaggeredMenuEntries","detach","getToolWindowCompartment","canBeginEditSynchronizationItemsOfType","preloadImport","STAGGERED_MENU_AREAS","getCurrentImportMap","registerWorkspaceWindows2","toLocationObject","activateOfflineCapability","egenOfflineResponseBodyHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","updateExtensionSlotState","getLocations","isEgenAppRoutes","clearHistory","dispatchSnackbarShown","NAV_ALL_WORKSPACES","egenOfflineResponseStatusHttpHeaderName","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","putDynamicOfflineDataFor","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","removeDynamicOfflineData","getStaggeredMenuEntryProblems","subscribePrecacheStaticDependencies","getOfflineSynchronizationStore","getExtensionNameFromId","getNavBehavior","cleanupObsoleteFeatureFlags","dispatchPrecacheStaticDependencies","deleteSynchronizationItem","subscribeNotificationShown","putDynamicOfflineData","registerBreadcrumb","subscribeActionableNotificationShown","TOPBAR_NAV_SLOT","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","subscribeConnectivityChanged","getWorkSessionTypes","interpolateUrl","setupHistory","getOfflineEntityDataStore","getCurrentPageMap","registerStaggeredMenuEntry","subscribeToastShown","detachAll","generateOfflineUuid","queueSynchronizationItemFor","isNavEntryInWorkspace","setupDynamicOfflineDataHandler","filterBreadcrumbs","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","SHELL_RAIL_LEFT_SLOT","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","DEFAULT_COMPARTMENT_HEIGHTS","getExtensionRegistration","registerExtension","getExtensionInternalStore","dispatchToastShown","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","isSafeToolWindowIconUrl","workspace2Store","getFullSynchronizationItems","getFullSynchronizationItemsFor","getSynchronizationItemsFor","runSynchronization","setupOfflineSync","default","isStaggeredMenuEntryMeta","featureFlagsStore","navBehaviorStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","isStaggeredMenuArea","registerWorkspaceGroup","slugify","reportError","registerToolWindow","getExtensionStore","registerWorkspaces2","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","isNavEntryMeta","getDynamicOfflineDataEntries","WorkSessionStatus","syncOfflineEntityData","getExtensionRegistrationFrom","isToolWindowMeta","SHELL_RAIL_BOTTOM_SLOT","isNativeTarget","navigate"].indexOf(e)&&(a[e]=()=>y[e]);r.d(t,a);var v=r(7230),g=r(1442),a={};for(let e in g)0>["navigate","getImportMapOverrideMap","evaluateAsNumber","TOOL_WINDOW_SLOTS","importDynamic","registerNavBehavior","finishRegisteringAllApps","registerBreadcrumbs","evaluateAsTypeAsync","tryRegisterExtension","WorkSessionMode","TOPBAR_SLOT","getToolWindowMetaProblems","updateInternalExtensionStore","compile","removeRouteMapOverride","checkStatus","getWorkSessionStore","goBackInHistory","getDynamicOfflineDataHandlers","dispatchConnectivityChanged","setCurrentOfflineMode","dispatchActionableNotificationShown","resetRouteMapOverrides","saveWorkSession","getModalRegistration","queueSynchronizationItem","getGroupByWindowName","setCapabilityResolver","getRouteMapNextPageMap","getBreadcrumbsFor","isToolWindowSlot","setupRouteMapOverrides","getEgenTarget","getWorkspaceGroupRegistration","hasCapability","registerWorkspace","registerEgenServiceWorker","DEFAULT_STAGGERED_MENU_AREA","attach","updateWorkSession","reset","validateBuildManifest","beginEditSynchronizationItem","offlineUuidPrefix","SHELL_RAIL_RIGHT_SLOT","getEgenServiceWorker","STAGGERED_MENU_SLOT","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","resolveStaggeredMenuEntries","detach","getToolWindowCompartment","canBeginEditSynchronizationItemsOfType","preloadImport","STAGGERED_MENU_AREAS","getCurrentImportMap","registerWorkspaceWindows2","toLocationObject","activateOfflineCapability","egenOfflineResponseBodyHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","updateExtensionSlotState","getLocations","isEgenAppRoutes","clearHistory","dispatchSnackbarShown","NAV_ALL_WORKSPACES","egenOfflineResponseStatusHttpHeaderName","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","putDynamicOfflineDataFor","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","putDynamicOfflineData","removeDynamicOfflineData","getStaggeredMenuEntryProblems","subscribePrecacheStaticDependencies","getOfflineSynchronizationStore","getExtensionNameFromId","getNavBehavior","dispatchPrecacheStaticDependencies","deleteSynchronizationItem","cleanupObsoleteFeatureFlags","subscribeNotificationShown","registerBreadcrumb","subscribeActionableNotificationShown","TOPBAR_NAV_SLOT","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","subscribeConnectivityChanged","getWorkSessionTypes","interpolateUrl","setupHistory","getOfflineEntityDataStore","getCurrentPageMap","registerStaggeredMenuEntry","subscribeToastShown","detachAll","generateOfflineUuid","queueSynchronizationItemFor","isNavEntryInWorkspace","registerApp","setupDynamicOfflineDataHandler","filterBreadcrumbs","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","SHELL_RAIL_LEFT_SLOT","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","DEFAULT_COMPARTMENT_HEIGHTS","getExtensionRegistration","registerExtension","getExtensionInternalStore","dispatchToastShown","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","isSafeToolWindowIconUrl","workspace2Store","getFullSynchronizationItems","getFullSynchronizationItemsFor","getSynchronizationItemsFor","runSynchronization","setupOfflineSync","default","isStaggeredMenuEntryMeta","featureFlagsStore","navBehaviorStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","isStaggeredMenuArea","registerWorkspaceGroup","slugify","reportError","registerToolWindow","getExtensionStore","registerWorkspaces2","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","loadLifeCycles","getDynamicOfflineDataEntries","isNavEntryMeta","syncOfflineEntityData","WorkSessionStatus","getExtensionRegistrationFrom","isToolWindowMeta","isNativeTarget","SHELL_RAIL_BOTTOM_SLOT"].indexOf(e)&&(a[e]=()=>g[e]);r.d(t,a);var b=r(5977),x=r(5565),w=r(4834)},1221(e,t,r){"use strict";r.d(t,{Z:()=>a,p:()=>o});var n=null;function a(e){n=e}function o(e){return!!n&&n(e)}},8840(e,t,r){"use strict";r.d(t,{Vt:()=>n.Vt,tM:()=>o.t,q0:()=>c,j0:()=>a.j,ff:()=>n.ff,ls:()=>n.ls,LQ:()=>n.LQ,sT:()=>n.sT,FI:()=>n.FI,Ss:()=>a.S,dX:()=>n.dX,$3:()=>n.$3,pc:()=>n.pc,bK:()=>n.bK,gj:()=>n.gj,Zv:()=>i.Z,bJ:()=>n.bJ,p0:()=>i.p,Yt:()=>n.Yt,$6:()=>o.$});var n=r(9726),a=r(2235),o=r(3766),i=r(1221),s=/^\d+\.\d+\.\d+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/,l=/^sha(?:256|384|512)-[A-Za-z0-9+/]+={0,2}$/;function u(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&null!==e&&!Array.isArray(e)}function c(e){var t=[];if(!u(e))return{valid:!1,errors:["le manifeste doit \xeatre un objet"]};var r=e.shellVersion,n=e.frameworkVersion,a=e.protocolVersion,o=e.apps;"string"==typeof r&&s.test(r)||t.push("shellVersion doit \xeatre une version semver (ex. 2.10.0)"),"string"==typeof n&&s.test(n)||t.push("frameworkVersion doit \xeatre une version semver (ex. 4.0.0)"),("number"!=typeof a||!Number.isInteger(a)||a<1)&&t.push("protocolVersion doit \xeatre un entier ≥ 1");var i=[];if(Array.isArray(o)){var c=new Set;o.forEach(function(e,r){var n="apps[".concat(r,"]");if(!u(e))return void t.push("".concat(n," doit \xeatre un objet"));var a=e.name,o=e.version,d=e.integrity;"string"!=typeof a||0===a.length?t.push("".concat(n,".name doit \xeatre une cha\xeene non vide")):c.has(a)?t.push("".concat(n,'.name "').concat(a,'" est en double')):c.add(a),"string"==typeof o&&s.test(o)||t.push("".concat(n,".version doit \xeatre une version semver exacte")),"string"==typeof d&&l.test(d)||t.push("".concat(n,".integrity doit \xeatre une empreinte SRI (sha256-…, sha384-… ou sha512-…)")),"string"==typeof a&&"string"==typeof o&&"string"==typeof d&&i.push({name:a,version:o,integrity:d})})}else t.push("apps doit \xeatre un tableau");return t.length>0?{valid:!1,errors:t}:{valid:!0,manifest:{shellVersion:r,frameworkVersion:n,protocolVersion:a,apps:i}}}},2235(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function o(e){return!!e&&(void 0===e?"undefined":a(e))==="object"&&!(Object.hasOwn(e,"pages")&&(!e.pages||!Array.isArray(e.pages))||Object.hasOwn(e,"extensions")&&(!e.extensions||!Array.isArray(e.extensions))||Object.hasOwn(e,"workspaces")&&(!e.workspaces||!Array.isArray(e.workspaces))||Object.hasOwn(e,"modals")&&(!e.modals||!Array.isArray(e.modals)))}function i(e){return!!e&&(void 0===e?"undefined":a(e))==="object"&&Object.entries(e).every(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(e)||function(e){if(e){if("string"==typeof e)return n(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=t[0],a=t[1];return"string"==typeof r&&o(a)})}r.d(t,{S:()=>i,j:()=>o})},6563(e,t,r){"use strict";let n;r.d(t,{nr:()=>C,xN:()=>np,u1:()=>nI,FO:()=>nm,Q1:()=>g,FE:()=>nA,sA:()=>nb,LM:()=>nn,ff:()=>nT,wn:()=>nR,Oj:()=>nz,lY:()=>nh,Zr:()=>ns,cy:()=>ny,WA:()=>nD,T$:()=>x,Gp:()=>nf,jU:()=>ng,Og:()=>D,iD:()=>nP,C$:()=>nd,qb:()=>nE,Iq:()=>ni,NU:()=>nN,yD:()=>nC,Wo:()=>nV,sm:()=>nB,Io:()=>nl,wJ:()=>A,Oc:()=>j,e:()=>r4,xc:()=>nu,pb:()=>nc,bO:()=>nx,b1:()=>v,AO:()=>na,Td:()=>nM,QP:()=>y,Gt:()=>b});try{self["workbox:window:6.5.4"]&&_()}catch(e){}function a(e,t){return new Promise(function(r){var n=new MessageChannel;n.port1.onmessage=function(e){r(e.data)},e.postMessage(t,[n.port2])})}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}try{self["workbox:core:6.5.4"]&&_()}catch(e){}var s=function(){var e=this;this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})};function l(e,t){var r=location.href;return new URL(e,r).href===new URL(t,r).href}var u=function(e,t){this.type=e,Object.assign(this,t)};function c(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function d(){}var f={type:"SKIP_WAITING"};function p(e,t){if(!t)return e&&e.then?e.then(d):Promise.resolve()}var m=function(e){function t(t,r){var n,a;return void 0===r&&(r={}),(n=e.call(this)||this).nn={},n.tn=0,n.rn=new s,n.en=new s,n.on=new s,n.un=0,n.an=new Set,n.cn=function(){var e=n.fn,t=e.installing;n.tn>0||!l(t.scriptURL,n.sn.toString())||performance.now()>n.un+6e4?(n.vn=t,e.removeEventListener("updatefound",n.cn)):(n.hn=t,n.an.add(t),n.rn.resolve(t)),++n.tn,t.addEventListener("statechange",n.ln)},n.ln=function(e){var t=n.fn,r=e.target,a=r.state,o=r===n.vn,i={sw:r,isExternal:o,originalEvent:e};!o&&n.mn&&(i.isUpdate=!0),n.dispatchEvent(new u(a,i)),"installed"===a?n.wn=self.setTimeout(function(){"installed"===a&&t.waiting===r&&n.dispatchEvent(new u("waiting",i))},200):"activating"===a&&(clearTimeout(n.wn),o||n.en.resolve(r))},n.dn=function(e){var t=n.hn,r=t!==navigator.serviceWorker.controller;n.dispatchEvent(new u("controlling",{isExternal:r,originalEvent:e,sw:t,isUpdate:n.mn})),r||n.on.resolve(t)},a=function(e){var t=e.data,r=e.ports,a=e.source;return c(n.getSW(),function(){n.an.has(a)&&n.dispatchEvent(new u("message",{data:t,originalEvent:e,ports:r,sw:a}))})},n.gn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(a.apply(this,e))}catch(e){return Promise.reject(e)}},n.sn=t,n.nn=r,navigator.serviceWorker.addEventListener("message",n.gn),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var r,n,i=t.prototype;return i.register=function(e){var t=(void 0===e?{}:e).immediate,r=void 0!==t&&t;try{var n,a,o,i=this;return n=function(){if(!r&&"complete"!==document.readyState)return p(new Promise(function(e){return window.addEventListener("load",e)}))},a=function(){return i.mn=!!navigator.serviceWorker.controller,i.yn=i.pn(),c(i.bn(),function(e){i.fn=e,i.yn&&(i.hn=i.yn,i.en.resolve(i.yn),i.on.resolve(i.yn),i.yn.addEventListener("statechange",i.ln,{once:!0}));var t=i.fn.waiting;return t&&l(t.scriptURL,i.sn.toString())&&(i.hn=t,Promise.resolve().then(function(){i.dispatchEvent(new u("waiting",{sw:t,wasWaitingBeforeRegister:!0}))}).then(function(){})),i.hn&&(i.rn.resolve(i.hn),i.an.add(i.hn)),i.fn.addEventListener("updatefound",i.cn),navigator.serviceWorker.addEventListener("controllerchange",i.dn),i.fn})},(o=n())&&o.then?o.then(a):a(o)}catch(e){return Promise.reject(e)}},i.update=function(){try{return this.fn?p(this.fn.update()):void 0}catch(e){return Promise.reject(e)}},i.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},i.messageSW=function(e){try{return c(this.getSW(),function(t){return a(t,e)})}catch(e){return Promise.reject(e)}},i.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&a(this.fn.waiting,f)},i.pn=function(){var e=navigator.serviceWorker.controller;return e&&l(e.scriptURL,this.sn.toString())?e:void 0},i.bn=function(){try{var e=this;return function(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}(function(){return c(navigator.serviceWorker.register(e.sn,e.nn),function(t){return e.un=performance.now(),t})},function(e){throw e})}catch(e){return Promise.reject(e)}},r=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}],o(t.prototype,r),n&&o(t,n),t}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(e,t){this.Sn(e).add(t)},t.removeEventListener=function(e,t){this.Sn(e).delete(t)},t.dispatchEvent=function(e){e.target=this;for(var t,r=function(e){var t;if("u"<typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return i(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,void 0):void 0}}(e))){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}(this.Sn(e.type));!(t=r()).done;)(0,t.value)(e)},t.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}()),h=void 0;function y(e,t){if(void 0!==h)return console.warn("The application's Service Worker has already been registered. The new service worker at ".concat(e," will not be registered.")),h;if(!("serviceWorker"in navigator))throw Error("Registering the Service Worker is not possible due to missing browser capabilities.");var r=new m(e,t);return h=r.register().then(function(){return r.controlling.then(function(){return r})})}function v(){return null!=h?h:Promise.resolve(void 0)}var g="x-egen-offline-response-body",b="x-egen-offline-response-status",x="x-egen-offline-caching-strategy";function w(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function j(e){var t;return(t=function(){var t,r;return function(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(n){switch(n.label){case 0:return[4,v()];case 1:if(!(t=n.sent()))return[3,3];return[4,t.messageSW(e)];case 2:return r=n.sent(),[3,4];case 3:r={success:!1,result:void 0,error:"No service worker has been registered. This is typically the case when the application has been built without offline-related features."},n.label=4;case 4:return[2,r]}})},function(){var e=this,r=arguments;return new Promise(function(n,a){var o=t.apply(e,r);function i(e){w(o,n,a,i,s,"next",e)}function s(e){w(o,n,a,i,s,"throw",e)}i(void 0)})})()}function O(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function S(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(e){O(o,n,a,i,s,"next",e)}function s(e){O(o,n,a,i,s,"throw",e)}i(void 0)})}}function k(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var E="egen3:offline-mode",P="unavailable";function A(){return{current:P,notAvailable:"unavailable"===P,active:"on"===P}}function D(e){"unavailable"!==P&&"unavailable"!==e&&(localStorage.setItem(E,"on"===e?"active":"disabled"),P=e)}function C(){return S(function(){return k(this,function(e){switch(e.label){case 0:return[4,S(function(){var e,t;return k(this,function(r){switch(r.label){case 0:return[4,S(function(){return k(this,function(e){return[2,new Promise(function(e){var t=indexedDB.open("test");t.onerror=function(){return e(!0)},t.onsuccess=function(){return e(!1)}})]})})()];case 1:if(t=r.sent())return[3,3];return[4,S(function(){return k(this,function(e){return[2,!window.indexedDB]})})()];case 2:t=r.sent(),r.label=3;case 3:if(e=t)return[3,5];return[4,S(function(){var e;return k(this,function(t){e=window.sessionStorage;try{e.setItem("someKeyHere","test"),e.removeItem("someKeyHere")}catch(t){if(t.code===DOMException.QUOTA_EXCEEDED_ERR&&0===e.length)return[2,!0]}return[2,!1]})})()];case 4:e=r.sent(),r.label=5;case 5:return[2,e]}})})()];case 1:return e.sent()||(P="active"===localStorage.getItem(E)?"on":"off"),navigator.onLine,[2]}})})()}let T="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,N=Object.keys,R=Array.isArray;function M(e,t){return"object"!=typeof t||N(t).forEach(function(r){e[r]=t[r]}),e}"u"<typeof Promise||T.Promise||(T.Promise=Promise);let I=Object.getPrototypeOf,L={}.hasOwnProperty;function F(e,t){return L.call(e,t)}function B(e,t){"function"==typeof t&&(t=t(I(e))),("u"<typeof Reflect?N:Reflect.ownKeys)(t).forEach(r=>{z(e,r,t[r])})}let V=Object.defineProperty;function z(e,t,r,n){V(e,t,M(r&&F(r,"get")&&"function"==typeof r.get?{get:r.get,set:r.set,configurable:!0}:{value:r,configurable:!0,writable:!0},n))}function W(e){return{from:function(t){return e.prototype=Object.create(t.prototype),z(e.prototype,"constructor",e),{extend:B.bind(null,e.prototype)}}}}let U=Object.getOwnPropertyDescriptor;function $(e,t){let r;return U(e,t)||(r=I(e))&&$(r,t)}let H=[].slice;function K(e,t,r){return H.call(e,t,r)}function G(e,t){return t(e)}function q(e){if(!e)throw Error("Assertion Failed")}function Y(e){T.setImmediate?setImmediate(e):setTimeout(e,0)}function X(e,t){return e.reduce((e,r,n)=>{var a=t(r,n);return a&&(e[a[0]]=a[1]),e},{})}function Z(e,t){if("string"==typeof t&&F(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var r=[],n=0,a=t.length;n<a;++n){var o=Z(e,t[n]);r.push(o)}return r}var i=t.indexOf(".");if(-1!==i){var s=e[t.substr(0,i)];return null==s?void 0:Z(s,t.substr(i+1))}}function Q(e,t,r){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){q("string"!=typeof r&&"length"in r);for(var n=0,a=t.length;n<a;++n)Q(e,t[n],r[n])}else{var o=t.indexOf(".");if(-1!==o){var i=t.substr(0,o),s=t.substr(o+1);if(""===s)void 0===r?R(e)&&!isNaN(parseInt(i))?e.splice(i,1):delete e[i]:e[i]=r;else{var l=e[i];l&&F(e,i)||(l=e[i]={}),Q(l,s,r)}}else void 0===r?R(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=r}}function J(e){var t={};for(var r in e)F(e,r)&&(t[r]=e[r]);return t}let ee=[].concat;function et(e){return ee.apply([],e)}let er="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(et([8,16,32,64].map(e=>["Int","Uint","Float"].map(t=>t+e+"Array")))).filter(e=>T[e]),en=er.map(e=>T[e]);X(er,e=>[e,!0]);let ea=null;function eo(e){ea="u">typeof WeakMap&&new WeakMap;let t=function e(t){if(!t||"object"!=typeof t)return t;let r=ea&&ea.get(t);if(r)return r;if(R(t)){r=[],ea&&ea.set(t,r);for(var n=0,a=t.length;n<a;++n)r.push(e(t[n]))}else if(en.indexOf(t.constructor)>=0)r=t;else{let n=I(t);for(var o in r=n===Object.prototype?{}:Object.create(n),ea&&ea.set(t,r),t)F(t,o)&&(r[o]=e(t[o]))}return r}(e);return ea=null,t}let{toString:ei}={};function es(e){return ei.call(e).slice(8,-1)}let el="u">typeof Symbol?Symbol.iterator:"@@iterator",eu="symbol"==typeof el?function(e){var t;return null!=e&&(t=e[el])&&t.apply(e)}:function(){return null},ec={};function ed(e){var t,r,n,a;if(1==arguments.length){if(R(e))return e.slice();if(this===ec&&"string"==typeof e)return[e];if(a=eu(e)){for(r=[];!(n=a.next()).done;)r.push(n.value);return r}if(null==e)return[e];if("number"==typeof(t=e.length)){for(r=Array(t);t--;)r[t]=e[t];return r}return[e]}for(t=arguments.length,r=Array(t);t--;)r[t]=arguments[t];return r}let ef="u">typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var ep="u">typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href),em=()=>!0;let eh=!Error("").stack;function ey(){if(eh)try{throw ey.arguments,Error()}catch(e){return e}return Error()}function ev(e,t){var r=e.stack;return r?(t=t||0,0===r.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),r.split("\n").slice(t).filter(em).map(e=>"\n"+e).join("")):""}var eg=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],eb=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(eg),ex={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function ew(e,t){this._e=ey(),this.name=e,this.message=t}function ej(e,t){return e+". Errors: "+Object.keys(t).map(e=>t[e].toString()).filter((e,t,r)=>r.indexOf(e)===t).join("\n")}function eO(e,t,r,n){this._e=ey(),this.failures=t,this.failedKeys=n,this.successCount=r,this.message=ej(e,t)}function eS(e,t){this._e=ey(),this.name="BulkError",this.failures=Object.keys(t).map(e=>t[e]),this.failuresByPos=t,this.message=ej(e,t)}W(ew).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+ev(this._e,2))}},toString:function(){return this.name+": "+this.message}}),W(eO).from(ew),W(eS).from(ew);var ek=eb.reduce((e,t)=>(e[t]=t+"Error",e),{}),eE=eb.reduce((e,t)=>{var r=t+"Error";function n(e,n){this._e=ey(),this.name=r,e?"string"==typeof e?(this.message=`${e}${n?"\n "+n:""}`,this.inner=n||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=ex[t]||r,this.inner=null)}return W(n).from(ew),e[t]=n,e},{});eE.Syntax=SyntaxError,eE.Type=TypeError,eE.Range=RangeError;var eP=eg.reduce((e,t)=>(e[t+"Error"]=eE[t],e),{}),eA=eb.reduce((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=eE[t]),e),{});function eD(){}function eC(e){return e}function eT(e,t){return null==e||e===eC?t:function(r){return t(e(r))}}function eN(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function eR(e,t){return e===eD?t:function(){var r=e.apply(this,arguments);void 0!==r&&(arguments[0]=r);var n=this.onsuccess,a=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?eN(n,this.onsuccess):n),a&&(this.onerror=this.onerror?eN(a,this.onerror):a),void 0!==o?o:r}}function eM(e,t){return e===eD?t:function(){e.apply(this,arguments);var r=this.onsuccess,n=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?eN(r,this.onsuccess):r),n&&(this.onerror=this.onerror?eN(n,this.onerror):n)}}function eI(e,t){return e===eD?t:function(r){var n=e.apply(this,arguments);M(r,n);var a=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return a&&(this.onsuccess=this.onsuccess?eN(a,this.onsuccess):a),o&&(this.onerror=this.onerror?eN(o,this.onerror):o),void 0===n?void 0===i?void 0:i:M(n,i)}}function e_(e,t){return e===eD?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function eL(e,t){return e===eD?t:function(){var r=e.apply(this,arguments);if(r&&"function"==typeof r.then){for(var n=this,a=arguments.length,o=Array(a);a--;)o[a]=arguments[a];return r.then(function(){return t.apply(n,o)})}return t.apply(this,arguments)}}eA.ModifyError=eO,eA.DexieError=ew,eA.BulkError=eS;var eF={};let[eB,eV,ez]="u"<typeof Promise?[]:(()=>{let e=Promise.resolve();if("u"<typeof crypto||!crypto.subtle)return[e,I(e),e];let t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,I(t),e]})(),eW=eV&&eV.then,eU=eB&&eB.constructor,e$=!!ez;var eH=!1,eK=ez?()=>{ez.then(tn)}:T.setImmediate?setImmediate.bind(null,tn):T.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver(()=>{tn(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(tn,0)},eG=function(e,t){e2.push([e,t]),eY&&(eK(),eY=!1)},eq=!0,eY=!0,eX=[],eZ=[],eQ=null,eJ=eC,e0={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:tP,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(e=>{try{tP(e[0],e[1])}catch(e){}})}},e1=e0,e2=[],e3=0,e4=[];function e5(e){if("object"!=typeof this)throw TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=eD,this._lib=!1;var t=this._PSD=e1;if(ep&&(this._stackHolder=ey(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==eF)throw TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&e9(this,this._value))}this._state=null,this._value=null,++t.ref,function e(t,r){try{r(r=>{if(null===t._state){if(r===t)throw TypeError("A promise cannot be resolved with itself.");var n=t._lib&&ta();r&&"function"==typeof r.then?e(t,(e,t)=>{r instanceof e5?r._then(e,t):r.then(e,t)}):(t._state=!0,t._value=r,e7(t)),n&&to()}},e9.bind(null,t))}catch(e){e9(t,e)}}(this,e)}let e6={get:function(){var e=e1,t=tp;function r(r,n){var a=!e.global&&(e!==e1||t!==tp);let o=a&&!tv();var i=new e5((t,i)=>{te(this,new e8(tS(r,e,a,o),tS(n,e,a,o),t,i,e))});return ep&&tr(i,this),i}return r.prototype=eF,r},set:function(e){z(this,"then",e&&e.prototype===eF?e6:{get:function(){return e},set:e6.set})}};function e8(e,t,r,n,a){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=r,this.reject=n,this.psd=a}function e9(e,t){if(eZ.push(t),null===e._state){var r=e._lib&&ta();t=eJ(t),e._state=!1,e._value=t,ep&&null!==t&&"object"==typeof t&&!t._promise&&function(e){try{e.apply(null,void 0)}catch(e){}}(()=>{var r=$(t,"stack");t._promise=e,z(t,"stack",{get:()=>eH?r&&(r.get?r.get.apply(t):r.value):e.stack})}),eX.some(t=>t._value===e._value)||eX.push(e),e7(e),r&&to()}}function e7(e){var t=e._listeners;e._listeners=[];for(var r=0,n=t.length;r<n;++r)te(e,t[r]);var a=e._PSD;--a.ref||a.finalize(),0===e3&&(++e3,eG(()=>{0==--e3&&ti()},[]))}function te(e,t){if(null!==e._state){var r=e._state?t.onFulfilled:t.onRejected;if(null===r)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++e3,eG(tt,[r,e,t])}else e._listeners.push(t)}function tt(e,t,r){try{eQ=t;var n,a=t._value;t._state?n=e(a):(eZ.length&&(eZ=[]),n=e(a),-1===eZ.indexOf(a)&&function(e){for(var t=eX.length;t;)if(eX[--t]._value===e._value)return void eX.splice(t,1)}(t)),r.resolve(n)}catch(e){r.reject(e)}finally{eQ=null,0==--e3&&ti(),--r.psd.ref||r.psd.finalize()}}function tr(e,t){var r=t?t._numPrev+1:0;r<100&&(e._prev=t,e._numPrev=r)}function tn(){ta()&&to()}function ta(){var e=eq;return eq=!1,eY=!1,e}function to(){var e,t,r;do for(;e2.length>0;)for(e=e2,e2=[],r=e.length,t=0;t<r;++t){var n=e[t];n[0].apply(null,n[1])}while(e2.length>0);eq=!0,eY=!0}function ti(){var e=eX;eX=[],e.forEach(e=>{e._PSD.onunhandled.call(null,e._value,e)});for(var t=e4.slice(0),r=t.length;r;)t[--r]()}function ts(e){return new e5(eF,!1,e)}function tl(e,t){var r=e1;return function(){var n=ta(),a=e1;try{return tw(r,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{tw(a,!1),n&&to()}}}B(e5.prototype,{then:e6,_then:function(e,t){te(this,new e8(null,null,e,t,e1))},catch:function(e){if(1==arguments.length)return this.then(null,e);var t=arguments[0],r=arguments[1];return"function"==typeof t?this.then(null,e=>e instanceof t?r(e):ts(e)):this.then(null,e=>e&&e.name===t?r(e):ts(e))},finally:function(e){return this.then(t=>(e(),t),t=>(e(),ts(t)))},stack:{get:function(){if(this._stack)return this._stack;try{eH=!0;var e=(function e(t,r,n){if(r.length===n)return r;var a="";if(!1===t._state){var o,i,s=t._value;null!=s?(o=s.name||"Error",i=s.message||s,a=ev(s,0)):(o=s,i=""),r.push(o+(i?": "+i:"")+a)}return ep&&((a=ev(t._stackHolder,2))&&-1===r.indexOf(a)&&r.push(a),t._prev&&e(t._prev,r,n)),r})(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{eH=!1}}},timeout:function(e,t){return e<1/0?new e5((r,n)=>{var a=setTimeout(()=>n(new eE.Timeout(t)),e);this.then(r,n).finally(clearTimeout.bind(null,a))}):this}}),"u">typeof Symbol&&Symbol.toStringTag&&z(e5.prototype,Symbol.toStringTag,"Dexie.Promise"),e0.env=tj(),B(e5,{all:function(){var e=ed.apply(null,arguments).map(tg);return new e5(function(t,r){0===e.length&&t([]);var n=e.length;e.forEach((a,o)=>e5.resolve(a).then(r=>{e[o]=r,--n||t(e)},r))})},resolve:e=>{if(e instanceof e5)return e;if(e&&"function"==typeof e.then)return new e5((t,r)=>{e.then(t,r)});var t=new e5(eF,!0,e);return tr(t,eQ),t},reject:ts,race:function(){var e=ed.apply(null,arguments).map(tg);return new e5((t,r)=>{e.map(e=>e5.resolve(e).then(t,r))})},PSD:{get:()=>e1,set:e=>e1=e},totalEchoes:{get:()=>tp},newPSD:th,usePSD:tO,scheduler:{get:()=>eG,set:e=>{eG=e}},rejectionMapper:{get:()=>eJ,set:e=>{eJ=e}},follow:(e,t)=>new e5((r,n)=>th((t,r)=>{var n=e1;n.unhandleds=[],n.onunhandled=r,n.finalize=eN(function(){var e;e=()=>{0===this.unhandleds.length?t():r(this.unhandleds[0])},e4.push(function t(){e(),e4.splice(e4.indexOf(t),1)}),++e3,eG(()=>{0==--e3&&ti()},[])},n.finalize),e()},t,r,n))}),eU&&(eU.allSettled&&z(e5,"allSettled",function(){let e=ed.apply(null,arguments).map(tg);return new e5(t=>{0===e.length&&t([]);let r=e.length,n=Array(r);e.forEach((e,a)=>e5.resolve(e).then(e=>n[a]={status:"fulfilled",value:e},e=>n[a]={status:"rejected",reason:e}).then(()=>--r||t(n)))})}),eU.any&&"u">typeof AggregateError&&z(e5,"any",function(){let e=ed.apply(null,arguments).map(tg);return new e5((t,r)=>{0===e.length&&r(AggregateError([]));let n=e.length,a=Array(n);e.forEach((e,o)=>e5.resolve(e).then(e=>t(e),e=>{a[o]=e,--n||r(AggregateError(a))}))})}));let tu={awaits:0,echoes:0,id:0};var tc=0,td=[],tf=0,tp=0,tm=0;function th(e,t,r,n){var a=e1,o=Object.create(a);o.parent=a,o.ref=0,o.global=!1,o.id=++tm;var i=e0.env;o.env=e$?{Promise:e5,PromiseProp:{value:e5,configurable:!0,writable:!0},all:e5.all,race:e5.race,allSettled:e5.allSettled,any:e5.any,resolve:e5.resolve,reject:e5.reject,nthen:tk(i.nthen,o),gthen:tk(i.gthen,o)}:{},t&&M(o,t),++a.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=tO(o,e,r,n);return 0===o.ref&&o.finalize(),s}function ty(){return tu.id||(tu.id=++tc),++tu.awaits,tu.echoes+=100,tu.id}function tv(){return!!tu.awaits&&(0==--tu.awaits&&(tu.id=0),tu.echoes=100*tu.awaits,!0)}function tg(e){return tu.echoes&&e&&e.constructor===eU?(ty(),e.then(e=>(tv(),e),e=>(tv(),tA(e)))):e}function tb(e){++tp,tu.echoes&&0!=--tu.echoes||(tu.echoes=tu.id=0),td.push(e1),tw(e,!0)}function tx(){var e=td[td.length-1];td.pop(),tw(e,!1)}function tw(e,t){var r,n=e1;if((t?!tu.echoes||tf++&&e===e1:!tf||--tf&&e===e1)||(r=t?tb.bind(null,e):tx,eW.call(eB,r)),e!==e1&&(e1=e,n===e0&&(e0.env=tj()),e$)){var a=e0.env.Promise,o=e.env;eV.then=o.nthen,a.prototype.then=o.gthen,(n.global||e.global)&&(Object.defineProperty(T,"Promise",o.PromiseProp),a.all=o.all,a.race=o.race,a.resolve=o.resolve,a.reject=o.reject,o.allSettled&&(a.allSettled=o.allSettled),o.any&&(a.any=o.any))}}function tj(){var e=T.Promise;return e$?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(T,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:eV.then,gthen:e.prototype.then}:{}}function tO(e,t,r,n,a){var o=e1;try{return tw(e,!0),t(r,n,a)}finally{tw(o,!1)}}function tS(e,t,r,n){return"function"!=typeof e?e:function(){var a,o=e1;r&&ty(),tw(t,!0);try{return e.apply(this,arguments)}finally{tw(o,!1),n&&(a=tv,eW.call(eB,a))}}}function tk(e,t){return function(r,n){return e.call(this,tS(r,t),tS(n,t))}}-1===(""+eW).indexOf("[native code]")&&(ty=tv=eD);let tE="unhandledrejection";function tP(e,t){var r;try{r=t.onuncatched(e)}catch(e){}if(!1!==r)try{var n,a={promise:t,reason:e};if(T.document&&document.createEvent?((n=document.createEvent("Event")).initEvent(tE,!0,!0),M(n,a)):T.CustomEvent&&M(n=new CustomEvent(tE,{detail:a}),a),n&&T.dispatchEvent&&(dispatchEvent(n),!T.PromiseRejectionEvent&&T.onunhandledrejection))try{T.onunhandledrejection(n)}catch(e){}ep&&n&&!n.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}var tA=e5.reject;let tD="3.2.7",tC=String.fromCharCode(65535),tT=-1/0,tN="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",tR="String expected.",tM=[],tI="u">typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),t_=e=>!/(dexie\.js|dexie\.min\.js)/.test(e),tL="__dbnames",tF="readonly",tB="readwrite";function tV(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}let tz={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function tW(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=eo(t))[e],t)}class tU{_trans(e,t,r){let n=this._tx||e1.trans,a=this.name;function o(e,r,n){if(!n.schema[a])throw new eE.NotFound("Table "+a+" not part of transaction");return t(n.idbtrans,n)}let i=ta();try{return n&&n.db===this.db?n===e1.trans?n._promise(e,o,r):th(()=>n._promise(e,o,r),{trans:n,transless:e1.transless||e1}):function e(t,r,n,a){if(t.idbdb&&(t._state.openComplete||e1.letThrough||t._vip)){var o=t._createTransaction(r,n,t._dbSchema);try{o.create(),t._state.PR1398_maxLoop=3}catch(o){return o.name===ek.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>e(t,r,n,a))):tA(o)}return o._promise(r,(e,t)=>th(()=>(e1.trans=o,a(e,t,o)))).then(e=>o._completion.then(()=>e))}if(t._state.openComplete)return tA(new eE.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return tA(new eE.DatabaseClosed);t.open().catch(eD)}return t._state.dbReadyPromise.then(()=>e(t,r,n,a))}(this.db,e,[this.name],o)}finally{i&&to()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",t=>this.core.get({trans:t,key:e}).then(e=>this.hook.reading.fire(e))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(R(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);let t=N(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);let r=this.schema.indexes.concat(this.schema.primKey).filter(e=>{if(e.compound&&t.every(t=>e.keyPath.indexOf(t)>=0)){for(let r=0;r<t.length;++r)if(-1===t.indexOf(e.keyPath[r]))return!1;return!0}return!1}).sort((e,t)=>e.keyPath.length-t.keyPath.length)[0];if(r&&this.db._maxKey!==tC){let n=r.keyPath.slice(0,t.length);return this.where(n).equals(n.map(t=>e[t]))}!r&&ep&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);let{idxByName:n}=this.schema,a=this.db._deps.indexedDB;function o(e,t){try{return 0===a.cmp(e,t)}catch(e){return!1}}let[i,s]=t.reduce(([t,r],a)=>{let i=n[a],s=e[a];return[t||i,t||!i?tV(r,i&&i.multi?e=>{let t=Z(e,a);return R(t)&&t.some(e=>o(s,e))}:e=>o(s,Z(e,a))):r]},[null,null]);return i?this.where(i.name).equals(e[i.keyPath]).filter(s):r?this.filter(s):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,R(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;let t=t=>{if(!t)return t;let r=Object.create(e.prototype);for(var n in t)if(F(t,n))try{r[n]=t[n]}catch(e){}return r};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass(function(e){M(this,e)})}add(e,t){let{auto:r,keyPath:n}=this.schema.primKey,a=e;return n&&r&&(a=tW(n)(e)),this._trans("readwrite",e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[a]})).then(e=>e.numFailures?e5.reject(e.failures[0]):e.lastResult).then(t=>{if(n)try{Q(e,n,t)}catch(e){}return t})}update(e,t){if("object"!=typeof e||R(e))return this.where(":id").equals(e).modify(t);{let r=Z(e,this.schema.primKey.keyPath);if(void 0===r)return tA(new eE.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?N(t).forEach(r=>{Q(e,r,t[r])}):t(e,{value:e,primKey:r})}catch(e){}return this.where(":id").equals(r).modify(t)}}put(e,t){let{auto:r,keyPath:n}=this.schema.primKey,a=e;return n&&r&&(a=tW(n)(e)),this._trans("readwrite",e=>this.core.mutate({trans:e,type:"put",values:[a],keys:null!=t?[t]:null})).then(e=>e.numFailures?e5.reject(e.failures[0]):e.lastResult).then(t=>{if(n)try{Q(e,n,t)}catch(e){}return t})}delete(e){return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"delete",keys:[e]})).then(e=>e.numFailures?e5.reject(e.failures[0]):void 0)}clear(){return this._trans("readwrite",e=>this.core.mutate({trans:e,type:"deleteRange",range:tz})).then(e=>e.numFailures?e5.reject(e.failures[0]):void 0)}bulkGet(e){return this._trans("readonly",t=>this.core.getMany({keys:e,trans:t}).then(e=>e.map(e=>this.hook.reading.fire(e))))}bulkAdd(e,t,r){let n=Array.isArray(t)?t:void 0,a=(r=r||(n?void 0:t))?r.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:r,keyPath:o}=this.schema.primKey;if(o&&n)throw new eE.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(n&&n.length!==e.length)throw new eE.InvalidArgument("Arguments objects and keys must have the same length");let i=e.length,s=o&&r?e.map(tW(o)):e;return this.core.mutate({trans:t,type:"add",keys:n,values:s,wantResults:a}).then(({numFailures:e,results:t,lastResult:r,failures:n})=>{if(0===e)return a?t:r;throw new eS(`${this.name}.bulkAdd(): ${e} of ${i} operations failed`,n)})})}bulkPut(e,t,r){let n=Array.isArray(t)?t:void 0,a=(r=r||(n?void 0:t))?r.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:r,keyPath:o}=this.schema.primKey;if(o&&n)throw new eE.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(n&&n.length!==e.length)throw new eE.InvalidArgument("Arguments objects and keys must have the same length");let i=e.length,s=o&&r?e.map(tW(o)):e;return this.core.mutate({trans:t,type:"put",keys:n,values:s,wantResults:a}).then(({numFailures:e,results:t,lastResult:r,failures:n})=>{if(0===e)return a?t:r;throw new eS(`${this.name}.bulkPut(): ${e} of ${i} operations failed`,n)})})}bulkDelete(e){let t=e.length;return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"delete",keys:e})).then(({numFailures:e,lastResult:r,failures:n})=>{if(0===e)return r;throw new eS(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,n)})}}function t$(e){var t={},r=function(r,n){if(n){for(var a=arguments.length,o=Array(a-1);--a;)o[a-1]=arguments[a];return t[r].subscribe.apply(null,o),e}if("string"==typeof r)return t[r]};r.addEventType=o;for(var n=1,a=arguments.length;n<a;++n)o(arguments[n]);return r;function o(e,n,a){if("object"!=typeof e){n||(n=e_),a||(a=eD);var i={subscribers:[],fire:a,subscribe:function(e){-1===i.subscribers.indexOf(e)&&(i.subscribers.push(e),i.fire=n(i.fire,e))},unsubscribe:function(e){i.subscribers=i.subscribers.filter(function(t){return t!==e}),i.fire=i.subscribers.reduce(n,a)}};return t[e]=r[e]=i,i}N(e).forEach(function(t){var r=e[t];if(R(r))o(t,e[t][0],e[t][1]);else{if("asap"!==r)throw new eE.InvalidArgument("Invalid event config");var n=o(t,eC,function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];n.subscribers.forEach(function(e){Y(function(){e.apply(null,t)})})})}})}}function tH(e,t){return W(t).from({prototype:e}),t}function tK(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function tG(e,t){e.filter=tV(e.filter,t)}function tq(e,t,r){var n=e.replayFilter;e.replayFilter=n?()=>tV(n(),t()):t,e.justLimit=r&&!n}function tY(e,t){if(e.isPrimKey)return t.primaryKey;let r=t.getIndexByKeyPath(e.index);if(!r)throw new eE.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return r}function tX(e,t,r){let n=tY(e,t.schema);return t.openCursor({trans:r,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:n,range:e.range}})}function tZ(e,t,r,n){let a=e.replayFilter?tV(e.filter,e.replayFilter()):e.filter;if(e.or){let o={},i=(e,r,n)=>{if(!a||a(r,n,e=>r.stop(e),e=>r.fail(e))){var i=r.primaryKey,s=""+i;"[object ArrayBuffer]"===s&&(s=""+new Uint8Array(i)),F(o,s)||(o[s]=!0,t(e,r,n))}};return Promise.all([e.or._iterate(i,r),tQ(tX(e,n,r),e.algorithm,i,!e.keysOnly&&e.valueMapper)])}return tQ(tX(e,n,r),tV(e.algorithm,a),t,!e.keysOnly&&e.valueMapper)}function tQ(e,t,r,n){var a=tl(n?(e,t,a)=>r(n(e),t,a):r);return e.then(e=>{if(e)return e.start(()=>{var r=()=>e.continue();t&&!t(e,e=>r=e,t=>{e.stop(t),r=eD},t=>{e.fail(t),r=eD})||a(e.value,e,e=>r=e),r()})})}function tJ(e,t){try{let r=t0(e),n=t0(t);if(r!==n)return"Array"===r?1:"Array"===n?-1:"binary"===r?1:"binary"===n?-1:"string"===r?1:"string"===n?-1:"Date"===r?1:"Date"!==n?NaN:-1;switch(r){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){let r=e.length,n=t.length,a=r<n?r:n;for(let r=0;r<a;++r)if(e[r]!==t[r])return e[r]<t[r]?-1:1;return r===n?0:r<n?-1:1}(t1(e),t1(t));case"Array":return function(e,t){let r=e.length,n=t.length,a=r<n?r:n;for(let r=0;r<a;++r){let n=tJ(e[r],t[r]);if(0!==n)return n}return r===n?0:r<n?-1:1}(e,t)}}catch(e){}return NaN}function t0(e){let t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";let r=es(e);return"ArrayBuffer"===r?"binary":r}function t1(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class t2{_read(e,t){var r=this._ctx;return r.error?r.table._trans(null,tA.bind(null,r.error)):r.table._trans("readonly",e).then(t)}_write(e){var t=this._ctx;return t.error?t.table._trans(null,tA.bind(null,t.error)):t.table._trans("readwrite",e,"locked")}_addAlgorithm(e){var t=this._ctx;t.algorithm=tV(t.algorithm,e)}_iterate(e,t){return tZ(this._ctx,e,t,this._ctx.table.core)}clone(e){var t=Object.create(this.constructor.prototype),r=Object.create(this._ctx);return e&&M(r,e),t._ctx=r,t}raw(){return this._ctx.valueMapper=null,this}each(e){var t=this._ctx;return this._read(r=>tZ(t,e,r,t.table.core))}count(e){return this._read(e=>{let t=this._ctx,r=t.table.core;if(tK(t,!0))return r.count({trans:e,query:{index:tY(t,r.schema),range:t.range}}).then(e=>Math.min(e,t.limit));var n=0;return tZ(t,()=>(++n,!1),e,r).then(()=>n)}).then(e)}sortBy(e,t){let r=e.split(".").reverse(),n=r[0],a=r.length-1;function o(e,t){return t?o(e[r[t]],t-1):e[n]}var i="next"===this._ctx.dir?1:-1;function s(e,t){var r=o(e,a),n=o(t,a);return r<n?-i:r>n?i:0}return this.toArray(function(e){return e.sort(s)}).then(t)}toArray(e){return this._read(e=>{var t=this._ctx;if("next"===t.dir&&tK(t,!0)&&t.limit>0){let{valueMapper:r}=t,n=tY(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:n,range:t.range}}).then(({result:e})=>r?e.map(r):e)}{let r=[];return tZ(t,e=>r.push(e),e,t.table.core).then(()=>r)}},e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,tK(t)?tq(t,()=>{var t=e;return(e,r)=>0===t||(1===t?--t:r(()=>{e.advance(t),t=0}),!1)}):tq(t,()=>{var t=e;return()=>--t<0})),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),tq(this._ctx,()=>{var t=e;return function(e,r,n){return--t<=0&&r(n),t>=0}},!0),this}until(e,t){return tG(this._ctx,function(r,n,a){return!e(r.value)||(n(a),t)}),this}first(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)}last(e){return this.reverse().first(e)}filter(e){var t;return tG(this._ctx,function(t){return e(t.value)}),(t=this._ctx).isMatch=tV(t.isMatch,e),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,r){e(r.key,r)})}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,r){e(r.primaryKey,r)})}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var r=[];return this.each(function(e,t){r.push(t.key)}).then(function(){return r}).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&tK(t,!0)&&t.limit>0)return this._read(e=>{var r=tY(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:r,range:t.range}})}).then(({result:e})=>e).then(e);t.keysOnly=!t.isMatch;var r=[];return this.each(function(e,t){r.push(t.primaryKey)}).then(function(){return r}).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys(function(e){return e[0]}).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var r={};return tG(this._ctx,function(e){var t=e.primaryKey.toString(),n=F(r,t);return r[t]=!0,!n}),this}modify(e){var t=this._ctx;return this._write(r=>{var n;if("function"==typeof e)n=e;else{var a=N(e),o=a.length;n=function(t){for(var r=!1,n=0;n<o;++n){var i=a[n],s=e[i];Z(t,i)!==s&&(Q(t,i,s),r=!0)}return r}}let i=t.table.core,{outbound:s,extractKey:l}=i.schema.primaryKey,u=this.db._options.modifyChunkSize||200,c=[],d=0,f=[],p=(e,t)=>{let{failures:r,numFailures:n}=t;for(let t of(d+=e-n,N(r)))c.push(r[t])};return this.clone().primaryKeys().then(a=>{let o=c=>{let d=Math.min(u,a.length-c);return i.getMany({trans:r,keys:a.slice(c,c+d),cache:"immutable"}).then(f=>{let m=[],h=[],y=s?[]:null,v=[];for(let e=0;e<d;++e){let t=f[e],r={value:eo(t),primKey:a[c+e]};!1!==n.call(r,r.value,r)&&(null==r.value?v.push(a[c+e]):s||0===tJ(l(t),l(r.value))?(h.push(r.value),s&&y.push(a[c+e])):(v.push(a[c+e]),m.push(r.value)))}let g=tK(t)&&t.limit===1/0&&("function"!=typeof e||e===t3)&&{index:t.index,range:t.range};return Promise.resolve(m.length>0&&i.mutate({trans:r,type:"add",values:m}).then(e=>{for(let t in e.failures)v.splice(parseInt(t),1);p(m.length,e)})).then(()=>(h.length>0||g&&"object"==typeof e)&&i.mutate({trans:r,type:"put",keys:y,values:h,criteria:g,changeSpec:"function"!=typeof e&&e}).then(e=>p(h.length,e))).then(()=>(v.length>0||g&&e===t3)&&i.mutate({trans:r,type:"delete",keys:v,criteria:g}).then(e=>p(v.length,e))).then(()=>a.length>c+d&&o(c+u))})};return o(0).then(()=>{if(c.length>0)throw new eO("Error modifying one or more objects",c,d,f);return a.length})})})}delete(){var e=this._ctx,t=e.range;return tK(e)&&(e.isPrimKey&&!tI||3===t.type)?this._write(r=>{let{primaryKey:n}=e.table.core.schema;return e.table.core.count({trans:r,query:{index:n,range:t}}).then(n=>e.table.core.mutate({trans:r,type:"deleteRange",range:t}).then(({failures:e,lastResult:t,results:r,numFailures:a})=>{if(a)throw new eO("Could not delete some values",Object.keys(e).map(t=>e[t]),n-a);return n-a}))}):this.modify(t3)}}let t3=(e,t)=>t.value=null;function t4(e,t){return e<t?-1:+(e!==t)}function t5(e,t){return e>t?-1:+(e!==t)}function t6(e,t,r){var n=e instanceof rt?new e.Collection(e):e;return n._ctx.error=r?new r(t):TypeError(t),n}function t8(e){return new e.Collection(e,()=>re("")).limit(0)}function t9(e,t,r,n){var a,o,i,s,l,u,c,d=r.length;if(!r.every(e=>"string"==typeof e))return t6(e,tR);function f(e){a="next"===e?e=>e.toUpperCase():e=>e.toLowerCase(),o="next"===e?e=>e.toLowerCase():e=>e.toUpperCase(),i="next"===e?t4:t5;var t=r.map(function(e){return{lower:o(e),upper:a(e)}}).sort(function(e,t){return i(e.lower,t.lower)});s=t.map(function(e){return e.upper}),l=t.map(function(e){return e.lower}),u=e,c="next"===e?"":n}f("next");var p=new e.Collection(e,()=>t7(s[0],l[d-1]+n));p._ondirectionchange=function(e){f(e)};var m=0;return p._addAlgorithm(function(e,r,n){var a=e.key;if("string"!=typeof a)return!1;var f=o(a);if(t(f,l,m))return!0;for(var p=null,h=m;h<d;++h){var y=function(e,t,r,n,a,o){for(var i=Math.min(e.length,n.length),s=-1,l=0;l<i;++l){var u=t[l];if(u!==n[l])return 0>a(e[l],r[l])?e.substr(0,l)+r[l]+r.substr(l+1):0>a(e[l],n[l])?e.substr(0,l)+n[l]+r.substr(l+1):s>=0?e.substr(0,s)+t[s]+r.substr(s+1):null;0>a(e[l],u)&&(s=l)}return i<n.length&&"next"===o?e+r.substr(e.length):i<e.length&&"prev"===o?e.substr(0,r.length):s<0?null:e.substr(0,s)+n[s]+r.substr(s+1)}(a,f,s[h],l[h],i,u);null===y&&null===p?m=h+1:(null===p||i(p,y)>0)&&(p=y)}return r(null!==p?function(){e.continue(p+c)}:n),!1}),p}function t7(e,t,r,n){return{type:2,lower:e,upper:t,lowerOpen:r,upperOpen:n}}function re(e){return{type:1,lower:e,upper:e}}class rt{get Collection(){return this._ctx.table.db.Collection}between(e,t,r,n){r=!1!==r,n=!0===n;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(r||n)&&(!r||!n)?t8(this):new this.Collection(this,()=>t7(e,t,!r,!n))}catch(e){return t6(this,tN)}}equals(e){return null==e?t6(this,tN):new this.Collection(this,()=>re(e))}above(e){return null==e?t6(this,tN):new this.Collection(this,()=>t7(e,void 0,!0))}aboveOrEqual(e){return null==e?t6(this,tN):new this.Collection(this,()=>t7(e,void 0,!1))}below(e){return null==e?t6(this,tN):new this.Collection(this,()=>t7(void 0,e,!1,!0))}belowOrEqual(e){return null==e?t6(this,tN):new this.Collection(this,()=>t7(void 0,e))}startsWith(e){return"string"!=typeof e?t6(this,tR):this.between(e,e+tC,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):t9(this,(e,t)=>0===e.indexOf(t[0]),[e],tC)}equalsIgnoreCase(e){return t9(this,(e,t)=>e===t[0],[e],"")}anyOfIgnoreCase(){var e=ed.apply(ec,arguments);return 0===e.length?t8(this):t9(this,(e,t)=>-1!==t.indexOf(e),e,"")}startsWithAnyOfIgnoreCase(){var e=ed.apply(ec,arguments);return 0===e.length?t8(this):t9(this,(e,t)=>t.some(t=>0===e.indexOf(t)),e,tC)}anyOf(){let e=ed.apply(ec,arguments),t=this._cmp;try{e.sort(t)}catch(e){return t6(this,tN)}if(0===e.length)return t8(this);let r=new this.Collection(this,()=>t7(e[0],e[e.length-1]));r._ondirectionchange=r=>{t="next"===r?this._ascending:this._descending,e.sort(t)};let n=0;return r._addAlgorithm((r,a,o)=>{let i=r.key;for(;t(i,e[n])>0;)if(++n===e.length)return a(o),!1;return 0===t(i,e[n])||(a(()=>{r.continue(e[n])}),!1)}),r}notEqual(e){return this.inAnyRange([[tT,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){let e=ed.apply(ec,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return t6(this,tN)}let t=e.reduce((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[tT,t]],null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){let r=this._cmp,n=this._ascending,a=this._descending,o=this._min,i=this._max;if(0===e.length)return t8(this);if(!e.every(e=>void 0!==e[0]&&void 0!==e[1]&&0>=n(e[0],e[1])))return t6(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",eE.InvalidArgument);let s=!t||!1!==t.includeLowers,l=t&&!0===t.includeUppers,u,c=n;function d(e,t){return c(e[0],t[0])}try{(u=e.reduce(function(e,t){let n=0,a=e.length;for(;n<a;++n){let a=e[n];if(0>r(t[0],a[1])&&r(t[1],a[0])>0){a[0]=o(a[0],t[0]),a[1]=i(a[1],t[1]);break}}return n===a&&e.push(t),e},[])).sort(d)}catch(e){return t6(this,tN)}let f=0,p=l?e=>n(e,u[f][1])>0:e=>n(e,u[f][1])>=0,m=s?e=>a(e,u[f][0])>0:e=>a(e,u[f][0])>=0,h=p,y=new this.Collection(this,()=>t7(u[0][0],u[u.length-1][1],!s,!l));return y._ondirectionchange=e=>{"next"===e?(h=p,c=n):(h=m,c=a),u.sort(d)},y._addAlgorithm((e,t,r)=>{for(var a=e.key;h(a);)if(++f===u.length)return t(r),!1;return!!(!p(a)&&!m(a))||(0===this._cmp(a,u[f][1])||0===this._cmp(a,u[f][0])||t(()=>{c===n?e.continue(u[f][0]):e.continue(u[f][1])}),!1)}),y}startsWithAnyOf(){let e=ed.apply(ec,arguments);return e.every(e=>"string"==typeof e)?0===e.length?t8(this):this.inAnyRange(e.map(e=>[e,e+tC])):t6(this,"startsWithAnyOf() only works with strings")}}function rr(e){return tl(function(t){return rn(t),e(t.target.error),!1})}function rn(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}let ra="storagemutated",ro="x-storagemutated-1",ri=t$(null,ra);class rs{_lock(){return q(!e1.global),++this._reculock,1!==this._reculock||e1.global||(e1.lockOwnerFor=this),this}_unlock(){if(q(!e1.global),0==--this._reculock)for(e1.global||(e1.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{tO(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&e1.lockOwnerFor!==this}create(e){if(!this.mode)return this;let t=this.db.idbdb,r=this.db._state.dbOpenError;if(q(!this.idbtrans),!e&&!t)switch(r&&r.name){case"DatabaseClosedError":throw new eE.DatabaseClosed(r);case"MissingAPIError":throw new eE.MissingAPI(r.message,r);default:throw new eE.OpenFailed(r)}if(!this.active)throw new eE.TransactionInactive;return q(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=tl(t=>{rn(t),this._reject(e.error)}),e.onabort=tl(t=>{rn(t),this.active&&this._reject(new eE.Abort(e.error)),this.active=!1,this.on("abort").fire(t)}),e.oncomplete=tl(()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&ri.storagemutated.fire(e.mutatedParts)}),this}_promise(e,t,r){if("readwrite"===e&&"readwrite"!==this.mode)return tA(new eE.ReadOnly("Transaction is readonly"));if(!this.active)return tA(new eE.TransactionInactive);if(this._locked())return new e5((n,a)=>{this._blockedFuncs.push([()=>{this._promise(e,t,r).then(n,a)},e1])});if(r)return th(()=>{var e=new e5((e,r)=>{this._lock();let n=t(e,r,this);n&&n.then&&n.then(e,r)});return e.finally(()=>this._unlock()),e._lib=!0,e});var n=new e5((e,r)=>{var n=t(e,r,this);n&&n.then&&n.then(e,r)});return n._lib=!0,n}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();let r=e5.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then(()=>r);else{t._waitingFor=r,t._waitingQueue=[];var n=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(n.get(-1/0).onsuccess=e)}()}var a=t._waitingFor;return new e5((e,n)=>{r.then(r=>t._waitingQueue.push(tl(e.bind(null,r))),e=>t._waitingQueue.push(tl(n.bind(null,e)))).finally(()=>{t._waitingFor===a&&(t._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new eE.Abort))}table(e){let t=this._memoizedTables||(this._memoizedTables={});if(F(t,e))return t[e];let r=this.schema[e];if(!r)throw new eE.NotFound("Table "+e+" not part of transaction");let n=new this.db.Table(e,r,this);return n.core=this.db.core.table(e),t[e]=n,n}}function rl(e,t,r,n,a,o,i){return{name:e,keyPath:t,unique:r,multi:n,auto:a,compound:o,src:(r&&!i?"&":"")+(n?"*":"")+(a?"++":"")+ru(t)}}function ru(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function rc(e,t,r){return{name:e,primKey:t,indexes:r,mappedClass:null,idxByName:X(r,e=>[e.name,e])}}let rd=e=>{try{return e.only([[]]),rd=()=>[[]],[[]]}catch(e){return rd=()=>tC,tC}};function rf(e){return null==e?()=>{}:"string"==typeof e?1===e.split(".").length?t=>t[e]:t=>Z(t,e):t=>Z(t,e)}function rp(e){return[].slice.call(e)}let rm=0;function rh(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function ry({_novip:e},t){let r=t.db,n=function(e,t,{IDBKeyRange:r,indexedDB:n},a){var o;return{dbcore:(o=function(e,t,r){let n;function a(e){if(3===e.type)return null;if(4===e.type)throw Error("Cannot convert never type to IDBKeyRange");let{lower:r,upper:n,lowerOpen:a,upperOpen:o}=e;return void 0===r?void 0===n?null:t.upperBound(n,!!o):void 0===n?t.lowerBound(r,!!a):t.bound(r,n,!!a,!!o)}let{schema:o,hasGetAll:i}=(n=rp(e.objectStoreNames),{schema:{name:e.name,tables:n.map(e=>r.objectStore(e)).map(e=>{let{keyPath:t,autoIncrement:r}=e,n=R(t),a=null==t,o={},i={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:a,compound:n,keyPath:t,autoIncrement:r,unique:!0,extractKey:rf(t)},indexes:rp(e.indexNames).map(t=>e.index(t)).map(e=>{let{name:t,unique:r,multiEntry:n,keyPath:a}=e,i={name:t,compound:R(a),keyPath:a,unique:r,multiEntry:n,extractKey:rf(a)};return o[rh(a)]=i,i}),getIndexByKeyPath:e=>o[rh(e)]};return o[":id"]=i.primaryKey,null!=t&&(o[rh(t)]=i.primaryKey),i})},hasGetAll:n.length>0&&"getAll"in r.objectStore(n[0])&&!("u">typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),s=o.tables.map(e=>{let t;return{name:t=e.name,schema:e,mutate:function({trans:e,type:r,keys:n,values:o,range:i}){return new Promise((s,l)=>{let u;s=tl(s);let c=e.objectStore(t),d=null==c.keyPath,f="put"===r||"add"===r;if(!f&&"delete"!==r&&"deleteRange"!==r)throw Error("Invalid operation type: "+r);let{length:p}=n||o||{length:1};if(n&&o&&n.length!==o.length)throw Error("Given keys array must have same length as given values array.");if(0===p)return s({numFailures:0,failures:{},results:[],lastResult:void 0});let m=[],h=[],y=0,v=e=>{++y,rn(e)};if("deleteRange"===r){if(4===i.type)return s({numFailures:y,failures:h,results:[],lastResult:void 0});3===i.type?m.push(u=c.clear()):m.push(u=c.delete(a(i)))}else{let[e,t]=f?d?[o,n]:[o,null]:[n,null];if(f)for(let n=0;n<p;++n)m.push(u=t&&void 0!==t[n]?c[r](e[n],t[n]):c[r](e[n])),u.onerror=v;else for(let t=0;t<p;++t)m.push(u=c[r](e[t])),u.onerror=v}let g=e=>{let t=e.target.result;m.forEach((e,t)=>null!=e.error&&(h[t]=e.error)),s({numFailures:y,failures:h,results:"delete"===r?n:m.map(e=>e.result),lastResult:t})};u.onerror=e=>{v(e),g(e)},u.onsuccess=g})},getMany:({trans:e,keys:r})=>new Promise((n,a)=>{n=tl(n);let o=e.objectStore(t),i=r.length,s=Array(i),l,u=0,c=0,d=e=>{let t=e.target;s[t._pos]=t.result,++c===u&&n(s)},f=rr(a);for(let e=0;e<i;++e)null!=r[e]&&((l=o.get(r[e]))._pos=e,l.onsuccess=d,l.onerror=f,++u);0===u&&n(s)}),get:({trans:e,key:r})=>new Promise((n,a)=>{n=tl(n);let o=e.objectStore(t).get(r);o.onsuccess=e=>n(e.target.result),o.onerror=rr(a)}),query:e=>new Promise((r,n)=>{r=tl(r);let{trans:o,values:s,limit:l,query:u}=e,c=l===1/0?void 0:l,{index:d,range:f}=u,p=o.objectStore(t),m=d.isPrimaryKey?p:p.index(d.name),h=a(f);if(0===l)return r({result:[]});if(i){let e=s?m.getAll(h,c):m.getAllKeys(h,c);e.onsuccess=e=>r({result:e.target.result}),e.onerror=rr(n)}else{let e=0,t=!s&&"openKeyCursor"in m?m.openKeyCursor(h):m.openCursor(h),a=[];t.onsuccess=n=>{let o=t.result;return o?(a.push(s?o.value:o.primaryKey),++e===l?r({result:a}):void o.continue()):r({result:a})},t.onerror=rr(n)}}),openCursor:function({trans:e,values:r,query:n,reverse:o,unique:i}){return new Promise((s,l)=>{s=tl(s);let{index:u,range:c}=n,d=e.objectStore(t),f=u.isPrimaryKey?d:d.index(u.name),p=o?i?"prevunique":"prev":i?"nextunique":"next",m=!r&&"openKeyCursor"in f?f.openKeyCursor(a(c),p):f.openCursor(a(c),p);m.onerror=rr(l),m.onsuccess=tl(t=>{let r=m.result;if(!r)return void s(null);r.___id=++rm,r.done=!1;let n=r.continue.bind(r),a=r.continuePrimaryKey;a&&(a=a.bind(r));let o=r.advance.bind(r),i=()=>{throw Error("Cursor not stopped")};r.trans=e,r.stop=r.continue=r.continuePrimaryKey=r.advance=()=>{throw Error("Cursor not started")},r.fail=tl(l),r.next=function(){let e=1;return this.start(()=>e--?this.continue():this.stop()).then(()=>this)},r.start=e=>{let t=new Promise((e,t)=>{e=tl(e),m.onerror=rr(t),r.fail=t,r.stop=t=>{r.stop=r.continue=r.continuePrimaryKey=r.advance=i,e(t)}}),s=()=>{if(m.result)try{e()}catch(e){r.fail(e)}else r.done=!0,r.start=()=>{throw Error("Cursor behind last entry")},r.stop()};return m.onsuccess=tl(e=>{m.onsuccess=s,s()}),r.continue=n,r.continuePrimaryKey=a,r.advance=o,s(),t},s(r)},l)})},count({query:e,trans:r}){let{index:n,range:o}=e;return new Promise((e,i)=>{let s=r.objectStore(t),l=n.isPrimaryKey?s:s.index(n.name),u=a(o),c=u?l.count(u):l.count();c.onsuccess=tl(t=>e(t.target.result)),c.onerror=rr(i)})}}}),l={};return s.forEach(e=>l[e.name]=e),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!l[e])throw Error(`Table '${e}' not found`);return l[e]},MIN_KEY:-1/0,MAX_KEY:rd(t),schema:o}}(t,r,a),e.dbcore.reduce((e,{create:t})=>({...e,...t(e)}),o))}}(e._middlewares,r,e._deps,t);e.core=n.dbcore,e.tables.forEach(t=>{let r=t.name;e.core.schema.tables.some(e=>e.name===r)&&(t.core=e.core.table(r),e[r]instanceof e.Table&&(e[r].core=t.core))})}function rv({_novip:e},t,r,n){r.forEach(r=>{let a=n[r];t.forEach(t=>{let n=$(t,r);(!n||"value"in n&&void 0===n.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?z(t,r,{get(){return this.table(r)},set(e){V(this,r,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[r]=new e.Table(r,a))})})}function rg({_novip:e},t){t.forEach(t=>{for(let r in t)t[r]instanceof e.Table&&delete t[r]})}function rb(e,t){return e._cfg.version-t._cfg.version}function rx(e,t){let r,n={del:[],add:[],change:[]};for(r in e)t[r]||n.del.push(r);for(r in t){let a=e[r],o=t[r];if(a){let e={name:r,def:o,recreate:!1,del:[],add:[],change:[]};if(""+(a.primKey.keyPath||"")==""+(o.primKey.keyPath||"")&&(a.primKey.auto===o.primKey.auto||tI)){let t,r=a.idxByName,i=o.idxByName;for(t in r)i[t]||e.del.push(t);for(t in i){let n=r[t],a=i[t];n?n.src!==a.src&&e.change.push(a):e.add.push(a)}(e.del.length>0||e.add.length>0||e.change.length>0)&&n.change.push(e)}else e.recreate=!0,n.change.push(e)}else n.add.push([r,o])}return n}function rw(e,t,r,n){let a=e.db.createObjectStore(t,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(e=>rj(a,e)),a}function rj(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function rO(e,t,r){let n={};return K(t.objectStoreNames,0).forEach(e=>{let t=r.objectStore(e),a=t.keyPath,o=rl(ru(a),a||"",!1,!1,!!t.autoIncrement,a&&"string"!=typeof a,!0),i=[];for(let e=0;e<t.indexNames.length;++e){let r=t.index(t.indexNames[e]);a=r.keyPath;var s=rl(r.name,a,!!r.unique,!!r.multiEntry,!1,a&&"string"!=typeof a,!1);i.push(s)}n[e]=rc(e,o,i)}),n}function rS({_novip:e},t,r){let n=r.db.objectStoreNames;for(let a=0;a<n.length;++a){let o=n[a],i=r.objectStore(o);e._hasGetAll="getAll"in i;for(let e=0;e<i.indexNames.length;++e){let r=i.indexNames[e],n=i.index(r).keyPath,a="string"==typeof n?n:"["+K(n).join("+")+"]";if(t[o]){let e=t[o].idxByName[a];e&&(e.name=r,delete t[o].idxByName[a],t[o].idxByName[r]=e)}}}"u">typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&T.WorkerGlobalScope&&T instanceof T.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class rk{_parseStoresSpec(e,t){N(e).forEach(r=>{if(null!==e[r]){var n=e[r].split(",").map((e,t)=>{let r=(e=e.trim()).replace(/([&*]|\+\+)/g,""),n=/^\[/.test(r)?r.match(/^\[(.*)\]$/)[1].split("+"):r;return rl(r,n||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),R(n),0===t)}),a=n.shift();if(a.multi)throw new eE.Schema("Primary key cannot be multi-valued");n.forEach(e=>{if(e.auto)throw new eE.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new eE.Schema("Index must have a name and cannot be an empty string")}),t[r]=rc(r,a,n)}})}stores(e){let t=this.db;this._cfg.storesSource=this._cfg.storesSource?M(this._cfg.storesSource,e):e;let r=t._versions,n={},a={};return r.forEach(e=>{M(n,e._cfg.storesSource),a=e._cfg.dbschema={},e._parseStoresSpec(n,a)}),t._dbSchema=a,rg(t,[t._allTables,t,t.Transaction.prototype]),rv(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],N(a),a),t._storeNames=N(a),this}upgrade(e){return this._cfg.contentUpgrade=eL(this._cfg.contentUpgrade||eD,e),this}}function rE(e,t){let r=e._dbNamesDB;return r||(r=e._dbNamesDB=new rH(tL,{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),r.table("dbnames")}function rP(e){return e&&"function"==typeof e.databases}function rA(e){return th(function(){return e1.letThrough=!0,e()})}function rD(e){var t=t=>e.next(t),r=a(t),n=a(t=>e.throw(t));function a(e){return t=>{var a=e(t),o=a.value;return a.done?o:o&&"function"==typeof o.then?o.then(r,n):R(o)?Promise.all(o).then(r,n):r(o)}}return a(t)()}function rC(e,t,r){var n=arguments.length;if(n<2)throw new eE.InvalidArgument("Too few arguments");for(var a=Array(n-1);--n;)a[n-1]=arguments[n];return r=a.pop(),[e,et(a),r]}function rT(e,t,r){let n=R(e)?e.slice():[e];for(let e=0;e<r;++e)n.push(t);return n}let rN={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){let r=e.table(t),{schema:n}=r,a={},o=[];function i(e,t,r){let n=rh(e),s=a[n]=a[n]||[],l=null==e?0:"string"==typeof e?1:e.length,u=t>0,c={...r,isVirtual:u,keyTail:t,keyLength:l,extractKey:rf(e),unique:!u&&r.unique};return s.push(c),c.isPrimaryKey||o.push(c),l>1&&i(2===l?e[0]:e.slice(0,l-1),t+1,r),s.sort((e,t)=>e.keyTail-t.keyTail),c}let s=i(n.primaryKey.keyPath,0,n.primaryKey);for(let e of(a[":id"]=[s],n.indexes))i(e.keyPath,0,e);function l(t){var r,n;let a=t.query.index;return a.isVirtual?{...t,query:{index:a,range:(r=t.query.range,n=a.keyTail,{type:1===r.type?2:r.type,lower:rT(r.lower,r.lowerOpen?e.MAX_KEY:e.MIN_KEY,n),lowerOpen:!0,upper:rT(r.upper,r.upperOpen?e.MIN_KEY:e.MAX_KEY,n),upperOpen:!0})}}:t}return{...r,schema:{...n,primaryKey:s,indexes:o,getIndexByKeyPath:function(e){let t=a[rh(e)];return t&&t[0]}},count:e=>r.count(l(e)),query:e=>r.query(l(e)),openCursor(t){let{keyTail:n,isVirtual:a,keyLength:o}=t.query.index;return a?r.openCursor(l(t)).then(r=>r&&Object.create(r,{continue:{value:function(a){null!=a?r.continue(rT(a,t.reverse?e.MAX_KEY:e.MIN_KEY,n)):t.unique?r.continue(r.key.slice(0,o).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,n)):r.continue()}},continuePrimaryKey:{value(t,a){r.continuePrimaryKey(rT(t,e.MAX_KEY,n),a)}},primaryKey:{get:()=>r.primaryKey},key:{get(){let e=r.key;return 1===o?e[0]:e.slice(0,o)}},value:{get:()=>r.value}})):r.openCursor(t)}}}}}};function rR(e,t,r,n){return r=r||{},n=n||"",N(e).forEach(a=>{if(F(t,a)){var o=e[a],i=t[a];if("object"==typeof o&&"object"==typeof i&&o&&i){let e=es(o);e!==es(i)?r[n+a]=t[a]:"Object"===e?rR(o,i,r,n+a+"."):o!==i&&(r[n+a]=t[a])}else o!==i&&(r[n+a]=t[a])}else r[n+a]=void 0}),N(t).forEach(a=>{F(e,a)||(r[n+a]=t[a])}),r}let rM={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){let r=e.table(t),{primaryKey:n}=r.schema;return{...r,mutate(e){let a=e1.trans,{deleting:o,creating:i,updating:s}=a.table(t).hook;switch(e.type){case"add":if(i.fire===eD)break;return a._promise("readwrite",()=>l(e),!0);case"put":if(i.fire===eD&&s.fire===eD)break;return a._promise("readwrite",()=>l(e),!0);case"delete":if(o.fire===eD)break;return a._promise("readwrite",()=>l(e),!0);case"deleteRange":if(o.fire===eD)break;return a._promise("readwrite",()=>(function e(t,a,o){return r.query({trans:t,values:!1,query:{index:n,range:a},limit:o}).then(({result:r})=>l({type:"delete",keys:r,trans:t}).then(n=>n.numFailures>0?Promise.reject(n.failures[0]):r.length<o?{failures:[],numFailures:0,lastResult:void 0}:e(t,{...a,lower:r[r.length-1],lowerOpen:!0},o)))})(e.trans,e.range,1e4),!0)}return r.mutate(e);function l(e){var t,a;let l=e1.trans,u=e.keys||("delete"===(t=e).type?t.keys:t.keys||t.values.map(n.extractKey));if(!u)throw Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:u}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),("add"===(a=e).type?Promise.resolve([]):r.getMany({trans:a.trans,keys:u,cache:"immutable"})).then(t=>{let a=u.map((r,a)=>{let u=t[a],c={onerror:null,onsuccess:null};if("delete"===e.type)o.fire.call(c,r,u,l);else if("add"===e.type||void 0===u){let t=i.fire.call(c,r,e.values[a],l);null==r&&null!=t&&(r=t,e.keys[a]=r,n.outbound||Q(e.values[a],n.keyPath,r))}else{let t=rR(u,e.values[a]),n=s.fire.call(c,t,r,u,l);if(n){let t=e.values[a];Object.keys(n).forEach(e=>{F(t,e)?t[e]=n[e]:Q(t,e,n[e])})}}return c});return r.mutate(e).then(({failures:r,results:n,numFailures:o,lastResult:i})=>{for(let o=0;o<u.length;++o){let i=n?n[o]:u[o],s=a[o];null==i?s.onerror&&s.onerror(r[o]):s.onsuccess&&s.onsuccess("put"===e.type&&t[o]?e.values[o]:i)}return{failures:r,results:n,numFailures:o,lastResult:i}}).catch(e=>(a.forEach(t=>t.onerror&&t.onerror(e)),Promise.reject(e)))})}}}}})};function rI(e,t,r){try{if(!t||t.keys.length<e.length)return null;let n=[];for(let a=0,o=0;a<t.keys.length&&o<e.length;++a)0===tJ(t.keys[a],e[o])&&(n.push(r?eo(t.values[a]):t.values[a]),++o);return n.length===e.length?n:null}catch(e){return null}}let r_={stack:"dbcore",level:-1,create:e=>({table:t=>{let r=e.table(t);return{...r,getMany:e=>{if(!e.cache)return r.getMany(e);let t=rI(e.keys,e.trans._cache,"clone"===e.cache);return t?e5.resolve(t):r.getMany(e).then(t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?eo(t):t},t))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),r.mutate(e))}}})};function rL(e){return!("from"in e)}let rF=function(e,t){if(!this){let t=new rF;return e&&"d"in e&&M(t,e),t}M(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function rB(e,t,r){let n=tJ(t,r);if(isNaN(n))return;if(n>0)throw RangeError();if(rL(e))return M(e,{from:t,to:r,d:1});let a=e.l,o=e.r;if(0>tJ(r,e.from))return a?rB(a,t,r):e.l={from:t,to:r,d:1,l:null,r:null},rW(e);if(tJ(t,e.to)>0)return o?rB(o,t,r):e.r={from:t,to:r,d:1,l:null,r:null},rW(e);0>tJ(t,e.from)&&(e.from=t,e.l=null,e.d=o?o.d+1:1),tJ(r,e.to)>0&&(e.to=r,e.r=null,e.d=e.l?e.l.d+1:1);let i=!e.r;a&&!e.l&&rV(e,a),o&&i&&rV(e,o)}function rV(e,t){rL(t)||function e(t,{from:r,to:n,l:a,r:o}){rB(t,r,n),a&&e(t,a),o&&e(t,o)}(e,t)}function rz(e){let t=rL(e)?null:{s:0,n:e};return{next(e){let r=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,r)for(;t.n.l&&0>tJ(e,t.n.from);)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!r||0>=tJ(e,t.n.to))return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function rW(e){var t,r;let n=((null==(t=e.r)?void 0:t.d)||0)-((null==(r=e.l)?void 0:r.d)||0),a=n>1?"r":n<-1?"l":"";if(a){let t="r"===a?"l":"r",r={...e},n=e[a];e.from=n.from,e.to=n.to,e[a]=n[a],r[a]=n[t],e[t]=r,r.d=rU(r)}e.d=rU(e)}function rU({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}B(rF.prototype,{add(e){return rV(this,e),this},addKey(e){return rB(this,e,e),this},addKeys(e){return e.forEach(e=>rB(this,e,e)),this},[el](){return rz(this)}});let r$={stack:"dbcore",level:0,create:e=>{let t=e.schema.name,r=new rF(e.MIN_KEY,e.MAX_KEY);return{...e,table:n=>{let a=e.table(n),{schema:o}=a,{primaryKey:i}=o,{extractKey:s,outbound:l}=i,u={...a,mutate:e=>{let i=e.trans,s=i.mutatedParts||(i.mutatedParts={}),l=e=>{let r=`idb://${t}/${n}/${e}`;return s[r]||(s[r]=new rF)},u=l(""),c=l(":dels"),{type:d}=e,[f,p]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[],m=e.trans._cache;return a.mutate(e).then(e=>{if(R(f)){"delete"!==d&&(f=e.results),u.addKeys(f);let t=rI(f,m);t||"add"===d||c.addKeys(f),(t||p)&&o.indexes.forEach(function(e){let r=l(e.name||"");function n(t){return null!=t?e.extractKey(t):null}let a=t=>e.multiEntry&&R(t)?t.forEach(e=>r.addKey(e)):r.addKey(t);(t||p).forEach((e,r)=>{let o=t&&n(t[r]),i=p&&n(p[r]);0!==tJ(o,i)&&(null!=o&&a(o),null!=i&&a(i))})})}else if(f){let e={from:f.lower,to:f.upper};c.add(e),u.add(e)}else u.add(r),c.add(r),o.indexes.forEach(e=>l(e.name).add(r));return e})}},c=({query:{index:t,range:r}})=>{var n,a;return[t,new rF(null!=(n=r.lower)?n:e.MIN_KEY,null!=(a=r.upper)?a:e.MAX_KEY)]},d={get:e=>[i,new rF(e.key)],getMany:e=>[i,(new rF).addKeys(e.keys)],count:c,query:c,openCursor:c};return N(d).forEach(e=>{u[e]=function(o){let{subscr:i}=e1;if(i){let u=e=>{let r=`idb://${t}/${n}/${e}`;return i[r]||(i[r]=new rF)},c=u(""),f=u(":dels"),[p,m]=d[e](o);if(u(p.name||"").add(m),!p.isPrimaryKey){if("count"!==e){let t="query"===e&&l&&o.values&&a.query({...o,values:!1});return a[e].apply(this,arguments).then(r=>{if("query"===e){if(l&&o.values)return t.then(({result:e})=>(c.addKeys(e),r));let e=o.values?r.result.map(s):r.result;o.values?c.addKeys(e):f.addKeys(e)}else if("openCursor"===e){let e=o.values;return r&&Object.create(r,{key:{get:()=>(f.addKey(r.primaryKey),r.key)},primaryKey:{get(){let e=r.primaryKey;return f.addKey(e),e}},value:{get:()=>(e&&c.addKey(r.primaryKey),r.value)}})}return r})}f.add(r)}}return a[e].apply(this,arguments)}}),u}}}};class rH{constructor(e,t){var r;this._middlewares={},this.verno=0;const n=rH.dependencies;this._options=t={addons:rH.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};const{addons:a}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const o={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:eD,dbReadyPromise:null,cancelOpen:eD,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};o.dbReadyPromise=new e5(e=>{o.dbReadyResolve=e}),o.openCanceller=new e5((e,t)=>{o.cancelOpen=t}),this._state=o,this.name=e,this.on=t$(this,"populate","blocked","versionchange","close",{ready:[eL,eD]}),this.on.ready.subscribe=G(this.on.ready.subscribe,e=>(t,r)=>{rH.vip(()=>{let n=this._state;if(n.openComplete)n.dbOpenError||e5.resolve().then(t),r&&e(t);else if(n.onReadyBeingFired)n.onReadyBeingFired.push(t),r&&e(t);else{e(t);let n=this;r||e(function e(){n.on.ready.unsubscribe(t),n.on.ready.unsubscribe(e)})}})}),this.Collection=(r=this,tH(t2.prototype,function(e,t){this.db=r;let n=tz,a=null;if(t)try{n=t()}catch(e){a=e}let o=e._ctx,i=o.table,s=i.hook.reading.fire;this._ctx={table:i,index:o.index,isPrimKey:!o.index||i.schema.primKey.keyPath&&o.index===i.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:a,or:o.or,valueMapper:s!==eC?s:null}})),this.Table=function(e){return tH(tU.prototype,function(t,r,n){this.db=e,this._tx=n,this.name=t,this.schema=r,this.hook=e._allTables[t]?e._allTables[t].hook:t$(null,{creating:[eR,eD],reading:[eT,eC],updating:[eI,eD],deleting:[eM,eD]})})}(this),this.Transaction=function(e){return tH(rs.prototype,function(t,r,n,a,o){this.db=e,this.mode=t,this.storeNames=r,this.schema=n,this.chromeTransactionDurability=a,this.idbtrans=null,this.on=t$(this,"complete","error","abort"),this.parent=o||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new e5((e,t)=>{this._resolve=e,this._reject=t}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),tA(e)})})}(this),this.Version=function(e){return tH(rk.prototype,function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(e){return tH(rt.prototype,function(t,r,n){this.db=e,this._ctx={table:t,index:":id"===r?null:r,or:n};let a=e._deps.indexedDB;if(!a)throw new eE.MissingAPI;this._cmp=this._ascending=a.cmp.bind(a),this._descending=(e,t)=>a.cmp(t,e),this._max=(e,t)=>a.cmp(e,t)>0?e:t,this._min=(e,t)=>0>a.cmp(e,t)?e:t,this._IDBKeyRange=e._deps.IDBKeyRange})}(this),this.on("versionchange",e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",e=>{!e.newVersion||e.newVersion<e.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${e.oldVersion/10}`)}),this._maxKey=rd(t.IDBKeyRange),this._createTransaction=(e,t,r,n)=>new this.Transaction(e,t,r,this._options.chromeTransactionDurability,n),this._fireOnBlocked=e=>{this.on("blocked").fire(e),tM.filter(e=>e.name===this.name&&e!==this&&!e._state.vcFired).map(t=>t.on("versionchange").fire(e))},this.use(rN),this.use(rM),this.use(r$),this.use(r_),this.vip=Object.create(this,{_vip:{value:!0}}),a.forEach(e=>e(this))}version(e){if(isNaN(e)||e<.1)throw new eE.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new eE.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);let t=this._versions;var r=t.filter(t=>t._cfg.version===e)[0];return r||(r=new this.Version(e),t.push(r),t.sort(rb),r.stores({}),this._state.autoSchema=!1,r)}_whenReady(e){return this.idbdb&&(this._state.openComplete||e1.letThrough||this._vip)?e():new e5((e,t)=>{if(this._state.openComplete)return t(new eE.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new eE.DatabaseClosed);this.open().catch(eD)}this._state.dbReadyPromise.then(e,t)}).then(e)}use({stack:e,create:t,level:r,name:n}){n&&this.unuse({stack:e,name:n});let a=this._middlewares[e]||(this._middlewares[e]=[]);return a.push({stack:e,create:t,level:null==r?10:r,name:n}),a.sort((e,t)=>e.level-t.level),this}unuse({stack:e,name:t,create:r}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter(e=>r?e.create!==r:!!t&&e.name!==t)),this}open(){return function(e){var t;let r=e._state,{indexedDB:n}=e._deps;if(r.isBeingOpened||e.idbdb)return r.dbReadyPromise.then(()=>r.dbOpenError?tA(r.dbOpenError):e);ep&&(r.openCanceller._stackHolder=ey()),r.isBeingOpened=!0,r.dbOpenError=null,r.openComplete=!1;let a=r.openCanceller;function o(){if(r.openCanceller!==a)throw new eE.DatabaseClosed("db.open() was cancelled")}let i=r.dbReadyResolve,s=null,l=!1,u=()=>new e5((t,a)=>{if(o(),!n)throw new eE.MissingAPI;let i=e.name,u=r.autoSchema?n.open(i):n.open(i,Math.round(10*e.verno));if(!u)throw new eE.MissingAPI;u.onerror=rr(a),u.onblocked=tl(e._fireOnBlocked),u.onupgradeneeded=tl(t=>{if(s=u.transaction,r.autoSchema&&!e._options.allowEmptyDB){u.onerror=rn,s.abort(),u.result.close();let e=n.deleteDatabase(i);e.onsuccess=e.onerror=tl(()=>{a(new eE.NoSuchDatabase(`Database ${i} doesnt exist`))})}else{let r,n,i,f;s.onerror=rr(a);var o,c,d=t.oldVersion>0x4000000000000000?0:t.oldVersion;l=d<1,e._novip.idbdb=u.result,o=d/10,c=s,r=e._dbSchema,(n=e._createTransaction("readwrite",e._storeNames,r)).create(c),n._completion.catch(a),i=n._reject.bind(n),f=e1.transless||e1,th(()=>{e1.trans=n,e1.transless=f,0===o?(N(r).forEach(e=>{rw(c,e,r[e].primKey,r[e].indexes)}),ry(e,c),e5.follow(()=>e.on.populate.fire(n)).catch(i)):(function({_novip:e},t,r,n){let a=[],o=e._versions,i=e._dbSchema=rO(e,e.idbdb,n),s=!1;return o.filter(e=>e._cfg.version>=t).forEach(o=>{a.push(()=>{let a=i,l=o._cfg.dbschema;rS(e,a,n),rS(e,l,n),i=e._dbSchema=l;let u=rx(a,l);u.add.forEach(e=>{rw(n,e[0],e[1].primKey,e[1].indexes)}),u.change.forEach(e=>{if(e.recreate)throw new eE.Upgrade("Not yet support for changing primary key");{let t=n.objectStore(e.name);e.add.forEach(e=>rj(t,e)),e.change.forEach(e=>{t.deleteIndex(e.name),rj(t,e)}),e.del.forEach(e=>t.deleteIndex(e))}});let c=o._cfg.contentUpgrade;if(c&&o._cfg.version>t){let t;ry(e,n),r._memoizedTables={},s=!0;let o=J(l);u.del.forEach(e=>{o[e]=a[e]}),rg(e,[e.Transaction.prototype]),rv(e,[e.Transaction.prototype],N(o),o),r.schema=o;let i=ef(c);i&&ty();let d=e5.follow(()=>{if((t=c(r))&&i){var e=tv.bind(null,null);t.then(e,e)}});return t&&"function"==typeof t.then?e5.resolve(t):d.then(()=>t)}}),a.push(t=>{var n;s&&tI||(n=o._cfg.dbschema,[].slice.call(t.db.objectStoreNames).forEach(e=>null==n[e]&&t.db.deleteObjectStore(e))),rg(e,[e.Transaction.prototype]),rv(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),r.schema=e._dbSchema})}),(function e(){return a.length?e5.resolve(a.shift()(r.idbtrans)).then(e):e5.resolve()})().then(()=>{var e;N(e=i).forEach(t=>{n.db.objectStoreNames.contains(t)||rw(n,t,e[t].primKey,e[t].indexes)})})})(e,o,n,c).catch(i)})}},a),u.onsuccess=tl(()=>{s=null;let n=e._novip.idbdb=u.result,a=K(n.objectStoreNames);if(a.length>0)try{let t,o=n.transaction(1===a.length?a[0]:a,"readonly");r.autoSchema?function({_novip:e},t,r){e.verno=t.version/10;let n=e._dbSchema=rO(0,t,r);e._storeNames=K(t.objectStoreNames,0),rv(e,[e._allTables],N(n),n)}(e,n,o):(rS(e,e._dbSchema,o),((t=rx(rO(0,e.idbdb,o),e._dbSchema)).add.length||t.change.some(e=>e.add.length||e.change.length))&&console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),ry(e,o)}catch(e){}tM.push(e),n.onversionchange=tl(t=>{r.vcFired=!0,e.on("versionchange").fire(t)}),n.onclose=tl(t=>{e.on("close").fire(t)}),l&&function({indexedDB:e,IDBKeyRange:t},r){rP(e)||r===tL||rE(e,t).put({name:r}).catch(eD)}(e._deps,i),t()},a)}).catch(e=>e&&"UnknownError"===e.name&&r.PR1398_maxLoop>0?(r.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),u()):e5.reject(e));return e5.race([a,("u"<typeof navigator?e5.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(e){var r=function(){return indexedDB.databases().finally(e)};t=setInterval(r,100),r()}).finally(function(){return clearInterval(t)}):Promise.resolve()).then(u)]).then(()=>(o(),r.onReadyBeingFired=[],e5.resolve(rA(()=>e.on.ready.fire(e.vip))).then(function t(){if(r.onReadyBeingFired.length>0){let n=r.onReadyBeingFired.reduce(eL,eD);return r.onReadyBeingFired=[],e5.resolve(rA(()=>n(e.vip))).then(t)}}))).finally(()=>{r.onReadyBeingFired=null,r.isBeingOpened=!1}).then(()=>e).catch(t=>{r.dbOpenError=t;try{s&&s.abort()}catch(e){}return a===r.openCanceller&&e._close(),tA(t)}).finally(()=>{r.openComplete=!0,i()})}(this)}_close(){let e=this._state,t=tM.indexOf(this);if(t>=0&&tM.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new e5(t=>{e.dbReadyResolve=t}),e.openCanceller=new e5((t,r)=>{e.cancelOpen=r})}close(){this._close();let e=this._state;this._options.autoOpen=!1,e.dbOpenError=new eE.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){let e=arguments.length>0,t=this._state;return new e5((r,n)=>{let a=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=tl(()=>{!function({indexedDB:e,IDBKeyRange:t},r){rP(e)||r===tL||rE(e,t).delete(r).catch(eD)}(this._deps,this.name),r()}),e.onerror=rr(n),e.onblocked=this._fireOnBlocked};if(e)throw new eE.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(a):a()})}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){let e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return N(this._allTables).map(e=>this._allTables[e])}transaction(){let e=rC.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,r){let n,a,o=e1.trans;o&&o.db===this&&-1===e.indexOf("!")||(o=null);let i=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(a=t.map(e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t}),"r"==e||e===tF)n=tF;else{if("rw"!=e&&e!=tB)throw new eE.InvalidArgument("Invalid transaction mode: "+e);n=tB}if(o){if(o.mode===tF&&n===tB){if(!i)throw new eE.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&a.forEach(e=>{if(o&&-1===o.storeNames.indexOf(e)){if(!i)throw new eE.SubTransaction("Table "+e+" not included in parent transaction.");o=null}}),i&&o&&!o.active&&(o=null)}}catch(e){return o?o._promise(null,(t,r)=>{r(e)}):tA(e)}let s=(function e(t,r,n,a,o){return e5.resolve().then(()=>{let i,s=e1.transless||e1,l=t._createTransaction(r,n,t._dbSchema,a);if(a)l.idbtrans=a.idbtrans;else try{l.create(),t._state.PR1398_maxLoop=3}catch(a){return a.name===ek.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>e(t,r,n,null,o))):tA(a)}let u=ef(o);u&&ty();let c=e5.follow(()=>{if(i=o.call(l,l))if(u){var e=tv.bind(null,null);i.then(e,e)}else"function"==typeof i.next&&"function"==typeof i.throw&&(i=rD(i))},{trans:l,transless:s});return(i&&"function"==typeof i.then?e5.resolve(i).then(e=>l.active?e:tA(new eE.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):c.then(()=>i)).then(e=>(a&&l._resolve(),l._completion.then(()=>e))).catch(e=>(l._reject(e),tA(e)))})}).bind(null,this,n,a,o,r);return o?o._promise(n,s,"lock"):e1.trans?tO(e1.transless,()=>this._whenReady(s)):this._whenReady(s)}table(e){if(!F(this._allTables,e))throw new eE.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}let rK="u">typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class rG{constructor(e){this._subscribe=e}subscribe(e,t,r){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:r})}[rK](){return this}}function rq(e,t){return N(t).forEach(r=>{rV(e[r]||(e[r]=new rF),t[r])}),e}try{n={indexedDB:T.indexedDB||T.mozIndexedDB||T.webkitIndexedDB||T.msIndexedDB,IDBKeyRange:T.IDBKeyRange||T.webkitIDBKeyRange}}catch(e){n={indexedDB:null,IDBKeyRange:null}}function rY(e){let t=rX;try{rX=!0,ri.storagemutated.fire(e)}finally{rX=t}}B(rH,{...eA,delete:e=>new rH(e,{addons:[]}).delete(),exists:e=>new rH(e,{addons:[]}).open().then(e=>(e.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(e){try{return(function({indexedDB:e,IDBKeyRange:t}){return rP(e)?Promise.resolve(e.databases()).then(e=>e.map(e=>e.name).filter(e=>e!==tL)):rE(e,t).toCollection().primaryKeys()})(rH.dependencies).then(e)}catch(e){return tA(new eE.MissingAPI)}},defineClass:()=>function(e){M(this,e)},ignoreTransaction:e=>e1.trans?tO(e1.transless,e):e(),vip:rA,async:function(e){return function(){try{var t=rD(e.apply(this,arguments));return t&&"function"==typeof t.then?t:e5.resolve(t)}catch(e){return tA(e)}}},spawn:function(e,t,r){try{var n=rD(e.apply(r,t||[]));return n&&"function"==typeof n.then?n:e5.resolve(n)}catch(e){return tA(e)}},currentTransaction:{get:()=>e1.trans||null},waitFor:function(e,t){let r=e5.resolve("function"==typeof e?rH.ignoreTransaction(e):e).timeout(t||6e4);return e1.trans?e1.trans.waitFor(r):r},Promise:e5,debug:{get:()=>ep,set:e=>{ep=e,em="dexie"===e?()=>!0:t_}},derive:W,extend:M,props:B,override:G,Events:t$,on:ri,liveQuery:function(e){let t,r=!1,n=new rG(n=>{let a=ef(e),o=!1,i={},s={},l={get closed(){return o},unsubscribe:()=>{o=!0,ri.storagemutated.unsubscribe(f)}};n.start&&n.start(l);let u=!1,c=!1;function d(){return N(s).some(e=>i[e]&&function(e,t){let r=rz(t),n=r.next();if(n.done)return!1;let a=n.value,o=rz(e),i=o.next(a.from),s=i.value;for(;!n.done&&!i.done;){if(0>=tJ(s.from,a.to)&&tJ(s.to,a.from)>=0)return!0;0>tJ(a.from,s.from)?a=(n=r.next(s.from)).value:s=(i=o.next(a.from)).value}return!1}(i[e],s[e]))}let f=e=>{rq(i,e),d()&&p()},p=()=>{let m,h;if(u||o)return;i={};let y={},v=(a&&ty(),m=()=>th(e,{subscr:y,trans:null}),h=e1.trans?tO(e1.transless,m):m(),a&&h.then(tv,tv),h);c||(ri(ra,f),c=!0),u=!0,Promise.resolve(v).then(e=>{r=!0,t=e,u=!1,o||(d()?p():(i={},s=y,n.next&&n.next(e)))},e=>{u=!1,r=!1,n.error&&n.error(e),l.unsubscribe()})};return p(),l});return n.hasValue=()=>r,n.getValue=()=>t,n},extendObservabilitySet:rq,getByKeyPath:Z,setByKeyPath:Q,delByKeyPath:function(e,t){"string"==typeof t?Q(e,t,void 0):"length"in t&&[].map.call(t,function(t){Q(e,t,void 0)})},shallowClone:J,deepClone:eo,getObjectDiff:rR,cmp:tJ,asap:Y,minKey:tT,addons:[],connections:tM,errnames:ek,dependencies:n,semVer:tD,version:tD.split(".").map(e=>parseInt(e)).reduce((e,t,r)=>e+t/Math.pow(10,2*r))}),rH.maxKey=rd(rH.dependencies.IDBKeyRange),"u">typeof dispatchEvent&&"u">typeof addEventListener&&(ri(ra,e=>{if(!rX){let t;tI?(t=document.createEvent("CustomEvent")).initCustomEvent(ro,!0,!0,e):t=new CustomEvent(ro,{detail:e}),rX=!0,dispatchEvent(t),rX=!1}}),addEventListener(ro,({detail:e})=>{rX||rY(e)}));let rX=!1;if("u">typeof BroadcastChannel){let e=new BroadcastChannel(ro);"function"==typeof e.unref&&e.unref(),ri(ra,t=>{rX||e.postMessage(t)}),e.onmessage=e=>{e.data&&rY(e.data)}}else if("u">typeof self&&"u">typeof navigator){ri(ra,e=>{try{rX||("u">typeof localStorage&&localStorage.setItem(ro,JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(t=>t.postMessage({type:ro,changedParts:e})))}catch(e){}}),"u">typeof addEventListener&&addEventListener("storage",e=>{if(e.key===ro){let t=JSON.parse(e.newValue);t&&rY(t.changedParts)}});let e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",function({data:e}){e&&e.type===ro&&rY(e.changedParts)})}e5.rejectionMapper=function(e,t){if(!e||e instanceof ew||e instanceof TypeError||e instanceof SyntaxError||!e.name||!eP[e.name])return e;var r=new eP[e.name](t||e.message,e);return"stack"in e&&z(r,"stack",{get:function(){return this.inner.stack}}),r},em=t_;var rZ=r(70),rQ=r(1442);function rJ(e){return(rJ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function r0(e,t){return(r0=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function r1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(r1=function(){return!!e})()}function r2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var r3=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(){var e,r,n;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return n=["EsmOffline"],r=rJ(r=t),r2(e=function(e,t){var r;if(t&&("object"==((r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,r1()?Reflect.construct(r,n||[],rJ(this).constructor):r.apply(this,n)),"syncQueue",void 0),r2(e,"dynamicOfflineData",void 0),e.version(4).stores({syncQueue:"++id,userId,type,[userId+type]",dynamicOfflineData:"++id,type,identifier,*users,&[type+identifier]"}),e.syncQueue=e.table("syncQueue"),e.dynamicOfflineData=e.table("dynamicOfflineData"),e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r0(t,e),t}(rH);function r4(){return new r3}function r5(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function r6(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function r8(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(e){r6(o,n,a,i,s,"next",e)}function s(e){r6(o,n,a,i,s,"throw",e)}i(void 0)})}}function r9(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r5(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return r5(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r7(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var ne=new r3,nt={},nr=(0,rQ.createGlobalStore)("offline-synchronization",{});function nn(){return nr}function na(){return r8(function(){var e,t,r,n,a,o,i,s,l,u,c,d,f;return r7(this,function(p){switch(p.label){case 0:if(nr.getState().synchronization)return[2];return[4,ne.syncQueue.count()];case 1:e=p.sent(),t={},n=(r=Object.entries(nt)).length,a={},o=new AbortController,i=function(){var e,t,r=nr.getState().synchronization;nr.setState({synchronization:(e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},r),t=t={pendingCount:r.pendingCount-1},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e)})},p.label=2;case 2:p.trys.push([2,,10,11]),nr.setState({synchronization:{totalCount:e,pendingCount:e,abortController:o}}),s=0,p.label=3;case 3:if(!(s<n&&r.length>0))return[3,8];l=r.length,p.label=4;case 4:if(!l--)return[3,7];if(c=(u=r9(r[l],2))[0],!(f=(d=u[1]).dependsOn.map(function(e){return t[e]})).every(Boolean))return[3,6];return a[c]={},[4,Promise.all(f)];case 5:p.sent(),t[c]=function(e,t,r,n){return r8(function(e,t,r,n){var a,o,i,s,l,u,c,d,f,p,m,h,y,v,g,b,x;return r7(this,function(w){switch(w.label){case 0:return a=e.type,o=e.dependsOn,i=e.process,s=[],l=[],[4,no()];case 1:return u=w.sent(),[4,ne.syncQueue.where({type:a,userId:u}).each(function(e,t){s.push([t.primaryKey,e.content,e.descriptor]),l.push(e.content)})];case 2:w.sent(),c=0,w.label=3;case 3:if(!(c<s.length))return[3,11];f=(d=r9(s[c],3))[0],p=d[1],h=(m=d[2]).id,v=void 0===(y=m.dependencies)?[]:y,w.label=4;case 4:return w.trys.push([4,7,9,10]),[4,i(p,{abort:r,index:c,items:l,userId:u,dependencies:v.map(function(e){var r=e.id,n=e.type;return o.includes(n)?t[n][r]:void 0})})];case 5:return g=w.sent(),void 0!==h&&(t[a][h]=g),[4,ne.syncQueue.delete(f)];case 6:case 8:return w.sent(),[3,10];case 7:var j,O;return j=b=w.sent(),x=(null!=(O=Error)&&"u">typeof Symbol&&O[Symbol.hasInstance]?!!O[Symbol.hasInstance](j):j instanceof O)?b:{name:"UnknownError",message:String(b)},[4,ne.syncQueue.update(f,{lastError:{name:x.name,message:x.message}})];case 9:return n(),[7];case 10:return c++,[3,3];case 11:return[2]}})}).apply(this,arguments)}(d,a,o,i),r.splice(l,1),p.label=6;case 6:return[3,4];case 7:return s++,[3,3];case 8:return[4,Promise.allSettled(Object.values(t))];case 9:return p.sent(),[3,11];case 10:return nr.setState({synchronization:void 0}),[7];case 11:return[2]}})})()}function no(){return r8(function(){var e;return r7(this,function(t){switch(t.label){case 0:return[4,(0,rZ.getLoggedInUser)()];case 1:return[2,(null==(e=t.sent())?void 0:e.uuid)||"*"]}})})()}function ni(e,t,r,n){return r8(function(){var a;return r7(this,function(o){switch(o.label){case 0:if(void 0===(a=n&&n.id))return[3,2];return[4,ne.syncQueue.where({type:t,userId:e}).filter(function(e){return(null==e?void 0:e.descriptor.id)===a}).delete().catch(rH.errnames.DatabaseClosed)];case 1:o.sent(),o.label=2;case 2:return[4,ne.syncQueue.add({type:t,content:r,userId:e,descriptor:n||{},createdOn:new Date}).catch(rH.errnames.DatabaseClosed,function(){return -1})];case 3:return[2,o.sent()]}})})()}function ns(e,t,r){return r8(function(){return r7(this,function(n){switch(n.label){case 0:return[4,no()];case 1:return[4,ni(n.sent(),e,t,r)];case 2:return[2,n.sent()]}})})()}function nl(e,t){return r8(function(){return r7(this,function(r){switch(r.label){case 0:return[4,nu(e,t)];case 1:return[2,r.sent().map(function(e){return e.content})]}})})()}function nu(e,t){return r8(function(){var r;return r7(this,function(n){switch(n.label){case 0:return r=t?{type:t,userId:e}:{userId:e},[4,ne.syncQueue.where(r).toArray().catch(rH.errnames.DatabaseClosed,function(){return[]})];case 1:return[2,n.sent()]}})})()}function nc(e){return r8(function(){return r7(this,function(t){switch(t.label){case 0:return[4,no()];case 1:return[4,nl(t.sent(),e)];case 2:return[2,t.sent()]}})})()}function nd(e){return r8(function(){return r7(this,function(t){switch(t.label){case 0:return[4,no()];case 1:return[4,nu(t.sent(),e)];case 2:return[2,t.sent()]}})})()}function nf(e){return r8(function(){return r7(this,function(t){switch(t.label){case 0:return[4,ne.syncQueue.get(e).catch(rH.errnames.DatabaseClosed,function(){})];case 1:return[2,t.sent()]}})})()}function np(e){var t;return!!(null==(t=nt[e])?void 0:t.options.onBeginEditSyncItem)}function nm(e){return r8(function(){var t,r,n;return r7(this,function(a){switch(a.label){case 0:return[4,nf(e)];case 1:if(!(r=a.sent()))throw Error("No sync item with the ID ".concat(e," exists."));if(!(n=null==(t=nt[r.type])?void 0:t.options.onBeginEditSyncItem))throw Error("A sync item with the ID ".concat(e,' exists, but the associated handler (if one exists) doesn\'t support editing the item. You can avoid this error by either verifying that sync items of this type can be edited via the "canEditSynchronizationItemsOfType(type: string)" function or alternatively ensure that the synchronizaton handler for sync items of type "').concat(r.type,'" supports editing items.'));return n(r),[2]}})})()}function nh(e){return r8(function(){return r7(this,function(t){switch(t.label){case 0:return[4,ne.syncQueue.delete(e).catch(rH.errnames.DatabaseClosed)];case 1:return t.sent(),[2]}})})()}function ny(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};nt[e]={type:e,dependsOn:t,process:r,options:n}}var nv=r(1400),ng="OFFLINE+";function nb(){return ng+(0,nv.A)()}function nx(e){return e.startsWith(ng)}function nw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function nj(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function nO(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(e){nj(o,n,a,i,s,"next",e)}function s(e){nj(o,n,a,i,s,"throw",e)}i(void 0)})}}function nS(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var nk={};function nE(){return Object.values(nk)}function nP(e){nk[e.id]&&console.warn('[setupDynamicOfflineDataHandler] Another second handler with the ID "'.concat(e.id,'" was registered. This handler will override the previous one. This could be unintended as the previous handler might run different flows than the newly registered one. If this is the case, ensure that you are setting up the handlers with different IDs.')),nk[e.id]=e}function nA(e){return nO(function(){return nS(this,function(t){switch(t.label){case 0:return[4,n_()];case 1:return[4,nD(t.sent(),e)];case 2:return[2,t.sent()]}})})()}function nD(e,t){return nO(function(){var r;return nS(this,function(n){switch(n.label){case 0:return r=t?{type:t,users:e}:{users:e},[4,new r3().dynamicOfflineData.where(r).toArray().catch(rH.errnames.DatabaseClosed,function(){return[]})];case 1:return[2,n.sent()]}})})()}function nC(e,t){return nO(function(){return nS(this,function(r){switch(r.label){case 0:return[4,n_()];case 1:return[4,nT(r.sent(),e,t)];case 2:return[2,r.sent()]}})})()}function nT(e,t,r){return nO(function(){var n,a;return nS(this,function(o){switch(o.label){case 0:return[4,(n=new r3).dynamicOfflineData.get({type:t,identifier:r}).catch(rH.errnames.DatabaseClosed,function(){})];case 1:if(a=o.sent())return[3,3];return[4,n.dynamicOfflineData.add({users:[e],type:t,identifier:r}).catch(rH.errnames.DatabaseClosed)];case 2:return o.sent(),[3,5];case 3:var i;if(a.users.includes(e))return[3,5];return[4,n.dynamicOfflineData.update(a.id,{users:((function(e){if(Array.isArray(e))return nw(e)})(i=a.users)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e){if(e){if("string"==typeof e)return nw(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return nw(e,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])}).catch(rH.errnames.DatabaseClosed)];case 4:o.sent(),o.label=5;case 5:return[2]}})})()}function nN(e,t){return nO(function(){return nS(this,function(r){switch(r.label){case 0:return[4,n_()];case 1:return[4,nR(r.sent(),e,t)];case 2:return[2,r.sent()]}})})()}function nR(e,t,r){return nO(function(){var n,a;return nS(this,function(o){switch(o.label){case 0:return[4,(n=new r3).dynamicOfflineData.get({type:t,identifier:r,users:e}).catch(rH.errnames.DatabaseClosed,function(){})];case 1:if(!(a=o.sent()))return[3,5];if(!(a.users.length>1))return[3,3];return[4,n.dynamicOfflineData.update(a.id,{users:a.users.filter(function(t){return t!==e})}).catch(rH.errnames.DatabaseClosed)];case 2:return o.sent(),[3,5];case 3:return[4,n.dynamicOfflineData.delete(a.id).catch(rH.errnames.DatabaseClosed)];case 4:o.sent(),o.label=5;case 5:return[2]}})})()}function nM(e,t){return nO(function(){return nS(this,function(r){switch(r.label){case 0:return[4,nA(e)];case 1:return[4,Promise.all(r.sent().map(function(e){return nO(function(){return nS(this,function(r){return[2,nI(e.type,e.identifier,t)]})})()}))];case 2:return r.sent(),[2]}})})()}function nI(e,t,r){return nO(function(){var n,a,o,i,s,l,u,c,d;return nS(this,function(f){switch(f.label){case 0:return[4,nC(e,t)];case 1:return f.sent(),n=new r3,[4,n_()];case 2:return a=f.sent(),[4,n.dynamicOfflineData.get({type:e,identifier:t}).catch(rH.errnames.DatabaseClosed,function(){})];case 3:if(o=f.sent(),i=nE().filter(function(t){return t.type===e}),!o)return[2];return[4,Promise.all(i.map(function(e){return nO(function(){var n,a,o;return nS(this,function(i){try{return e.sync(t,r),[2,{id:e.id,error:void 0}]}catch(t){return o=null!=(n=null==(a=t.message)?void 0:a.toString())?n:t.toString(),[2,{id:e.id,error:o}]}})})()}))];case 4:if(l=(s=f.sent()).filter(function(e){return!e.error}).map(function(e){return e.id}),u=s.filter(function(e){return e.error}).map(function(e){return e.id}),c=s.filter(function(e){return e.error}).map(function(e){return{handlerId:e.id,message:e.error}}),d={syncedOn:new Date,syncedBy:a,succeededHandlers:l,erroredHandlers:u,errors:c},!o.id)return[3,6];return[4,n.dynamicOfflineData.update(o.id,{syncState:d}).catch(rH.errnames.DatabaseClosed)];case 5:f.sent(),f.label=6;case 6:return[2]}})})()}function n_(){return nO(function(){var e;return nS(this,function(t){switch(t.label){case 0:return[4,(0,rZ.getLoggedInUser)()];case 1:if(!(e=t.sent().uuid))throw Error("Using the dynamic offline data API requires a logged in user.");return[2,e]}})})()}function nL(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}var nF=(0,rQ.createGlobalStore)("offline-entities",{offlineEntityDataSyncState:{},handlers:{}});function nB(){return nW(),nF}function nV(e,t){nW(),nP({type:"entity",displayName:t.displayName,id:e,isSynced:function(){return Promise.resolve(!0)},sync:function(e,r){return t.onOfflineEntityAdded({entityUuid:e,signal:null!=r?r:new AbortController().signal})}})}function nz(e){var t;return(t=function(){return function(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return nW(),[4,nI("entity",e)];case 1:return t.sent(),[2]}})},function(){var e=this,r=arguments;return new Promise(function(n,a){var o=t.apply(e,r);function i(e){nL(o,n,a,i,s,"next",e)}function s(e){nL(o,n,a,i,s,"throw",e)}i(void 0)})})()}function nW(){console.warn("The offline entity API has been deprecated and will be removed in a future release. To prevent future crashes, the functions remain available for the moment, but any invocations should be migrated ASAP.")}},7230(e,t,r){"use strict";r.d(t,{yw:()=>v,Y1:()=>f,FZ:()=>y,oB:()=>d.o});var n=r(9250),a=r(3645),o=r(5794),i=r(3766),s=r(1221),l=r(9120);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var c=r(7267),d=r(8148);function f(e,t){var r=t.name;if(!r)return void console.error("An extension definition in ".concat(e,' is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nextension definition.'),t);t.slots&&t.slot&&console.warn("The extension ".concat(r," from ").concat(e," declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored."));var n=t.slots?t.slots:t.slot?[t.slot]:[];if(!t.component)return void console.error("The extension ".concat(r," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the extension definition."),t);if(n.some(c.rq)){var a=(0,c.Sk)(t.meta);a.length>0&&console.warn("L'extension ".concat(r," de ").concat(e," est sur un slot de rail du shell mais ne s'affichera pas : ").concat(a.join(" ; "),"."))}(0,c.VK)({name:r,load:function(){return(0,d.o)(e,t.component)},meta:t.meta||{},order:t.order,moduleName:e,privileges:t.privileges,online:null==(l=t.online)||l,offline:null!=(u=t.offline)&&u,featureFlag:t.featureFlag,displayExpression:t.displayExpression});var o=!0,i=!1,s=void 0;try{for(var l,u,f,p=n[Symbol.iterator]();!(o=(f=p.next()).done);o=!0){var m=f.value;(0,c.K0)(m,r)}}catch(e){i=!0,s=e}finally{try{o||null==p.return||p.return()}finally{if(i)throw s}}}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function m(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var h=[];function y(e,t){if(e&&t&&(void 0===t?"undefined":m(t))==="object"){var r,n,y,v,g,b,x,w,j,O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){try{return"5.0.0"}catch(e){return}}(),r=e.platforms,n=e.requiredCapabilities,a=e.frameworkRange;if(Array.isArray(r)&&r.length>0){var o=(0,i.t)();if(!r.includes(o))return{reason:"platform",target:o,platforms:function(e){if(Array.isArray(e))return u(e)}(r)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e){if(e){if("string"==typeof e)return u(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,void 0)}}(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}if("string"==typeof a&&a.length>0&&t&&!(0,l.r)(a,t))return{reason:"framework",required:a,current:t};if(Array.isArray(n)&&n.length>0){var c=n.filter(function(e){return!(0,s.p)(e)});if(c.length>0)return{reason:"capability",missing:c}}return null}(t);if(O)return void console.warn("[egen] L'application ".concat(e," n'est pas enregistr\xe9e dans cet environnement."),p({app:e},O));(0,a.registerModuleWithConfigSystem)(e);var S=null!=(r=t.extensions)?r:[],k=null!=(n=t.modals)?n:[],E=null!=(y=t.workspaces)?y:[],P=null!=(v=t.workspaceGroups)?v:[],A=null!=(g=t.featureFlags)?g:[],D=null!=(b=t.workspaceGroups2)?b:[],C=null!=(x=t.workspaceWindows2)?x:[],T=null!=(w=t.workspaces2)?w:[];null==(j=t.pages)||j.forEach(function(t){if(t&&(void 0===t?"undefined":m(t))==="object"&&Object.hasOwn(t,"component")&&(Object.hasOwn(t,"route")||Object.hasOwn(t,"routeRegex")||Object.hasOwn(t,"routes"))){var r,n;h.push((r=p({},t),n=n={appName:e},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))}else console.warn("A page for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),S.forEach(function(t){t&&(void 0===t?"undefined":m(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?f(e,t):console.warn("An extension for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),k.forEach(function(t){if(t&&(void 0===t?"undefined":m(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")){var r;(r=t.name)?t.component?(0,c.Ju)({name:r,moduleName:e,load:function(){return(0,d.o)(e,t.component)}}):console.error("The modal ".concat(r," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the modal definition."),t):console.error("A modal definition in ".concat(e,' is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nmodal definition.'),t)}else console.warn("A modal for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),E.forEach(function(t){t&&(void 0===t?"undefined":m(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){var r=t.name;if(!r)return console.error("A workspace definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.'),t);var n=t.title;if(!n)return console.error("A workspace definition in ".concat(e,' is missing a title and thus cannot be registered.\nTo fix this, ensure that you define the "title" field inside the workspace definition.'),t);if(!t.component)return console.error("The workspace ".concat(r," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the workspace definition."),t);(0,c.pm)({name:r,title:n,component:t.component,moduleName:e,type:t.type,canHide:t.canHide,canMaximize:t.canMaximize,width:t.width,preferredWindowSize:t.preferredWindowSize,groups:t.groups,load:function(){return(0,d.o)(e,t.component)}});var a=!0,o=!1,i=void 0;try{for(var s,l=(t.groups||[])[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var u=s.value;(0,c.io)({name:u,members:[r]})}}catch(e){o=!0,i=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw i}}}(e,t):console.warn("A workspace for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),P.forEach(function(t){if(t&&(void 0===t?"undefined":m(t))==="object"&&Object.hasOwn(t,"name")){var r,n;(n=t.name)?(0,c.io)({name:n,members:null!=(r=t.members)?r:[]}):console.error("A workspace group definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.'),t)}else console.warn("A workspace group for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),(0,c.rD)(e,D),function(e,t){(0,c.Qb)(e,t);var r=!0,n=!1,a=void 0;try{for(var o,i=t[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var s=o.value;if(s.icon){var l={name:s.name,component:s.icon,slot:s.group,order:s.order};f(e,l)}}}catch(e){n=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw a}}}(e,C),(0,c.Uh)(e,T),A.forEach(function(t){if(t&&(void 0===t?"undefined":m(t))==="object"&&Object.hasOwn(t,"flagName"))t.flagName?t.label?t.description?(0,o.uA)(t.flagName,t.label,t.description):console.error("A feature flag definition in ".concat(e,' is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "description" field inside the feature flag definition.'),t):console.error("A feature flag definition in ".concat(e,' is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "label" field inside the feature flag definition.'),t):console.error("A feature flag definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the feature flag definition.'),t);else console.warn("A feature flag for ".concat(e," could not be registered as it does not appear to have the required properties"),t)})}}function v(){h.sort(function(e,t){return e.appName.localeCompare(t.appName,"en")});var e=new Map,t=!0,r=!1,a=void 0;try{for(var i,s=h[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var l,u=i.value;e.has(u.appName)?e.set(u.appName,e.get(u.appName)+1):e.set(u.appName,0);var c=e.get(u.appName),f="".concat(u.appName,"-page-").concat(c),p=null!=(l=u.containerDomId)?l:"egen-apps-container",m=document.getElementById(p),y="single-spa-application:".concat(f);if(m){var v=document.createElement("div");v.id=y,null==m||m.appendChild(v)}else throw Error("".concat(u.appName," ").concat(u.component,' cannot be mounted to "').concat(p,'"; DOM element does not exist.'));!function(e,t){var r,a,i,s,l=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);if(!1===l)return console.warn('A registered page definition is missing a route and thus cannot be registered.\nTo fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.',e);if(!t.component)return console.warn('A registered page definition is missing a component and thus cannot be registered.\nTo fix this, ensure that you define the "component" field inside the page definition.',e);var u=(r=function e(t){if(Array.isArray(t)){var r,a=t.map(e);return function(e){return a.some(function(t){return t(e)})}}return"string"==typeof t?(0,n.pathToActiveWhen)(window.getEgenSpaBase()+t):(null!=(r=RegExp)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](t):t instanceof r)?function(e){return t.test(e.pathname.replace(window.getEgenSpaBase(),""))}:function(){return t}}(l),a=t.online,i=t.offline,s=t.featureFlag,window.offlineEnabled?function(e){return!!(navigator.onLine&&(null==a||a)||!navigator.onLine&&null!=i&&i)&&(!s||!!(0,o.jj)(s))&&r(e)}:r);(0,n.registerApplication)(e,function(){return(0,d.o)(t.appName,t.component)},u)}(f,u)}}catch(e){r=!0,a=e}finally{try{t||null==s.return||s.return()}finally{if(r)throw a}}}},8148(e,t,r){"use strict";r.d(t,{o:()=>u});var n=r(99),a=r(3645);function o(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function s(e){o(i,n,a,s,l,"next",e)}function l(e){o(i,n,a,s,l,"throw",e)}s(void 0)})}}function s(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var l=new Map;function u(e,t){return i(function(){var r,o,u,d,f;return s(this,function(p){switch(p.label){case 0:return u=(o=(r=t.indexOf("#"))>=0)?t.substring(0,r):e,d=o?t.substring(r+1):t,[4,(0,n.rL)(u)];case 1:if((f=p.sent())&&Object.hasOwn(f,d)&&"function"==typeof f[d]){var m,h;return[2,(m=u,h=f,i(function(){var e,t;return s(this,function(r){switch(r.label){case 0:if(m in l)return[3,5];if(null==h)return[3,1];return t=h,[3,3];case 1:return[4,(0,n.rL)(m)];case 2:t=r.sent(),r.label=3;case 3:return e=t,[4,l[m]=new Promise(function(t,r){if(Object.hasOwn(e,"startupApp")){var n=e.startupApp;if("function"==typeof n)return Promise.resolve(n()).then(function(){(0,a.registerModuleLoad)(m),t(null)}).catch(r)}(0,a.registerModuleLoad)(m),t(null)})];case 4:return r.sent(),[3,7];case 5:return[4,l[m]];case 6:r.sent(),r.label=7;case 7:return[2]}})})()).then(function(){return f[d]()})]}return f?f&&Object.hasOwn(f,d)?console.warn("The export ".concat(t,", defined in ").concat(e,"'s routes.json, is not a function")):console.warn("".concat(u,' does not define a component called "').concat(d,'", referenced in ').concat(e,"'s routes.json. This cannot be loaded.")):console.warn("Unknown app ".concat(u," for ").concat(t," defined in ").concat(e,"'s routes.json")),[2,c]}})})()}var c={bootstrap:function(){return Promise.resolve()},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}}},3903(e,t,r){"use strict";r.d(t,{g2:()=>ev,Rt:()=>es,XE:()=>ee,a3:()=>eu,LW:()=>en,a7:()=>et,L8:()=>q,Yq:()=>ea,L3:()=>X,fU:()=>ei,_U:()=>Z,d4:()=>el,p0:()=>eh,kQ:()=>Y,qE:()=>ec,pf:()=>G});var n,a=r(9405),o=r(227);if("u">typeof navigator){let e=navigator;n=Array.isArray(e.languages)?e.languages[0]:e.language}else if("u">typeof process){let e=process.env;n=e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}var i=function(e){e=(e=e.replace(/_/g,"-")).replace(/[.:][\w-]*$/,"");try{return new Intl.Locale(e).baseName}catch{return"en-US"}}(n||"en-US"),s=class extends Date{invalid=null;isValid(){return!Number.isNaN(this.valueOf())}},l={};for(let e=0;e<100;e++)l[(e<=9?"0":"")+e]=e+(e>51?1900:2e3);var u={arab:1632,arabext:1776,bali:6992,beng:2534,deva:2406,fullwide:65296,gujr:2790,khmr:6112,knda:3302,laoo:3792,limb:6470,mlym:3430,mong:6160,mymr:4160,orya:2918,tamldec:3046,telu:3174,thai:3664,tibt:3872},c="[1234567890一二三四五六七八九〇\\d]",d={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,〇:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9},f={},p={"Eastern Daylight Time":-240,"Eastern Standard Time":-300,"Central Daylight Time":-300,"Central Standard Time":-360,"Mountain Daylight Time":-360,"Mountain Standard Time":-420,"Pacific Daylight Time":-420,"Pacific Standard Time":-480,"Coordinated Universal Time":0,ACDT:630,ACST:570,ACT:480,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,AMST:-180,AMT:-240,ART:-180,AST:180,AWDT:540,AWST:480,AZOST:-60,AZT:240,BDT:360,BIOT:360,BIT:-720,BOT:-240,BRST:-120,BRT:-180,BTT:360,CAT:120,CCT:390,CDT:-300,CEDT:120,CEST:120,CET:60,CHADT:825,CHAST:765,CHOT:480,ChST:600,CHUT:600,CIST:-480,CIT:480,CKT:-600,CLST:-180,CLT:-240,COST:-240,COT:-300,CST:-360,CT:480,CVT:-60,CXT:420,DAVT:420,DDUT:600,DFT:60,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEDT:180,EEST:180,EET:120,EGST:0,EGT:-60,EIT:540,EST:-300,FET:180,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GIT:-540,GMT:0,GST:-120,GYT:-240,HADT:-540,HAEC:120,HAST:-600,HKT:480,HMT:300,HOVT:420,HST:-600,IBST:0,ICT:420,IDT:180,IOT:180,IRDT:270,IRKT:480,IRST:210,IST:120,JST:540,KGT:360,KOST:660,KRAT:420,KST:540,LHST:630,LINT:840,MAGT:720,MART:-510,MAWT:300,MDT:-360,MET:60,MEST:120,MHT:720,MIST:660,MIT:-510,MMT:390,MSK:180,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:660,NPT:345,NST:-150,NT:-150,NUT:-660,NZDT:780,NZST:720,OMST:360,ORAT:300,PDT:-420,PET:-300,PETT:720,PGT:600,PHOT:780,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PYST:-180,PYT:-240,RET:240,ROTT:-180,SAKT:660,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SLST:330,SRET:660,SRT:-180,SST:480,SYOT:180,TAHT:-600,THA:420,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TOT:780,TVT:720,UCT:0,ULAT:480,USZ1:120,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-240,VLAT:600,VOLT:240,VOST:360,VUT:660,WAKT:720,WAST:120,WAT:60,WEDT:60,WEST:60,WET:0,WIT:420,WST:480,YAKT:540,YEKT:300},m={zone:p,year:l,meridiem:{am:0,pm:12,"a.m.":0,"p.m.":12},month:{january:1,jan:1,february:2,feb:2,march:3,mar:3,april:4,apr:4,may:5,june:6,jun:6,july:7,jul:7,august:8,aug:8,september:9,sep:9,october:10,oct:10,november:11,nov:11,december:12,dec:12},dayname:{sunday:0,sun:0,monday:1,mon:1,tuesday:2,tue:2,wednesday:3,wed:3,thursday:4,thu:4,friday:5,fri:5,saturday:6,sat:6},digit:{}},h={MONTHNAME:"january|february|march|april|may|june|july|august|september|october|november|december|jan\\.?|feb\\.?|mar\\.?|apr\\.?|may\\.?|jun\\.?|jul\\.?|aug\\.?|sep\\.?|oct\\.?|nov\\.?|dec\\.?",DAYNAME:"sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun\\.?|mon\\.?|tue\\.?|wed\\.?|thu\\.?|fri\\.?|sat\\.?",ZONE:`\\(?(?:${Object.keys(p).join("|")})\\)?`,MERIDIEM:"am|pm|a.m.|p.m.",ORDINAL:"st|nd|rd|th|\\.",YEAR:"\\d{4}|\\d{2}",YEAR2:"\\d{2}",YEAR4:"\\d{4}",YEAR6:"-\\d{6}|\\+?\\d{5,6}",MONTH:"1[0-2]|0?[1-9]",MONTH2:"1[0-2]|0[1-9]",DAY:"3[01]|[12]\\d|0?[1-9]",DAY2:"3[01]|[12]\\d|0[1-9]",OFFSET:"(?:GMT)?[\xb1−+-](?:[01]\\d[0-5]\\d|[01]\\d:[0-5]\\d|[01]?\\d)",H24:"[01]\\d|2[0-3]",H12:"0?[1-9]|1[012]",MIN:"[0-5]\\d",SEC:"[0-5]\\d|60",MS:"\\d{9}|\\d{6}|\\d{1,3}",GAP:"[\\s/.,-]{1,}"},y={...h,YEAR:"*{4}|*{2}",YEAR4:"*{4}",YEAR6:"-*{6}|\\+?*{5,6}",MONTH:"*{1,2}",MONTH2:"*{2}",DAY:"*{1,2}",DAY2:"*{2}",OFFSET:"(?:GMT)?[\xb1−+-](?:*{4}|*{2}:*{2}|*{1,2})",H24:"*{2}",H12:"*{1,2}",MIN:"*{2}",SEC:"*{2}",MS:"*{9}|*{6}|*{3}"},v={},g=class e{locale;lookups;vars;numberingSystem;baseName;dateOptions;static factory(t=i){let r=t.toLowerCase(),n=v[r];if(n)return n;let a=new e(t);return v[r]=a,a}constructor(e=i){this.locale=e,this.lookups={...m},this.vars={...h};const t=new Intl.NumberFormat(this.locale);this.numberingSystem=t.resolvedOptions().numberingSystem,this.dateOptions=new Intl.DateTimeFormat(this.locale).resolvedOptions(),this.baseName=new Intl.Locale(this.locale).baseName,this.build()}toInt(e){return"number"==typeof e?e:"string"==typeof e?this.stringToInt(e):void 0}stringToInt(e){if("latn"===this.numberingSystem&&!this.baseName.startsWith("zh")){let t=parseInt(e,10);if(!Number.isNaN(t))return t}let t="";for(let r=0;r<e.length;r++)t+=String(this.lookups.digit[e[r]]);return parseInt(t,10)}millisecondToInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;let t=e.slice(0,3);return 1===t.length?100*this.stringToInt(t):2===t.length?10*this.stringToInt(t):this.stringToInt(t)}monthNameToInt(e){if("string"!=typeof e)return;let t=e.toLocaleLowerCase(this.locale).replace(/\.$/,"");return this.lookups.month[t]||12}h12ToInt(e,t){if("string"!=typeof e)return;let r=this.lookups.meridiem[t?.toLowerCase()]||0,n=this.stringToInt(e);return n<12&&12===r&&(n+=12),12===n&&0===r&&(n=0),n}zoneToOffset(e){if("string"==typeof e)return e=e.replace(/[^a-z\s]/gi,""),this.lookups.zone[e]}offsetToMinutes(e){if("string"!=typeof e)return;let t=e.match(/^(?:GMT)?([±−+-])(..?):?(..)?$/);if(t){let[,e,r,n]=t;return("-"===e||"−"===e?-1:1)*(60*this.stringToInt(r)+(n?this.stringToInt(n):0))}return 0}build(){"latn"===this.dateOptions.numberingSystem?this.lookups.digit=d:this.buildNumbers(),!/^en/i.test(this.locale)&&(this.buildMonthNames(),this.buildDaynames(),/zh/i.test(this.locale)||this.buildMeridiems())}buildNumbers(){let{group:e,lookup:t}=function(e){let t=f[e];if(t)return t;if("fullwide"===e||"hanidec"===e)return{group:c,lookup:{...d}};let r=u[e];if(!r)return{group:"\\d",lookup:{...d}};let n=String.fromCharCode(r),a=String.fromCharCode(r+9),o={};for(let e=0;e<10;e++)o[String.fromCharCode(r+e)]=e;return f[e]={group:`[${n}-${a}]`,lookup:o},f[e]}(this.numberingSystem);for(let r in this.lookups.digit=t,y)Object.hasOwn(y,r)&&(this.vars[r]=y[r].replace(/\*/g,e))}buildMonthNames(){let e={},t={};if(/^fi/i.test(this.locale))"tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu".split("|").forEach((r,n)=>{["","k","kuu","kuuta"].forEach((a,o)=>{e[r+a+(o<2?"\\.?":"")]=!0,t[r+a]=n+1})});else{let r=[],n=e=>"month"===e.type;for(let e=0;e<12;e++)r.push(new Date(2017,e,1));for(let a of["full","long","medium"]){let o=Intl.DateTimeFormat(this.locale,{dateStyle:a});for(let i=0;i<12;i++){let s=o.formatToParts(r[i]).find(n);if(!s)continue;let l=s.value.toLocaleLowerCase(this.locale);/^\d+$/.test(l)||(/^ko/i.test(this.locale)&&(l+="월"),"medium"===a?(l=l.replace(/\.$/,""),e[`${l}\\.?`]=!0):e[l]=!0,t[l]=i+1)}}let a=Intl.DateTimeFormat(this.locale,{month:"short"});for(let o=0;o<12;o++){let i=a.formatToParts(r[o]).find(n);if(!i)continue;let s=i.value.toLocaleLowerCase(this.locale);s=s.replace(/\.$/,""),e[`${s}\\.?`]=!0,t[s]=o+1}}this.vars.MONTHNAME=Object.keys(e).join("|"),this.lookups.month=t}buildDaynames(){let e=[],t=e=>"weekday"===e.type;for(let t=0;t<7;t++)e.push(new Date(2017,0,t+1));let r=[],n={};for(let a of["long","short"]){let o=Intl.DateTimeFormat(this.locale,{weekday:a});for(let i=0;i<7;i++){let s=o.formatToParts(e[i]).find(t);if(!s)continue;let l=s.value.toLocaleLowerCase(this.locale);"short"===a?(l=l.replace(/\.$/,""),r.push(`${l}\\.?`)):r.push(l),n[l]=i}}this.vars.DAYNAME=r.join("|"),this.lookups.dayname=n}buildMeridiems(){let e=[new Date(2017,0,1),new Date(2017,0,1,23,0,0)],t=e=>"dayPeriod"===e.type,r=[],n={},a=Intl.DateTimeFormat(this.locale,{timeStyle:"long"});for(let o=0;o<2;o++){let i=a.formatToParts(e[o]).find(t);if(!i)return;let s=i.value.toLocaleLowerCase(this.locale);r.push(s),n[s]=12*o}this.vars.MERIDIEM=r.join("|"),this.lookups.meridiem=n}compile(e){return RegExp(e.replace(/_([A-Z0-9]+)_/g,(e,t)=>{if(!this.vars[t])throw Error(`Template string contains invalid variable _${t}_`);return this.vars[t]}),"i")}},b=["ee-TG","en-AS","en-CA","en-FM","en-GH","en-GU","en-KE","en-KY","en-MH","en-MP","en-US","en-VI","en-WS","jp-JP","sm-AS","sm-SM"],x={y:"year",M:"month",d:"day",w:"week",h:"hour",m:"minute",s:"second",ms:"millisecond"},w=()=>new Date;function j(e){return function(t){let r={};for(let n=0,a=e.length;n<a;n++){let a=e[n];a&&(r[a]=t[n])}return r}}var O=class{doneChecker;fallback;patterns;formatter;constructor({doneChecker:e,fallback:t,patterns:r,formatter:n}){this.doneChecker=e,this.fallback=t,this.patterns=r,this.formatter=n}attempt(e){if("string"!=typeof e)return this.fallback(e);let t=e.trim(),r={},n=!1;for(let e of this.patterns){let a=t.match(e.regex);if(!a)continue;n=!0;let o=e.handler(a);if(o){for(let[e,t]of Object.entries(o))e in r||void 0===t||(r[e]=t);let e=a.index??0;if(t=(t=t.slice(0,e)+t.slice(e+a[0].length+1)).trim(),this.doneChecker(r,t))break}}return n?this.formatter(r):this.fallback(e)}},S=["year","month","day","hour","minute","second","millisecond","offset"],k={};function E(e,t){return""===t||/^\s+$/.test(t)||"year"in e&&("month"in e||"monthname"in e)&&"day"in e&&"hour"in e&&"minute"in e&&"second"in e&&"millisecond"in e&&("zone"in e||"offset"in e)}var P=[[/([^\d.]+)(\d{1,2})\.(\d{2})\.(\d{2})(\D|$)/,"$1$2:$3:$4$5"],[/([^\d.]+)(\d{1,2})\.(\d{2})(\D|$)/,"$1$2:$3$4"]],A={ar:[[/ /g," "]],bn:[[/,/g,""]],zh:[[/早上\s*([\d:]+)/,"$1am"],[/凌晨\s*([\d:]+)/,"$1am"],[/上午\s*([\d:]+)/,"$1am"],[/下午\s*([\d:]+)/,"$1pm"],[/晚上\s*([\d:]+)/,"$1pm"]],he:[[/ב/gi,""]],de:[[/ um /g," "]],pt:[[/\sde /gi," "]],es:[[/\sde /gi," "]],da:[[/\sden /gi," "],...P],ru:[[/ г\./g,""]],th:[[/\s*นาฬิกา\s*/i,":"],[/\s*นาที\s*/i,":"],[/\s*วินาที\s*/i," "]],ko:[[/\s*시\s*/,":"],[/\s*분\s*/,":"],[/\s*초\s*/,""],[/(오전|오후)\s*([\d:]+)/,"$2$1"],[/(\d{4})\. (\d{1,2})\. (\d{1,2})\./,"$1-$2-$3"]],fi:P,id:P,fr:[[/(\d{2}) h /,"$1:"],[/(\d{2}) min /,"$1:"],[/(\d{2}) s /,"$1"]]};function D(e,t=i){let r=function(e){var t,r;let n,a,o=k[e];if(o)return o;let i=g.factory(e),s=new O({doneChecker:E,fallback:(t=e,function(e){let r=String(e).slice(0,50);return""===r&&(r="(empty string)"),{invalid:`Unable to parse "${r}" with locale "${t}"`}}),patterns:(n=[{name:"timestampWithOffset",regex:i.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? ?(_OFFSET_|Z)?$"),handler:j(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"timestampWithZone",regex:i.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))?\\s*(_ZONE_)$"),handler:j(["","year","month","day","hour","minute","second","millisecond","zone"])},{name:"timestampWithOffsetAndZone",regex:i.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? (_OFFSET_|Z)\\s*(_ZONE_)$"),handler:j(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"chinese",regex:i.compile(`^(${c}{2,4})\\s*\u5E74\\s*(${c}{1,2})\\s*\u6708\\s*(${c}{1,2})\\s*\u65E5$`),handler:j(["","year","month","day"])},{name:"korean",regex:i.compile("^(_YEAR_)년\\s*(_MONTH_)월\\s*(_DAY_)일$"),handler:j(["","year","month","day"])},{name:"twitter",regex:/^(?:sun|mon|tue|wed|thu|fri|sat) (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) (\d{2}) (\d{2}):(\d{2}):(\d{2}) ([+-]\d{4}) (\d{4})$/i,handler:j(["","monthname","day","hour","minute","second","offset","year"])},{name:"today",regex:/\b(now|today|tomorrow|yesterday)\b/i,handler:e=>{let t=w(),r=e[0].toLowerCase(),n={now:0,today:0,tomorrow:864e5,yesterday:-864e5}[r]??0;0!==n&&t.setTime(t.getTime()+n);let a={year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()};return"now"===r?{...a,hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}:a}},{name:"ago",regex:/^(\+|-|in|) ?([\d.]+) ?(years?|months?|weeks?|days?|hours?|minutes?|seconds?|milliseconds?|ms|s|m|h|w|d|M|y)( ago)?$/i,handler:([,e,t,r,n])=>{let a,o=parseFloat(t);"week"===(a=r.length<=2?x[r]:(a=r.replace(/s$/,"")).toLowerCase())&&(a="day",o*=7),("-"===e||n)&&(o*=-1);let i=w();return"millisecond"===a?i.setUTCMilliseconds(i.getUTCMilliseconds()+o):"second"===a?i.setUTCSeconds(i.getUTCSeconds()+o):"minute"===a?i.setUTCMinutes(i.getUTCMinutes()+o):"hour"===a?i.setUTCHours(i.getUTCHours()+o):"day"===a?i.setUTCDate(i.getUTCDate()+o):"month"===a?i.setUTCMonth(i.getUTCMonth()+o):"year"===a&&i.setUTCFullYear(i.getUTCFullYear()+o),{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}},{name:"atSeconds",regex:/^@(\d+)$/,handler:e=>{let t=new Date(1e3*parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}},{name:"microsoftJson",regex:/^\/Date\((\d+)([+-]\d{4})?\)\/$/,handler:e=>{let t=new Date(parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds(),offset:e[2]}}},{name:"full24",regex:i.compile("(?:^|[\\sT])(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?(Z)?$"),handler:j(["","hour","minute","second","millisecond","zone"])},{name:"zone24",regex:i.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?[\\s\\[(]*(_ZONE_)?[\\s\\])]*$"),handler:j(["","hour","minute","second","millisecond","zone"])},{name:"hms12WithOffset",regex:i.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)\\s*(_OFFSET_)"),handler:j(["","hour","minute","second","meridiem","offset"])},{name:"hms12",regex:i.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)"),handler:j(["","hour","minute","second","meridiem"])},{name:"hms24",regex:i.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?"),handler:j(["","hour","minute","second","millisecond"])},{name:"hm12",regex:i.compile("(_H12_):(_MIN_)\\s*(_MERIDIEM_)"),handler:j(["","hour","minute","meridiem"])},{name:"hm24",regex:i.compile("(_H24_):(_MIN_)"),handler:j(["","hour","minute"])},{name:"h12",regex:i.compile("(_H12_)\\s*(_MERIDIEM_)"),handler:j(["","hour","meridiem"])},{name:"8digit",regex:/^((?:19|20)\d{2})(\d{2})(\d{2})$/,handler:j(["","year","month","day"])},{name:"yearMonthnameDay",regex:i.compile("(_YEAR4_)[\\s.-]+(_MONTHNAME_)[\\s,.-]+(_DAY_)(_ORDINAL_)?"),handler:j(["","year","monthname","day"])},{name:"dayMonthnameYear",regex:i.compile("(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)[\\s,.-]+(_YEAR_)"),handler:j(["","day","","monthname","year"])},{name:"monthnameDayYear",regex:i.compile("(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?[\\s,.-]+(_YEAR_)"),handler:j(["","monthname","day","","year"])},{name:"dayMonthname",regex:i.compile("\\b(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)\\b"),handler:j(["","day","","monthname"])},{name:"monthnameDay",regex:i.compile("\\b(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?\\b"),handler:j(["","monthname","day"])},{name:"hmsNoMeridiem",regex:i.compile("\\b(_H12_|_H24_):(_MIN_):(_SEC_)\\b"),handler:j(["","hour","minute","second"])},{name:"hmNoMeridiem",regex:i.compile("\\b(_H12_|_H24_):(_MIN_)\\b"),handler:j(["","hour","minute"])},{name:"ymd",regex:i.compile("(_YEAR4_)([./-])(_MONTH_)\\2+(_DAY_)"),handler:j(["","year","","month","day"])},{name:"mdy",regex:i.compile("(_MONTH_)([/-])(_DAY_)\\2(_YEAR_)"),handler:j(["","month","","day","year"])},{name:"dmy",regex:i.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)[./\\s-]+(_YEAR_)"),handler:j(["","day","month","year"])},{name:"yearLoose",regex:i.compile("_YEAR4_"),handler:j(["year"])},{name:"dayMonthnameLoose",regex:i.compile("(_DAY_)[\\s.]*(_MONTHNAME_)"),handler:j(["","day","monthname"])},{name:"monthnameDayLoose",regex:i.compile("(_MONTHNAME_)[\\s.]*(_DAY_)"),handler:j(["","monthname","day"])},{name:"monthname",regex:i.compile("_MONTHNAME_"),handler:j(["monthname"])},{name:"year4",regex:i.compile("_YEAR4_"),handler:j(["year"])},{name:"md",regex:i.compile("(_MONTH_)[/-](_DAY_)"),handler:j(["","month","day"])},{name:"dm",regex:i.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)"),handler:j(["","day","month"])},{name:"day",regex:i.compile("_DAY_"),handler:j(["day"])},{name:"year2",regex:i.compile("_YEAR2_"),handler:j(["year"])},{name:"onlyZone",regex:i.compile("_ZONE_"),handler:j(["zone"])},{name:"onlyOffset",regex:i.compile("_OFFSET_"),handler:j(["offset"])}],a=i.baseName.slice(0,5),b.includes(a)?n:n.filter(e=>!["mdy","md"].includes(e.name))),formatter:(r=i,function(e){let t={};for(let[n,a]of Object.entries(e))if("monthname"===n){if(a){let e=r.monthNameToInt(a);void 0!==e&&(t.month=e)}}else if("hour"===n&&e.meridiem){let n=r.h12ToInt(a,e.meridiem);void 0!==n&&(t.hour=n)}else if("zone"===n){if(a){let e=r.zoneToOffset(a);void 0!==e&&(t.offset=e)}}else if("offset"===n){let e=r.offsetToMinutes(a);void 0!==e&&(t.offset=e)}else if("millisecond"===n){let e=r.millisecondToInt(a);"number"==typeof e&&(t.millisecond=e)}else if(S.includes(n)){let e=r.toInt(a);"number"==typeof e&&(t[n]=e)}return void 0!==t.year&&t.year<100&&(t.year=l[String(e.year)]),t.year&&"buddhist"===r.dateOptions.calendar&&(t.year-=543),t})});return k[e]=s,s}(t),n=function(e,t){let r=A[t.slice(0,2).toLowerCase()];if(!r)return e;for(let[t,n]of r)e=e.replace(t,n);return e}(e,t);return r.attempt(n)}function C(e){e.month&&e.day&&void 0===e.year&&(e.year=new Date().getFullYear()),60===e.second&&(e.second=59);let t=new s(e.year??NaN,(e.month??NaN)-1,e.day,e.hour||0,e.minute||0,e.second||0,e.millisecond||0);return"number"==typeof e.offset?new s(t.valueOf()-60*e.offset*1e3):t}function T(e,t=i){let r=D(e,t),n=r.invalid?new s(NaN):C(r);return n.isValid()||(n.invalid=`Unable to parse date "${e}"`),n}function N(e,t=i){return e instanceof Date?new s(e.valueOf()):"number"==typeof e?new s(e):T(e,t)}Date.fromString=s.fromString=T,Date.fromAny=s.fromAny=N,"u">typeof window&&(window.anyDateParser={fromString:T,fromAny:N,fromObject:C,attempt:D});var R=r(5350),M=r.n(R),I=r(648),L=r(6871),F=r(2147);let B=function(e){return null==e};var V=r(313),z=r(4232);function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function U(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){U(e,t,r[t])})}return e}function H(e,t){var r=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t);return r.get?r.get.call(e):r.value}M().extend(I),M().extend(F),M().extend(L);var K="YYYY-MM-DDTHH:mm:ss.SSSZZ";function G(e){return null!=e&&28===e.trim().length&&"T"===(e=e.trim())[10]&&":"===e[13]&&":"===e[16]&&"."===e[19]&&("+"===e[23]||"-"===e[23])&&M()(e,K).isValid()}function q(e){return M()(e).isToday()}function Y(e){return G(e)?M()(e,K).toDate():null}function X(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=M()(e);return t&&(r=r.utc()),r.format(K)}function Z(e){return M()(e).toDate()}var Q=new WeakMap,J=new(function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var e=this,r=Q,n={writable:!0,value:new Map};if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");r.set(e,n)}return e=[{key:"register",value:function(e,t){H(this,Q).set(e,t)}},{key:"getCalendar",value:function(e){if(e){if(e.calendar)return e.calendar;if(e.region){var t="".concat(e.language,"-").concat(e.region);if(H(this,Q).has(t))return H(this,Q).get(t)}if(e.language&&H(this,Q).has(e.language))return H(this,Q).get(e.language);var r=new Intl.DateTimeFormat(e.toString()).resolvedOptions().calendar;return H(this,Q).set("".concat(e.language).concat(e.region?"-".concat(e.region):""),r),r}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}());function ee(e,t){J.register(e,t)}function et(e){var t,r=null!=e?e:(0,z.J)();return J.getCalendar((null!=(t=Intl.Locale)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](r):r instanceof t)?r:new Intl.Locale(r))}var er={mode:"standard",time:"for today",day:!0,month:!0,year:!0,noToday:!1};function en(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=D(e,(0,z.J)());if(r.invalid)return console.warn("Could not parse invalid date '".concat(e,"'")),null;!B(r.day)&&B(r.month)&&(r=Object.assign({},(0,V.A)(r,"day"),{month:r.day})),r.month&&(r.month-=1),r.day&&(r=Object.assign({},(0,V.A)(r,"day"),{date:r.day}));var n=M()().set(r).toDate();return B(r.year)&&(t.year=!1),B(r.month)&&(t.month=!1),B(r.date)&&(t.day=!1),ea(n,t)}function ea(e,t){var r,n,a=null!=(r=null==t?void 0:t.locale)?r:(0,z.J)(),o=new Intl.Locale(a),i=$({},er,{noToday:"am"===o.language},t),s=i.calendar,l=i.mode,u=i.time,c=i.day,d=i.month,f=i.year,p=i.noToday,m=i.numberingSystem,h={calendar:null!=s?s:et(o),year:f?"numeric":void 0,month:d?"short":void 0,day:c?"2-digit":void 0,numberingSystem:m},y=M()(e).isToday();if(y&&!p)n=(n=new Intl.RelativeTimeFormat(a,{numeric:"auto"}).format(0,"day"))[0].toLocaleUpperCase(a)+n.slice(1);else{"en"===o.language&&(a="en-GB");var v=new Intl.DateTimeFormat(a,h).formatToParts(e);("en"===o.language||"am"===o.language)&&"standard"==l&&f&&c&&(v=v.map(eo("-"))),"wide"==l&&(v=v.map(eo(" — "))),"ethiopic"===h.calendar&&(v=v.filter(function(e,t,r){return"era"!==e.type&&("literal"!==e.type||!(t<r.length-1)||"era"!==r[t+1].type)})),n=v.map(function(e){return e.value}).join("")}return(!0===u||y&&"for today"===u)&&(n+=", ".concat(ei(e))),n}var eo=function(e){return function(t,r,n){return"literal"!==t.type||" "!==t.value||r<n.length-1&&"era"===n[r+1].type?t:{type:"literal",value:e}}};function ei(e){return e.toLocaleTimeString((0,z.J)(),{hour:"2-digit",minute:"2-digit"})}function es(e,t){var r,n;return ea(e,(r=$({},t),n=n={time:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))}function el(e,t){var r=et("string"==typeof t?new Intl.Locale(t):t);return r?(0,a.yP)(e,(0,o.d)(r)):e}function eu(e,t){return new Intl.DurationFormat((0,z.J)(),t).format(e)}function ec(e,t){if(null==e)return null;if("string"==typeof e){var r=D(e,(0,z.J)());return r.invalid?(console.warn("Could not interpret '".concat(e,"' as a date")),null):(r.day&&!r.month&&(r=$({},(0,V.A)(r,"day"),{month:r.day})),r.month&&(r.month-=1),r.day&&(r=$({},(0,V.A)(r,"day"),{date:r.day})),M()(t).set(r))}return M()(e)}var ed=["years","months","days","hours","minutes","seconds"],ef={second:"seconds",minute:"minutes",hour:"hours",day:"days",month:"months",year:"years"};function ep(e){var t;return null!=(t=ef[e])?t:e}var em={seconds:45,minutes:45,hours:22,days:26,months:11,years:1/0};function eh(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M()(),n=arguments.length>2?arguments[2]:void 0,a=M()(r),o=ec(e,a);if(null==o)return null;if("string"==typeof n){var i=ep(n);return U({},i,a.diff(o,i))}var s=null!=n?n:{},l=s.thresholds,u=s.largestUnit,c=s.smallestUnit;if(void 0!==u||void 0!==c){var d,f=c?ep(c):void 0;return d="auto"===u||void 0===u?function(e,t,r){for(var n=ed.indexOf(r),a=0;a<ed.length;a++){var o=ed[a];if(t.diff(e,o)>0)return a<=n?o:r}return r}(o,a,null!=f?f:"seconds"):ep(u),function(e,t,r,n){var a=ed.indexOf(r),o=ed.indexOf(n),i=ed.slice(a,o+1),s={},l=e,u=!0,c=!1,d=void 0;try{for(var f,p=i[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var m=f.value,h=t.diff(l,m);s[m]=h,l=l.add(h,m)}}catch(e){c=!0,d=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}return s}(o,a,d,null!=f?f:d)}var p=(t=function(e){var t=$({},em);if(e){var r=!0,n=!1,a=void 0;try{for(var o,i=Object.entries(e)[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var s,l=(s=o.value,function(e){if(Array.isArray(e))return e}(s)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(s)||function(e){if(e){if("string"==typeof e)return W(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return W(e,2)}}(s)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],c=l[1];void 0!==c&&(t[ep(u)]=c)}}catch(e){n=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw a}}}return t}(l),a.diff(o,"seconds")<t.seconds?"seconds":a.diff(o,"minutes")<t.minutes?"minutes":a.diff(o,"hours")<t.hours?"hours":a.diff(o,"days")<t.days?"days":a.diff(o,"months")<t.months?"months":"years");return U({},p,a.diff(o,p))}var ey={style:"short",localeMatcher:"lookup"};function ev(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M()(),r=arguments.length>2?arguments[2]:void 0,n=eh(e,t,r);return null==n?null:eu(n,(void 0===r?"undefined":r&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&r.formatOptions?$({},ey,r.formatOptions):ey)}},4232(e,t,r){"use strict";function n(){var e=window.i18next.language;return"ht"===(e=e.replaceAll("_","-"))&&(e="fr-HT"),e}r.d(t,{J:()=>n})},4834(e,t,r){"use strict";r.d(t,{g2:()=>n.g2,kd:()=>function e(t){var r={},n=!0,a=!1,o=void 0;try{for(var i,s=Object.keys(t)[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value;if(c(t[l])&&t[l].hasOwnProperty("_default"))r[l]=t[l]._default;else{if(l.startsWith("_"))continue;c(t[l])?r[l]=e(t[l]):r[l]=t[l]}}}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r},JK:()=>a.J,Rt:()=>n.Rt,_g:()=>u,a3:()=>n.a3,LW:()=>n.LW,XE:()=>n.XE,L5:()=>h,bN:()=>l.b,a7:()=>n.a7,sc:()=>o.s,rX:()=>d.r,L8:()=>n.L8,Yq:()=>n.Yq,w7:()=>s,L3:()=>n.L3,fU:()=>n.fU,_U:()=>n._U,d4:()=>n.d4,p0:()=>n.p0,kQ:()=>n.kQ,qE:()=>n.qE,pf:()=>n.pf});var n=r(3903),a=r(4232),o=r(2316);function i(e){if("string"==typeof e&&0!==e.trim().length){var t=e.replaceAll("_","-");try{return new Intl.Locale(t).toString()}catch(e){return}}}function s(e,t,r){if(null==e)return r;var n=i(e);if(!n)return console.warn("matchLocale: invalid requested locale tag: ".concat(JSON.stringify(e))),r;var a=[],o=!0,s=!1,l=void 0;try{for(var u,c=t[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var d=u.value,f=i(d);if(!f){console.warn("matchLocale: skipping invalid available locale tag: ".concat(JSON.stringify(d)));continue}a.push({canonical:f,original:d})}}catch(e){s=!0,l=e}finally{try{o||null==c.return||c.return()}finally{if(s)throw l}}for(var p=n;p;){var m=function(){var e=a.find(function(e){return e.canonical===p});if(e)return{v:e.original};var t=p+"-",r=a.find(function(e){return e.canonical.startsWith(t)});if(r)return{v:r.original};if("ht"===p)return p="fr-HT","continue";var n=p.lastIndexOf("-");if(-1===n)return"break";var o=(p=p.slice(0,n)).lastIndexOf("-");-1!==o&&p.length-o==2&&(p=p.slice(0,o))}();if("object"==(m&&"u">typeof Symbol&&m.constructor===Symbol?"symbol":typeof m))return m.v;if("break"===m)break}return r}var l=r(8254);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.localStorage;try{return e.getItem("test"),!0}catch(e){return!1}}function c(e){return!!e&&e.constructor===Object}var d=r(9120);function f(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function p(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(e){f(o,n,a,i,s,"next",e)}function s(e){f(o,n,a,i,s,"throw",e)}i(void 0)})}}function m(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function h(e){return p(function(e){var t,r,n,a,o,i,s,l=arguments;return m(this,function(u){switch(u.label){case 0:r=(t=l.length>1&&void 0!==l[1]?l[1]:{}).shouldRetry,n=t.getDelay,a=t.onError,r=null!=r?r:function(e){return e<=5},n=null!=n?n:function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t*Math.pow(2,r?e+1:e)}(e,1e3)},o=0,i=void 0,u.label=1;case 1:var c;return u.trys.push([1,4,,5]),[4,(c=n(o),p(function(){return m(this,function(e){return c<=0?[2]:[2,new Promise(function(e){return setTimeout(e,c)})]})})())];case 2:return u.sent(),[4,e()];case 3:return[2,u.sent()];case 4:return s=u.sent(),null==a||a(s,o),i=s,[3,5];case 5:if(r(o++))return[3,1];u.label=6;case 6:throw i}})}).apply(this,arguments)}},9120(e,t,r){"use strict";r.d(t,{r:()=>i});var n=r(8164);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e){var t,r=function(e){if(Array.isArray(e))return e}(t=e.split("."))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),3!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return a(e,3);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,3)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r[0],o=r[1],i=r[2];return"".concat(n,".").concat(o,".").concat(i)}function i(e,t){var r=function(e){var t=e.indexOf("-");if(t>=0){var r=o(e.slice(0,t)),n=e.slice(t+1);return"".concat(r,"-").concat(n)}return o(e)}(t);return n.satisfies(r,e,{includePrerelease:!0})}}}]);