@egen-civitas/esm-app-shell 3.0.3 → 3.0.5
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.
- package/CHANGELOG.md +17 -0
- package/dist/{6cbd82d344fb5011.js → 39528f7bc0ba19c1.js} +1 -1
- package/dist/{6cbd82d344fb5011.js.map → 39528f7bc0ba19c1.js.map} +1 -1
- package/dist/4ddf8ba30502c5d6.js +20 -0
- package/dist/4ddf8ba30502c5d6.js.map +1 -0
- package/dist/{egen.3496a6edb25d07e5.js → egen.cc8866c9019a03ce.js} +2 -2
- package/dist/{egen.3496a6edb25d07e5.js.map → egen.cc8866c9019a03ce.js.map} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/560504b016164888.js +0 -20
- package/dist/560504b016164888.js.map +0 -1
package/dist/560504b016164888.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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,i=function(e){var t=e.date,i=e.utc,o={};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=i?r.utc():r();Object.keys(t).forEach(function(e){var r;o["date"===(r=n.$utils().p(e))?"day":r]=t[e]});var l=o.day||(o.year||o.month>=0?1:s.date()),u=o.year||s.year(),c=o.month>=0?o.month:o.year||o.day?0:s.month(),d=o.hour||0,f=o.minute||0,p=o.second||0,h=o.millisecond||0;return i?new Date(Date.UTC(u,c,l,d,f,p,h)):new Date(u,c,l,d,f,p,h)}return t},o=n.parse;n.parse=function(e){e.date=i.bind(this)(e),o.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),i=this;return a.forEach(function(r){i=e.bind(i)(t[r]*n,r)}),i};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,i){var o=a.prototype;i.utc=function(e){var t={date:e,utc:!0,args:arguments};return new a(t)},o.utc=function(t){var r=i(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},o.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=o.init;o.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=o.utcOffset;o.utcOffset=function(n,a){var i=this.$utils().u;if(i(n))return this.$u?0:i(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],i=a[0],o=60*a[1]+ +a[2];return 0===o?0:"+"===i?o:-o}(n)))return this;var o=16>=Math.abs(n)?60*n:n;if(0===o)return this.utc(a);var s=this.clone();if(a)return s.$offset=o,s.$u=!1,s;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(o+l,e)).$offset=o,s.$x.$localOffset=l,s};var c=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,r){if(e&&this.$u===e.$u)return f.call(this,e,t,r);var n=this.local(),a=i(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()},i={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 o(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(e,t)||p(e,t)||u()}function f(e){return function(e){if(Array.isArray(e))return o(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 o(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 o(e,t)}}var h=(0,n.forwardRef)(function(e,t){var r,o,h,m=s(r=[e,t])||l(r)||p(r)||u(),y=m[0],v=m.slice(1),g=y.color,b=y.size,x=void 0===b?24:b,w=y.strokeWidth,S=void 0===w?2:w,j=y.absoluteStrokeWidth,O=y.className,k=y.children,E=y.iconNode,P=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(y,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]),A=d(v,1)[0];return(0,n.createElement)("svg",c((o=c({ref:A},i),h=h={width:x,height:x,stroke:void 0===g?"currentColor":g,strokeWidth:j?24*Number(S)/Number(x):S,className:a("lucide",void 0===O?"":O)},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(h)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(h)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(h,e))}),o),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 m(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 m(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 m(e,t)}}var b=function(e,t){var r=(0,n.forwardRef)(function(r,i){var o,s=y(o=[r,i])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||g(o)||v(),l=s[0],u=s.slice(1),c=l.className,d=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(u)||g(u,1)||v())[0];return(0,n.createElement)(h,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}},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"}]])},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"),i=Symbol.for("react.fragment"),o=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,i={},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)o.call(t,n)&&!l.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:a,type:e,key:u,ref:c,props:i,_owner:s.current}}t.Fragment=i,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 i=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=o(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===i?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=i}},{key:"toString",value:function(){return this.value}},{key:"test",value:function(e){if(d("Comparator.test",e,this.options.loose),this.semver===i||e===i)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=o(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 i}}],e&&n(r.prototype,e),t&&n(r,t),r}();var o=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 i=/\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(i," "),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 o=this.set[0];if(this.set=this.set.filter(function(e){return!S(e[0])}),0===this.set.length)this.set=[o];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 h=f.value;if(1===h.length&&j(h[0])){this.set=[h];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,i=o.get(a);if(i)return i;var s=this.options.loose,c=s?f[h.HYPHENRANGELOOSE]:f[h.HYPHENRANGE];u("hyphen replace",e=e.replace(c,I(this.options.includePrerelease))),u("comparator trim",e=e.replace(f[h.COMPARATORTRIM],m)),u("tilde trim",e=e.replace(f[h.TILDETRIM],y)),u("caret trim",e=e.replace(f[h.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[h.COMPARATORLOOSE])})),u("range list",d);var p=new Map,g=d.map(function(e){return new l(e,r.options)}),j=!0,O=!1,E=void 0;try{for(var P,A=g[Symbol.iterator]();!(j=(P=A.next()).done);j=!0){var D=P.value;if(S(D))return[D];p.set(D.value,D)}}catch(e){O=!0,E=e}finally{try{j||null==A.return||A.return()}finally{if(O)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 o.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 O(t,r)&&e.set.some(function(e){return O(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 o=new(r(3235)),s=r(6480),l=r(6503),u=r(7139),c=r(7583),d=r(4299),f=d.safeRe,p=d.src,h=d.t,m=d.comparatorTrimReplace,y=d.tildeTrimReplace,v=d.caretTrimReplace,g=r(9345),b=g.FLAG_INCLUDE_PRERELEASE,x=g.FLAG_LOOSE,w=RegExp(p[h.BUILD],"g"),S=function(e){return"<0.0.0-0"===e.value},j=function(e){return""===e.value},O=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[h.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[h.TILDELOOSE]:f[h.TILDE],n=t.includePrerelease?"-0":"";return e.replace(r,function(t,r,a,i,o){var s;return u("tilde",e,t,r,a,i,o),E(r)?s="":E(a)?s=">=".concat(r,".0.0").concat(n," <").concat(+r+1,".0.0-0"):E(i)?s=">=".concat(r,".").concat(a,".0").concat(n," <").concat(r,".").concat(+a+1,".0-0"):o?(u("replaceTilde pr",o),s=">=".concat(r,".").concat(a,".").concat(i,"-").concat(o," <").concat(r,".").concat(+a+1,".0-0")):s=">=".concat(r,".").concat(a,".").concat(i," <").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[h.CARETLOOSE]:f[h.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,function(t,r,a,i,o){var s;return u("caret",e,t,r,a,i,o),E(r)?s="":E(a)?s=">=".concat(r,".0.0").concat(n," <").concat(+r+1,".0.0-0"):E(i)?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"):o?(u("replaceCaret pr",o),s="0"===r?"0"===a?">=".concat(r,".").concat(a,".").concat(i,"-").concat(o," <").concat(r,".").concat(a,".").concat(+i+1,"-0"):">=".concat(r,".").concat(a,".").concat(i,"-").concat(o," <").concat(r,".").concat(+a+1,".0-0"):">=".concat(r,".").concat(a,".").concat(i,"-").concat(o," <").concat(+r+1,".0.0-0")):(u("no pr"),s="0"===r?"0"===a?">=".concat(r,".").concat(a,".").concat(i," <").concat(r,".").concat(a,".").concat(+i+1,"-0"):">=".concat(r,".").concat(a,".").concat(i," <").concat(r,".").concat(+a+1,".0-0"):">=".concat(r,".").concat(a,".").concat(i," <").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[h.XRANGELOOSE]:f[h.XRANGE];return e.replace(r,function(r,n,a,i,o,s){if(u("xRange",e,r,n,a,i,o,s),l=a,c=i,d=o,E(l)&&!E(c)||E(c)&&d&&!E(d))return e;var l,c,d,f=E(a),p=f||E(i),h=p||E(o);return"="===n&&h&&(n=""),s=t.includePrerelease?"-0":"",f?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&h?(p&&(i=0),o=0,">"===n?(n=">=",p?(a=+a+1,i=0):i=+i+1,o=0):"<="===n&&(n="<",p?a=+a+1:i=+i+1),"<"===n&&(s="-0"),r="".concat(n+a,".").concat(i,".").concat(o).concat(s)):p?r=">=".concat(a,".0.0").concat(s," <").concat(+a+1,".0.0-0"):h&&(r=">=".concat(a,".").concat(i,".0").concat(s," <").concat(a,".").concat(+i+1,".0-0")),u("xRange return",r),r})},R=function(e,t){return u("replaceStars",e,t),e.trim().replace(f[h.STAR],"")},M=function(e,t){return u("replaceGTE0",e,t),e.trim().replace(f[t.includePrerelease?h.GTE0PRE:h.GTE0],"")},I=function(e){return function(t,r,n,a,i,o,s,l,u,c,d,f){return r=E(n)?"":E(a)?">=".concat(n,".0.0").concat(e?"-0":""):E(i)?">=".concat(n,".").concat(a,".0").concat(e?"-0":""):o?">=".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 i=e[a].semver;if(i.major===t.major&&i.minor===t.minor&&i.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),i=r(9345),o=i.MAX_LENGTH,s=i.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":(i=e)&&"u">typeof Symbol&&i.constructor===Symbol?"symbol":typeof i,'".'));if(e.length>o)throw TypeError("version is longer than ".concat(o," characters"));a("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;var i,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 i=this.prerelease[r],o=e.prerelease[r];if(a("prerelease compare",r,i,o),void 0===i&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===i)return -1;else if(i===o)continue;else return f(i,o)}while(++r)}},{key:"compareBuild",value:function(e){n(e,t)||(e=new t(e,this.options));var r=0;do{var i=this.build[r],o=e.build[r];if(a("build compare",r,i,o),void 0===i&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===i)return -1;else if(i===o)continue;else return f(i,o)}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 i=this.prerelease.length;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(t){var o=[t,a];!1===r&&(o=[t]),p(this.prerelease,t)?isNaN(this.prerelease[t.split(".").length])&&(this.prerelease=o):this.prerelease=o}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),i=r(9962),o=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 i(e,r,c);case">":return o(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),i=r(4299),o=i.safeRe,s=i.t;e.exports=function(e,t){if(i=e,null!=n&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](i):i 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 i,l,u=t.includePrerelease?o[s.COERCERTLFULL]:o[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?o[s.COERCEFULL]:o[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]):"",h=t.includePrerelease&&r[6]?"+".concat(r[6]):"";return a("".concat(c,".").concat(d,".").concat(f).concat(p).concat(h),t)}},2740(e,t,r){"use strict";var n=r(7583);e.exports=function(e,t,r){var a=new n(e,r),i=new n(t,r);return a.compare(i)||a.compareBuild(i)}},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),i=r.compare(a);if(0===i)return null;var o=i>0,s=o?r:a,l=o?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,i){"string"==typeof r&&(i=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,i).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),i=r(7583),o=function(e,t){return n((null!=i&&"u">typeof Symbol&&i[Symbol.hasInstance]?!!i[Symbol.hasInstance](e):e instanceof i)?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=o(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),i=r(7583),o=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:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.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),i=a.MAX_SAFE_COMPONENT_LENGTH,o=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={},h=0,m="[a-zA-Z0-9-]",y=[["\\s",1],["\\d",s],[m,o]],v=function(e){var t=!0,r=!1,a=void 0;try{for(var i,o=y[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s,l=(s=i.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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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==o.return||o.return()}finally{if(r)throw a}}return e},g=function(e,t,r){var n=v(t),a=h++;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(m,"*")),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(m,"+")),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(i,"})")+"(?:\\.(\\d{1,".concat(i,"}))?")+"(?:\\.(\\d{1,".concat(i,"}))?")),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 i=null,o=null,s=null;try{s=new a(t,r)}catch(e){return null}return e.forEach(function(e){s.test(e)&&(!i||-1===o.compare(e))&&(o=new n(i=e,r))}),i}},6975(e,t,r){"use strict";var n=r(7583),a=r(7490);e.exports=function(e,t,r){var i=null,o=null,s=null;try{s=new a(t,r)}catch(e){return null}return e.forEach(function(e){s.test(e)&&(!i||1===o.compare(e))&&(o=new n(i=e,r))}),i}},8158(e,t,r){"use strict";var n=r(7583),a=r(7490),i=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 o=0;o<e.set.length;++o)!function(t){var a=e.set[t],o=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">=":(!o||i(t,o))&&(o=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: ".concat(e.operator))}}),o&&(!r||i(r,o))&&(r=o)}(o);return r&&e.test(r)?r:null}},3452(e,t,r){"use strict";var n=r(7583),a=r(6503),i=a.ANY,o=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,h,m,y,v;switch(e=new n(e,f),t=new o(t,f),r){case">":p=l,h=c,m=u,y=">",v=">=";break;case"<":p=u,h=d,m=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],o=null,s=null;return(n.forEach(function(e){e.semver===i&&(e=new a(">=0.0.0")),o=o||e,s=s||e,p(e.semver,o.semver,f)?o=e:m(e.semver,s.semver,f)&&(s=e)}),o.operator===y||o.operator===v||(!s.operator||s.operator===y)&&h(e,s.semver)||s.operator===v&&m(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),i=r(2057);e.exports=function(e,t,r){var o=[],s=null,l=null,u=e.sort(function(e,t){return i(e,t,r)}),c=!0,d=!1,f=void 0;try{for(var p,h=u[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var m=p.value;a(m,t,r)?(l=m,s||(s=m)):(l&&o.push([s,l]),l=null,s=null)}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}s&&o.push([s,null]);var y=[],v=!0,g=!1,b=void 0;try{for(var x,w=o[Symbol.iterator]();!(v=(x=w.next()).done);v=!0){var S,j=(S=x.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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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.")}()),O=j[0],k=j[1];O===k?y.push(O):k||O!==u[0]?k?O===u[0]?y.push("<=".concat(k)):y.push("".concat(O," - ").concat(k)):y.push(">=".concat(O)):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),i=a.ANY,o=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===i)if(1===t.length&&t[0].semver===i)return!0;else e=r.includePrerelease?l:u;if(1===t.length&&t[0].semver===i)if(r.includePrerelease)return!0;else t=u;var n=new Set,a=!0,c=!1,p=void 0;try{for(var h,m,y,v=e[Symbol.iterator]();!(a=(y=v.next()).done);a=!0){var g=y.value;">"===g.operator||">="===g.operator?h=d(h,g,r):"<"===g.operator||"<="===g.operator?m=f(m,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(h&&m&&((S=s(h.semver,m.semver,r))>0||0===S&&(">="!==h.operator||"<="!==m.operator)))return null;var b=!0,x=!1,w=void 0;try{for(var S,j,O=n[Symbol.iterator]();!(b=(j=O.next()).done);b=!0){var k=j.value;if(h&&!o(k,String(h),r)||m&&!o(k,String(m),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(!o(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==O.return||O.return()}finally{if(x)throw w}}var N=!!m&&!r.includePrerelease&&!!m.semver.prerelease.length&&m.semver,R=!!h&&!r.includePrerelease&&!!h.semver.prerelease.length&&h.semver;N&&1===N.prerelease.length&&"<"===m.operator&&0===N.prerelease[0]&&(N=!1);var M=!0,I=!1,L=void 0;try{for(var F,B,V,z,W,$=t[Symbol.iterator]();!(M=(W=$.next()).done);M=!0){var U=W.value;if(z=z||">"===U.operator||">="===U.operator,V=V||"<"===U.operator||"<="===U.operator,h){if(R&&U.semver.prerelease&&U.semver.prerelease.length&&U.semver.major===R.major&&U.semver.minor===R.minor&&U.semver.patch===R.patch&&(R=!1),">"===U.operator||">="===U.operator){if((F=d(h,U,r))===U&&F!==h)return!1}else if(">="===h.operator&&!U.test(h.semver))return!1}if(m){if(N&&U.semver.prerelease&&U.semver.prerelease.length&&U.semver.major===N.major&&U.semver.minor===N.minor&&U.semver.patch===N.patch&&(N=!1),"<"===U.operator||"<="===U.operator){if((B=f(m,U,r))===U&&B!==m)return!1}else if("<="===m.operator&&!U.test(m.semver))return!1}if(!U.operator&&(m||h)&&0!==S)return!1}}catch(e){I=!0,L=e}finally{try{M||null==$.return||$.return()}finally{if(I)throw L}}return(!h||!V||!!m||0===S)&&(!m||!z||!!h||0===S)&&!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,i=!0,o=!1,s=void 0;try{e:for(var l,u=e.set[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var d=l.value,f=!0,p=!1,h=void 0;try{for(var m,y=t.set[Symbol.iterator]();!(f=(m=y.next()).done);f=!0){var v=m.value,g=c(d,v,r);if(a=a||null!==g,g)continue e}}catch(e){p=!0,h=e}finally{try{f||null==y.return||y.return()}finally{if(p)throw h}}if(a)return!1}}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)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:()=>h,j6:()=>m});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 i(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}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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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 o(i({},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 h=s(f.value,2),m=h[0],y=h[1],v=(0,n.vR)(m);t[v]=v!==m?[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),o(i({},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=[],i={L:[],R:[]},o=!0,u=!1,c=void 0;try{for(var d,f,p,h=t[Symbol.iterator]();!(o=(p=h.next()).done);o=!0){var m=p.value,y=!0,v=!1,g=void 0;try{for(var b,x,w,S,j=Object.entries(null!=(b=m.pose)?b:{})[Symbol.iterator]();!(y=(S=j.next()).done);y=!0){var O=s(S.value,2),k=O[0],E=O[1],P=r.get(k);P||r.set(k,P={times:[],values:[]}),P.times.push(m.t),P.values.push(E)}}catch(e){v=!0,g=e}finally{try{y||null==j.return||j.return()}finally{if(v)throw g}}void 0!==m.lift&&a.push({t:m.t,v:m.lift}),(null==(x=m.hands)?void 0:x.L)&&i.L.push({t:m.t,shape:m.hands.L}),(null==(w=m.hands)?void 0:w.R)&&i.R.push({t:m.t,shape:m.hands.R})}}catch(e){u=!0,c=e}finally{try{o||null==h.return||h.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:i}}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 i=0;i<a&&r[i+1]<t;)i++;var o=r[i],s=r[i+1],l=s>o?f((t-o)/(s-o)):1,u=n[i],c=n[i+1];return[u[0]+(c[0]-u[0])*l,u[1]+(c[1]-u[1])*l,u[2]+(c[2]-u[2])*l]}function h(e,t){var r=e.loop?t%e.duration:Math.min(t,e.duration),n={},a=!0,i=!1,o=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){i=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}for(var h={},m=0,y=["L","R"];m<y.length;m++){var v=y[m],g=void 0,b=!0,x=!1,w=void 0;try{for(var S,j=e.hands[v][Symbol.iterator]();!(b=(S=j.next()).done);b=!0){var O=S.value;O.t<=r&&(g=O.shape)}}catch(e){x=!0,w=e}finally{try{b||null==j.return||j.return()}finally{if(x)throw w}}g&&(h[v]=g)}return{pose:n,hands:h,lift:e.lift?p(e.lift,r)[0]:0}}function m(e,t,r,n){var a=e.fadeIn>0?Math.min(1,t/e.fadeIn):1,i=1;return r?i=e.fadeOut>0?Math.max(0,1-(t-n)/e.fadeOut):0:!e.loop&&e.fadeOut>0&&(i=Math.min(1,(e.duration-t)/e.fadeOut)),f(Math.max(0,Math.min(a,i)))}},2707(e,t,r){"use strict";r.d(t,{L:()=>g});var n=r(5898),a=r(9881),i=r(4942),o={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,i,o){try{var s=e[i](o),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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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 h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=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");h(this,"pose",(0,i.iJ)()),h(this,"root",{x:0,z:0,yaw:0,lift:0}),h(this,"blink",0),h(this,"speechLevel",0),h(this,"reach",{L:{target:null,weight:0,active:!1},R:{target:null,weight:0,active:!1}}),h(this,"state","idle"),h(this,"time",0),h(this,"rand",void 0),h(this,"autoBehaviors",void 0),h(this,"players",[]),h(this,"nextId",1),h(this,"target",(0,i.iJ)()),h(this,"gazeManual",null),h(this,"gazeGoal",{yaw:0,pitch:0}),h(this,"gaze",{yaw:0,pitch:0}),h(this,"nextGlanceAt",1.5),h(this,"nextBlinkAt",2),h(this,"blinkStart",-10),h(this,"nextTalkAt",0),h(this,"nextNodAt",3),h(this,"walkTarget",null),h(this,"walkBlend",0),h(this,"walkPhase",0),h(this,"speed",0),h(this,"yawRate",0),h(this,"handManual",{L:null,R:null}),h(this,"handGoal",{L:o.relaxed,R:o.relaxed}),h(this,"hand",{L:{curl:f(o.relaxed.curl),thumbOut:o.relaxed.thumbOut},R:{curl:f(o.relaxed.curl),thumbOut:o.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,i=this.players[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value;e&&o.clip.name!==e||this.beginStop(o)}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.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 i;n.walkTarget={x:e,z:t,arriveYaw:null!=(i=a.arriveYaw)?i: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,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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 i=t.apply(e,r);function o(e){c(i,n,a,o,s,"next",e)}function s(e){c(i,n,a,o,s,"throw",e)}o(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,i=Math.cos(this.root.yaw),o=Math.sin(this.root.yaw);return[n*i-a*o,t-this.root.lift,n*o+a*i]}},{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?o[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,o=!1,s=void 0;try{for(var l,u=i.qS[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var c=l.value,f=i.v$[c];r[c][0]=f[0],r[c][1]=f[1],r[c][2]=f[2]}}catch(e){o=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw s}}this.applyStateStance(r),this.updateLocomotion(t),this.applyGait(r);var p=0,h={},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,S=(0,n.j6)(w.clip,w.time,w.stopping,w.stopTime);if(!(S<=0)){var j=(0,n.Z4)(w.clip,w.time),O=!0,k=!1,E=void 0;try{for(var P,A=Object.entries(j.pose)[Symbol.iterator]();!(O=(P=A.next()).done);O=!0){var D=d(P.value,2),C=D[0],T=D[1],N=r[C];N[0]+=(T[0]-N[0])*S,N[1]+=(T[1]-N[1])*S,N[2]+=(T[2]-N[2])*S}}catch(e){k=!0,E=e}finally{try{O||null==A.return||A.return()}finally{if(k)throw E}}p+=j.lift*S,S>.3&&Object.assign(h,j.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=i.qS[Symbol.iterator]();!(R=(L=F.next()).done);R=!0){var B=L.value,V=(0,i.FW)(B,r[B]),z=this.pose[B],W=B.startsWith("hips")?20:16;z[0]=m(z[0],V[0],W,t),z[1]=m(z[1],V[1],W,t),z[2]=m(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,h),this.root.lift=m(this.root.lift,p+this.walkBob(),24,t);for(var $=0,U=["L","R"];$<U.length;$++){var H=U[$],G=this.reach[H];G.weight=m(G.weight,+!!G.active,7,t),!G.active&&G.weight<.005&&(G.weight=0,G.target=null)}this.updateBlink()}}},{key:"start",value:function(e,t,r){var a,i,o=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),i=i={loop:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(i)).forEach(function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(i,e))}),a):e);return new Promise(function(e){var n;o.players.push({id:o.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,i=this.players[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value;o.time+=e*o.speed,(o.stopping?o.time-o.stopTime>=o.clip.fadeOut:!o.clip.loop&&o.time>=o.clip.duration)&&o.resolve()}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.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 i="speaking"===this.state||"listening"===this.state;this.gazeGoal={yaw:(this.rand()-.5)*(i?.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,i=t.z-this.root.z,o=Math.hypot(a,i);if(o>.04){var s=Math.atan2(a,i),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*o)*v(1-Math.abs(y(s-this.root.yaw))/.9);this.speed=m(this.speed,u,8,e);var c=Math.min(this.speed*e,o);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=m(this.speed,0,8,e)}else this.finishWalk(),this.speed=m(this.speed,0,8,e)}else this.speed=m(this.speed,0,8,e);this.yawRate=y(this.root.yaw-r)/e;var f=Math.abs(this.yawRate)>.5;if(this.walkBlend=m(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),i=.5*Math.min(1,.4+(this.speed+.1*Math.abs(this.yawRate))/.9),o=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=-i*f,h=.12+.85*Math.max(0,c*a)*(i/.5);o("hip".concat(u),[p,0,.03*d]),o("knee".concat(u),[h,0,0]),o("ankle".concat(u),[-(.8*(p+h)),0,0]),o("shoulder".concat(u),[.8*i*f,0,.1*d]),o("elbow".concat(u),[-.28-.3*Math.max(0,-f),0,0])}o("spine",[.05,-.1*n,0]),o("chest",[0,.14*n,0]),o("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 i=.02+.1*this.speechLevel;e.head[0]+=Math.sin(7.3*n)*i*.6+Math.sin(3.1*n)*i,e.head[1]+=Math.sin(2.3*n)*i*1.5}var o=null!=(r=this.gazeManual)?r:this.gazeGoal;this.gaze.yaw=m(this.gaze.yaw,o.yaw,9,t),this.gaze.pitch=m(this.gaze.pitch,o.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]?o[t[a]]:o.relaxed;this.handGoal[a]=u;for(var c=this.hand[a],f=0;f<5;f++)c.curl[f]=m(c.curl[f],u.curl[f],18,e);c.thumbOut=m(c.thumbOut,u.thumbOut,18,e);var p=function(e,t,r){var n="L"===e?1:-1,a={};return i.VC.forEach(function(i,o){var u=Math.min(1,Math.max(0,t[o])),c=[0,0,-n*u*s[o]],d=[0,0,-n*u*l[o]];"thumb"===i&&(c[0]=-r),a["".concat(i).concat(e,"1")]=c,a["".concat(i).concat(e,"2")]=d}),a}(a,c.curl,c.thumbOut),h=!0,y=!1,v=void 0;try{for(var g,b,x=Object.entries(p)[Symbol.iterator]();!(h=(b=x.next()).done);h=!0){var w=d(b.value,2),S=w[0],j=w[1];this.pose[S][0]=j[0],this.pose[S][1]=j[1],this.pose[S][2]=j[2]}}catch(e){y=!0,v=e}finally{try{h||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:()=>h,kh:()=>f,q5:()=>m,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 i(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}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 o(i({},e),{keys:e.keys.map(function(e,r){var n,a,s,l;return o(i({},e),{pose:i({},null!=(n=e.pose)?n:{},null!=(a=t.keys[r].pose)?a:{}),hands:i({},null!=(s=e.hands)?s:{},null!=(l=t.keys[r].hands)?l:{})})})})}function u(e,t,r,n,a){for(var i=[],o=0;o<2*r;o++)i.push({t:e+o*t/2,pose:o%2==0?n:a});return i}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=o(i({},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),h=["talkA","talkB","talkC"];function m(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 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}r.d(t,{BV:()=>s,Bm:()=>f,FW:()=>b,IR:()=>p,UQ:()=>o,VC:()=>l,a5:()=>m,iJ:()=>y,qS:()=>h,v$:()=>v,vR:()=>g});var o={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,o.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,h=void 0;try{for(var m,y=s[Symbol.iterator]();!(r=(m=y.next()).done);r=!0)!function(){var e=m.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),i(a({parent:"chest",offset:c(r*o.shoulderX,.2,0)},s(c(-u,-1.7,-.9),c(1,1.7,u))),{order:"ZXY"})),t("elbow".concat(e),i(a({parent:"shoulder".concat(e),offset:c(0,-o.upperArm,0)},s(c(-2.6,-.3,-.1),c(.05,.3,.1))),{order:"XYZ"})),t("wrist".concat(e),i(a({parent:"elbow".concat(e),offset:c(0,-o.foreArm,0)},s(c(-1.1,-1.7,-.7),c(1.1,1.7,.7))),{order:"YXZ"})),t("hip".concat(e),i(a({parent:"hips",offset:c(r*o.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,-o.thigh,0),min:c(0,0,0),max:c(2.5,0,0),order:"XYZ"}),t("ankle".concat(e),i(a({parent:"knee".concat(e),offset:c(0,-o.shin,0)},s(c(-.6,-.3,-.3),c(.6,.3,.3))),{order:"XYZ"}));var p=!0,h=!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],S=(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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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],j=function(e){return s(c(-.2,-.2,-e),c(.2,.2,.1))},O="thumb"===x?s(c(-1.5,-.5,-1.5),c(.5,.5,.1)):j(1.5);t("".concat(x).concat(e,"1"),i(a({parent:"wrist".concat(e),offset:c(r*w[0],w[1],w[2])},O),{order:"XYZ"})),t("".concat(x).concat(e,"2"),i(a({parent:"".concat(x).concat(e,"1"),offset:c(0,-S,0)},j(1.7)),{order:"XYZ"}))}}catch(e){h=!0,y=e}finally{try{p||null==g.return||g.return()}finally{if(h)throw y}}}()}catch(e){p=!0,h=e}finally{try{r||null==y.return||y.return()}finally{if(p)throw h}}return e}(),h=Object.keys(p),m=function(){var e={},t=!0,r=!1,n=void 0;try{for(var a,i=h[Symbol.iterator]();!(t=(a=i.next()).done);t=!0)e[a.value]=[]}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}var o=!0,s=!1,l=void 0;try{for(var u,c=h[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var d=u.value,f=p[d].parent;f&&e[f].push(d)}}catch(e){s=!0,l=e}finally{try{o||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,i=h[Symbol.iterator]();!(t=(a=i.next()).done);t=!0)e[a.value]=[0,0,0]}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}var o=!0,u=!1,c=void 0;try{for(var d,f=s[Symbol.iterator]();!(o=(d=f.next()).done);o=!0){var p=d.value,m="L"===p?1:-1;e["shoulder".concat(p)]=[0,0,.1*m],e["elbow".concat(p)]=[-.12,0,0],e["hip".concat(p)]=[0,0,.03*m];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,S="thumb"===w?.25:.18;e["".concat(w).concat(p,"1")]=[0,0,-m*S],e["".concat(w).concat(p,"2")]=[0,0,-m*S*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{o||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:()=>o});var n=r(3645),a=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],i={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)]}},o={"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:i}},597(e,t,r){"use strict";let n,a,i,o,s,l,u;r.d(t,{dNG:()=>yp,JTN:()=>oZ,_RD:()=>vy,FNf:()=>Dz,eCO:()=>of,CW5:()=>ES,rGP:()=>kH,wmT:()=>EF,Xhy:()=>Cq,ozP:()=>gy,aRn:()=>S,ttj:()=>CH,e_T:()=>vj,id:()=>su,fNA:()=>On,vFG:()=>oL,whL:()=>NQ,uBm:()=>gf,yBj:()=>oW,_f_:()=>Dn,Q5Y:()=>Cj,lbO:()=>kk,kNS:()=>jJ,nFg:()=>oN,y0l:()=>Cx,rGw:()=>NT.rG,KGd:()=>D0,ivh:()=>CS,Lfm:()=>o5,gHx:()=>kc,Vsm:()=>CI,Pfj:()=>Nc,WO_:()=>gd,T7Q:()=>kA,iq0:()=>Cc,SvQ:()=>vt,QsE:()=>Eu,ilK:()=>yR,toY:()=>mo,d4y:()=>N2,P0c:()=>y6,gpz:()=>yn,O3W:()=>kU,c0o:()=>kd,EPe:()=>mi,jCr:()=>gL,No8:()=>kn,zYs:()=>yr,lgu:()=>Nk,mOW:()=>N0,dKS:()=>ys,Bic:()=>kV,LdX:()=>Ck,lFh:()=>Cd,Uve:()=>sd,XWY:()=>kx,CU$:()=>m_,ctS:()=>vx,Wjo:()=>gO,nBS:()=>Cs,o81:()=>Nj,pm$:()=>og,Hwc:()=>kE,W5n:()=>lw,XWC:()=>j9,ZyP:()=>mB,NIm:()=>Ok,Kz$:()=>m4,P8U:()=>jF,EiO:()=>E4,m9A:()=>yW,BM2:()=>D$,Wdn:()=>ok,GF9:()=>Dt,Fny:()=>jT,WyE:()=>vN,qUP:()=>oD,z0Y:()=>mZ,wn6:()=>Cv,cJy:()=>gu,YP7:()=>jY,ZLm:()=>yC,LPu:()=>o0,uTG:()=>m5,ncA:()=>OP,EDM:()=>vD,i_j:()=>kK,b6Z:()=>CO,aJF:()=>o4,uge:()=>kD,mqB:()=>F,Dsh:()=>mL,pdq:()=>kj,pyx:()=>CJ,Qsg:()=>j8,ZLW:()=>kY,cjw:()=>j7,SwV:()=>oh,UcB:()=>kR,GGC:()=>W,mmM:()=>ou,Nqf:()=>m3,tKr:()=>ly,Kpk:()=>ol,gCo:()=>ER,JJd:()=>op,Ua6:()=>lb,hae:()=>j4,lq$:()=>oX,QeH:()=>PI,lok:()=>yY,uDL:()=>Du,gz6:()=>kr,pJo:()=>js,Fmw:()=>vi,y8:()=>yJ,D3D:()=>ob,BIq:()=>Nw,x9q:()=>vh,YJP:()=>ox,uWG:()=>yU,REV:()=>oa,frg:()=>El,OeE:()=>vl,ZLN:()=>oi,CTc:()=>oc,paI:()=>D4,osL:()=>si,MiD:()=>NE,EJV:()=>sr,drd:()=>mp,mIk:()=>CF,flY:()=>os,tp2:()=>OE,OoY:()=>Ny,F$l:()=>Eh,b1c:()=>o7,T7$:()=>TL,zfR:()=>mF,ICb:()=>kZ,iRo:()=>E5,d1P:()=>y$,QpY:()=>lg,xlj:()=>kP,q__:()=>ym,s3U:()=>oA,XvC:()=>v3,Ycj:()=>Dc,_Jn:()=>N1,kxh:()=>ju,bmf:()=>yg,GcC:()=>mq,ckU:()=>G,tdF:()=>yT,EA:()=>p,bqE:()=>ED,bF1:()=>yb,JvV:()=>ND,npY:()=>on,Ddn:()=>D3,wwY:()=>oY,foY:()=>ky,hPu:()=>Ej,pYV:()=>o8,_kB:()=>jg,Xac:()=>Tb,eFc:()=>CK,yde:()=>j$,iVR:()=>N5,gFP:()=>C_,v99:()=>yV,Pyy:()=>oR,lyJ:()=>o$,qb_:()=>yO,pyG:()=>oE,A60:()=>oo,Ogf:()=>TX,AFR:()=>TQ,aiS:()=>CW,PtA:()=>sc,Fm9:()=>j5,C44:()=>Nd,TC2:()=>va,slS:()=>lx,CGR:()=>jQ,Apm:()=>DW,AnT:()=>kf,vY7:()=>DU,jT8:()=>Pm,FtQ:()=>ov,ofx:()=>NJ,PK0:()=>E3,KFv:()=>yx,OFC:()=>Et,ZrL:()=>o_,oVc:()=>Ew,mjw:()=>NA,Eg0:()=>ml,OC$:()=>o6,Nvq:()=>C2,p4K:()=>k5,u7L:()=>kb,Y26:()=>jl,SLu:()=>Td,WIv:()=>o1,BDu:()=>O4,$Kb:()=>kw,MO4:()=>sn,qLc:()=>jx,RPL:()=>kh,dwU:()=>se,bDP:()=>od,O_s:()=>lc,USm:()=>oj,G3_:()=>Pw,uFu:()=>oz,rmb:()=>TR,biy:()=>gi,cn:()=>w.cn,GYk:()=>ga,_PX:()=>jL,SCH:()=>oy,koC:()=>hQ,_e_:()=>oI,G_3:()=>vg,_1W:()=>vS,rv3:()=>oU,XaH:()=>oC,AOq:()=>EX,RFy:()=>o3,x4I:()=>NO,SnF:()=>DX,F3N:()=>vs,LMw:()=>NC.L,CH0:()=>vb,qpM:()=>j6,NGl:()=>E1,RGi:()=>Dd,BpM:()=>m1,cxd:()=>q,wJ8:()=>TI,n$t:()=>hq,RJr:()=>Rr,_Xm:()=>oV,Km0:()=>Nf,Y21:()=>yh,uQc:()=>oM,lHJ:()=>kX,XzH:()=>vm,DYW:()=>mJ,Tqd:()=>kv,vKP:()=>ow,aN0:()=>function e(t,r){var n,a=(0,h1.Q_)(t),i=r.state,o=r.onWorkspaceGroupLaunch,s=r.workspaceGroupCleanup,l=r.workspaceToLaunch,u=function(){return vh}();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}})}),vj(t,i),null==o||o(),l&&va(l.name,null!=(n=l.additionalProps)?n:{})},vNL:()=>NZ,nys:()=>so,DWK:()=>PN,BGy:()=>oG,X3I:()=>Cu,KId:()=>jz,tMf:()=>vz,EDr:()=>yB,vJW:()=>yf,yDT:()=>sa,YpM:()=>Cw,sCq:()=>jB,TQT:()=>K,pd:()=>kI,PAB:()=>Rd,Zqu:()=>Ec,AkA:()=>gc,oSs:()=>O7,JrA:()=>lS,Ce6:()=>oP,tyG:()=>C9,Rt$:()=>oF,Plc:()=>Ni,BT6:()=>oB,Oi_:()=>ss,hpF:()=>O9,Pe5:()=>TF,NNe:()=>jc,l6P:()=>Ek,uQD:()=>B.u,NOx:()=>m2,zLd:()=>O5,Int:()=>sp,oCk:()=>oO,Jbi:()=>DF,KbA:()=>o9,Ws0:()=>N4,Qnn:()=>NG,pTx:()=>go,SwB:()=>st,zkr:()=>kC,MJ8:()=>vd,SKX:()=>yy,AA7:()=>CL,qXl:()=>E2,JKc:()=>vf,zlb:()=>vu,WMK:()=>y,rZj:()=>oq,KKH:()=>yv,Fe_:()=>DH,cQD:()=>oQ,Jc:()=>oT,lA$:()=>kS,Rnm:()=>oH,Zes:()=>o2,aHM:()=>yI,f1b:()=>y5,D6i:()=>Os,PPo:()=>oK,IHy:()=>kB,cBB:()=>TM,NAP:()=>oJ,oy0:()=>sf,lu9:()=>N6,Mtm:()=>oS,kE8:()=>or,ZHE:()=>om,wtE:()=>Ow,aXL:()=>km,tCQ:()=>sl,hLN:()=>gl,a8E:()=>kM});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 h(){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 m=!1;function y(){m||(window.addEventListener("resize",h),h(),m=!0)}var v=r(2883),g=r(8783),b=r.n(g),x=r(7388),w=r(8969);function S(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 j=r(9663),O=r.n(j);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],i=n.slice(1),o=a.variant,s=void 0===o?"default":o,l=a.size,u=a.title,c=a.description,d=a.children,f=a.className,p=a.style,h=a.contentClassName,m=a.contentStyle,y=a.dotsColor,g=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(a,["variant","size","title","description","children","className","style","contentClassName","contentStyle","dotsColor"]),b=(N(i)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(i)||L(i,1)||R())[0],x=(0,v.jsxs)("div",{className:O()(k.content,h),style:m,children:[u&&(0,v.jsx)("h3",{className:k.title,children:u}),c&&(0,v.jsx)("p",{className:k.description,children:c}),d]}),w=O()(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:O()(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(5572),W=function(e){var t,r,n=e.shouldShowBatchActions,a=e.totalSelected,i=e.totalCount,o=e.onCancel,s=e.onSelectAll,l=e.className,u=e.children,c=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(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!==i&&a<i?(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:o,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 $(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}var H=(0,g.createContext)(null);function G(){var e=(0,g.useContext)(H);if(!e)throw Error("useCustomOverflowMenu must be used within a CustomOverflowMenu");return e}function K(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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return $(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 $(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=a[0],o=a[1],s=(0,x.useOnClickOutside)(function(){return o(!1)},i),l="tablet"===(0,x.useLayoutType)(),u=(0,g.useCallback)(function(){return o(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),h="custom-overflow-menu-".concat(f),m=(0,g.useCallback)(function(){var e;o(!1),null==(e=c.current)||e.focus()},[]),y=(0,g.useMemo)(function(){return{closeMenu:m}},[m]),w=(0,g.useCallback)(function(e){"Escape"===e.key&&i&&(e.stopPropagation(),m())},[m,i]),S=g.Children.toArray(n);(0,g.useEffect)(function(){if(i&&d.current){var e=d.current.querySelector('[role="menuitem"]:not([disabled])');null==e||e.focus()}},[i]);var j=(0,g.useCallback)(function(e){e.currentIndex;var t,r,n,a,i,o,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==(o=l[s>0?0:l.length-1])||o.focus();return}var f=c+s,p=f<0?l.length-1:f>=l.length?0:f;null==(i=l[p])||i.focus()}},[]),k=S.map(function(e,t){return(0,g.isValidElement)(e)?(0,g.cloneElement)(e,{closeMenu:m,handleOverflowMenuItemFocus:j,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:O()("FnRl3t5P+hDpfnpoDLIkYQ==",U({},"ECgECWELLn5BECr3OdXOew==",i)),"aria-controls":h,"aria-expanded":i,"aria-haspopup":"true",id:p,onClick:u,onKeyDown:w,ref:c,children:r}),(0,v.jsx)("div",{className:O()("_2rzmb0ibC+KEZt1WRdY7ow==",U({},"PXGXOWRgeozyfcBAS1-atg==",i)),"aria-labelledby":p,"data-placement":"bottom",id:h,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,i=e.isDelete,o=e.hasDivider,s=e.href,l=e.requireTitle,u=e.wrapperClassName,c=e.className,d=e.disabled,f=e.closeMenu,p=e.handleOverflowMenuItemFocus,h=(e.index,function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(e,["itemText","onClick","isDelete","hasDivider","href","requireTitle","wrapperClassName","className","disabled","closeMenu","handleOverflowMenuItemFocus","index"])),m=(0,g.useContext)(H),y=null!=f?f:null==m?void 0:m.closeMenu,b=O()("_0kjBdwPSKb58BRpud6FCLg==",U({},"po-+9+2wrqjHmcWB7opb1Q==",i),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}))},S=l&&"string"==typeof n?n:void 0;return(0,v.jsx)("li",{role:"none",className:O()("QNUPMFTm0wy-G6Dx1-1jxw==",U({},"sSIaKPpo8AEp6CyNxbbuiA==",o),u),children:s?(0,v.jsx)("a",{role:"menuitem",href:s,className:b,title:S,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){U(e,t,r[t])})}return e}({type:"button",role:"menuitem",className:b,disabled:d,title:S,onClick:x,onKeyDown:w},h),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)(ei()),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 ei(){return"function"==typeof b().useSyncExternalStore?b().useSyncExternalStore(ea,er,en):(0,g.useContext)(J)}let eo=!!("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),i=et(t),o=(0,g.useRef)(null),s=el.get(o);if(n&&s!==i&&(null!=s&&n.unregister(o),n.register(o,i,o),el.set(o,i)),eo){let e=es.get(i);e&&!e.includes(a)?e.push(a):es.set(i,[a])}return X(()=>()=>{n&&(n.unregister(o),el.delete(o)),es.delete(i)},[i]),(0,g.useEffect)(()=>{let e=a.current;return e&&r(e),()=>{e&&(a.current=null)}}),i}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),i=(0,g.useRef)(()=>{if(!a.current)return;let e=a.current.next();if(e.done){a.current=null;return}n.current===e.value?i.current():r(e.value)});return X(()=>{n.current=t,a.current&&i.current()}),[t,(0,g.useCallback)(e=>{a.current=e(n.current),i.current()},[i])]}(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 eh(...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 em(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:i,defaultStyle:o,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:o||{}}):r,c="function"==typeof n?n({...s,defaultChildren:i}):null==n?i:n,{className:e??a,style:u||o?{...o,...u}:void 0,children:c??i,"data-rac":"",render:l?e=>l(e,s):void 0}},[t,r,n,a,i,o,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)||{},i=em((0,g.useMemo)(()=>ed(t,n),[t,n])),o=eh(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&("function"==typeof a.style||"function"==typeof e.style?o.style=t=>{let r="function"==typeof a.style?a.style(t):a.style,n={...t.defaultStyle,...r},i="function"==typeof e.style?e.style({...t,defaultStyle:n}):e.style;return{...n,...i}}:o.style={...a.style,...e.style}),[o,i]}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 eS(e){let t=/^(data-.*)$/,r={};for(let n in e)t.test(n)||(r[n]=e[n]);return r}function ej(e,t,r){let{render:n,...a}=t,i=(0,g.useRef)(null),o=(0,g.useMemo)(()=>ed(r,i),[r,i]);X(()=>{},[e,n]);let s={...a,ref:o};return n?n(s,void 0):b().createElement(e,s)}let eO={},ek=new Proxy({},{get(e,t){if("string"!=typeof t)return;let r=eO[t];return r||(r=(0,g.forwardRef)(ej.bind(null,t)),eO[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:i=a,propNames:o}=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)||i&&(eM.has(t)||t.endsWith("Capture")&&eM.has(t.slice(0,-7)))||o?.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 e$(e,t,r,n){if(null==e)return()=>{};let a=[];for(let i of Array.isArray(e)?e:[e]){let e=i.style.getPropertyValue(t),o=i.style.getPropertyPriority(t);i.style.setProperty(t,r,n),a.unshift(()=>{e?i.style.setProperty(t,e,o):i.style.removeProperty(t)})}return()=>{for(let e of a)e()}}function eU(e,t){return!!t&&!!e&&e.contains(t)}function eH(e){return e.target}function eG(e,t){if(null===t)return[];let r=[t=t??eV(e)];return r}function eK(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()&&!to()});let ta=e9(function(){return e6(/Chrome|CriOS|CrMo/i)}),ti=e9(function(){return e6(/Android/i)}),to=e9(function(){return e6(/(Firefox|FxiOS)/i)});function ts(e){return""===e.pointerType&&!!e.isTrusted||(ti()&&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:i,shiftKey:o}=t;!tn()&&to()&&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:i,shiftKey:o}):new MouseEvent("click",{metaKey:n,ctrlKey:a,altKey:i,shiftKey:o,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,th={Tab:!0,Escape:!0};function tm(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",tm("keyboard",e))}function tv(e){tu="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(tf=!0,tm("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",tm("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",()=>{tS(e)},{once:!0}),td.set(t,{focus:n})}let tS=(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 tj(){return"pointer"!==tu}"u">typeof document&&("loading"!==(l=eB(void 0)).readyState?tw(void 0):l.addEventListener("DOMContentLoaded",()=>{tw(void 0)}));let tO=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,i=(0,g.useCallback)(e=>{if(eH(e)===e.currentTarget)return n&&n(e),a&&a(!1),!0},[n,a]),o=e4(i),s=(0,g.useCallback)(e=>{let t=eH(e),n=eB(t),i=n?((e=document)=>e.activeElement)(n):((e=document)=>e.activeElement)();t===e.currentTarget&&t===i&&(r&&r(e),a&&a(!0),o(e))},[a,r,o]);return{focusProps:{onFocus:!t&&(r||a||n)?s:void 0,onBlur:!t&&(n||a)?i: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:i=!1}=e;if(n){let o=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)),i=null!=(n=t_[r=tI(e.key)])?n:r;return a.length>0?`${a.join("+")}+${i}`:i}(e),n)}return e=>{let r,n,a,i=(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),o=t.get(i),s=o?.(e);void 0===s&&void 0!==o?s={shouldContinuePropagation:!1,shouldPreventDefault:!0}:"boolean"==typeof s&&(s={shouldContinuePropagation:!s,shouldPreventDefault:s}),s?.shouldPreventDefault&&e.preventDefault(),(!o||s?.shouldContinuePropagation)&&e.continuePropagation()}}(n),s=tT(e=>{!eU(e.currentTarget,eH(e))||e.nativeEvent?.repeat&&!a||e.nativeEvent?.isComposing&&!i?e.continuePropagation():o(e)}),l=tT(e=>{!eU(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=eh(r,n),i=function(e){let t=(0,g.useContext)(tB)||{};tF(t,e);let{ref:r,...n}=t;return n}(t),o=e.isDisabled?{}:i,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:eh({...a,tabIndex:l},o)}}b().forwardRef(function(e,t){let{children:r,...n}=e,a=em(t),i={...n,ref:a};return b().createElement(tB.Provider,{value:i},r)});let tz="default",tW="",t$=new WeakMap;function tU(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&&t$.has(e)){let t=t$.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[r]&&(e.style[r]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),t$.delete(e)}}let tH=new WeakMap;function tG(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 i=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,o=a.querySelector(i);return o&&o instanceof n.HTMLMetaElement&&("csp-nonce"===e&&o.nonce&&(r??=o.nonce||void 0),o.content&&(r??=o.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 tK=b().createContext({register:()=>{}});tK.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 i=a?.once?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:i,options:a}),t.addEventListener(r,i,a)},[]),r=(0,g.useCallback)((t,r,n,a)=>{let i=e.current.get(n)?.fn||n;t.removeEventListener(r,i,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 i=a?.getBoundingClientRect();let o,s=0,l,u=null;null!=r.clientX&&null!=r.clientY&&(l=r.clientX,u=r.clientY),i&&(null!=l&&null!=u?(o=l-i.left,s=u-i.top):(o=i.width/2,s=i.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=o,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:i,onClick:o,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=function(e){let t=(0,g.useContext)(tK);if(t){let{register:r,ref:n,...a}=t;e=eh(a,e),r()}return tF(t,e.ref),e}(e),[h,m]=(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 i=!0;if(a.isTriggeringEvent=!0,n){let r=new tJ("pressstart",t,e);n(r),i=r.shouldStopPropagation}return r&&r(!0),a.isTriggeringEvent=!1,a.didFirePressStart=!0,m(!0),i},[s,n,r]),w=(0,g.useCallback)((e,n,i=!0)=>{let o=y.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let l=!0;if(a){let t=new tJ("pressend",n,e);a(t),l=t.shouldStopPropagation}if(r&&r(!1),m(!1),t&&i&&!s){let r=new tJ("press",n,e);t(r),l&&=r.shouldStopPropagation}return o.isTriggeringEvent=!1,l},[s,a,r,t]),S=tY(w),j=tY((0,g.useCallback)((e,t)=>{let r=y.current;if(s)return!1;if(i){r.isTriggeringEvent=!0;let n=new tJ("pressup",t,e);return i(n),r.isTriggeringEvent=!1,n.shouldStopPropagation}return!0},[s,i])),O=(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||tU(t.target),t.disposables))r();t.disposables=[]}},[d,b,w]),k=tY(O);(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&&O(e)},[c,O]),P=(0,g.useCallback)(e=>{s||o?.(e)},[s,o]),A=(0,g.useCallback)((e,t)=>{if(!s&&o){let r=new MouseEvent("click",e);e3(r,t),o(e2(r))}},[s,o]),D=(0,g.useMemo)(()=>{let e=y.current,t={onKeyDown(t){if(t5(t.nativeEvent,t.currentTarget)&&eU(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&&eU(a,eH(t))&&e.target&&j(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||eU(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=j(t,"virtual"),a=S(t,"virtual");P(t),r=e&&n&&a}else if(e.isPressed&&"keyboard"!==e.pointerType){let n=e.pointerType||t.nativeEvent.pointerType||"virtual",a=j(t6(t.currentTarget,t),n),i=S(t6(t.currentTarget,t),n,!0);r=a&&i,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=eU(e.target,r);S(t6(e.target,t),"keyboard",n),n&&A(t,e.target),b(),"Enter"!==t.key&&t4(e.target)&&eU(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||!eU(t.currentTarget,eH(t)))return;if(a=t.nativeEvent,!ti()&&0===a.width&&0===a.height||ti()&&1===a.width&&1===a.height&&0===a.pressure&&0===a.detail&&"mouse"===a.pointerType){e.pointerType="virtual";return}e.pointerType=t.pointerType;let i=!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";t$.set(e,e.style[t]),e.style[t]="none"}}(e.target),i=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)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(eU(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),i=t=>t===e||null!=t&&eU(e,t),o=e=>e===r||null!=r&&null!=e&&eU(r,e);e5=!0;let s=!1,l=e=>{(o(eH(e))||s)&&e.stopImmediatePropagation()},u=t=>{(o(eH(t))||s)&&(t.stopImmediatePropagation(),e||s||(s=!0,eL(r),f()))},c=e=>{(i(eH(e))||s)&&e.stopImmediatePropagation()},d=e=>{(i(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=>{eU(t.currentTarget,eH(t))&&"virtual"!==e.pointerType&&(0!==t.button||e.isPressed||j(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,S(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(eU(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=>{eU(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=tG(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||tU(e.target??void 0),e.disposables))t();e.disposables=[]}},[d]),{isPressed:l||h,pressProps:eh(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,i=(0,g.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=tX(),l=(0,g.useCallback)(e=>{eU(e.currentTarget,eH(e))&&i.current.isFocusWithin&&!eU(e.currentTarget,e.relatedTarget)&&(i.current.isFocusWithin=!1,s(),r&&r(e),a&&a(!1))},[r,a,i,s]),u=e4(l),c=(0,g.useCallback)(e=>{if(!eU(e.currentTarget,eH(e)))return;let t=eH(e),r=eB(t),s=((e=document)=>e.activeElement)(r);if(!i.current.isFocusWithin&&s===t){n&&n(e),a&&a(!0),i.current.isFocusWithin=!0,u(e);let t=e.currentTarget;o(r,"focus",e=>{let n=eH(e);if(i.current.isFocusWithin&&!eU(t,n)){let e=new r.defaultView.FocusEvent("blur",{relatedTarget:n});e3(e,t),l(e2(e))}},{capture:!0})}},[n,a,u,o,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,i=(0,g.useRef)({isFocused:!1,isFocusVisible:r||tj()}),[o,s]=(0,g.useState)(!1),[l,u]=(0,g.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),c=(0,g.useCallback)(()=>u(i.current.isFocused&&i.current.isFocusVisible),[]),d=(0,g.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=tj(),s(e),c()},[c]);t={enabled:o,isTextInput:n},tw(),(0,g.useEffect)(()=>{if(t?.enabled===!1)return;let e=(e,r)=>{var n;let a,o,s,l,u,d,f,p;n=!!t?.isTextInput,o=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)(o),(n=n||p instanceof l&&!tO.has(p.type)||p instanceof u||p instanceof d&&p.isContentEditable)&&"keyboard"===e&&r instanceof f&&!th[r.key]||(e=>{i.current.isFocusVisible=e,c()})(tj())};return tc.add(e),()=>{tc.delete(e)}},[n,o]);let{focusProps:f}=tC({isDisabled:a,onFocusChange:d}),{focusWithinProps:p}=rr({isDisabled:!a,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:l,focusProps:a?p:f}}let ra=!1,ri=0;function ro(e){"touch"===e.pointerType&&(ra=!0,setTimeout(()=>{ra=!1},500))}function rs(){let e=eB(null);if(void 0!==e)return 0===ri&&"u">typeof PointerEvent&&e.addEventListener("pointerup",ro),ri++,()=>{!(--ri>0)&&"u">typeof PointerEvent&&e.removeEventListener("pointerup",ro)}}function rl(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:a}=e,[i,o]=(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),o(!1))},i={};return"u">typeof PointerEvent&&(i.onPointerEnter=n=>{ra&&"mouse"===n.pointerType||((n,i)=>{if(s.pointerType=i,a||"touch"===i||s.isHovered||!eU(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&&!eU(s.target,eH(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:i}),r&&r(!0),o(!0)})(n,n.pointerType)},i.onPointerLeave=t=>{!a&&eU(t.currentTarget,eH(t))&&e(t,t.pointerType)}),{hoverProps:i,triggerHoverEnd:e}},[t,r,n,a,s,l,u]);return(0,g.useEffect)(()=>{a&&d({currentTarget:s.target},s.pointerType)},[a]),{hoverProps:c,isHovered:i}}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:i}=function(e,t){let r,{elementType:n="button",isDisabled:a,onPress:i,onPressStart:o,onPressEnd:s,onPressUp:l,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:h,rel:m,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?h: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?m:void 0};let{pressProps:v,isPressed:g}=t3({onPressStart:o,onPressEnd:s,onPressChange:u,onPress:i,onPressUp:l,onClick:f,isDisabled:a,preventFocusOnPress:c,ref:t}),{focusableProps:b}=tV(e,t);d&&(b.tabIndex=a?-1:b.tabIndex);let x=eh(b,v,e_(e,{labelable:!0}));return{isPressed:g,buttonProps:eh(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:o,isFocused:s,isFocusVisible:l}=rn(e),{hoverProps:u,isHovered:c}=rl({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||i)&&!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),h=eu(),m=a["aria-labelledby"];n&&(m?m=`${m} ${h}`:a["aria-label"]&&(m=`${p} ${h}`));let y=(0,g.useRef)(n);(0,g.useEffect)(()=>{let e={"aria-labelledby":m||p};!y.current&&s&&n?eA(e,"assertive"):y.current&&s&&!n&&eA(e,"assertive"),y.current=n},[n,s,m,p]);let v=e_(e,{global:!0});return delete v.onClick,b().createElement(ek.button,{...eh(v,f,a,o,u),type:"submit"===a.type&&n?"button":a.type,id:p,ref:t,"aria-labelledby":m,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:h}},f.children))}),rd=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/,rf=(0,g.createContext)({}),rp=(0,g.createContext)({}),rh=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 rm={};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}rm={"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 rS=rw(),rj=new Set;function rO(){for(let e of(rS=rw(),rj))e(rS)}function rk(){let e=ei(),[t,r]=(0,g.useState)(rS);return((0,g.useEffect)(()=>(0===rj.size&&window.addEventListener("languagechange",rO),rj.add(r),()=>{rj.delete(r),0===rj.size&&window.removeEventListener("languagechange",rO)}),[]),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]),i=function(e){if(Intl.Locale)return new Intl.Locale(e).script}(e);if(i&&t[`${a}-${i}`])return t[`${a}-${i}`];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,r$=new Map;class rU{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,i=rW.get(a);return i||(i=new Intl.PluralRules(this.locale,{type:r}),rW.set(a,i)),"function"==typeof(n=t[i.select(e)]||t.other)?n():n}number(e){let t=r$.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),r$.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 rG(e,t){let r;return t&&rz.getGlobalDictionaryForPackage(t)||((r=rH.get(e))||(r=new rz(e),rH.set(e,r)),r)}function rK(e,t){let{locale:r}=rC(),n=rG(e,t);return(0,g.useMemo)(()=>new rU(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=rK(rY(rm),"@react-aria/calendar"),i=rZ(e)||rZ(t),o=rL({month:"long",year:"numeric",era:i,calendar:e.calendar.identifier,timeZone:r}),s=rL({month:"long",year:"numeric",day:"numeric",era:i,calendar:e.calendar.identifier,timeZone:r});return(0,g.useMemo)(()=>{if((0,rq.ro)(e,(0,rq.wH)(e))){let i=e,s=t;if(e.calendar.getFormattableMonth&&(i=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(s=t.calendar.getFormattableMonth(t)),(0,rq.ro)(t,(0,rq.p9)(e)))return o.format(i.toDate(r));if((0,rq.ro)(t,(0,rq.p9)(t)))return n?rJ(o,a,i,s,r):o.formatRange(i.toDate(r),s.toDate(r))}return n?rJ(s,a,e,t,r):s.formatRange(e.toDate(r),t.toDate(r))},[e,t,o,s,a,r,n])}function rJ(e,t,r,n,a){let i=e.formatRangeToParts(r.toDate(a),n.toDate(a)),o=-1;for(let e=0;e<i.length;e++){let t=i[e];if("shared"===t.source&&"literal"===t.type)o=e;else if("endRange"===t.source)break}let s="",l="";for(let e=0;e<i.length;e++)e<o?s+=i[e].value:e>o&&(l+=i[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=rK((r=rm)&&r.__esModule?r.default:r,"@react-aria/calendar"),a=e_(e),i=rQ(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=rQ(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);r1(()=>{t.isFocused||eA(o)},[o]);let s=function(e){let t,r,n=rK(rY(rm),"@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:i}=rC(),o=(0,g.useMemo)(()=>new Intl.ListFormat(i),[i]),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 i=rJ(a,n,t,r,e.timeZone);return n.format("selectedRangeDescription",{dateRange:i})}else if(Array.isArray(e.value)){let t=e.value.map(t=>a.format(t.toDate(e.timeZone))),r=o.format(t);return n.format("selectedDateDescription",{date:r})}}return""},[t,r,s,e,n,a,o])}(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),h=e.isDisabled||t.isPreviousVisibleRangeInvalid();return h&&f&&(p(!1),t.setFocused(!0)),{calendarProps:eh(a,r0({id:e.id,"aria-label":[e["aria-label"],o].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:h,onFocusChange:p},errorMessageProps:{id:l},title:i}}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:i="nearest"}=n,o=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,h=e===d?e.clientHeight:l.bottom,m=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,S=parseFloat(c.scrollPaddingBottom)||0,j=parseFloat(c.scrollPaddingLeft)||0,O=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=h-(f?0:E)-S-L,V=m+(f?0:P)+j,z=y-(f?0:A)-O;tr()&&tn()||"ltr"===c.direction?z-=I:"rtl"===c.direction&&(V+=I);let W=D<F||C>B,$=T<V||N>z;if(W&&"start"===a)o+=D-F;else if(W&&"center"===a)o+=(D+C)/2-(F+B)/2;else if(W&&"end"===a)o+=C-B;else if(W&&"nearest"===a){let e=D-F,t=C-B;o+=Math.abs(e)<=Math.abs(t)?e:t}if($&&"start"===i)s+=T-V;else if($&&"center"===i)s+=(T+N)/2-(V+z)/2;else if($&&"end"===i)s+=N-z;else if($&&"nearest"===i){let e=T-V,t=N-z;s+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:s,top:o})}(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:i,top:o}=e.getBoundingClientRect();if(Math.abs(t-i)>1||Math.abs(n-o)>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:i}=e.getBoundingClientRect();(Math.abs(t-a)>1||Math.abs(n-i)>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),i=null==r;(0,g.useEffect)(()=>{if(!i&&null!=e.current)return eW(e.current,t,a,n)},[e,t,n,i])}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 ni(e,t,r,n,a){let i={};for(let e in t)i[e]=Math.floor(t[e]/2),i[e]>0&&t[e]%2==0&&i[e]--;let o=no(e,t,r).subtract(i);return nl(e,o,t,r,n,a)}function no(e,t,r,n,a){let i=e;return t.years?i=(0,rq.D)(e):t.months?i=(0,rq.wH)(e):(t.weeks||t.days&&t.days>7)&&(i=(0,rq.kq)(e,r)),nl(e,i,t,r,n,a)}function ns(e,t,r,n,a){let i={...t};i.days?i.days--:i.weeks?i.weeks--:i.months?i.months--:i.years&&i.years--;let o=no(e,t,r).subtract(i);return nl(e,o,t,r,n,a)}function nl(e,t,r,n,a,i){if(a&&e.compare(a)>=0){let e=(0,rq.ZI)(t,no((0,nn.gw)(a),r,n));e&&(t=e)}if(i&&0>=e.compare(i)){let e=(0,rq.Py)(t,ns((0,nn.gw)(i),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),i=(0,g.useRef)(n),o=(0,g.useRef)(void 0!==e),s=void 0!==e;(0,g.useEffect)(()=>{o.current,o.current=s},[s]);let l=s?e:n;nd(()=>{i.current=l});let[,u]=(0,g.useReducer)(()=>({}),{});return[l,(0,g.useCallback)((e,...t)=>{let n="function"==typeof e?e(i.current):e;Object.is(i.current,n)||(i.current=n,a(n),u(),r?.(n,...t))},[r])]}var np=r(345);function nh(e){let t=(0,g.useMemo)(()=>new rN(e.locale),[e.locale]),r=(0,g.useMemo)(()=>t.resolvedOptions(),[t]),{locale:n,createCalendar:a,visibleDuration:i={months:1},minValue:o,maxValue:s,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible",selectionMode:d="single",firstDayOfWeek:f,weeksInMonth:p}=e,h=(0,g.useMemo)(()=>a(r.calendar),[a,r.calendar]),[m,y]=nf(e.value,e.defaultValue??null,e.onChange),v=(0,g.useMemo)(()=>Array.isArray(m)?m.map(e=>(0,nn.yP)((0,nn.gw)(e),h)):m?(0,nn.yP)((0,nn.gw)(m),h):null,[m,h]),b=(0,g.useMemo)(()=>{let e=Array.isArray(m)?m[0]:m;return e&&"timeZone"in e?e.timeZone:r.timeZone},[m,r.timeZone]),[x,w]=nf((0,g.useMemo)(()=>e.focusedValue?nu((0,nn.yP)((0,nn.gw)(e.focusedValue),h),o,s):void 0,[e.focusedValue,h,o,s]),(0,g.useMemo)(()=>e.defaultFocusedValue?nu((0,nn.yP)((0,nn.gw)(e.defaultFocusedValue),h),o,s):v?nu(Array.isArray(v)?v[0]:v,o,s):nu((0,nn.yP)((0,rq.Ec)(b),h),o,s),[e.defaultFocusedValue,v,b,h,o,s]),e.onFocusChange),S=()=>{switch(l){case"start":return no(x,i,n,o,s);case"end":return ns(x,i,n,o,s);default:return ni(x,i,n,o,s)}},[j,O]=(0,g.useState)(S),[k,E]=(0,g.useState)(e.autoFocus||!1),[P,A]=(0,g.useState)(i);i!==P&&(i.days!==P.days||i.weeks!==P.weeks||i.months!==P.months||i.years!==P.years)&&(A(i),O(S()));let D=(0,g.useMemo)(()=>{let e={...i};return e.days?e.days--:e.days=-1,j.add(e)},[j,i]),[C,T]=(0,g.useState)(h);if(!(0,rq.Jg)(h,C)){let e=(0,nn.yP)(x,h);O(ni(e,i,n,o,s)),w(e),T(h)}function N(e){w(e=nu(e,o,s))}function R(e){let t=nu(e,o,s),r=o??(0,rq.Py)(t,j),n=nc(t,r,u);if(!n)return null;let a=Array.isArray(m)?m[0]:m,i=(0,nn.yP)(n,a?.calendar||new(0,np.FG));return a&&"hour"in a?a.set(i):i}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,o,s)?w(nu(x,o,s)):0>x.compare(j)?O(ns(x,i,n,o,s)):x.compare(D)>0&&O(no(x,i,n,o,s));let I=(0,g.useMemo)(()=>!!v&&(Array.isArray(v)?v.some(e=>u?.(e)||na(e,o,s)):u?.(v)||na(v,o,s)),[v,u,o,s]),L=e.isInvalid||"invalid"===e.validationState||I,F=(0,g.useMemo)(()=>"visible"===c?i:nm(i),[c,i]);return{isDisabled:e.isDisabled??!1,isReadOnly:e.isReadOnly??!1,value:v,setValue:M,selectionMode:d,visibleDuration:i,visibleRange:{start:j,end:D},minValue:o,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(){i.days?this.focusNextPage():(i.weeks||i.months||i.years)&&N(x.add({weeks:1}))},focusPreviousRow(){i.days?this.focusPreviousPage():(i.weeks||i.months||i.years)&&N(x.subtract({weeks:1}))},focusNextPage(){let e=j.add(F);w(nu(x.add(F),o,s)),O(no(nl(x,e,F,n,o,s),F,n))},focusPreviousPage(){let e=j.subtract(F);w(nu(x.subtract(F),o,s)),O(no(nl(x,e,F,n,o,s),F,n))},focusSectionStart(){i.days?N(j):i.weeks?N((0,rq.kq)(x,n)):(i.months||i.years)&&N((0,rq.wH)(x))},focusSectionEnd(){i.days?N(D):i.weeks?N((0,rq.$I)(x,n)):(i.months||i.years)&&N((0,rq.p9)(x))},focusNextSection(e){e||i.days?i.days?this.focusNextPage():i.weeks?N(x.add({months:1})):(i.months||i.years)&&N(x.add({years:1})):N(x.add(nm(i)))},focusPreviousSection(e){e||i.days?i.days?this.focusPreviousPage():i.weeks?N(x.subtract({months:1})):(i.months||i.years)&&N(x.subtract({years:1})):N(x.subtract(nm(i)))},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(m)?r=m:null!=m&&(r=[m]);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,o,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(j)||t.compare(D)>0||this.isInvalid(t)},isCellUnavailable:t=>!!e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=j.subtract({days:1});return(0,rq.ro)(e,j)||this.isInvalid(e)},isNextVisibleRangeInvalid(){let e=D.add({days:1});return(0,rq.ro)(e,D)||this.isInvalid(e)},getDatesInWeek(e,t=j){let r=t.add({weeks:e}),a=[],o=i.days&&i.days<7?i.days:7;if(7===o){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<o;){a.push(r);let e=r.add({days:1});if((0,rq.ro)(r,e))break;r=e}for(;a.length<o;)a.push(null);return a},getWeeksInMonth(e=j){let t=p||(0,rq.RZ)(e,n,f);return(i.weeks||i.days)&&(t=i.weeks??0,i.days&&(t+=Math.ceil(i.days/7))),t}}}function nm(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}),i=e.subtract(r),o=e.add(r);for(;(n<0?a.compare(i)>=0:0>=a.compare(o))&&!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:i}=rr({isDisabled:!r,onFocusWithinChange:e=>a(e)}),o=(0,g.useMemo)(()=>n?t:t?{...nb,...t}:nb,[n]);return{visuallyHiddenProps:{...i,style:o}}}function nw(e){let{children:t,elementType:r="div",isFocusable:n,style:a,...i}=e,{visuallyHiddenProps:o}=nx(e);return b().createElement(r,eh(i,o),t)}let nS=(0,g.createContext)(null),nj=(0,g.createContext)(null),nO=(0,g.createContext)(null),nk=(0,g.createContext)(null),nE=(0,g.forwardRef)(function(e,t){[e,t]=ex(e,t,nS);let{locale:r}=rC(),n=nh({...e,locale:r,createCalendar:e.createCalendar||nr.d}),{calendarProps:a,prevButtonProps:i,nextButtonProps:o,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,{...eh(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:i,next:o}}],[rf,{"aria-hidden":!0,level:2,children:l}],[nO,n],[nS,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":o["aria-label"],disabled:o.isDisabled,onClick:()=>n.focusNextPage(),tabIndex:-1}))))}),nP=(0,g.forwardRef)(function(e,t){[e,t]=ex(e,t,nj);let{locale:r}=rC(),n=function(e){let{value:t,defaultValue:r,onChange:n,createCalendar:a,locale:i,visibleDuration:o={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=nf(t,r||null,n),[f,p]=(0,g.useState)(null),h="center";if(c&&c.start&&c.end){let e=ni((0,nn.gw)(c.start),o,i,s,l).add(o).subtract({days:1});c.end.compare(e)>0&&(h="start")}let m=(0,g.useMemo)(()=>{let t=e.isDateUnavailable;if(t)return e=>t(e,f)},[e.isDateUnavailable,f]),y=(0,g.useCallback)(t=>t&&m&&!e.allowsNonContiguousRanges?{start:ng(t,m,o,-1),end:ng(t,m,o,1)}:null,[m,o,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=nh({...u,value:c&&c.start,createCalendar:a,locale:i,visibleDuration:o,minValue:b,maxValue:x,selectionAlignment:e.selectionAlignment||h,isDateUnavailable:m}),S=f?ny(f,w.focusedDate):c&&ny(c.start,c.end),j=t=>{if(e.isReadOnly)return;let r=nc(nu(t,b,x),w.visibleRange.start,m);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)},[O,k]=(0,g.useState)(!1),E=(0,g.useMemo)(()=>!!c&&!f&&(!!(m&&(m(c.start)||m(c.end)))||na(c.start,s,l)||na(c.end,s,l)),[m,c,f,s,l]),P=e.isInvalid||"invalid"===e.validationState||E;return{...w,value:c,setValue:d,anchorDate:f,setAnchorDate:p,highlightedRange:S,validationState:P?"invalid":null,isValueInvalid:P,selectFocusedDate(){w.isCellUnavailable(w.focusedDate)||j(w.focusedDate)},commitSelection(){j(w.focusedDate)},selectDate:j,highlightDate(e){f&&w.setFocusedDate(e)},isSelected:e=>!!(S&&e.compare(S.start)>=0&&0>=e.compare(S.end)&&!w.isCellDisabled(e)&&!w.isCellUnavailable(e)),isInvalid:e=>w.isInvalid(e)||na(e,v?.start,v?.end),isDragging:O,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:i,nextButtonProps:o,errorMessageProps:s,title:l}=function(e,t,r){let{commitBehavior:n="select",...a}=e,i=r2(a,t),o=(0,g.useRef)(!1),s=(0,g.useRef)("u">typeof window?window:null);nt(s,"pointerdown",e=>{o.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(o.current){o.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let a=eH(e);r.current&&eK(r.current)&&(!eU(r.current,a)||!a.closest('button, [role="button"]'))&&l[n]()}),i.calendarProps.onBlur=e=>{r.current&&(e.relatedTarget&&eU(r.current,e.relatedTarget)||!t.anchorDate||l[n]())},nt(r,"touchmove",e=>{t.isDragging&&e.preventDefault()},{passive:!1,capture:!0}),i}(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,{...eh(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:i,next:o}}],[rf,{"aria-hidden":!0,level:2,children:l}],[nk,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":o["aria-label"],disabled:o.isDisabled,onClick:()=>n.focusNextPage(),tabIndex:-1}))))}),nA=(0,g.createContext)(null),nD=(0,g.forwardRef)(function(e,t){let r=(0,g.useContext)(nO),n=(0,g.useContext)(nk),a=eb(nS),i=eb(nj),o=r??n,s=o.visibleRange.start;e.offset&&(s=s.add(e.offset));let l=a?.firstDayOfWeek??i?.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:i}=rC(),{keyboardProps:o}=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"===i?t.focusNextDay():t.focusPreviousDay()},ArrowUp:()=>{t.focusPreviousRow()},ArrowRight:()=>{"rtl"===i?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(),h=(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]),m=t.getWeeksInMonth(r);return{gridProps:eh(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)},o,s),headerProps:{"aria-hidden":!0},weekDays:h,weeksInMonth:m}}({startDate:s,endDate:(0,rq.p9)(s),weekdayStyle:e.weekdayStyle,firstDayOfWeek:l},o),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,...eh(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:i,weekDays:o}=(0,g.useContext)(nA),s=e_(e,{global:!0});return b().createElement(ek.thead,{render:e.render,...eh(s,i),ref:t,style:n,className:a??"react-aria-CalendarGridHeader"},b().createElement("tr",null,o.map((e,t)=>b().cloneElement(r(e),{key:t}))))}),nT=(0,g.forwardRef)(function(e,t){let{children:r,style:n,className:a}=e,i=e_(e,{global:!0});return b().createElement(ek.th,{render:e.render,...i,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,i=(0,g.useContext)(nO),o=(0,g.useContext)(nk),s=i??o,{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)(nO),a=(0,g.useContext)(nk),i=n??a,{startDate:o}=(0,g.useContext)(nA)??{startDate:i.visibleRange.start},s=!i.visibleDuration.days&&!i.visibleDuration.weeks&&!(0,rq.tF)(o,e),l=(0,rq.cK)(e,i.timeZone),u=(0,g.useRef)(null),{cellProps:c,buttonProps:d,...f}=function(e,t,r){var n;let a,{date:i,isDisabled:o}=e,{errorMessageId:s,selectedDateDescription:l}=rX.get(t),u=rK((n=rm)&&n.__esModule?n.default:n,"@react-aria/calendar"),c=rL({weekday:"long",day:"numeric",month:"long",year:"numeric",era:rZ(i),timeZone:t.timeZone}),d=t.isCellFocused(i)&&!e.isOutsideMonth;o=o||t.isCellDisabled(i)||!!e.isOutsideMonth;let f=t.isCellUnavailable(i),p=!o&&!f,h=t.isSelected(i)&&p,m=!1;t.isValueInvalid&&("highlightedRange"in t?m=!t.anchorDate&&null!=t.highlightedRange&&i.compare(t.highlightedRange.start)>=0&&0>=i.compare(t.highlightedRange.end):Array.isArray(t.value)?m=t.value.some(e=>(0,rq.ro)(e,i)):t.value&&(m=(0,rq.ro)(t.value,i))),m&&!o&&(h=!0),i=ry(i,rq.NV);let y=(0,g.useMemo)(()=>i.toDate(t.timeZone),[i,t.timeZone]),v=(0,rq.cK)(i,t.timeZone),b=(0,g.useMemo)(()=>{let e="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&((0,rq.ro)(i,t.value.start)||(0,rq.ro)(i,t.value.end))&&(e=l+", "),e+=c.format(y),v?e=u.format(h?"todayDateSelected":"todayDate",{date:e}):h&&(e=u.format("dateSelected",{date:e})),t.minValue&&(0,rq.ro)(i,t.minValue)?e+=", "+u.format("minimumDate"):t.maxValue&&(0,rq.ro)(i,t.maxValue)&&(e+=", "+u.format("maximumDate")),e},[c,y,u,h,v,i,t,l]),x="";"anchorDate"in t&&d&&!t.isReadOnly&&p&&(x=t.anchorDate?u.format("finishRangeSelectionPrompt"):u.format("startRangeSelectionPrompt"));let w=ne(x),S=(0,g.useRef)(!1),j=(0,g.useRef)(!1),O=(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(i),t.setFocused(!0);return}if("highlightedRange"in t&&!t.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(t.highlightedRange&&!m){if((0,rq.ro)(i,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(i),t.setFocused(!0),t.setDragging(!0),j.current=!0;return}else if((0,rq.ro)(i,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(i),t.setFocused(!0),t.setDragging(!0),j.current=!0;return}}let r=()=>{t.setDragging(!0),O.current=void 0,t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0),S.current=!0};"touch"===e.pointerType?O.current=setTimeout(r,200):r()}},onPressEnd(){j.current=!1,S.current=!1,clearTimeout(O.current),O.current=void 0},onPress(){"anchorDate"in t||t.isReadOnly||(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0))},onPressUp(e){!t.isReadOnly&&("anchorDate"in t&&O.current&&(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0)),"anchorDate"in t&&(j.current?t.setAnchorDate(i):t.anchorDate&&!S.current?(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0)):"keyboard"!==e.pointerType||t.anchorDate?"virtual"===e.pointerType&&(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0)):(t.selectDate(i),t.focusNearestAvailableDate(i))))}});o||(a=(0,rq.ro)(i,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:i.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":h||void 0,"aria-invalid":m||void 0},buttonProps:eh(k,{onFocus(){o||(t.setFocusedDate(i),t.setFocused(!0))},tabIndex:a,role:"button","aria-disabled":!p||void 0,"aria-label":b,"aria-invalid":m||void 0,"aria-describedby":[m?s:void 0,w["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in t&&("touch"!==e.pointerType||t.isDragging)&&p&&t.highlightDate(i)},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:h,isDisabled:o,isUnavailable:f,isOutsideVisibleRange:0>i.compare(t.visibleRange.start)||i.compare(t.visibleRange.end)>0,isInvalid:m,formattedDate:A}}({date:e,isOutsideMonth:s},i,u),{hoverProps:p,isHovered:h}=rl({...t,isDisabled:f.isDisabled||f.isUnavailable}),{focusProps:m,isFocusVisible:y}=rn();y&&=f.isFocused;let v=!1,x=!1;"highlightedRange"in i&&i.highlightedRange&&(v=(0,rq.ro)(e,i.highlightedRange.start),x=(0,rq.ro)(e,i.highlightedRange.end));let w=eg({...t,defaultChildren:f.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:e,isHovered:h,isOutsideMonth:s,isFocusVisible:y,isSelectionStart:v,isSelectionEnd:x,isToday:l,...f}}),S={"data-focused":f.isFocused||void 0,"data-hovered":h||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},j=e_(t,{global:!0});return b().createElement("td",{...c,ref:r},b().createElement(ek.div,{...eh(j,d,m,p,S,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:i,onHoverChange:o,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:i,onHoverChange:o,onHoverEnd:s,isDisabled:r}),{isFocused:d,isFocusVisible:f,focusProps:p}=rn({within:!0}),h=eg({...e,values:{isHovered:c,isFocusWithin:d,isFocusVisible:f,isDisabled:r,isInvalid:n},defaultClassName:"react-aria-Group"});return b().createElement(ek.div,{...eh(l,p,u),...h,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},h.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:i,focusProps:o}=rn({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],l=eg({...e,values:{isHovered:n,isFocused:a,isFocusVisible:i,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return b().createElement(ek.input,{...eh((e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,...a}=e;return a})(e),o,r),...l,ref:t,"data-focused":a||void 0,"data-disabled":e.disabled||void 0,"data-hovered":n||void 0,"data-focus-visible":i||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,i,o,s,l,u,c;let d,f,p,h,{children:m,contain:y,restoreFocus:v,autoFocus:x}=e,w=(0,g.useRef)(null),S=(0,g.useRef)(null),j=(0,g.useRef)([]),{parentNode:O}=(0,g.useContext)(nB)||{},k=(0,g.useMemo)(()=>new n3({scopeRef:j}),[j]);X(()=>{let e=O||n4.root;if(n4.getTreeNode(e.scopeRef)&&nz&&!nK(nz,e.scopeRef)){let t=n4.getTreeNode(nz);t&&(e=t)}e.addChild(k),n4.addNode(k)},[k,O]),X(()=>{let e=n4.getTreeNode(j);e&&(e.contain=!!y)},[y]),X(()=>{let e=w.current?.nextSibling,t=[],r=e=>e.stopPropagation();for(;e&&e!==S.current;)t.push(e),e.addEventListener(nV,r),e=e.nextSibling;return j.current=t,()=>{for(let e of t)e.removeEventListener(nV,r)}},[m]),X(()=>{if(r||n)return;let e=t.current,a=eB(e?e[0]:void 0),i=e=>{let r=eH(e);nH(r,t.current)?nz=t:nG(r)||(nz=null)};return a.addEventListener("focusin",i,!1),e?.forEach(e=>e.addEventListener("focusin",i,!1)),()=>{a.removeEventListener("focusin",i,!1),e?.forEach(e=>e.removeEventListener("focusin",i,!1))}},[t=j,r=v,n=y]),a=j,i=y,d=(0,g.useRef)(void 0),f=(0,g.useRef)(void 0),X(()=>{let e=a.current;if(!i){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||!nU(a)||e.isComposing)return;let r=((e=document)=>e.activeElement)(t),n=a.current;if(!n||!nH(r,n))return;let i=nJ(n$(n),{tabbable:!0},n);if(!r)return;i.currentNode=r;let o=e.shiftKey?i.previousNode():i.nextNode();o||(i.currentNode=e.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,o=e.shiftKey?i.previousNode():i.nextNode()),e.preventDefault(),o&&(nq(o,!0),o instanceof eV(o).HTMLInputElement&&o.select())},n=e=>{(!nz||nK(nz,a))&&nH(eH(e),a.current)?(nz=a,d.current=eH(e)):nU(a)&&!nG(eH(e),a)?d.current?nq(d.current):nz&&nz.current&&nX(nz.current):nU(a)&&(d.current=eH(e))},o=e=>{f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame(()=>{let r=tu,n=("virtual"===r||null===r)&&ti()&&ta(),i=((e=document)=>e.activeElement)(t);if(!n&&i&&nU(a)&&!nG(i,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",o,!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",o,!1))}},[a,i]),X(()=>()=>{f.current&&cancelAnimationFrame(f.current)},[f]),o=j,s=v,l=y,p=(0,g.useRef)("u">typeof document?((e=document)=>e.activeElement)(eB(o.current?o.current[0]:void 0)):null),X(()=>{let e=o.current,t=eB(e?e[0]:void 0);if(!s||l)return;let r=()=>{(!nz||nK(nz,o))&&nH(((e=document)=>e.activeElement)(t),o.current)&&(nz=o)};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))}},[o,l]),X(()=>{let e=eB(o.current?o.current[0]:void 0);if(!s)return;let t=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!nU(o)||t.isComposing)return;let r=e.activeElement;if(!nG(r,o)||!nZ(o))return;let n=n4.getTreeNode(o);if(!n)return;let a=n.nodeToRestore,i=nJ(e.body,{tabbable:!0});i.currentNode=r;let s=t.shiftKey?i.previousNode():i.nextNode();if(a&&a.isConnected&&a!==e.body||(a=void 0,n.nodeToRestore=void 0),(!s||!nG(s,o))&&a){i.currentNode=a;do s=t.shiftKey?i.previousNode():i.nextNode();while(nG(s,o));(t.preventDefault(),t.stopPropagation(),s)?nq(s,!0):nG(a)?nq(a,!0):r.blur()}};return l||e.addEventListener("keydown",t,!0),()=>{l||e.removeEventListener("keydown",t,!0)}},[o,s,l]),X(()=>{let e=eB(o.current?o.current[0]:void 0);if(!s)return;let t=n4.getTreeNode(o);if(t)return t.nodeToRestore=p.current??void 0,()=>{let t=n4.getTreeNode(o);if(!t)return;let r=t.nodeToRestore,n=((e=document)=>e.activeElement)(e);if(s&&r&&(n&&nG(n,o)||n===e.body&&nZ(o))){let t=n4.clone();requestAnimationFrame(()=>{if(e.activeElement===e.body){let e=t.getTreeNode(o);for(;e;){if(e.nodeToRestore&&e.nodeToRestore.isConnected)return void nQ(e.nodeToRestore);e=e.parent}for(e=t.getTreeNode(o);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}}})}}},[o,s]),u=j,c=x,h=b().useRef(c),(0,g.useEffect)(()=>{h.current&&(nz=u,!nH(((e=document)=>e.activeElement)(eB(u.current?u.current[0]:void 0)),nz.current)&&u.current&&nX(u.current)),h.current=!1},[u]),(0,g.useEffect)(()=>{let e=((e=document)=>e.activeElement)(eB(j.current?j.current[0]:void 0)),t=null;if(nH(e,j.current)){for(let r of n4.traverse())r.scopeRef&&nH(e,r.scopeRef.current)&&(t=r);t===n4.getTreeNode(j)&&(nz=t.scopeRef)}},[j]),X(()=>()=>{let e=n4.getTreeNode(j)?.parent?.scopeRef??null;(j===nz||nK(j,nz))&&(!e||n4.getTreeNode(e))&&(nz=e),n4.removeTreeNode(j)},[j]);let E=(0,g.useMemo)(()=>{var e;return e=j,{focusNext(t={}){let r=e.current,{from:n,tabbable:a,wrap:i,accept:o}=t,s=n||((e=document)=>e.activeElement)(eB(r[0]??void 0)),l=r[0].previousElementSibling,u=nJ(n$(r),{tabbable:a,accept:o},r);u.currentNode=nH(s,r)?s:l;let c=u.nextNode();return!c&&i&&(u.currentNode=l,c=u.nextNode()),c&&nq(c,!0),c},focusPrevious(t={}){let r=e.current,{from:n,tabbable:a,wrap:i,accept:o}=t,s=n||((e=document)=>e.activeElement)(eB(r[0]??void 0)),l=r[r.length-1].nextElementSibling,u=nJ(n$(r),{tabbable:a,accept:o},r);u.currentNode=nH(s,r)?s:l;let c=u.previousNode();return!c&&i&&(u.currentNode=l,c=u.previousNode()),c&&nq(c,!0),c},focusFirst(t={}){let r=e.current,{tabbable:n,accept:a}=t,i=nJ(n$(r),{tabbable:n,accept:a},r);i.currentNode=r[0].previousElementSibling;let o=i.nextNode();return o&&nq(o,!0),o},focusLast(t={}){let r=e.current,{tabbable:n,accept:a}=t,i=nJ(n$(r),{tabbable:n,accept:a},r);i.currentNode=r[r.length-1].nextElementSibling;let o=i.previousNode();return o&&nq(o,!0),o}}},[]),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}),m,b().createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:S}))}function n$(e){return e[0].parentElement}function nU(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=>eU(t,e))}function nG(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 nK(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=n$(e),a=nJ(n,{tabbable:t},e);a.currentNode=r;let i=a.nextNode();return t&&!i&&((a=nJ(n=n$(e),{tabbable:!1},e)).currentNode=r,i=a.nextNode()),i}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),i=nF(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>eU(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"===i.currentNode.tagName&&"radio"===i.currentNode.type&&i.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&&(i.currentNode=t.from),i}function n0(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:a,tabbable:i=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=r,l=a||((e=document)=>e.activeElement)(eB(n)),u=nJ(n,{tabbable:i,accept:s});eU(n,l)&&(u.currentNode=l);let c=u.nextNode();return!c&&o&&(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:i=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=r,l=a||((e=document)=>e.activeElement)(eB(n)),u=nJ(n,{tabbable:i,accept:s});if(eU(n,l))u.currentNode=l;else{let e=n1(u);return e&&nq(e,!0),e??null}let c=u.previousNode();if(!c&&o){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:i=t.accept}=r,o=nJ(n,{tabbable:a,accept:i}).nextNode();return o&&nq(o,!0),o},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:a=t.tabbable,accept:i=t.accept}=r,o=n1(nJ(n,{tabbable:a,accept:i}));return o&&nq(o,!0),o??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:i}=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}),o=()=>{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&&o()},onPress(e){("touch"===e.pointerType||"pen"===e.pointerType)&&o()}});return eh(s,i)}function n8(e,t,r){let n=nJ(e,{tabbable:!0}),a=n.nextNode(),i=null,o=1/0;for(;a;){let e=a.getBoundingClientRect().left-t,s=Math.abs(e);Math.sign(e)===r&&s<o&&(i=a,o=s),a=n.nextNode()}return i}function n9(e){let{description:t,errorMessage:r,isInvalid:n,validationState:a}=e,{labelProps:i,fieldProps:o}=function(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":a,labelElementType:i="label"}=e;t=eu(t);let o=eu(),s={};return r&&(n=n?`${o} ${n}`:o,s={id:o,htmlFor:"label"===i?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:i,fieldProps:o=eh(o,{"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 i=(0,g.useRef)(!1),o=tY(()=>{i.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",tm("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=()=>{i.current=!window.event||"message"===window.event.type&&eH(window.event)instanceof MessagePort,n?.call(t),i.current=!1}),e.addEventListener("invalid",s),e.addEventListener("change",l),t?.addEventListener("reset",o),()=>{e.removeEventListener("invalid",s),e.removeEventListener("change",l),t?.removeEventListener("reset",o),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:i,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=n9({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),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}),h=rK((n=n5)&&n.__esModule?n.default:n,"@react-aria/datepicker"),m="hour"===t.maxGranularity?"selectedTimeDescription":"selectedDateDescription",y="hour"===t.maxGranularity?"time":"date",v=ne(t.value?h.format(m,{[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]),S=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 j=(0,g.useRef)(e.autoFocus);a="presentation"===e[ar]?{role:"presentation"}:eh(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":b}),(0,g.useEffect)(()=>{j.current&&w.focusFirst(),j.current=!1},[w]),n7(e.inputRef,t.defaultValue,t.setValue),ae({...e,focus(){w.focusFirst()}},t,e.inputRef);let O={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};"native"===e.validationBehavior&&(O.type="text",O.hidden=!0,O.required=e.isRequired,O.onChange=()=>{});let k=e_(e);return{labelProps:{...l,onClick:()=>{w.focusFirst()}},fieldProps:eh(k,a,S,p,{onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,style:{unicodeBidi:"isolate"}}),inputProps:O,descriptionProps:c,errorMessageProps:d,isInvalid:i,validationErrors:o,validationDetails:s}}var ai={};ai={"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 ao={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},as={...ao,customError:!0,valid:!1},al={isInvalid:!1,validationDetails:ao,validationErrors:[]},au=(0,g.createContext)({}),ac="__reactAriaFormValidationState";function ad(e){if(e[ac]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:a,commitValidation:i}=e[ac];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:a,commitValidation:i}}return function(e){let{isInvalid:t,validationState:r,name:n,value:a,builtinValidation:i,validate:o,validationBehavior:s="aria"}=e;r&&(t||="invalid"===r);let l=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:as}:null,u=(0,g.useMemo)(()=>o&&null!=a?ap(function(e,t){if("function"==typeof e){let r=e(t);if(r&&"boolean"!=typeof r)return af(r)}return[]}(o,a)):null,[o,a]);i?.validationDetails.valid&&(i=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),[h,m]=(0,g.useState)(!1);c!==f&&(p(c),m(!1));let y=(0,g.useMemo)(()=>ap(h?[]:d),[h,d]),v=(0,g.useRef)(al),[b,x]=(0,g.useState)(al),w=(0,g.useRef)(al),[S,j]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{if(!S)return;j(!1);let e=u||i||v.current;ah(e,w.current)||(w.current=e,x(e))}),{realtimeValidation:l||y||u||i||al,displayValidation:"native"===s?l||y||b:l||y||u||i||b,updateValidation(e){"aria"!==s||ah(b,e)?v.current=e:x(e)},resetValidation(){ah(al,w.current)||(w.current=al,x(al)),"native"===s&&j(!1),m(!0)},commitValidation(){"native"===s&&j(!0),m(!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 ah(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 am(...e){let t=new Set,r=!1,n={...ao};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=ai)&&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 i=null!=e&&null!=r&&e.compare(r)>0,o=null!=e&&null!=t&&0>e.compare(t),s=null!=e&&n?.(e)||!1,l=i||o||s,u=[];if(l){let e=ag(),n=new rU(e,rz.getGlobalDictionaryForPackage("@react-stately/datepicker")||av),l=new rN(e,aS({},a)),c=l.resolvedOptions().timeZone;o&&null!=t&&u.push(n.format("rangeUnderflow",{minValue:l.format(t.toDate(c))})),i&&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:i,rangeUnderflow:o,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 aS(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 i=n.indexOf(r);if(i<0&&(i=2),a>i)throw Error("maxGranularity must be greater than granularity");let o=n.slice(a,i+1).reduce((t,r)=>(t[r]=e[r],t),{});return null!=t.hourCycle&&(o.hour12=12===t.hourCycle),o.timeZone=t.timeZone||"UTC",("hour"===r||"minute"===r||"second"===r)&&t.timeZone&&!t.hideTimeZone&&(o.timeZoneName="short"),t.showEra&&0===a&&(o.era="short"),o}function aj(e){return e&&"hour"in e?e:new(0,ay.gX)}function aO(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,i]=(0,g.useState)([n,r]);return e&&(a[0]!==n||a[1]!==r)&&i([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,i]=aD((e=e.cycle("hour",t,{hourCycle:"h12"===this.hourCycle?12:24,round:!1})).hour,this.hourCycle);a.hour=i,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:i=!1,isRequired:o=!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[h,m]=(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)(()=>aO(y,h)??null,[y,h]),[w,S]=(0,g.useState)(()=>new aP(h,m,x)),j="gregory"===h.identifier&&"BC"===w.era,O=(0,g.useMemo)(()=>({granularity:d,maxGranularity:e.maxGranularity??"year",timeZone:f,hideTimeZone:n,hourCycle:e.hourCycle,showEra:j,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,d,e.hourCycle,e.shouldForceLeadingZeros,f,n,j]),k=(0,g.useMemo)(()=>aS({},O),[O]),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 aO(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,h,f),[e.placeholderValue,d,h,f]),D=(0,g.useMemo)(()=>{let t="h11"===m||"h12"===m,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,m]),[C,T]=(0,g.useState)(x),[N,R]=(0,g.useState)(h),[M,I]=(0,g.useState)(m);x===C&&m===M&&(0,rq.Jg)(h,N)||(w=new aP(h,m,x),T(x),R(h),I(m),S(w));let L=t=>{if(!e.isDisabled&&!e.isReadOnly)if(null==t||t instanceof aP&&t.isCleared(D))S(new aP(h,m,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)){S(new aP(h,m,x)),v(t);return}}}S(t)}else t=(0,nn.yP)(t,c?.calendar||new(0,np.FG)),S(new aP(h,m,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,i,o){let s=["hour","minute","second"],l=r.formatToParts(e),u=new aM(i,{useGrouping:!1}),c=new aM(i,{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,i):"––"):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===o&&d.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):s.includes(r)&&r===o?(d.push(c),d.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):d.push(c)}return d})(F,w,E,P,h,t,d),[F,E,P,w,h,t,d]),V=(e,t)=>{L(w.cycle(e,t,A,D))},z=(0,g.useMemo)(()=>ab(y,s,l,u,O),[y,s,l,u,O]),W=ad({...e,value:y,builtinValidation:z}),$=W.displayValidation.isInvalid,U=e.validationState||($?"invalid":null);return{...W,value:x,defaultValue:e.defaultValue??b,dateValue:F,calendar:h,setValue:L,segments:B,dateFormatter:E,validationState:U,isInvalid:$,granularity:d,maxGranularity:e.maxGranularity??"year",isDisabled:a,isReadOnly:i,isRequired:o,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"===m?11:w.getSegmentLimits(e).maxValue;L(w.set(e,t,A))},decrementToMin(e){let t="hour"===e&&"h12"===m?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),S(new aP(h,m,x))}},clearSegment(e){let t=w;"timeZoneName"!==e&&"literal"!==e&&(t=w.clear(e)),L(t)},formatValue:e=>x?new rN(t,aS(e,O)).format(F):"",getDateFormatter:(e,t)=>new rN(e,aS({},{...O,...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(aU,{...e,ref:t}):b().createElement(a$,{...e,ref:t})}),a$=(0,g.forwardRef)((e,t)=>{let[r,n]=ex({slot:e.slot},t,aB),{locale:a}=rC(),i=aF({...r,locale:a,createCalendar:nr.d}),o=(0,g.useRef)(null),{fieldProps:s,inputProps:l}=aa({...r,inputRef:o},i,n);return b().createElement(ev,{values:[[aV,i],[n_,{...l,ref:o}],[nM,{...s,ref:n,isInvalid:i.isInvalid,isDisabled:i.isDisabled}]]},b().createElement(aU,e))}),aU=(0,g.forwardRef)((e,t)=>{let{className:r,children:n}=e,a=(0,g.useContext)(aV),i=(0,g.useContext)(az),o=a??i;return b().createElement(b().Fragment,null,b().createElement(nI,{...e,ref:t,slot:e.slot||void 0,className:r??"react-aria-DateInput",isReadOnly:o.isReadOnly,isInvalid:o.isInvalid,isDisabled:o.isDisabled},o.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(tK.Provider,{value:t},e)}b().forwardRef(({children:e,...t},r)=>{let n=(0,g.useRef)(!1),a=(0,g.useContext)(tK),i=eh(a||{},{...t,register(){n.current=!0,a&&a.register()}});return i.ref=em(r||a?.ref),tF(a,i.ref),(0,g.useEffect)(()=>{n.current||(n.current=!0)},[]),b().createElement(tK.Provider,{value:i},e)});let aG=(0,g.createContext)({}),aK=b().createContext(null);function aq(e){let t=ei(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[a,i]=(0,g.useState)(!1),o=(0,g.useMemo)(()=>({contain:a,setContain:i}),[a,i]),{getContainer:s}=(0,g.useContext)(aG)??{};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(aK.Provider,{value:o},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:i}=function(e,t){let r,n,{role:a="dialog"}=e,i=ec();i=e["aria-label"]?void 0:i;let o=ec();o="alertdialog"!==a||e["aria-describedby"]?void 0:o;let s=(0,g.useRef)(!1);(0,g.useEffect)(()=>{if(t.current&&!eK(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)(aK),X(()=>{n?.(!0)},[n=r?.setContain]),(0,g.useRef)(!1),(0,g.useEffect)(()=>{});let l=e["aria-describedby"]??o;return{dialogProps:{...e_(e,{labelable:!0}),role:a,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]??i,"aria-describedby":l,onBlur:e=>{s.current&&e.stopPropagation()}},titleProps:{id:i},contentProps:{id:o}}}({...e,"aria-labelledby":r},t),o=(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:o?.close||(()=>{})}}),l=e_(e,{global:!0});return b().createElement(ek.section,{...eh(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:i}}],[ru,{slots:{[ey]:{},close:{onPress:()=>o?.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,i=e_(a,{global:!0}),o=eg({...a,defaultClassName:"react-aria-FieldError",defaultChildren:0===r.validationErrors.length?void 0:r.validationErrors.join(" "),values:r});return null==o.children?null:b().createElement(rh,{slot:"errorMessage",elementType:n,...i,...o,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:i}=nx({style:{position:"fixed",top:0,left:0}}),o=60;"second"===t.granularity?o=1:"hour"===t.granularity&&(o=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:{...i,"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:o,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,ie=new WeakMap,it=[];function ir(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function ia(e,t){let r=e,n=0,a=t.toString(),i=a.toLowerCase().indexOf("e-");if(i>0)n=Math.abs(Math.floor(Math.log10(Math.abs(t))))+i;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 ii(e,t,r,n){t=Number(t),r=Number(r);let a=(e-(isNaN(t)?0:t))%n,i=ia(2*Math.abs(a)>=n?e+Math.sign(a)*(n-Math.abs(a)):e-a,n);return isNaN(t)?!isNaN(r)&&i>r&&(i=Math.floor(ia(r/n,n))*n):i<t?i=t:!isNaN(r)&&i>r&&(i=t+Math.floor(ia((r-t)/n,n))*n),i=ia(i,n)}let io={top:"top",bottom:"top",left:"left",right:"left"},is={top:"bottom",bottom:"top",left:"right",right:"left"},il={top:"left",left:"top"},iu={top:"height",left:"width"},ic={width:"totalWidth",height:"totalHeight"},id={};function ip(e,t){let r=0,n=0,a=0,i=0,o=0,s=0,l={},u=(t?.scale??1)>1;if("BODY"===e.tagName||"HTML"===e.tagName){let u=document.documentElement;a=u.clientWidth,i=u.clientHeight,r=t?.width??a,n=t?.height??i,l.top=u.scrollTop||e.scrollTop,l.left=u.scrollLeft||e.scrollLeft,t&&(o=Math.max(0,t.pageTop-(l.top??0)),s=Math.max(0,t.pageLeft-(l.left??0)))}else({width:r,height:n,top:o,left:s}=ib(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,a=r,i=n;return tn()&&("BODY"===e.tagName||"HTML"===e.tagName)&&u&&(l.top=0,l.left=0,o=t?.pageTop??0,s=t?.pageLeft??0),{width:r,height:n,totalWidth:a,totalHeight:i,scroll:l,top:o,left:s}}function ih(e,t,r,n,a,i,o){let s=a.scroll[e]??0,l=n[iu[e]],u=o[e]+n.scroll[io[e]]+i,c=o[e]+n.scroll[io[e]]+l-i,d=t-s+n.scroll[io[e]]+o[e]-n[io[e]],f=t-s+r+n.scroll[io[e]]+o[e]-n[io[e]];return d<u?u-d:f>c?Math.max(c-f,u-d):0}function im(e){if(id[e])return id[e];let[t,r]=e.split(" "),n=io[t]||"right",a=il[n];io[r]||(r="center");let i=iu[n],o=iu[a];return id[e]={placement:t,crossPlacement:r,axis:n,crossAxis:a,size:i,crossSize:o},id[e]}function iy(e,t,r,n,a,i,o,s,l,u,c){let{placement:d,crossPlacement:f,axis:p,crossAxis:h,size:m,crossSize:y}=n,v={};v[h]=e[h]??0,"center"===f?v[h]+=((e[y]??0)-(r[y]??0))/2:f!==h&&(v[h]+=(e[y]??0)-(r[y]??0)),v[h]+=i;let g=e[h]-r[y]+l+u,b=e[h]+e[y]-l-u;if(v[h]=ir(v[h],g,b),d===p){let t=s?c[m]:c[ic[m]];v[is[p]]=Math.floor(t-e[p]+a)}else v[p]=Math.floor(e[p]+e[m]+a);return v}function iv(e,t,r,n,a,i,o,s){let{placement:l,axis:u,size:c}=i;return l===u?Math.max(0,r[u]-(o.scroll[u]??0)-(e[u]+(s?t[u]:0))-(n[u]??0)-n[is[u]]-a):Math.max(0,e[c]+e[u]+(s?t[u]:0)-r[u]-r[c]+(o.scroll[u]??0)-(n[u]??0)-n[is[u]]-a)}function ig(e,t){let{top:r,left:n,width:a,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(a=e.offsetWidth,i=e.offsetHeight),{top:r,left:n,width:a,height:i}}function ib(e,t,r){let{top:n,left:a,width:i,height:o}=r||ig(e,t),{scrollTop:s,scrollLeft:l,clientTop:u,clientLeft:c}=document.documentElement;return{top:n+s-u,left:a+l-c,width:i,height:o}}function ix(e,t,r,n){let a,i=window.getComputedStyle(e);if("fixed"===i.position)a=n||ig(e,r);else{a=ib(e,r,n);let i=ib(t,r),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=i.top,a.left-=i.left}return a.top-=parseInt(i.marginTop,10)||0,a.left-=parseInt(i.marginLeft,10)||0,a}function iw(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 iS=new WeakMap;function ij(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 iO="u">typeof document?window.visualViewport:null;function ik(e,t){if(e.button>0)return!1;let r=eH(e);if(r){let e=r.ownerDocument;if(!e||!eU(e.documentElement,r)||r.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}let iE=[],iP=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function iA(e){return e instanceof HTMLInputElement&&!iP.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let iD="u">typeof document&&window.visualViewport,iC=0;function iT(e,t){t||!iD?iN(e):iD.addEventListener("resize",()=>iN(e),{once:!0})}function iN(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;iD&&(r=Math.min(r,iD.offsetTop+iD.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 iR={};function iM(e){var t;let{onDismiss:r,...n}=e,a=r0(n,rK((t=iR)&&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 iI(e){let[t,r]=nf(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[n,a]=(0,g.useState)(null),i=(0,g.useCallback)(()=>{r(!0)},[r]),o=(0,g.useCallback)(()=>{r(!1)},[r]),s=(0,g.useCallback)(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:i,close:o,toggle:s,point:n,setPoint:a}}function i_(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])}iR={"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 iL=(0,g.createContext)(null),iF=(0,g.createContext)(null),iB=(0,g.forwardRef)(function(e,t){[e,t]=ex(e,t,iL);let r=(0,g.useContext)(aX),n=iI(e),a=null==e.isOpen&&null==e.defaultOpen&&r?r:n,i=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 i_(e,a,(0,g.useCallback)(()=>{n(e=>"exiting"===e?"closed":e)},[])),a}(t,a.isOpen),o=e.isExiting||!e.shouldSkipAnimation&&i||!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||o?b().createElement(iV,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:o,dir:l}):null});function iV({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...i}){let o=(0,g.useRef)(null),s=(0,g.useRef)(null),l=(0,g.useContext)(iF),u=l&&"SubmenuTrigger"===i.trigger,{popoverProps:c,underlayProps:d,arrowProps:f,placement:p,triggerAnchorPoint:h}=function(e,t){let{triggerRef:r,popoverRef:n,groupRef:i,isNonModal:o,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:i=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=e,l=(0,g.useRef)(void 0);(0,g.useEffect)(()=>{if(a&&!iE.includes(t))return iE.push(t),()=>{let e=iE.indexOf(t);e>=0&&iE.splice(e,1)}},[a,t]);let u=()=>{iE[iE.length-1]===t&&r&&r()},{keyboardProps:c}=tL({shortcuts:{Escape:()=>!o&&void u()}});!function(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:a}=e,i=(0,g.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=tY(e=>{r&&ik(e,t)&&(a&&a(e),i.current.isPointerDown=!0)}),s=tY(e=>{r&&r(e)});(0,g.useEffect)(()=>{let e=i.current;if(n)return;let r=eB(t.current);if("u">typeof PointerEvent){let n=r=>{e.isPointerDown&&ik(r,t)&&s(r),e.isPointerDown=!1};return r.addEventListener("pointerdown",o,!0),r.addEventListener("click",n,!0),()=>{r.removeEventListener("pointerdown",o,!0),r.removeEventListener("click",n,!0)}}},[t,n])}({ref:t,onInteractOutside:i&&a?e=>{(!s||s(eH(e)))&&(iE[iE.length-1]===t&&e.stopPropagation(),l.current===t&&u()),l.current=void 0}:void 0,onInteractOutsideStart:e=>{let r=iE[iE.length-1];l.current=r,(!s||s(eH(e)))&&r===t&&e.stopPropagation()}});let{focusWithinProps:d}=rr({isDisabled:!n,onBlurWithin:e=>{!(!e.relatedTarget||nG(e.relatedTarget,nz))&&(!s||s(e.relatedTarget))&&r?.()}});return{overlayProps:{...c,...d},underlayProps:{}}}({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o||c,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:l},i??n),{overlayProps:p,arrowProps:h,placement:m,triggerAnchorPoint:y}=function(e){var t;let{direction:r}=rC(),{arrowSize:n,targetRef:a,overlayRef:i,arrowRef:o,scrollRef:s=i,placement:l="bottom",containerPadding:u=12,shouldFlip:c=!0,boundaryElement:d="u">typeof document?document.body:null,offset:f=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:m=!0,onClose:y,maxHeight:v,arrowBoundaryOffset:b=0,getTargetRect:x}=e,[w,S]=(0,g.useState)(null),j=[h,l,i.current,a.current,o?.current,s.current,u,c,d,f,p,m,r,v,b,n],O=(0,g.useRef)(iO?.scale);(0,g.useEffect)(()=>{m&&(O.current=iO?.scale)},[m]);let k=(0,g.useCallback)(()=>{var e;if(!1===h||!m||!i.current||!a.current||!d||iO?.scale!==O.current)return;let t=null;if(s.current&&eK(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=i.current;!v&&i.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:i,scrollNode:o,padding:s,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:f,arrowSize:p=0,arrowBoundaryOffset:h=0,targetRect:m}=e,y="u">typeof document?window.visualViewport:null,v=i instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!iw(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!iw(t);)t=t.parentElement;return t||document.documentElement}(i):document.documentElement,g=v===document.documentElement,b=window.getComputedStyle(v).position,x=g?ib(a,!1,m):ix(a,v,!1,m);if(!g){let{marginTop:e,marginLeft:t}=window.getComputedStyle(a);x.top+=parseInt(e,10)||0,x.left+=parseInt(t,10)||0}let w=ib(i,!0),S={top:parseInt((t=window.getComputedStyle(i)).marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0};w.width+=(S.left??0)+(S.right??0),w.height+=(S.top??0)+(S.bottom??0),o.scrollTop,o.scrollLeft,o.scrollWidth,o.scrollHeight;let j=ip(u,y),O=ip(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}:ix(u,v,!1);else{let e=ig(v,!1);r={top:-(e.top-j.top),left:-(e.left-j.left),width:0,height:0}}return function(e,t,r,n,a,i,o,s,l,u,c,d,f,p,h,m,y){var v,g,b;let x,w,S,j=im(e),{size:O,crossAxis:k,crossSize:E,placement:P,crossPlacement:A}=j,D=iy(t,o,r,j,u,c,l,d,p,h,s),C=u,T=iv(o,l,t,n,a+u,j,s,m);if(i&&r[O]>T){let e=im(`${is[P]} ${A}`),i=iy(t,o,r,e,u,c,l,d,p,h,s);iv(o,l,t,n,a+u,e,s,m)>T&&(j=e,D=i,C=u)}let N="bottom";"top"===j.axis?"top"===j.placement?N="top":"bottom"===j.placement&&(N="bottom"):"top"===j.crossAxis&&("top"===j.crossPlacement?N="bottom":"bottom"===j.crossPlacement&&(N="top"));let R=ih(k,D[k],r[E],o,s,a,l);D[k]+=R;let M=(v=D,g=r.height,b=N,x=(null!=v.top?v.top:s[ic.height]-(v.bottom??0)-g)-(s.scroll.top??0),w=m?l.top:0,S={top:Math.max(o.top+w,(y?.offsetTop??o.top)+w),bottom:Math.min(o.top+o.height+w,(y?.offsetTop??0)+(y?.height??0))},"top"!==b?Math.max(0,S.bottom-x-((n.top??0)+(n.bottom??0)+a)):Math.max(0,x+g-S.top-((n.top??0)+(n.bottom??0)+a)));f&&f<M&&(M=f),r.height=Math.min(r.height,M),R=ih(k,(D=iy(t,o,r,j,C,c,l,d,p,h,s))[k],r[E],o,s,a,l),D[k]+=R;let I={},L=t[k]-D[k]-n[io[k]],F=L+.5*t[E],B=p/2+h,V="left"===io[k]?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),z=r[E]-V-p/2-h,W=ir(F,t[k]+p/2-(D[k]+n[io[k]]),t[k]+t[E]-p/2-(D[k]+n[io[k]]));I[k]=ir(W,B,z),({placement:P,crossPlacement:A}=j),p?L=I[k]:"right"===A?L+=t[E]:"center"===A&&(L+=t[E]/2);let $="left"===P||"top"===P?r[O]:0,U={x:"top"===P||"bottom"===P?L:$,y:"left"===P||"right"===P?L:$};return{position:D,maxHeight:M,arrowOffsetLeft:I.left,arrowOffsetTop:I.top,placement:P,triggerAnchorPoint:U}}(n,x,w,S,s,l,j,O,r,c,d,!!b&&"static"!==b,f,p,h,eU(u,v),y)}({placement:(e=l,"rtl"===r?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")),overlayNode:i.current,targetNode:a.current,scrollNode:s.current||i.current,padding:u,shouldFlip:c,boundaryElement:d,offset:f,crossOffset:p,maxHeight:v,arrowSize:n??(o?.current?ig(o.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}S(g)},j);X(k,j),X(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t=k]),ij({ref:i,onResize:k}),ij({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()};iO?.addEventListener("resize",t),iO?.addEventListener("scroll",r);let n=eW(eG(window),"scroll",r);return()=>{iO?.removeEventListener("resize",t),iO?.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(eG(t.current),"scroll",e=>{let r=eH(e);if(!t.current||r instanceof Node&&!eU(r,t.current)||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement)return;let a=n||iS.get(t.current);a&&a()},!0)},[r,n,t])}({triggerRef:a,isOpen:m,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:o&&!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,i,o,s,l;return 1==++iC&&(a=tr()&&tn()?(t=e$(document.documentElement,"overflow","hidden"),r=!1,n=document.createElement("style"),(i=tG())&&(n.nonce=i),n.textContent=`
|
|
8
|
-
@layer {
|
|
9
|
-
* {
|
|
10
|
-
overscroll-behavior: contain;
|
|
11
|
-
}
|
|
12
|
-
}`.trim(),document.head.prepend(n),o=HTMLElement.prototype.focus,Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(e){let t=((e=document)=>e.activeElement)(),r=null!=t&&iA(t);o.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||iT(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&&iA(r))r.focus({preventScroll:!0}),iT(r,iA(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:o})}):Y((l=window.innerWidth-document.documentElement.clientWidth)>0&&("scrollbarGutter"in document.documentElement.style?e$(document.documentElement,"scrollbar-gutter","stable"):e$(document.documentElement,"padding-right",`${l}px`)),e$(document.documentElement,"overflow","hidden"))),()=>{0==--iC&&a()}}},[t])}({isDisabled:o||!t.isOpen}),(0,g.useEffect)(()=>{if(t.isOpen&&n.current)if(o){var e,r,a=i?.current??n.current;let t=it[it.length-1];return t&&!t.visibleNodes.has(a)?(t.visibleNodes.add(a),()=>{t.visibleNodes.delete(a)}):void 0}else{let t,a,o,s,l,u,c,d,f,p,h;return e=[i?.current??n.current],a=(r={shouldUseInert:!0})instanceof(t=eV(e?.[0])).Element?{root:r}:r,o=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(eU(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=ie.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),ie.set(e,r+1))},it.length&&it[it.length-1].disconnect(),d(o),(p=new MutationObserver(e=>{for(let r of e)if("childList"===r.type&&r.target.isConnected&&![...l,...u].some(e=>eU(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(o,{childList:!0,subtree:!0}),h={visibleNodes:l,hiddenNodes:u,observe(){p.observe(o,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}},it.push(h),()=>{for(let e of(p.disconnect(),u)){let t=ie.get(e);null!=t&&(1===t?(c(e,!1),ie.delete(e)):ie.set(e,t-1))}h===it[it.length-1]?(it.pop(),it.length&&it[it.length-1].observe()):it.splice(it.indexOf(h),1)}}},[o,t.isOpen,n,i]);let{focusWithinProps:v}=rr(e);return{popoverProps:eh(d,p,v),arrowProps:h,underlayProps:f,placement:m,triggerAnchorPoint:y}}({...i,offset:i.offset??8,arrowRef:o,groupRef:u?l:s},e),m=i.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]),i_(e,a,(0,g.useCallback)(()=>n(!1),[])),a}(m,!!p),v=i.isEntering||!i.shouldSkipAnimation&&y||!1,x=eg({...i,defaultClassName:"react-aria-Popover",values:{trigger:i.trigger||null,placement:p,isEntering:v,isExiting:t}}),w=!i.isNonModal||"SubmenuTrigger"===i.trigger||"PreviewTrigger"===i.trigger,[S,j]=(0,g.useState)("PreviewTrigger"===i.trigger);X(()=>{m.current&&j(w&&!m.current.querySelector("[role=dialog]"))},[m,w]),(0,g.useEffect)(()=>{S&&"PreviewTrigger"!==i.trigger&&("SubmenuTrigger"!==i.trigger||"pointer"!==tu)&&m.current&&!eK(m.current)&&tD(m.current)},[S,m,i.trigger]);let O=(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)(()=>{i.triggerRef.current&&E(i.triggerRef.current.getBoundingClientRect().width+"px")},[i.triggerRef]);X(P,[P]),ij({ref:x.style?.["--trigger-width"]?void 0:i.triggerRef,onResize:P});let A={...c.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...x.style,"--trigger-width":x.style?.["--trigger-width"]||k},D=b().createElement(ek.div,{...eh(e_(i,{global:!0}),c),...x,id:S?i.id:void 0,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"],ref:m,slot:i.slot||void 0,style:A,dir:i.dir,"data-trigger":i.trigger,"data-placement":p,"data-entering":v||void 0,"data-exiting":t||void 0},!i.isNonModal&&b().createElement(iM,{onDismiss:e.close}),b().createElement(a9.Provider,{value:{...f,placement:p,ref:o}},O),b().createElement(iM,{onDismiss:e.close}));return u?b().createElement(aq,{...i,shouldContainFocus:S&&"PreviewTrigger"!==i.trigger,isExiting:t,portalContainer:r??l?.current??void 0},D):b().createElement(aq,{...i,shouldContainFocus:S&&"PreviewTrigger"!==i.trigger,isExiting:t,portalContainer:r},!i.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(iF.Provider,{value:s},D)))}function iz(e){return e?.start!=null&&null!=e.end}let iW=(0,g.createContext)(null),i$=(0,g.createContext)(null),iU=(0,g.createContext)(null),iH=(0,g.createContext)(null),iG=[nM,ru,a6,rp],iK=(0,g.forwardRef)(function(e,t){[e,t]=ex(e,t,iW);let{validationBehavior:r}=eb(a1)||{},n=e.validationBehavior??r??"native",a=function(e){let t=iI(e),[r,n]=nf(e.value,e.defaultValue||null,e.onChange),[a]=(0,g.useState)(r),i=r||e.placeholderValue||null,[o,s]=ak(i,e.granularity),l=null!=r?r.toDate(s??"UTC"):null,u="hour"===o||"minute"===o||"second"===o,c=e.shouldCloseOnSelect??!0,[d,f]=(0,g.useState)(null),[p,h]=(0,g.useState)(null);if(r&&(d=r,"hour"in r&&(p=r)),i&&!(o in i))throw Error("Invalid granularity "+o+" for value "+i.toString());let m=r?.calendar.identifier==="gregory"&&"BC"===r.era,y=(0,g.useMemo)(()=>({granularity:o,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:m}),[o,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,m]),{minValue:v,maxValue:b,isDateUnavailable:x}=e,w=(0,g.useMemo)(()=>ab(r,v,b,x,y),[r,v,b,x,y]),S=ad({...e,value:r,builtinValidation:w}),j=S.displayValidation.isInvalid,O=e.validationState||(j?"invalid":null),k=(e,t)=>{n("timeZone"in t?t.set((0,nn.gw)(e)):(0,nn.tR)(e,t)),f(null),h(null),S.commitValidation()};return{...S,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||aj(e.defaultValue||e.placeholderValue)):f(r):(n(r),S.commitValidation()),a&&t.setOpen(!1)},setTimeValue:e=>{d&&e?k(d,e):h(e)},granularity:o,hasTime:u,...t,setOpen(n){!n&&!r&&d&&u&&k(d,p||aj(e.defaultValue||e.placeholderValue)),t.setOpen(n)},validationState:O,isInvalid:j,formatValue:(e,t)=>l?new rN(e,aS(t,y)).format(l):"",getDateFormatter:(e,t)=>new rN(e,aS({},{...y,...t}))}}({...e,validationBehavior:n}),i=(0,g.useRef)(null),[o,s]=ew(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:l,labelProps:u,fieldProps:c,buttonProps:d,dialogProps:f,calendarProps:p,descriptionProps:h,errorMessageProps:m,...y}=function(e,t,r){var n;let a=eu(),i=eu(),o=eu(),s=rK((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:h}=n9({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||u}),m=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,S=e_(e),j=(0,g.useMemo)(()=>n0(r),[r]),O=(0,g.useRef)(!1),{focusWithinProps:k}=rr({...e,isDisabled:t.isOpen,onBlurWithin:t=>{eU(document.getElementById(i),t.relatedTarget)||(O.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{O.current||(O.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}});return{groupProps:eh(S,m,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:()=>{j.focusFirst()}},fieldProps:{...f,id:o,[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:h,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:i,"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}}({...eS(e),label:s,validationBehavior:n},a,i),{focusProps:v,isFocused:x,isFocusVisible:w}=rn({within:!0}),S=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"}),j=e_(e,{global:!0});return delete j.id,b().createElement(ev,{values:[[iU,a],[nM,{...l,ref:i,isInvalid:a.isInvalid}],[aB,c],[ru,{...d,isPressed:a.isOpen}],[a6,{...u,ref:o,elementType:"span"}],[nS,p],[aX,a],[iL,{trigger:"DatePicker",triggerRef:i,placement:"bottom start",clearContexts:iG}],[aY,f],[rp,{slots:{description:h,errorMessage:m}}],[aQ,y]]},b().createElement(ek.div,{...eh(j,S,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}))}),iq=(0,g.forwardRef)(function(e,t){[e,t]=ex(e,t,i$);let{validationBehavior:r}=eb(a1)||{},n=e.validationBehavior??r??"native",a=function(e){let t=iI(e),[r,n]=nf(e.value,e.defaultValue||null,e.onChange),[a]=(0,g.useState)(r),[i,o]=(0,g.useState)(()=>r||{start:null,end:null});null==r&&i.start&&i.end&&o(i={start:null,end:null});let s=r||i,l=e=>{o(s=e||{start:null,end:null}),iz(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,h]=(0,g.useState)(null),[m,y]=(0,g.useState)(null);s&&iz(s)&&(p=s,"hour"in s.start&&(m=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)}),h(null),y(null),P.commitValidation()},b=r=>{let n="function"==typeof f?f():f;d?iz(r)&&(n||m?.start&&m?.end)?v(r,{start:m?.start||aj(e.placeholderValue),end:m?.end||aj(e.placeholderValue)}):h(r):iz(r)?(l(r),P.commitValidation()):h(r),n&&t.setOpen(!1)},x=e=>{iz(p)&&iz(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,S=(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:j,maxValue:O,isDateUnavailable:k}=e,E=(0,g.useMemo)(()=>{var e,t;let r;return e=s,t=k?e=>k(e,null):void 0,r=am(ab(e?.start??null,j,O,t,S),ab(e?.end??null,j,O,t,S)),e?.end!=null&&null!=e.start&&0>e.end.compare(e.start)&&(r=am(r,{isInvalid:!0,validationErrors:[(rz.getGlobalDictionaryForPackage("@react-stately/datepicker")||av).getStringForLocale("rangeReversed",ag())],validationDetails:{...ao,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),r},[s,j,O,k,S]),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:m,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:m?.end??null}):x({start:m?.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)&&iz(p)&&d&&v(p,{start:m?.start||aj(e.placeholderValue),end:m?.end||aj(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,i=e.granularity||(s.start&&"minute"in s.start?"minute":"day"),o="timeZone"in s.end?s.end.timeZone:void 0,l=e.granularity||(s.end&&"minute"in s.end?"minute":"day"),u=aS(r,{granularity:i,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(o||"UTC"),f=new rN(t,u);if(a===o&&i===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,aS(r,{granularity:l,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle}));return{start:f.format(c),end:n.format(d)}},getDateFormatter:(e,t)=>new rN(e,aS({},{...S,...t}))}}({...e,validationBehavior:n}),i=(0,g.useRef)(null),[o,s]=ew(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:l,labelProps:u,startFieldProps:c,endFieldProps:d,buttonProps:f,dialogProps:p,calendarProps:h,descriptionProps:m,errorMessageProps:y,...v}=function(e,t,r){var n;let a=rK((n=n5)&&n.__esModule?n.default:n,"@react-aria/datepicker"),{isInvalid:i,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=n9({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),f=u["aria-labelledby"]||u.id,{locale:p}=rC(),h=t.formatValue(p,{month:"long"}),m=ne(h?a.format("selectedRangeDescription",{startDate:h.start,endDate:h.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),S=[m["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,j=(0,g.useMemo)(()=>n0(r,{accept:e=>e.id!==b}),[r,b]),O={[an]:j,[ar]:"presentation","aria-describedby":S,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=>{eU(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:eh(k,w,u,m,P,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(r){!t.isOpen&&e.onKeyDown&&e.onKeyDown(r)},onKeyUp(r){!t.isOpen&&e.onKeyUp&&e.onKeyUp(r)}}),labelProps:{...l,onClick:()=>{j.focusFirst()}},buttonProps:{...m,id:b,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${b} ${f}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:x,"aria-labelledby":`${b} ${f}`},startFieldProps:{...y,...O,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(am(e,D.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...v,...O,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(am(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:i,validationErrors:o,validationDetails:s}}({...eS(e),label:s,validationBehavior:n},a,i),{focusProps:x,isFocused:w,isFocusVisible:S}=rn({within:!0}),j=eg({...e,values:{state:a,isFocusWithin:w,isFocusVisible:S,isDisabled:e.isDisabled||!1,isInvalid:a.isInvalid,isOpen:a.isOpen,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-DateRangePicker"}),O=e_(e,{global:!0});return delete O.id,b().createElement(ev,{values:[[iH,a],[nM,{...l,ref:i,isInvalid:a.isInvalid}],[ru,{...f,isPressed:a.isOpen}],[a6,{...u,ref:o,elementType:"span"}],[nj,h],[aX,a],[iL,{trigger:"DateRangePicker",triggerRef:i,placement:"bottom start",clearContexts:iG}],[aY,p],[aB,{slots:{start:c,end:d}}],[rp,{slots:{description:m,errorMessage:y}}],[aQ,v]]},b().createElement(ek.div,{...eh(O,j,x),ref:t,slot:e.slot||void 0,"data-focus-within":w||void 0,"data-invalid":a.isInvalid||void 0,"data-focus-visible":S||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 iY(e){return b().createElement(rD,e)}var iX=r(5350),iZ=r.n(iX);function iQ(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function iJ(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(iQ(e,ay.ng)||iQ(e,ay._l)||iQ(e,ay.Ip))return t?(0,nn.yP)(e,t):e;var n=iZ()(e).toDate(),a=new ay.ng(n.getFullYear(),n.getMonth()+1,n.getDate());return t?(0,nn.yP)(a,t):a}function i0(e){if(e)return e.toDate((0,rq.Xj)())}var i1=r(4232),i2=r(3903);function i3(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 i4(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 i5=(0,g.createContext)(null);function i6(){var e=(0,x.useConfig)({externalModuleName:"@egen-civitas/esm-styleguide"}).preferredDateLocale,t=(0,g.useMemo)(function(){var t=(0,i1.J)();return e[t]&&(t=e[t]),t},[window.i18next.language]),r=(0,g.useMemo)(function(){var e=(0,i2.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 i8=new ay.ng(1793,1,1);function i9(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 i7(e){if(Array.isArray(e))return e}function oe(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ot(e,t){if(e){if("string"==typeof e)return i9(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 i9(e,t)}}var or=["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"],on=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-activity",iconProps:e})})),oa=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-add",iconProps:e})})),oi=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-arrow-down",iconProps:e})})),oo=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-arrow-left",iconProps:e})})),os=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-arrow-right",iconProps:e})})),ol=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-arrow-up",iconProps:e})})),ou=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-calendar-heat-map",iconProps:e})})),oc=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-calendar",iconProps:e})})),od=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-caret-down",iconProps:e})})),of=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-caret-left",iconProps:e})})),op=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-caret-right",iconProps:e})})),oh=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-caret-up",iconProps:e})})),om=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-chart-average",iconProps:e})})),oy=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-chart-line",iconProps:e})})),ov=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-checkmark-filled",iconProps:e})})),og=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-checkmark-outline",iconProps:e})})),ob=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-chevron-down",iconProps:e})})),ox=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-chevron-left",iconProps:e})})),ow=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-chevron-right",iconProps:e})})),oS=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-chevron-up",iconProps:e})})),oj=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-close",iconProps:e})})),oO=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-close-filled",iconProps:e})})),ok=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-close-outline",iconProps:e})})),oE=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-document",iconProps:e})})),oP=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-document-attachment",iconProps:e})})),oA=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-download",iconProps:e})})),oD=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-edit",iconProps:e})})),oC=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-event-schedule",iconProps:e})})),oT=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-events",iconProps:e})})),oN=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-group",iconProps:e})})),oR=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-group-access",iconProps:e})})),oM=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-information",iconProps:e})})),oI=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-information-filled",iconProps:e})})),o_=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-information-square",iconProps:e})})),oL=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-inventory-management",iconProps:e})})),oF=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-list-checked",iconProps:e})})),oB=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-location",iconProps:e})})),oV=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-maximize",iconProps:e})})),oz=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-message-queue",iconProps:e})})),oW=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-money",iconProps:e})})),o$=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-movement",iconProps:e})})),oU=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-overflow-menu--horizontal",iconProps:e})})),oH=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-overflow-menu--horizontal",iconProps:e})})),oG=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-password",iconProps:e})})),oK=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-pedestrian-family",iconProps:e})})),oq=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-pen",iconProps:e})})),oY=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-printer",iconProps:e})})),oX=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-programs",iconProps:e})})),oZ=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-renew",iconProps:e})})),oQ=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-report",iconProps:e})})),oJ=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-reset",iconProps:e})})),o0=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-save",iconProps:e})})),o1=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-search",iconProps:e})})),o2=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-settings",iconProps:e})})),o3=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-switcher",iconProps:e})})),o4=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-shopping-cart",iconProps:e})})),o5=(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})})),o6=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-sticky-note-add",iconProps:e})})),o8=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-table-of-contents",iconProps:e})})),o9=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-table",iconProps:e})})),o7=(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})})),si=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sp,{ref:t,icon:"egen-icon-user-follow",iconProps:e})})),so=(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=oP,sd=o5,sf=(0,g.memo)((0,g.forwardRef)(function(e,t){var r,n=i7(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||ot(r)||oe(),a=n[0],i=n.slice(1),o=a.icon,s=a.fallback,l=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(a,["icon","fallback"]),u=(i7(i)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(i)||ot(i,1)||oe())[0],c=(0,g.useRef)(o?document.getElementById(o):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,i=e[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var s=a.value;"childList"===s.type&&(c.current=o?document.getElementById(o):void 0)}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[o]),(0,v.jsx)(x.RenderIfValueIsTruthy,{value:c.current,fallback:s,children:(0,v.jsx)(sp,{ref:u,icon:o,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,i=n.fill,o=n.size;(o<=0||o>72)&&(console.error("Invalid size '".concat(o,"' specified for ").concat(r,". Defaulting to 20.")),o=20);var s=(0,g.useRef)(null);return(0,g.useImperativeHandle)(t,function(){return s.current}),(0,g.useEffect)(function(){s.current&&"currentColor"!==i&&s.current.style.setProperty("--egen-icon-fill",i)},[]),(0,v.jsx)("svg",{ref:s,className:O()("egen-icon","YZl-VwPvm6F9gS-HCqn68g==",a),height:o,width:o,viewBox:"0 0 16 16",children:(0,v.jsx)("use",{href:"#".concat(r)})})})),sh=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"})})},sm={};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])}sm={"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:i,maxValue:o,isDisabled:s,isReadOnly:l,isRequired:u,onIncrement:c,onIncrementPage:d,onDecrement:f,onDecrementPage:p,onDecrementToMin:h,onIncrementToMax:m}=e,y=rK((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:()=>!!h&&void h(),End:()=>!!m&&void m()},allowRepeats:!0}),S=(0,g.useRef)(!1),j=()=>{S.current=!0},O=()=>{S.current=!1},k=""===a?y.format("Empty"):(a||`${n}`).replace("-","−");(0,g.useEffect)(()=>{S.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===o||isNaN(o)||void 0===n||isNaN(n)||n<o)&&(P(),C(60))}),C=tY(e=>{x(),v.current=!0,r.current=window.setTimeout(D,e)}),T=tY(()=>{(void 0===i||isNaN(i)||void 0===n||isNaN(n)||n>i)&&(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":i,"aria-valuemax":o,"aria-disabled":s||void 0,"aria-readonly":l||void 0,"aria-required":u||void 0,...w,onFocus:j,onBlur:O},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:j,onBlur:O},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:j,onBlur:O}}}let sw=null,sS=RegExp("^.*\\(.*\\).*$"),sj=["latn","arab","hanidec","deva","beng","fullwide"];class sO{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 sj)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}),i=a.formatToParts(-10000.111),o=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=i.find(e=>"minusSign"===e.type)?.value??"-",c=o.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=i.find(e=>"group"===e.type)?.value,h=[...new Set([...i.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),m=0===h.length?RegExp("\\p{White_Space}|\\p{Cf}","gu"):RegExp(`${h.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:m,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 sO(this.locale,e).parse(new aM(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&sS.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("."),i=r.toString().split("."),o=Math.pow(10,Math.max(a[1]&&a[1].length||0,i[1]&&i[1].length||0));t=Math.round(t*o),r=Math.round(r*o),n=("+"===e?t+r:t-r)/o}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(),i=function(e){let{minValue:t,maxValue:r,step:n,formatOptions:a,value:i,defaultValue:o=NaN,onChange:s,locale:l,isDisabled:u,isReadOnly:c,commitBehavior:d="snap"}=e;null===i&&(i=NaN);let f=(0,g.useCallback)(e=>void 0===n||isNaN(n)?ir(e,t,r):ii(e,t,r,n),[n,t,r]);void 0===i||isNaN(i)||"snap"!==d||(i=f(i)),isNaN(o)||"snap"!==d||(o=f(o));let[p,h]=nf(i,isNaN(o)?NaN:o,s),[m]=(0,g.useState)(p),[y,v]=(0,g.useState)(()=>isNaN(p)?"":new aM(l,a).format(p)),b=(0,g.useMemo)(()=>new sO(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]),S=(0,g.useMemo)(()=>w.resolvedOptions(),[w]),j=(0,g.useCallback)(e=>isNaN(e)||null===e?"":w.format(e),[w]),O=ad({...e,value:p}),k=void 0===n||isNaN(n)?1:n;"percent"===S.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(j(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 ii(isNaN(n)?0:n,t,r,k);{let n=ii(N,t,r,k);return"+"===e&&n>N||"-"===e&&n<N?n:ii(sR(e,N,k),t,r,k)}},M=(0,g.useMemo)(()=>!u&&!c&&(isNaN(N)||void 0===r||isNaN(r)||ii(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)||ii(N,t,r,k)<N||sR("-",N,k)>=t),[u,c,t,r,k,N]);return{...O,validate:e=>b.isValidPartialNumber(e,t,r),increment:()=>{let e=R("+",t);e===p&&v(j(e)),h(e),O.commitValidation()},incrementToMax:()=>{null!=r&&(h(ii(r,t,r,k)),O.commitValidation())},decrement:()=>{let e=R("-",r);e===p&&v(j(e)),h(e),O.commitValidation()},decrementToMin:()=>{null!=t&&(h(t),O.commitValidation())},canIncrement:M,canDecrement:I,minValue:t,maxValue:r,numberValue:N,defaultNumberValue:isNaN(o)?m:o,setNumberValue:h,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){h(NaN),v(void 0===i?"":j(p));return}if(isNaN(r))return void v(j(p));let n="snap"===d?f(r):r,a=(n=b.parse(j(n)))!==p;h(n),v(j(void 0===i?n:p)),a&&O.commitValidation()}}}({...e,locale:a,validationBehavior:n}),o=(0,g.useRef)(null),[s,l]=ew(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:u,groupProps:c,inputProps:d,incrementButtonProps:f,decrementButtonProps:p,descriptionProps:h,errorMessageProps:m,...y}=function(e,t,r){var n,a,i,o,s,l,u,c,d;let f,{id:p,decrementAriaLabel:h,incrementAriaLabel:m,isDisabled:y,isReadOnly:v,isRequired:x,minValue:w,maxValue:S,autoFocus:j,label:O,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:$}=t,U=rK((n=sm)&&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]),G=eu(p),{focusProps:K}=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:S,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 ei=(Y.maximumFractionDigits??0)>0,eo=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,es="numeric";te()?eo?es="text":ei&&(es="decimal"):ti()&&(eo?es="numeric":ei&&(es="decimal"));let el=e_(e),{keyboardProps:ec}=tL({isDisabled:y||v,shortcuts:{Enter:()=>((0,tZ.flushSync)(()=>{W()}),$(),{shouldPreventDefault:!1})},onKeyDown:D,onKeyUp:C}),{isInvalid:ed,validationErrors:ef,validationDetails:ep}=t.displayValidation,{labelProps:em,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:i,inputProps:o,descriptionProps:s,errorMessageProps:l,...u}=function(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:a=!1,isReadOnly:i=!1,type:o="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:h}=d.displayValidation,{labelProps:m,fieldProps:y,descriptionProps:v,errorMessageProps:x}=n9({...e,isInvalid:f,errorMessage:e.errorMessage||p}),w=e_(e,{labelable:!0}),S={type:o,pattern:e.pattern},[j]=(0,g.useState)(l);return n7(t,e.defaultValue??j,u),ae(e,d,t),{labelProps:m,inputProps:eh(w,"input"===r?S:void 0,{disabled:n,readOnly:i,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:h}}(e,r),c=(0,g.useRef)(null);return{inputProps:eh(o,{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:i,descriptionProps:s,errorMessageProps:l,...u}}({...M,...el,name:void 0,form:void 0,label:O,autoFocus:j,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:G,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=eh(ec,ey);n7(r,t.defaultNumberValue,t.setNumberValue),a=t,i=e.validationBehavior,o=e.commitBehavior,s=r,l=t.minValue,u=t.maxValue,c=e.step,d=t.numberValue,X(()=>{let e=s.current;if("validate"!==o||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"!==i||sw.validity.valid||e.setCustomValidity(sw.validationMessage)});let ex=eh(J,K,eb,{role:null,"aria-roledescription":tr()?null:U.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())},eS=e["aria-label"]||("string"==typeof e.label?e.label:"");eS||(f=null!=e.label?em.id:e["aria-labelledby"]);let ej=eu(),eO=eu(),ek=eh(ee,{"aria-label":m||U.format("increase",{fieldLabel:eS}).trim(),id:f&&!m?ej:null,"aria-labelledby":f&&!m?`${ej} ${f}`:null,"aria-controls":G,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:ew}),eE=eh(et,{"aria-label":h||U.format("decrease",{fieldLabel:eS}).trim(),id:f&&!h?eO:null,"aria-labelledby":f&&!h?`${eO} ${f}`:null,"aria-controls":G,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:em,inputProps:ex,incrementButtonProps:ek,decrementButtonProps:eE,errorMessageProps:eg,descriptionProps:ev,isInvalid:ed,validationErrors:ef,validationDetails:ep}}({...eS(e),label:l,validationBehavior:n},i,o),v=eg({...e,values:{state:i,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,i],[nM,c],[n_,{...d,ref:o}],[a6,{...u,ref:s}],[ru,{slots:{increment:f,decrement:p}}],[rp,{slots:{description:h,errorMessage:m}}],[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(i.numberValue)?"":i.numberValue,disabled:e.isDisabled||void 0}))});function sL(e,t){return Number.parseInt((0,i2.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)(nO),a=(0,g.useContext)(nk),i=null!=n?n:a,o=(0,g.useContext)(i5),s=(0,rq.Xj)(),l=(0,i2.Yq)(i.visibleRange.start.toDate(s),{calendar:o.calendar,locale:o.baseName,day:!1,year:!1,noToday:!0}),u=sL(i.visibleRange.start.toDate(s),o),c=i.maxValue?sL(i.maxValue.toDate(s),o):void 0,d=i.minValue?sL(i.minValue.toDate(s),o):void 0,f=(0,g.useCallback)(function(e){i.setFocusedDate(i.focusedDate.cycle("year",e-i.focusedDate.year))},[]);return i&&(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)(oh,{size:8})}),(0,v.jsx)(rc,{slot:"decrement",children:(0,v.jsx)(od,{size:8})})]})]})]})});let sB="QRspSXVpHV-MQ-LHdC13lg==",sV="QgeoU9KaEEc3FVbHF96CIg==",sz="JHpMykkAYVVvME0bJge4LQ==",sW="oe3ij5pim-upp19k7in+Cw==",s$="ytg1dY4d6dCggs1EVOa1ig==",sU="iJa+1qX+nsj1nDFdskKkfA==",sH="EhNe8AhsUJICGHMlVwVErQ==",sG="UILXRw6kVfriO3Hun04tnQ==",sK="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)(iU),n=(0,g.useContext)(iH),a=null!=r?r:n,i=(0,x.useOnClickOutside)(function(){return null==a?void 0:a.close()});return(0,v.jsx)(aZ,{className:"ZCd9CeXHRu+yZLpJP13qQQ==",ref:i,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,i=e.today_,o=e.minDate,s=e.maxDate,l="range"===a;return(0,v.jsx)(iB,{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===o?void 0:o,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:O()(sY,sX),slot:"previous",children:(0,v.jsx)(ox,{size:16})}),(0,v.jsx)(sF,{className:"UZfvGYVohbWwjoys-e4WYw=="}),(0,v.jsx)(rc,{className:O()(sY,sX),slot:"next",children:(0,v.jsx)(ow,{size:16})})]}),(0,v.jsx)(nD,{className:"IinA8cwT+BxKUyh2pJlB4A==",children:function(e){return(0,v.jsx)(nR,{className:O()("konycu41DOXiCVqnpQSoCg==",s0({},"N32IzHfDfz2c8-T0FEeuHA==",0===i.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)(iU),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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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.")}(),i=a[0],o=a[1],s=rC().locale,l=aF(s4(s3({},i),{locale:s,createCalendar:nr.d})),u=(0,g.useRef)(null),c=aa(s4(s3({},i),{inputRef:u}),l,o),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:o,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)(iU),n=(0,g.useContext)(iH);return(null!=r?r:n).isInvalid?(0,v.jsx)(su,s6({ref:t,size:16},e)):(0,v.jsx)(oc,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 li(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 lo=(0,g.forwardRef)(function(e,t){var r,n,a,i,o,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)||li(r)||lr(),h=p[0],m=p.slice(1),y=h.segment,x=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(h,["segment"]),w=(lt(m)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(m)||li(m,1)||lr())[0],S=(0,g.useContext)(aV),j=em(w),O=function(e,t,r){let n,a,i,o,s=(0,g.useRef)(""),{locale:l,direction:u}=rC(),c=function(){var e;let{locale:t}=rC(),r=rG((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:h}=at.get(t),m=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||(m=x.format(t.dateValue));else{let e=v.format(t.dateValue);m=e!==m?`${m} \u{2013} ${e}`:e}let{spinButtonProps:w}=sx({value:e.value??void 0,textValue:m,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)}}),S=(0,g.useMemo)(()=>new sO(l,{maximumFractionDigits:0}),[l]),j=()=>{if(e.text===e.placeholder&&h.focusPrevious(),!S.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=S.parse(r);0===(r=0===n?"":r).length||0===n?t.clearSegment(e.type):t.setSegment(e.type,n),s.current=r}},{keyboardProps:O}=tL({shortcuts:{Backspace:()=>{j()},Delete:()=>{j()},"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]),i=(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]),o=(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 i=e.slice(r,r+a);if(0===n.compare(t,i))return!0}return!1},[n]),(0,g.useMemo)(()=>({startsWith:a,endsWith:i,contains:o}),[a,i,o])),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;h.focusNext();break;case"era":{let e=C.find(e=>k(e.formatted,r));e&&(t.setSegment("era",e.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!S.isValidPartialNumber(n))return;let a=S.parse(n),i=a;if(void 0!==e.maxValue&&a>e.maxValue&&(i=S.parse(r)),isNaN(a))return;t.setSegment(e.type,i),void 0!==e.maxValue&&(Number(a+"0")>e.maxValue||n.length>=String(e.maxValue).length)?(s.current="",h.focusNext()):s.current=n}}};nt((0,g.useRef)("u">typeof document?document:null),"selectionchange",()=>{let e=window.getSelection();e?.anchorNode&&eU(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":S.isValidPartialNumber(e.text)&&!t.isReadOnly&&j();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&&(h.focusPrevious()||h.focusNext())}},[r,h]);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:eh(w,F,{id:M,...R,...O,"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,S,j).segmentProps,k=rn(),E=k.focusProps,P=k.isFocused,A=k.isFocusVisible,D=rl(la(ln({},x),{isDisabled:S.isDisabled||"literal"===y.type})),C=D.hoverProps,T=D.isHovered,N=(a=(n=la(ln({},x),{values:la(ln({},y),{isReadOnly:!y.isEditable,isInvalid:S.isInvalid,isDisabled:S.isDisabled,isHovered:T,isFocused:P,isFocusVisible:A}),defaultChildren:y.text})).className,i=n.style,o=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(i4(i3({},f),{defaultClassName:l})):a,t="function"==typeof i?i(i4(i3({},f),{defaultStyle:d||{}})):i,r="function"==typeof o?o(i4(i3({},f),{defaultChildren:c})):null==o?c:o,{className:null!=e?e:l,style:t||d?i3({},d,t):void 0,children:null!=r?r:c,"data-rac":""}},[a,i,o,l,c,d,f])),R=(0,g.useCallback)(function(e){e.stopPropagation()},[]);return(0,v.jsx)("span",la(ln({},eh(e_(x),O,E,C),N),{ref:j,style:O.style,"data-placeholder":y.isPlaceholder||void 0,"data-invalid":S.isInvalid||void 0,"data-readonly":!y.isEditable||void 0,"data-disabled":S.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,i,o,s=ll({},lu,e),l=s.className,u=s.defaultValue,c=s.isDisabled,d=s.invalid,f=s.invalidText,p=s.isInvalid,h=s.label,m=s.labelText,y=s.light,x=s.maxDate,w=s.minDate,S=s.onChange,j=s.onChangeRaw,k=s.short,E=s.size,P=s.value,A=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(s,["className","defaultValue","isDisabled","invalid","invalidText","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","short","size","value"]),D=i6(),C=D.calendar,T=D.intlLocale,N=D.today_,R=(0,g.useId)(),M=!!(null!=m?m:h),I=(0,g.useMemo)(function(){return iJ(u,C)},[u,C]),L=(0,g.useMemo)(function(){return iJ(P,C,!0)},[P,C]),F=(0,g.useMemo)(function(){return iJ(x,C)},[x,C]),B=(0,g.useMemo)(function(){return iJ(null!=w?w:i8,C)},[w,C]),V=(0,g.useMemo)(function(){return d||p},[d,p]),z=(0,g.useMemo)(function(){return j&&S&&console.error("An EgenDatePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),null!=j?j:function(e){return null==S?void 0:S(i0(e))}},[j,S]);return(0,v.jsx)(iY,{locale:T.toString(),children:(0,v.jsx)("div",{className:O()(sB,l),children:(0,v.jsx)(ev,{values:[[i5,T]],children:(0,v.jsxs)(iK,(r=ll({className:O()(sV,(ls(a={},"U-sr-DgqYDsEWS3ItmWepw==",k),ls(a,sU,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:O()(sW,ls({},s$,c)),htmlFor:R,children:null!=m?m:h}),(0,v.jsxs)(nI,{className:sH,children:[(0,v.jsx)(s5,{"data-slot":"date-input-wrapper",id:M?R:void 0,ref:t,className:O()("D6LSoT6+ZzCa1bjNprIvQg==",(ls(i={},"N4xGg4wxkU8fN7F5eNg8tQ==","sm"===E),ls(i,"SHEHOUcjuc-unljYWWCsOw==","md"===E||!E||0===E.length),ls(i,"Tg7KMq6kBnhaudmREhqtWg==","lg"===E),i)),children:function(e){return"era"!==e.type?(0,v.jsx)(lo,{className:sG,segment:e}):(0,v.jsx)(b().Fragment,{})}}),(0,v.jsx)(rc,{className:O()(sY,(ls(o={},sZ,"sm"===E),ls(o,sX,"md"===E||!E||0===E.length),ls(o,sQ,"lg"===E),o)),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 lh(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lm(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,i,o,s,l=lf(a=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||lm(a)||lh(),u=l[0],c=l.slice(1),d=u.className,f=u.defaultValue,p=u.invalid,h=u.invalidText,m=u.isDisabled,y=u.isInvalid,b=u.label,x=u.labelText,w=u.light,S=u.maxDate,j=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,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(c)||lm(c,1)||lh())[0],N=i6(),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:iJ(D[0],R,!1),end:iJ(D[1],R,!1)}},[D,R]),V=(0,g.useMemo)(function(){if(f)return{start:iJ(f[0],R,!1),end:iJ(f[1],R,!1)}},[f,R]),z=(0,g.useMemo)(function(){return iJ(null!=j?j:i8,R,!0)},[j,R]),W=(0,g.useMemo)(function(){return iJ(S,R,!0)},[S,R]),$=(0,g.useMemo)(function(){return p||y},[p,y]),U=(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([i0(e.start),i0(e.end)])}},[E,k]);return(0,v.jsx)(iY,{locale:M.toString(),children:(0,v.jsx)("div",{className:O()(sB,d),children:(0,v.jsx)(ev,{values:[[i5,M]],children:(0,v.jsx)(iq,(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:O()(sV,(lp(i={},sU,w),lp(i,"RoTQ0MzT4otofOA0eOOr8g==",m),i)),isInvalid:$,shouldForceLeadingZeros:"en"===M.language||void 0,maxValue:W,minValue:z,value:B,defaultValue:V,ref:T,isDisabled:m},C),n=n={onChange:U,children:(0,v.jsxs)("div",{className:sz,children:[F&&(0,v.jsx)(a8,{"data-slot":"date-label","data-disabled":m?"true":void 0,className:O()(sW,lp({},s$,m)),htmlFor:L,children:null!=x?x:b}),(0,v.jsxs)(nI,{className:sH,children:[(0,v.jsxs)("div",{className:O()("+iZ1JKN+dyhQZnylixUspg==",(lp(o={},"gTbcXlUJmu8XgkTjaQyYeg==","sm"===A),lp(o,"_7zIbayzJVaxHgU4NSXs6ow==","md"===A||!A||0===A.length),lp(o,"XBsk0UJEMEpusGhEXXXq7g==","lg"===A),o)),children:[(0,v.jsx)(aW,{"data-slot":"date-input-wrapper",className:O()("fBASMUIVw7f+oFxNz02V7g==",sK),slot:"start",children:function(e){return(0,v.jsx)(lo,{className:sG,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:O()("ZvkgLhkuwikHh6yTNmN7MA==",sK),slot:"end",children:function(e){return(0,v.jsx)(lo,{className:sG,segment:e})}})]}),(0,v.jsx)(rc,{className:O()(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:h}),(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,i,o="primary"===e.rank||1===e.rank,s="secondary"===e.rank||2===e.rank,l=o?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!=(i=lv[l])?i: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)(S,{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)(S,{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")})]})})},lS=lw;let lj={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 lO=function(e){var t=e.fieldIcon,r=e.className;if(!t)return null;var n=t.icon;return(0,v.jsx)(n,{className:[lj.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:ov,warning:su,error:sh},lP=function(e){var t,r,n,a=e.currentValidation,i=e.showIcons,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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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=o[0],l=o[1];if((0,g.useEffect)(function(){if(a&&i){var e=setTimeout(function(){return l(!0)},50);return function(){return clearTimeout(e)}}l(!1)},[a,i]),!i||!a)return null;var u=lE[a.type];return u?(0,v.jsx)("div",{className:O()(lj.validationIcon,lj["validationIcon--".concat(a.type)],(r={},n=lj["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:lj.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,i,o,s]=n.match(lI);return{[e]:parseFloat(a),[t]:parseFloat(i),[r]:parseFloat(o),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}`}),l$=lW("deg"),lU=lW("%"),lH=lW("px"),lG=lW("vh"),lK=lW("vw"),lq={...lU,parse:e=>lU.parse(e)/100,transform:e=>lU.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)+", "+lU.transform(lM(t))+", "+lU.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=[],i=0,o=t.replace(l0,e=>(lX.test(e)?(n.color.push(i),a.push(lJ),r.push(lX.parse(e))):e.startsWith("var(")?(n.var.push(i),a.push("var"),r.push(e)):(n.number.push(i),a.push(lQ),r.push(parseFloat(e))),++i,"${}")).split("${}");return{values:r,split:o,indexes:n,types:a}}function l2({split:e,types:t}){let r=e.length;return n=>{let a="";for(let i=0;i<r;i++)if(a+=e[i],void 0!==n[i]){let e=t[i];e===lQ?a+=lM(n[i]):e===lJ?a+=lX.transform(n[i]):a+=n[i]}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,""),i=+!!l4.has(t);return n!==r&&(i*=100),t+"("+i+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:l$,pathRotation:l$,rotateX:l$,rotateY:l$,rotateZ:l$,scale:lR,scaleX:lR,scaleY:lR,scaleZ:lR,skew:l$,skewX:l$,skewY:l$,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()}),ui=()=>({min:0,max:0}),uo=()=>({x:ui(),y:ui()}),us=e=>!!(e&&e.getVelocity),ul=new Set(["width","height","top","left","right","bottom",...lA]),uu=e=>t=>t.test(e),uc=[lT,lH,lU,l$,lK,lG,{test:e=>"auto"===e,parse:e=>e}],ud=e=>uc.find(uu(e)),uf=()=>{},up=()=>{},uh=e=>t=>"string"==typeof t&&t.startsWith(e),um=uh("--"),uy=uh("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,uS=e=>uO(uw(Math.atan2(e[1],e[0]))),uj={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:uS,rotateZ:uS,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},uO=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=>uO(uw(Math.atan2(e[6],e[5]))),rotateY:e=>uO(uw(Math.atan2(-e[2],e[0]))),rotateZ:uS,rotate:uS,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=uj,n=t}if(!n)return uA(t);let i=r[t],o=n[1].split(",").map(uC);return"function"==typeof i?i(o):o[i]}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},i=()=>r=!0,o=uL.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,a=!1,i=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(o)}let l={schedule:(e,a=!1,o=!1)=>{let s=o&&n?t:r;return a&&i.add(e),s.add(e),e},cancel:e=>{r.delete(e),i.delete(e)},process:e=>{if(o=e,n){a=!0;return}n=!0;let i=t;t=r,r=i,t.forEach(s),t.clear(),n=!1,a&&(a=!1,l.process(e))}};return l}(i),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:p,postRender:h}=o,m=()=>{let i=u_.useManualTiming,o=i?a.timestamp:performance.now();r=!1,i||(a.delta=n?1e3/60:Math.max(Math.min(o-a.timestamp,40),1)),a.timestamp=o,a.isProcessing=!0,s.process(a),l.process(a),u.process(a),c.process(a),d.process(a),f.process(a),p.process(a),h.process(a),a.isProcessing=!1,r&&t&&(n=!1,e(m))};return{schedule:uL.reduce((t,i)=>{let s=o[i];return t[i]=(t,i=!1,o=!1)=>(!r&&(r=!0,n=!0,a.isProcessing||e(m)),s.schedule(t,i,o)),t},{}),cancel:e=>{for(let t=0;t<uL.length;t++)o[uL[t]].cancel(e)},state:a,steps:o}}let{schedule:uB,cancel:uV,state:uz,steps:uW}=uF("u">typeof requestAnimationFrame?requestAnimationFrame:uI,!0),u$=new Set,uU=!1,uH=!1,uG=!1;function uK(){if(uH){let e=Array.from(u$).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,uU=!1,u$.forEach(e=>e.complete(uG)),u$.clear()}function uq(){u$.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(uH=!0)})}class uY{constructor(e,t,r,n,a,i=!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=i}scheduleResolve(){this.state="scheduled",this.isAsync?(u$.add(this),uU||(uU=!0,uB.read(uq),uB.resolveKeyframes(uK))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;if(null===e[0]){let a=n?.get(),i=e[e.length-1];if(void 0!==a)e[0]=a;else if(r&&t){let n=r.readValue(t,i);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=i),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),u$.delete(this)}cancel(){"scheduled"===this.state&&(u$.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,i]=function(e){let t=ux.exec(e);if(!t)return[,];let[,r,n,a]=t;return[`--${r??n}`,a]}(t);if(!a)return;let o=window.getComputedStyle(r).getPropertyValue(a);if(o){let e=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return uv(i)?e(i,r,n+1):i}(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,i=ud(n),o=ud(a);if(ub(n)!==ub(a)&&uM[r]){this.needsMeasurement=!0;return}if(i!==o)if(uT(i)&&uT(o))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,i=r[a];r[a]=uM[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),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 i=e.filter(u7),o=a<0||t&&"loop"!==r&&t%2==1?0:i.length-1;return o&&void 0!==n?n:i[o]}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)})`},ci=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,co={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ci([0,.65,.55,1]),circOut:ci([.55,0,1,.45]),backIn:ci([.31,.01,.66,-.59]),backOut:ci([.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:i=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!a,this.allowFlatten=i,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:i=0,repeatType:o="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)?ci(t):Array.isArray(t)?t.map(t=>e(t,r)||co.easeOut):co[t]}(s,a);Array.isArray(d)&&(c.easing=d);let f={delay:n,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:"reverse"===o?"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,o,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(){i=void 0}let cf={now:()=>(void 0===i&&cf.set(uz.isProcessing||u_.useManualTiming?uz.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(cd)}},cp=(e,t)=>t?1e3/t*e:0,ch;class cm{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 ch&&ch.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 cm(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"],cS=["initial",...cw];function cj(e){return cb(e.animate)||cS.some(t=>cx(e[t]))}function cO(e){return!!(cj(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,i]=cD(n);t=t(void 0!==r?r:e.custom,a,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[a,i]=cD(n);t=t(void 0!==r?r:e.custom,a,i)}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:i,visualState:o},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}=o;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=!!i,this.isControllingVariants=cj(t),this.isVariantNode=cO(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:i,duration:o}=t.accelerate,s=new cl({element:this.current,name:e,keyframes:n,times:a,ease:i,duration:u0(o)}),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):uo()}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],i=r[n];if(us(a))e.addValue(n,a);else if(us(i))e.addValue(n,cy(a,{owner:e}));else if(i!==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:i}=e,o=!1,s=!1;for(let e in t){let r=t[e];if(lD.has(e)){o=!0;continue}if(um(e)){a[e]=r;continue}{let t=c_(r,ue[e]);e.startsWith("origin")?(s=!0,i[e]=t):n[e]=t}}if(!t.transform&&(o||r?n.transform=function(e,t,r){let n="",a=!0;for(let i=0;i<cF;i++){let o=lA[i],s=e[o];if(void 0===s)continue;let l=!0;if("number"==typeof s)l=s===+!!o.startsWith("scale");else{let e=parseFloat(s);l=o.startsWith("scale")?1===e:0===e}if(!l||r){let e=c_(s,ue[o]);if(!l){a=!1;let t=cL[o]||o;n+=`${t}(${e}) `}r&&(t[o]=e)}}let i=e.pathRotation;return i&&(a=!1,n+=`rotate(${c_(i,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}=i;n.transformOrigin=`${e} ${t} ${r}`}}let cV={offset:"stroke-dashoffset",array:"stroke-dasharray"},cz={offset:"strokeDashoffset",array:"strokeDasharray"},cW=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function c$(e,{attrX:t,attrY:r,attrScale:n,pathLength:a,pathSpacing:i=1,pathOffset:o=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 i=a?cV:cz;e[i.offset]=`${-n}`,e[i.array]=`${t} ${r}`}(d,a,i,o,!1)}let cU=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 cG(e,{style:t,vars:r},n,a){let i,o=e.style;for(i in t)o[i]=t[i];for(i in a?.applyProjectionStyles(o,n),r)o.setProperty(i,r[i])}let cK=["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:[...cK]},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),i=+("number"!=typeof n[0]),o=r.x.scale*t.x,s=r.y.scale*t.y;n[0+i]/=o,n[1+i]/=s;let l=cX(o,s,.5);return"number"==typeof n[2+i]&&(n[2+i]/=l),"number"==typeof n[3+i]&&(n[3+i]/=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,i={};if(!n)return i;for(let t in n)(us(n[t])||a&&us(a[t])||cQ(t,e)||r?.getValue(t)?.liveStyle!==void 0)&&(i[t]=n[t]);return i}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=uo}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(lD.has(t)){let e=ur(t);return e&&e.default||0}return t=cU.has(t)?t:cI(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return c0(e,t,r)}build(e,t,r){c$(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){for(let r in cG(e,t,void 0,n),t.attrs)e.setAttribute(cU.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 i=cX(e.min,e.max,a);c9(e,t,r,i,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=cG}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=(um(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 dh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function dm(e,t,r){for(let n in t)us(t[n])||cQ(n,r)||(e[n]=t[n])}let dy=()=>({...dh(),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{g$=require("@emotion/is-prop-valid").default,"function"==typeof g$&&(db=e=>e.startsWith("on")?!dg(e):g$(e))}catch{}function dx(e){return us(e)?e.get():e}let dw=(0,g.createContext)(null);function dS(e){let t=(0,g.useRef)(null);return null===t.current&&(t.current=e()),t.current}let dj=e=>(t,r)=>{let n=(0,g.useContext)(df),a=(0,g.useContext)(dw),i=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,a){return{latestValues:function(e,t,r,n){let a={},i=n(e,{});for(let e in i)a[e]=dx(i[e]);let{initial:o,animate:s}=e,l=cj(e),u=cO(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial,d=(c=c||!1===o)?s:o;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?i():dS(i)},dO=dj({scrapeMotionValuesFromProps:cJ,createRenderState:dh}),dk=dj({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 i=r?"svg"===r:dl(e),o=i?dk:dO;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(cj(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),h=o(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,i){let{visualElement:o}=(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:o,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c,skipAnimations:d,isSVG:i}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let h=f.current,m=(0,g.useContext)(dT);h&&!h.projection&&a&&("html"===h.type||"svg"===h.type)&&function(e,t,r,n){let{layoutId:a,layout:i,drag:o,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:i,alwaysMeasureLayout:!!o||s&&dN(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(f.current,r,a,m);let y=(0,g.useRef)(!1);(0,g.useInsertionEffect)(()=>{h&&y.current&&h.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,h&&(y.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),b.current&&h.animationState&&h.animationState.animateChanges())}),(0,g.useEffect)(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),h.enteringChildren=void 0)}),h}(e,h,d,a,t.ProjectionNode,i)}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,i=!1,o){let s=(o??dl(e)?function(e,t,r,n){let a=(0,g.useMemo)(()=>{let r=dy();return c$(r,t,cH(n),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};dm(t,e.style,e),a.style={...t,...a.style}}return a}:function(e,t){let r,n,a={},i=(r=e.style||{},dm(n={},r,e),Object.assign(n,function({transformTemplate:e},t){return(0,g.useMemo)(()=>{let r=dh();return cB(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),n);return e.drag&&!1!==e.dragListener&&(a.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,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,i),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&&h.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])),h,f,t,i)]})}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 i;let r=dB(i=a[t])?i[i.length-1]||0:i;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 d$(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 dU(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)},dG=[lz,lV,lY];function dK(e){let t=dG.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,i=0,o=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;a=d$(s,n,e+1/3),i=d$(s,n,e),o=d$(s,n,e-1/3)}else a=i=o=r;return{red:Math.round(255*a),green:Math.round(255*i),blue:Math.round(255*o),alpha:n}}(r)),r}let dq=(e,t)=>{let r=dK(e),n=dK(t);if(!r||!n)return dU(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)?dU:lX.test(e)?dq:d0:Array.isArray(e)?dQ:"object"==typeof e?lX.test(e)?dq:dJ:dU}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"),dU(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 i=t.types[a],o=e.indexes[i][n[i]],s=e.values[o]??0;r[a]=s,n[i]++}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,i,o,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:h,damping:m,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,i;uf(e<=u0(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=lC(.05,1,o),e=lC(.01,10,e/1e3),o<1?(a=t=>{let n=t*o,a=n*e;return .001-(n-r)/d9(t,o)*Math.exp(-a)},i=t=>{let n=t*o*e,i=Math.pow(o,2)*Math.pow(t,2)*e,s=Math.exp(-n),l=d9(Math.pow(t,2),o);return(n*r+r-i)*s*(-a(t)+.001>0?-1:1)/l}):(a=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),i=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,i,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*o*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=m/(2*Math.sqrt(h*y)),S=f-d,j=Math.sqrt(h/y)/1e3,O=5>Math.abs(S);if(u||(u=O?d4:d5),c||(c=O?d6:d8),w<1)a=d9(j,w),i=(x+w*j*S)/a,r=e=>f-Math.exp(-w*j*e)*(i*Math.sin(a*e)+S*Math.cos(a*e)),o=w*j*i+S*a,s=w*j*S-i*a,n=e=>Math.exp(-w*j*e)*(o*Math.sin(a*e)+s*Math.cos(a*e));else if(1===w){r=e=>f-Math.exp(-j*e)*(S+(x+j*S)*e);let e=x+j*S;n=t=>Math.exp(-j*t)*(j*e*t-x)}else{let e=j*Math.sqrt(w*w-1);r=t=>{let r=Math.exp(-w*j*t),n=Math.min(e*t,300);return f-r*((x+w*j*S)*Math.sinh(n)+e*S*Math.cosh(n))/e};let t=(x+w*j*S)/e,a=w*j*t-S*e,i=w*j*S-t*e;n=t=>{let r=Math.exp(-w*j*t),n=Math.min(e*t,300);return r*(a*Math.sinh(n)+i*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*j*e),r=Math.sin(a*e),n=Math.cos(a*e),l=f-t*(i*r+S*n);return p.done=Math.abs(u0(t*(o*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:i=500,modifyTarget:o,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,f,p=e[0],h={done:!1,value:p},m=r*t,y=p+m,v=void 0===o?y:o(y);v!==y&&(m=v-p);let g=e=>-m*Math.exp(-e/n),b=e=>v+g(e),x=e=>{let t=g(e),r=b(e);h.done=Math.abs(t)<=u,h.value=h.done?v:r},w=e=>{let t;if(t=h.value,void 0!==s&&t<s||void 0!==l&&t>l){var r;d=e,f=fr({keyframes:[h.value,(r=h.value,void 0===s?l:void 0===l||Math.abs(s-r)<Math.abs(l-r)?s:l)],velocity:fn(b,e,h.value),damping:a,stiffness:i,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),h)}}}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 fi=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function fo(e,t,r,n){return e===t&&r===n?uI:a=>0===a||1===a?a:fi(function(e,t,r,n,a){let i,o,s=0;do(i=fi(o=t+(r-t)/2,n,a)-e)>0?r=o:t=o;while(Math.abs(i)>1e-7&&++s<12);return o}(a,0,1,e,r),t,n)}let fs=fo(.42,0,1,1),fl=fo(0,0,.58,1),fu=fo(.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=fo(.33,1.53,.69,.99),fp=fd(ff),fh=fc(fp),fm=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:fh,backOut:ff,anticipate:fm},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 fo(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 fS({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){var a;let i,o=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 i=e.length;if(up(i===t.length,"Both input and output ranges must be the same length","range-length"),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,r){let n=[],a=r||u_.mix||d1,i=e.length-1;for(let r=0;r<i;r++){let i=a(e[r],e[r+1]);t&&(i=dW(Array.isArray(t)?t[r]||uI:t,i)),n.push(i)}return n}(t,n,a),l=s.length,u=r=>{if(o&&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[i-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))}}(i=[0],t.length-1),i),a.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||fu).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}let fj={decay:fa,inertia:fa,tween:fS,keyframes:fS,spring:fr};function fO(e){"string"==typeof e.type&&(e.type=fj[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;fO(e);let{type:t=fS,repeat:r=0,repeatDelay:n=0,repeatType:a,velocity:i=0}=e,{keyframes:o}=e,s=t||fS;s!==fS&&"number"!=typeof o[0]&&(this.mixKeyframes=dW(fk,d1(o[0],o[1])),o=[0,100]);let l=s({...e,keyframes:o});"mirror"===a&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-i})),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:i,mirroredGenerator:o,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:h,onUpdate:m,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=o)),b=lC(0,1,r)*s}g?(this.delayState.value=c[0],r=this.delayState):r=x.next(b),i&&!g&&(r.value=i(r.value));let{done:w}=r;g||null===l||(w=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&h!==fa&&(r.value=ce(c,this.options,y,this.speed)),m&&m(r.value),S&&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:fm,backInOut:fh,circInOut:fg};class fA extends cl{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in fP&&(e.ease=fP[e.ease])}(e),fO(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,...i}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new fE({...i,autoplay:!1}),s=Math.max(10,cf.now()-this.startTime),l=lC(0,10,s-10),u=o.sample(s).value,{name:c}=this.options;a&&c&&u4(a,c,u),t.setWithVelocity(o.sample(Math.max(0,s-l)).value,u,l),o.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:i="loop",keyframes:o,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:i,name:s,motionValue:l,element:u,...c},f=u?.KeyframeResolver||uY;this.keyframeResolver=new f(o,(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:i,type:o,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 i=e[e.length-1],o=fD(a,t),s=fD(i,t);return uf(o===s,`You are trying to animate ${t} from "${a}" to "${i}". "${o?i:a}" is not an animatable value.`,"value-not-animatable"),!!o&&!!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,i,o,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:i,type:o,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!==i&&"inertia"!==o}(f),h=f.motionValue?.owner?.current;if(p)try{a=new fA({...f,element:h})}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(),uG=!0,uq(),uK(),uG=!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,i)=>o=>{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:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?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&&!i&&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:i,transitionEnd:o,...s}=t,l=e.getDefaultTransition();i=i?dL(i,l):l;let u=i?.reduceMotion,c=i?.skipAnimations;n&&(i=n);let d=[],f=a&&e.animationState&&e.animationState.getState()[a],p=i?.path;for(let t in p&&p.animateVisualElement(e,s,i,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 o={delay:r,...dF(i||{},t)};c&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(a)&&a===l&&!o.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&&(o.startTime=e,p=!0)}}dz(e,t);let h=u??e.shouldReduceMotion;n.start(fB(t,n,a,h&&ul.has(t)?{type:!1}:o,e,p));let m=n.animation;m&&d.push(m)}if(o){let t=()=>uB.update(()=>{o&&dV(e,o)});d.length?Promise.all(d).then(t):t()}return d}function fz(e,t,r,n=0,a=1){let i=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*n;return"function"==typeof r?r(i,o):1===a?i*n:s-i*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 i=n?()=>Promise.all(fV(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return function(e,t,r=0,n=0,a=0,i=1,o){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(fW(l,t,{...o,delay:r+("function"==typeof n?0:n)+fz(e.variantChildren,l,n,a,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,n,i,o,s,r)}:()=>Promise.resolve(),{when:s}=a;if(!s)return Promise.all([i(),o(r.delay)]);{let[e,t]="beforeChildren"===s?[i,o]:[o,i];return e().then(()=>t())}}function f$(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 fU=cS.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 fG=[...cw].reverse(),fK=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 pi({target:e,borderBoxSize:t}){pt.get(e)?.forEach(r=>{r(e,{get width(){return pn(e,t)},get height(){return pa(e,t)}})})}function po(e){e.forEach(pi)}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)}):(!o&&"u">typeof ResizeObserver&&(o=new ResizeObserver(po)),(r=pe(e)).forEach(e=>{let r=pt.get(e);r||(r=new Set,pt.set(e,r)),r.add(t),o?.observe(e)}),()=>{r.forEach(e=>{let r=pt.get(e);r?.delete(t),r?.size||o?.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),ph=new Set(["auto","scroll"]);class pm{constructor(e,t,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:a=!1,distanceThreshold:i=3,element:o}={}){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:i}=r,{timestamp:o}=uz;this.history.push({...i,timestamp:o});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 i=pg("pointercancel"===e.type?this.lastMoveEventInfo:py(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},!pu(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=i,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)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(ph.has(e.overflowX)||ph.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 i={x:(n.x-r.x)/a,y:(n.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}(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 pS(e,t,r){return{min:pj(e,t),max:pj(e,r)}}function pj(e,t){return"number"==typeof e?e:e[t]||0}let pO=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=uo(),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()},i=(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(lU.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:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:a,onDrag:i}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:o}=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}(o),null!==this.currentDirection&&a&&a(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),i&&uB.update(()=>i(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 pm(e,{onSessionStart:a,onStart:i,onMove:o,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:i}=n;this.startAnimation(i);let{onDragEnd:o}=this.getProps();o&&uB.postRender(()=>o(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),i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=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}(i,this.constraints[e],this.elastic[e])),a.set(i)}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:pS(e,"left","right"),y:pS(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 i=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()),o=(e=a.layout.layoutBox,{x:pw(e.x,i.x),y:pw(e.y,i.y)});if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=c2(e))}return o}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:a,dragSnapToOrigin:i,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{};return Promise.all(fQ(o=>{if(!pP(o,t,this.currentDirection))return;let l=s&&s[o]||{};(!0===i||i===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(o,u)})).then(o)}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:i}=n.layout.layoutBox[t],o=a.get()||0;a.set(e[t]-cX(r,i,.5)+o)}})}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 i,o,s,l=t.get();n[e]=(r={min:l,max:l},a=this.constraints[e],i=.5,o=fJ(r),(s=fJ(a))>o?i=fw(a.min,a.max-o,r.min):o>s&&(i=fw(r.min,r.max-s,a.min)),lC(0,1,i))}});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:i}=this.constraints[t];r.set(cX(a,i,n[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;pO.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,i=a!==t&&(f6.has(a.tagName)||!0===a.isContentEditable);r&&n&&!i&&this.start(e)}),n=()=>{var r,n,a;let i,o,{dragConstraints:s}=this.getProps();dN(s)&&s.current&&(this.constraints=this.resolveRefConstraints(),e||(r=t,n=s.current,i=pl(r,pE(a=()=>this.scalePositionWithinConstraints())),o=pl(n,pE(a)),e=()=>{i(),o()}))},{projection:a}=this.visualElement,i=a.addEventListener("measure",n);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),uB.read(n);let o=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()=>{o(),r(),i(),s&&s(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:a=!1,dragElastic:i=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:a,dragElastic:i,dragMomentum:o}}}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,i=(0,g.useId)();(0,g.useEffect)(()=>{if(e)return a(i)},[e]);let o=(0,g.useCallback)(()=>e&&n&&n(i),[i,n,e]);return!r&&n?[!1,o]:[!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:i}=r;return i&&(i.isPresent=a,e.layoutDependency!==t&&i.setOptions({...i.options,layoutDependency:t}),pT=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==a?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||uB.postRender(()=>{let e=i.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=cK.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 p$(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function pU(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],i,o){!function(e,t=0,r=1,n=.5,a,i=e,o=e){if(lU.test(t)&&(t=parseFloat(t),t=cX(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let s=cX(i.min,i.max,n);e===i&&(s-=t),e.min=pU(e.min,t,r,s,a),e.max=pU(e.max,t,r,s,a)}(e,t[r],t[n],t[a],t.scale,i,o)}let pG=["x","scaleX","originX"],pK=["y","scaleY","originY"];function pq(e,t,r,n){pH(e.x,t,pG,r?r.x:void 0,n?n.x:void 0),pH(e.y,t,pK,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(ht),this.nodes.forEach(hc),this.nodes.forEach(hd),this.nodes.forEach(hr)},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,i;n=e,this.root.updateBlockedByResize=!0,r&&r(),t=cf.now(),i=({timestamp:e})=>{let r=e-t;r>=250&&(uV(i),a(r-250))},uB.setup(i,!0),r=()=>uV(i),pD.hasAnimatedSinceResize&&(pD.hasAnimatedSinceResize=!1,this.nodes.forEach(hu))}})}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 i=this.options.transition||a.getDefaultTransition()||hv,{onLayoutAnimationStart:o,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(i,"layout"),onPlay:o,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||hu(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(hf),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(hi),this.nodes.forEach(ha);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(ho);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(hs),this.nodes.forEach(hl),this.nodes.forEach(p7),this.nodes.forEach(he)):this.nodes.forEach(ho),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(hn),this.sharedNodes.forEach(hp)}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=uo()),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,i=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||c5(this.latestValues)||i)&&(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)),hx((t=n).x),hx(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return uo();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(hS))){let{scroll:e}=this.root;e&&(de(t.x,e.offset.x),de(t.y,e.offset.y))}return t}removeElementScroll(e){let t=uo();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:i}=n;n!==this.root&&a&&i.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||uo();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=uo();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=uo(),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 i=this.getClosestProjectingParent();if(i&&this.linkedParentVersion!==i.layoutVersion&&!i.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&i&&i.layout?this.createRelativeTarget(i,this.layout.layoutBox,i.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=uo(),this.targetWithTransforms=uo()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,s,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,f2(o.x,s.x,l.x,u?.x),f2(o.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&&i&&!!i.resumingFrom==!!this.resumingFrom&&!i.options.layoutScroll&&i.target&&1!==this.animationProgress?this.createRelativeTarget(i,this.target,i.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=uo(),this.relativeTargetOrigin=uo(),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 i=this.treeScale.x,o=this.treeScale.y;!function(e,t,r,n=!1){let a,i,o=r.length;if(o){t.x=t.y=1;for(let s=0;s<o;s++){i=(a=r[s]).projectionDelta;let{visualElement:o}=a.options;(!o||!o.props.style||"contents"!==o.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)),i&&(t.x*=i.x.scale,t.y*=i.y.scale,c7(e,i)),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=uo());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(p$(this.prevProjectionDelta.x,this.projectionDelta.x),p$(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),f1(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===i&&this.treeScale.y===o&&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,i=a?a.latestValues:{},o={...this.latestValues},s=ua();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=uo(),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(hy));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):(hh(s.x,e.x,r),hh(s.y,e.y,r)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,h,m,y,v,g;f4(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,y=this.relativeTargetOrigin,v=l,g=r,hm(m.x,y.x,v.x,g),hm(m.y,y.y,v.y,g),n&&(c=this.relativeTarget,h=n,pZ(c.x,h.x)&&pZ(c.y,h.y))&&(this.isProjectionDirty=!1),n||(n=uo()),pW(n,this.relativeTarget)}u&&(this.animationValues=o,function(e,t,r,n,a,i){a?(e.opacity=cX(0,r.opacity??1,pF(n)),e.opacityExit=cX(t.opacity??1,0,pB(n))):i&&(e.opacity=cX(t.opacity??1,r.opacity??1,n));for(let a=0;a<pM;a++){let i=cK[a],o=pL(t,i),s=pL(r,i);(void 0!==o||void 0!==s)&&(o||(o=0),s||(s=0),0===o||0===s||p_(o)===p_(s)?(e[i]=Math.max(cX(pI(o),pI(s),n),0),(lU.test(s)||lU.test(o))&&(e[i]+="%")):e[i]=s)}(t.rotate||r.rotate)&&(e.rotate=cX(t.rotate||0,r.rotate||0,n))}(o,i,this.latestValues,r,f,d)),a&&void 0!==a.rotate&&(this.animationValues||(this.animationValues=o),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&&hw(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||uo();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 i=function(e,t,r){let n="",a=e.x.translate/t.x,i=e.y.translate/t.y,o=r?.z||0;if((a||i||o)&&(n=`translate3d(${a}px, ${i}px, ${o}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,pathRotation:a,rotateX:i,rotateY:o,skewX:s,skewY:l}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),a&&(n+=`rotate(${a}deg) `),i&&(n+=`rotateX(${i}deg) `),o&&(n+=`rotateY(${o}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&&(i=r(a,i)),e.transform=i;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*o.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:o,isCSSVariable:s}=cZ[t],l="none"===i?a[t]:r(a[t],n);if(o){let t=o.length;for(let r=0;r<t;r++)e[o[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(ha),this.root.sharedNodes.clear()}}}function p7(e){e.updateLayout()}function he(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,i=t.source!==e.layout.source;if("size"===a)fQ(e=>{let n=i?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(i?t.measuredBox[e]:t.layoutBox[e],r[e])}else hw(a,t.layoutBox,r)&&fQ(n=>{let a=i?t.measuredBox[n]:t.layoutBox[n],o=fJ(r[n]);a.max=a.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+o)});let o=ua();f1(o,r,t.layoutBox);let s=ua();i?f1(s,e.applyTransform(n,!0),t.measuredBox):f1(s,r,t.layoutBox);let l=!pX(o),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:a,layout:i}=n;if(a&&i){let o=e.options.layoutAnchor||void 0,s=uo();f4(s,t.layoutBox,a.layoutBox,o);let l=uo();f4(l,r,i.layoutBox,o),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:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ht(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 hr(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hn(e){e.clearSnapshot()}function ha(e){e.clearMeasurements()}function hi(e){e.isLayoutDirty=!0,e.updateLayout()}function ho(e){e.isLayoutDirty=!1}function hs(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function hl(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function hc(e){e.resolveTargetDelta()}function hd(e){e.calcProjection()}function hf(e){e.resetSkewAndRotation()}function hp(e){e.removeLeadSnapshot()}function hh(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 hm(e,t,r,n){e.min=cX(t.min,r.min,n),e.max=cX(t.max,r.max,n)}function hy(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let hv={duration:.45,ease:[.4,0,.1,1]},hg=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),hb=hg("applewebkit/")&&!hg("chrome/")?Math.round:uI;function hx(e){e.min=hb(e.min),e.max=hb(e.max)}function hw(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(p0(t)-p0(r)))}function hS(e){return e!==e.root&&e.scroll?.wasRoot}let hj=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}),hO={current:void 0},hk=p9({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hO.current){let e=new hj({});e.mount(window),e.setOptions({layoutScroll:!0}),hO.current=e}return hO.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function hE(e,t){let r=pe(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function hP(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 hA(e){return f9(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}let hD=(e,t)=>!!t&&(e===t||hD(e,t.parentElement)),hC=new WeakSet;function hT(e){return t=>{"Enter"===t.key&&e(t)}}function hN(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function hR(e){return pu(e)&&!(fZ.x||fZ.y)}let hM=new WeakSet;function hI(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 h_=new WeakMap,hL=new WeakMap,hF=e=>{let t=h_.get(e.target);t&&t(e)},hB=e=>{e.forEach(hF)},hV={some:0,all:1},hz=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,i)=>"create"===i?n:(r.has(i)||r.set(i,dM(i,void 0,e,t)),r.get(i))})}({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})=>f$(e,t,r))),r=fY(),n=!0,a=!1,i=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 o(o){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<fU;e++){let n=cS[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<fK;t++){var p,h;let m=fG[t],y=r[m],v=void 0!==s[m]?s[m]:l[m],g=cx(v),b=m===o?y.isActive:null;!1===b&&(f=t);let x=v===l[m]&&v!==s[m]&&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"===m&&y.isActive&&!0!==b){y.prevResolvedValues&&(d={...d,...y.prevResolvedValues});continue}let w=(p=y.prevProp,"string"==typeof(h=v)?h!==p:!!Array.isArray(h)&&!fH(h,p)),S=w||m===o&&y.isActive&&!x&&g||t>f&&g,j=!1,O=Array.isArray(v)?v:[v],k=O.reduce(i(m),{});!1===b&&(k={});let{prevResolvedValues:E={}}=y,P={...E,...k},A=t=>{S=!0,c.has(t)&&(j=!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&&(S=!1);let D=x&&w,C=!D||j;S&&C&&u.push(...O.map(t=>{let r={type:m};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 m=!!u.length;return n&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,a=!1,m?t(u):Promise.resolve()}return{animateChanges:o,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=o(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:i="some",once:o}=r,s={root:n?n.current:void 0,rootMargin:a,threshold:"number"==typeof i?i:hV[i]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!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;hL.has(r)||hL.set(r,{});let n=hL.get(r),a=JSON.stringify(t);return n[a]||(n[a]=new IntersectionObserver(hB,{root:e,...t})),n[a]}(s),h_.set(e,l),t.observe(e),()=>{h_.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,i]=hE(e,r),o=e=>{let n=e.currentTarget;if(!hR(e)||hM.has(e))return;hC.add(n),r.stopPropagation&&hM.add(e);let i=t(n,e),o={...a,capture:!0},s=(e,t)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),hC.has(n)&&hC.delete(n),hR(e)&&"function"==typeof i&&i(e,{success:t})},l=e=>{s(e,n===window||n===document||r.useGlobalTarget||hD(n,e.target))},u=e=>{s(e,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return n.forEach(e=>{((r.useGlobalTarget?window:e).addEventListener("pointerdown",o,a),hA(e))&&(e.addEventListener("focus",e=>((e,t)=>{let r=e.currentTarget;if(!r)return;let n=hT(()=>{if(hC.has(r))return;hN(r,"down");let e=hT(()=>{hN(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>hN(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))}),i}(e,(e,t)=>(hI(this.node,t,"Start"),(e,{success:t})=>hI(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,i]=hE(e,r);return n.forEach(e=>{let r,n=!1,i=!1,o=t=>{r&&(r(t),r=void 0),e.removeEventListener("pointerleave",l)},s=e=>{n=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),i&&(i=!1,o(e))},l=e=>{if("touch"!==e.pointerType){if(n){i=!0;return}o(e)}};e.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||fZ.x||fZ.y)return;i=!1;let o=t(e,n);"function"==typeof o&&(r=o,e.addEventListener("pointerleave",l,a))},a),e.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",s,a),window.addEventListener("pointercancel",s,a)},a)}),i}(e,(e,t)=>(hP(this.node,t,"Start"),e=>hP(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends dI{constructor(){super(...arguments),this.removePointerDownListener=uI}onPointerDown(e){this.session=new pm(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:hk,MeasureLayout:pR},layout:{ProjectionNode:hk,MeasureLayout:pR}},(e,t)=>t.isSVG??dl(e)?new c1(t):new di(t,{allowProjection:e!==g.Fragment}));var hW={initial:{},animate:{transition:{staggerChildren:.05}}},h$={initial:{y:0,color:"var(--colors-surface-foreground)"},animate:{y:"-120%",color:"var(--colors-surface-muted-foreground)",transition:{type:"spring",stiffness:300,damping:20}}},hU=function(e){var t=e.label,r=e.active,n=e.required;return(0,v.jsxs)(hz.span,{className:lj.kineticLabel,variants:hW,initial:"initial",animate:r?"animate":"initial","aria-hidden":"true",children:[t.split("").map(function(e,t){return(0,v.jsx)(hz.span,{className:lj.kineticLetter,variants:h$,style:{willChange:"transform"},children:" "===e?"\xa0":e},t)}),n&&(0,v.jsx)("span",{className:lj.requiredMark,children:" *"})]})};function hH(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 hG(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hH(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 hH(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 hK={error:[100,50,100],warning:[50,30,50],success:[30]},hq={rules:[],realTimeValidation:!0,triggerVibration:!0,showIcons:!0,showMessages:!0};function hY(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 hX(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hZ(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hY(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 hY(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 hQ=function(e){var t,r,n,a,i,o,s,l,u=e.variant,c=void 0===u?"outlined":u,d=e.size,f=e.label,p=e.placeholder,h=e.type,m=e.value,y=void 0===m?"":m,b=e.onChange,x=e.className,w=e.disabled,S=void 0!==w&&w,j=e.required,k=void 0!==j&&j,E=e.autoComplete,P=e.autoFocus,A=e.id,D=e.name,C=e.fieldIcon,T=e.validation,N=void 0===T?hq: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=hZ((0,g.useState)(y),2),z=V[0],W=V[1],$=hZ((0,g.useState)(!1),2),U=$[0],H=$[1],G=(0,g.useRef)(null),K=(r=(t=hG((0,g.useState)(null),2))[0],n=t[1],i=(a=hG((0,g.useState)(!1),2))[0],o=a[1],s=function(e){N.triggerVibration&&(o(!0),"u">typeof navigator&&navigator.vibrate&&navigator.vibrate(hK[e]),setTimeout(function(){return o(!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:i}),q=K.currentValidation,Y=K.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=O()(lj.field,lj["field--".concat(c)],lj["field--".concat(void 0===d?"md":d)],(hX(l={},lj["field--disabled"],S),hX(l,lj["field--animating"],Y),hX(l,lj["field--has-left-icon"],X),hX(l,lj["field--has-validation-icon"],Q),l),q&&lj["field--".concat(q.type)],x);return(0,v.jsxs)("div",{className:J,children:[(0,v.jsxs)("div",{className:lj.fieldControl,ref:G,children:[X&&(0,v.jsx)("div",{className:lj.leftIcon,children:(0,v.jsx)(lO,{fieldIcon:C})}),(0,v.jsx)("input",{type:void 0===h?"text":h,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:S,required:k,autoComplete:E,autoFocus:P,className:lj.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:lj.kineticLabelWrapper,children:(0,v.jsx)(hU,{label:f,active:U||z.length>0,required:k})}),f&&"kinetic"!==c&&(0,v.jsxs)("label",{htmlFor:F,className:lj.label,children:[Z&&(0,v.jsx)(lO,{fieldIcon:C,className:lj.labelIconGlyph}),(0,v.jsxs)("span",{className:lj.labelText,children:[f,k&&(0,v.jsxs)("span",{className:lj.requiredMark,"aria-hidden":"true",children:[" ","*"]})]})]}),(0,v.jsx)(lP,{currentValidation:q,showIcons:!!N.showIcons})]}),N.showMessages&&q&&(0,v.jsxs)("p",{id:B,className:lj.message,role:"error"===q.type?"alert":void 0,children:[(0,v.jsxs)("span",{className:lj.messageLead,children:["success"===q.type&&"Parfait !","error"===q.type&&"Erreur —","warning"===q.type&&"Attention —"]})," ",q.message]})]})},hJ=r(9250),h0=r(1442),h1=r(7267),h2=r(8507);function h3(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 h4(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function h5(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 h6(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 h8(e,t){if(e){if("string"==typeof e)return h3(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 h3(e,t)}}var h9=(0,h0.createGlobalStore)("modalState",{modalContainer:null,modalStack:[]}),h7={xs:"24rem",sm:"32rem",md:"42rem",lg:"56rem"},me=0,mt=window.getComputedStyle(document.body).overflow;function mr(e){var t=e.modalStack,r=e.modalContainer;r&&(t.length?(r.style.visibility||(addEventListener("keydown",ma),document.body.style.overflow="hidden",r.style.visibility="unset"),t.forEach(function(e,n){switch(e.state){case"NEW":var a,i,o,s,l,u,c,d,f=(i=({size:null!=(c=null==(d=e.props)?void 0:d.size)?c:"md"}).size,(o=document.createElement("div")).className="egen-modal-frame",Object.assign(o.style,{display:"flex",flexDirection:"column",boxSizing:"border-box",width:"calc(100% - 2rem)",maxWidth:null!=(a=h7[i])?a:h7.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"}),o.setAttribute("role","dialog"),o.setAttribute("tabindex","-1"),o.setAttribute("aria-modal","true"),o);e.container=f,(function(e,t){var r;return(r=function(e,t){var r,n,a,i,o,s=arguments;return function(e,t){var r,n,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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,h1.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 i=l.sent(),o=me++,a=(0,hJ.mountRootParcel)(h6(h5({},i),{name:"".concat(t,"-").concat(o)}),h6(h5({},r),{domElement:e})),[3,3];case 2:(0,h2.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 i=r.apply(e,t);function o(e){h4(i,n,a,o,s,"next",e)}function s(e){h4(i,n,a,o,s,"throw",e)}o(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(){h9.setState({modalContainer:r,modalStack:t.filter(function(t){return t!==e})})},0)}})):(r.style.removeProperty("visibility"),document.body.style.overflow=mt,removeEventListener("keydown",ma)))}function mn(e){var t=h9.getState(),r=t.modalStack.map(function(t){return t===e?h6(h5({},t),{state:"TO_BE_DELETED"}):t});h9.setState(h6(h5({},t),{modalStack:r}))}function ma(e){var t,r;"Escape"===e.key&&(r=(function(e){if(Array.isArray(e))return e}(t=h9.getState().modalStack)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(t)||h8(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])&&mn(r)}function mi(e){h9.subscribe(mr),h9.setState(h6(h5({},h9.getState()),{modalContainer:e}))}function mo(e){var t,r,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=function(){var e=h9.getState().modalStack.find(function(e){return e.onClose===i});e&&mn(e)};return(0,h1.Fg)(e)?(n=[{state:"NEW",onClose:i,modalName:e,props:h5({close:o},a)}].concat(function(e){if(Array.isArray(e))return h3(e)}(r=(t=h9.getState()).modalStack)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||h8(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.")}()),h9.setState(h6(h5({},t),{modalStack:n}))):(0,h2.N)('Failed to launch modal. Please notify your administrator. Modal name: "'.concat(e,'"')),o}var ms=r(919),ml=function(e){var t=e.notification,r=t.description,n=t.action,a=t.kind,i=(t.critical,t.title),o=t.onAction;return(0,v.jsx)(z.Ad,{kind:a||"info",title:i||void 0,subtitle:r,actionLabel:n,onAction:o})};function mu(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 mc(e,t){if(e){if("string"==typeof e)return mu(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 mu(e,t)}}let md=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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(t)||mc(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],i=n[1];return(0,g.useEffect)(function(){var e=r.subscribe(function(e){return i(function(t){var r;return((function(e){if(Array.isArray(e))return mu(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)||mc(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)(ml,{notification:e},e.id)})})};function mf(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 mp=function(e){var t,r=e.notification,n=r.actionButtonLabel,a=r.onActionButtonClick,i=void 0===a?function(){}:a,o=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,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return mf(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 mf(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(){i(),u&&p(u)},statusLabel:(0,V.V)("actionableNotification","Actionable notification"),subtitle:o,title:l},c))};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 mm(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)}}let my=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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(t)||mm(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],i=n[1];return(0,g.useEffect)(function(){var e=r.subscribe(function(e){return i(function(t){var r;return((function(e){if(Array.isArray(e))return mh(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)||mm(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)(mp,{notification:e},e.id)})})};var mv=r(5217),mg=r(72),mb=r(2797),mx=r(8206),mw=r(3497),mS=r(8134),mj=r(4666),mO=r(7931),mk=Object.prototype.hasOwnProperty;let mE=function(e){if(null==e)return!0;if((0,mw.A)(e)&&((0,mx.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,mS.A)(e)||(0,mO.A)(e)||(0,mb.A)(e)))return!e.length;var t=(0,mg.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,mj.A)(e))return!(0,mv.A)(e).length;for(var r in e)if(mk.call(e,r))return!1;return!0};var mP=r(8279);function mA(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function mD(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 mC(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 mT(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var mN=new ms.Subject,mR=0,mM=new ms.Subject,mI=0;function m_(e){e&&(0,mP.createRoot)(e).render((0,v.jsx)(md,{subject:mN}))}function mL(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":mT(t))==="object"&&(mA(t,Error)||!mE(t)))?(mA(e.description,Error)&&(e.description=e.description.toLocaleString()),setTimeout(function(){mN.next(mC(mD({},e),{id:mR++}))},0)):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function mF(e){e&&(0,mP.createRoot)(e).render((0,v.jsx)(my,{subject:mM}))}function mB(e){var t;e&&("string"==typeof(t=e.actionButtonLabel)?t.trim().length>0:(void 0===t?"undefined":mT(t))==="object"&&!mE(t))?setTimeout(function(){mM.next(mC(mD({},e),{id:mI++}))},0):console.error("showActionableNotification must be called with an actionButtonLabel that is a non-empty string")}function mV(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 mz(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function mW(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 m$(e,t,r){return t&&mW(e.prototype,t),r&&mW(e,r),e}function mU(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mV(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 mV(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 mH(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var mG=function(){function e(t){mz(this,e),mH(this,"canvas",void 0),mH(this,"gl",void 0),mH(this,"meshes",[]),mH(this,"commonUniforms",void 0),mH(this,"width",void 0),mH(this,"height",void 0),mH(this,"Material",void 0),mH(this,"Uniform",void 0),mH(this,"PlaneGeometry",void 0),mH(this,"Mesh",void 0),mH(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){mz(this,e),mH(this,"type","float"),mH(this,"value",void 0),mH(this,"typeFn",void 0),mH(this,"excludeFrom",void 0),mH(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 m$(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=mU(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){mz(this,e),mH(this,"type",n.FLOAT),mH(this,"normalized",!1),mH(this,"buffer",void 0),mH(this,"target",void 0),mH(this,"size",void 0),mH(this,"values",void 0),this.buffer=n.createBuffer(),Object.assign(this,t)}return m$(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 i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};mz(this,e);var o=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=mU(e,2),n=r[0];return r[1].getDeclaration(n,t)}).join("\n")};mH(this,"uniforms",void 0),mH(this,"uniformInstances",[]),mH(this,"program",void 0),this.uniforms=i;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(i,"vertex"),"\n ").concat(t,"\n "),c="\n ".concat(l,"\n ").concat(s(a.commonUniforms,"fragment"),"\n ").concat(s(i,"fragment"),"\n ").concat(r,"\n ");if(this.program=n.createProgram(),n.attachShader(this.program,o(n.VERTEX_SHADER,u)),n.attachShader(this.program,o(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 m$(e,[{key:"attachUniforms",value:function(e,t){var r=this;void 0===e?Object.entries(t).forEach(function(e){var t=mU(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=mU(t,2),a=n[0],i=n[1];return r.attachUniforms("".concat(e,".").concat(a),i)}):this.uniformInstances.push({uniform:t,location:n.getUniformLocation(this.program,e)})}}]),e}(),this.PlaneGeometry=function(){function e(){mz(this,e),mH(this,"width",1),mH(this,"height",1),mH(this,"attributes",void 0),mH(this,"vertexCount",0),mH(this,"xSegCount",0),mH(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 m$(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 i=n*(this.xSegCount+1)+a;if(this.attributes.uv.values[2*i]=a/this.xSegCount,this.attributes.uv.values[2*i+1]=1-n/this.ySegCount,this.attributes.uvNorm.values[2*i]=a/this.xSegCount*2-1,this.attributes.uvNorm.values[2*i+1]=1-n/this.ySegCount*2,a<this.xSegCount&&n<this.ySegCount){var o=n*this.xSegCount+a;this.attributes.index.values[6*o]=i,this.attributes.index.values[6*o+1]=i+1+this.xSegCount,this.attributes.index.values[6*o+2]=i+1,this.attributes.index.values[6*o+3]=i+1,this.attributes.index.values[6*o+4]=i+1+this.xSegCount,this.attributes.index.values[6*o+5]=i+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,i=t/this.ySegCount,o=0;o<=this.ySegCount;o++)for(var s=n+o*i,l=0;l<=this.xSegCount;l++){var u=r+l*a,c=o*(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;mz(this,e),mH(this,"geometry",void 0),mH(this,"material",void 0),mH(this,"attributeInstances",[]),this.geometry=t,this.material=r,Object.entries(this.geometry.attributes).forEach(function(e){var t=mU(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 m$(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 i=[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:i}),modelViewMatrix:new this.Uniform({type:"mat4",value:i}),resolution:new this.Uniform({type:"vec2",value:[1,1]}),aspectRatio:new this.Uniform({type:"float",value:1})}}return m$(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}(),mK=function(){function e(t,r){var n=this;mz(this,e),mH(this,"canvas",void 0),mH(this,"colors",void 0),mH(this,"minigl",void 0),mH(this,"mesh",void 0),mH(this,"time",0),mH(this,"last",0),mH(this,"animationId",void 0),mH(this,"isPlaying",!1),mH(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)}}),mH(this,"handleResize",function(){n.resize()}),this.canvas=t,this.colors=r,this.minigl=new mG(t),this.init()}return m$(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 mq(e){var t=e.colors,r=void 0===t?["#008080","#0b192c","#0ea5e9","#042f2e","#0284c7","#064e3b"]:t,n=e.isPlaying,a=void 0===n||n,i=e.className,o=e.shadowPower,s=void 0===o?8:o,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,h=e.deform,m=void 0===h?{incline:.5,noiseAmp:250,noiseFlow:5}:h,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 mK(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,m)),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===i?"":i)})}var mY=(0,h0.getGlobalStore)("pageBackground",{config:null,owner:null});function mX(e){mY.setState({config:e,owner:null})}function mZ(e){var t=e.children;return(0,v.jsx)(v.Fragment,{children:t})}var mQ=function(){return mY.getState().config};function mJ(){var e=(0,g.useSyncExternalStore)(mY.subscribe,mQ,mQ);return(0,g.useMemo)(function(){return{config:e,setPageBackground:mX}},[e])}var m0=["#008080","#0b192c","#0ea5e9","#042f2e","#0284c7","#064e3b"];function m1(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)(mq,{colors:m0,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 m2(e){var t=e.imageSrc,r=e.imageAlt,n=e.imageFit,a=void 0===n?"cover":n,i=e.className,o=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,h=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==i?void 0:i.includes("bg-"))&&"bg-[#030708]",i),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",o),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%)"}}),h]}):(0,v.jsx)(m1,{className:i})}function m3(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=n.fallback,i=mJ().config;return(null==i?void 0:i.customComponent)?(0,v.jsx)("div",{className:(0,w.cn)("fixed inset-0 pointer-events-none overflow-hidden z-0 select-none bg-[#030708]",i.className),children:i.customComponent}):(null==i?void 0:i.imageSrc)?(0,v.jsx)(m2,{imageSrc:i.imageSrc,imageAlt:i.imageAlt,imageFit:i.imageFit,className:i.className,imageClassName:i.imageClassName,overlayClassName:i.overlayClassName,glowClassName:i.glowClassName,showAtmosphere:null!=(e=i.showAtmosphere)&&e,showGlow:null==(t=i.showGlow)||t,showDarkWash:null==(r=i.showDarkWash)||r,accent:i.accent,children:i.children}):"none"===(void 0===a?"animated":a)?null:(0,v.jsx)(m1,{className:null==i?void 0:i.className})}function m4(e){var t=e.customComponent,r=e.imageSrc,n=e.imageAlt,a=e.imageFit,i=e.className,o=e.imageClassName,s=e.overlayClassName,l=e.glowClassName,u=e.showAtmosphere,c=e.showGlow,d=e.showDarkWash,f=e.accent,p=e.children,h=(0,g.useRef)({});return(0,g.useEffect)(function(){var e;e=h.current,mY.setState({config:{customComponent:t,imageSrc:r,imageAlt:n,imageFit:a,className:i,imageClassName:o,overlayClassName:s,glowClassName:l,showAtmosphere:u,showGlow:c,showDarkWash:d,accent:f,children:p},owner:e})},[t,r,n,a,i,o,s,l,u,c,d,f,p]),(0,g.useEffect)(function(){var e=h.current;return function(){mY.getState().owner===e&&mY.setState({config:null,owner:null})}},[]),null}function m5(e){e&&(0,mP.createRoot)(e).render((0,v.jsx)(m3,{fallback:"none"}))}var m6=r(3645);let m8="EXPHgi8ygojxjWpSa-PxoQ==";function m9(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 m7(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,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}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(m7({className:O()(m8,r)},n),{children:t}))}var a=e.title,i=e.illustration,o=e.className,s=yt(e,["title","illustration","className"]);return(0,v.jsx)("div",ye(m7({className:O()(m8,o)},s),{children:(0,v.jsx)(yn,{title:a,illustration:i})}))},yn=function(e){var t,r=e.title,n=e.illustration,a=e.className,i=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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return m9(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 m9(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=i[0],s=i[1];return(0,g.useEffect)(function(){(0,m6.getConfig)("@egen-civitas/esm-styleguide").then(function(e){s(e)})},[]),(0,v.jsxs)("div",{className:O()("B7ftiqKWP2aYNeHDIPSb7w==",a),children:[n,(0,v.jsxs)("div",{className:"WVfMf3IxIYB4RqiS2p5hTw==",children:[(null==o?void 0:o.implementationName)&&(0,v.jsx)("p",{children:(0,V.V)(o.implementationName)}),(0,v.jsx)("p",{className:"-QtMd8fN+FFchDvCJoWbXA==",children:r})]})]})},ya=r(4347),yi=(0,ya.A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),yo=(0,ya.A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),ys=function(e){var t=e.totalItems,r=e.pageSize,n=e.onPageNumberChange,a=e.pageNumber,i=e.dashboardLinkUrl,o=e.currentItems,s=e.dashboardLinkLabel,l=(0,x.usePaginationInfo)(r,t,a,o),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)),h=function(e){return null==n?void 0:n({page:Math.min(Math.max(e,1),p),pageSize:r})},m=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,i&&(0,v.jsx)(x.ConfigurableLink,{to:i,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",m),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",m),value:a,onChange:function(e){return h(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 h(a-1)},children:(0,v.jsx)(yi,{"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 h(a+1)},children:(0,v.jsx)(yo,{"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})})),yh=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(yb,{ref:t,pictogram:"egen-pict-service-queues",pictogramProps:e})})),ym=(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],i=n.slice(1),o=a.pictogram,s=a.fallback,l=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(a,["pictogram","fallback"]),u=(yu(i)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(i)||yd(i,1)||yc())[0],c=(0,g.useRef)(document.getElementById(o));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,i=e[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var s=a.value;"childList"===s.type&&(c.current=document.getElementById(o))}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[o]),(0,v.jsx)(x.RenderIfValueIsTruthy,{value:c.current,fallback:s,children:(0,v.jsx)(yb,{ref:u,pictogram:o,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,i=n.size;return(i<=26||i>144)&&(console.error("Invalid size '".concat(i,"' specified for ").concat(r,". Defaulting to 92.")),i=92),(0,v.jsx)("svg",{ref:t,className:O()("qYHeMwyr4Ks9pPsUbPwqyA==",a),height:i,width:i,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 yS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yj(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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 yO=function(e){var t,r=e.snackbar,n=e.closeSnackbar,a=r.actionButtonLabel,i=r.kind,o=void 0===i?"success":i,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,h=void 0===p?"error"!==o:p,m=r.title;r.id,function(e,t){if(null!=e){var r,n,a,i={};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)&&(i[n]=e[n]);return}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n])}}(r,["actionButtonLabel","kind","onActionButtonClick","isLowContrast","progressActionLabel","subtitle","timeoutInMs","autoClose","title","id"]);var y=yj((0,g.useState)(void 0===a?"":a),2),b=y[0],x=y[1],w=yj((0,g.useState)(!0),2),S=w[0],j=w[1],k=yj((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(h){var e=setTimeout(D,f);return function(){return clearTimeout(e)}}},[f,h,D]),(0,g.useEffect)(function(){j(!1),window.setTimeout(function(){j(!0)},0)},[]),(0,v.jsx)(z.Ad,{actionLabel:b,statusLabel:(0,V.V)("closeSnackbar","Close snackbar"),closeLabel:(0,V.V)("closeSnackbar","Close snackbar"),className:O()("V4kr+nokmSk8JcHrWRqlDA==",(yS(t={},"_1V5JFfapu2dE0Evaj4Z0Yw==",S),yS(t,"j4OWdiEKzeDPPuV7vEIFvg==",E),t)),kind:o,onAction:function(){l(),D(),u&&x(u)},onClose:A,subtitle:void 0===c?"":c,title:m})};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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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],i=n[1],o=(0,g.useCallback)(function(e){i(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,g.useEffect)(function(){var e=r.subscribe(function(e){return i(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)(yO,{snackbar:e,closeSnackbar:function(){return o(e)}},e.id)})})};var yA=new ms.Subject,yD=0;function yC(e){e&&(0,mP.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,i=e.size,o=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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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===i?160:i,o)}}):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 y$(){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 yU(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 yG(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 yK(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){yK(e,t,r[t])})}return e}var yY=function(e){var t,r,n,a,i=e.children,o=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,h=e.expandedHeight,m=e.blurIntensity,y=e.shadowIntensity,b=e.glowIntensity,x=e.borderRadius,w=void 0===x?"0px":x,S=e.style,j=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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return yG(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 yG(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?hz.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:h||"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})}:j,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:j};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:O()(yH.card,(yK(a={},yH["card--draggable"],l),yK(a,yH["card--expandable"],c),a),o),style:yq({borderRadius:w},d&&!c?{width:d}:void 0,f&&!c?{height:f}:void 0,S)},T),n=n={children:[(0,v.jsx)("div",{className:O()(yH.bendLayer,yH["blur--".concat(void 0===m?"xl":m)]),style:{borderRadius:w,filter:"url(#".concat(A,")")}}),(0,v.jsx)("div",{className:O()(yH.faceLayer,yH["glow--".concat(void 0===b?"sm":b)]),style:{borderRadius:w}}),(0,v.jsx)("div",{className:O()(yH.edgeLayer,yH["shadow--".concat(void 0===y?"md":y)]),style:{borderRadius:w}}),(0,v.jsx)("div",{className:yH.content,children:i})]},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:ov,defaultEyebrow:"Succ\xe8s",colorToken:"success"},error:{icon:sh,defaultEyebrow:"Erreur",colorToken:"error"},warning:{icon:su,defaultEyebrow:"Avertissement",colorToken:"warning"},"warning-alt":{icon:su,defaultEyebrow:"Avertissement",colorToken:"warning"},info:{icon:oI,defaultEyebrow:"Information",colorToken:"info"},"info-square":{icon:o_,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)(hz.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)(hz.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,i=r.kind,o=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,h=r.actions,m=r.duration;r.toastKey;var y=yX[void 0===i?"info":i],b=y.icon,x="var(--colors-".concat(y.colorToken,"-500)"),w=(0,g.useMemo)(function(){return(null==h?void 0:h.length)?h:l&&u?[{label:l,onClick:u,kind:"primary"}]:[]},[h,l,u]),S=(0,g.useCallback)(function(e){e.onClick(),!1!==e.closeOnClick&&n()},[n]),j=null!=m?m:"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(j){var t=setTimeout(n,j);return function(){return clearTimeout(t)}}},[d,p,j,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)(hz.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:o?"lg":"sm",shadowIntensity:"md",borderRadius:"var(--border-radius-lg)",className:O()(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)(oj,{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:O()(yZ.actionButton,yZ["actionButton--".concat(null!=(r=e.kind)?r:"primary")]),onClick:function(){return S(e)},children:e.label},null!=(n=e.id)?n:t)})}),"transfer"===d?(0,v.jsx)(yQ,{colorVar:x,mode:"progress",value:p}):j&&(0,v.jsx)(yQ,{colorVar:x,mode:"countdown",durationMs:j})]})})};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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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],i=n[1],o=(0,g.useCallback)(function(e){i(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,g.useEffect)(function(){var e=r.subscribe(function(e){return i(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 o(e)}},null!=(t=e.toastKey)?t:e.id)})})};var y3=new ms.Subject,y4=0;function y5(e){e&&(0,mP.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"&&!mE(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=vo[e];return!r||!r()}function vr(e,t){var r,n=null==(r=vh.getState())?void 0:r.workspaceGroup,a=null==n?void 0:n.name;a&&e===a&&vg(function(){var r=vj(e);r&&(r.setState({},!0),r.subscribe(function(){})()),"function"==typeof(null==n?void 0:n.cleanup)&&n.cleanup(),vh.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,h1.Xb)(n);var i=function(){vd(e.name,{ignoreChanges:!0,onWorkspaceClose:function(){return va(n,a)},closeWorkspaceGroup:!1})};vt(e.name)?i():vx("closing-workspace-launching-new-workspace",i,null!=(r=e.title)?r:e.name)}function va(e,t){var r,n,a=(0,h1.Xb)(e),i=vh.getState().workspaceGroup;if(i&&!(null==(r=i.members)?void 0:r.includes(e)))return void vr(i.name,function(){va(e,t)});var o=null==(n=vh.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(vo[r]=n)},setTitle:function(t,r){s.title=t,s.titleNode=r,vh.setState(function(t){var r=t.openWorkspaces.map(function(t){return t.name===e?s:t});return ve(y7({},t),{openWorkspaces:r})})},currentWorkspaceGroup:o,additionalProps:null!=t?t:{}});function l(e,t){vh.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.")}()),i=vv(e);return ve(y7({},r),{openWorkspaces:a,workspaceWindowState:i})})}o&&vj(o,t);var u=vh.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,vh.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 vi(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 vo={};function vs(e,t){vo[e]=t}function vl(e){return vo[e]}function vu(){var e=vh.getState();vh.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=vh.getState();a.openWorkspaces.find(function(t){return t.name===e});var i=a.openWorkspaces.filter(function(t){return t.name!=e}),o=null==(t=vh.getState().workspaceGroup)?void 0:t.name;o&&r.closeWorkspaceGroup&&vr(o),vo[e]=function(){return!1},vh.setState(function(e){return ve(y7({},e),{prompt:null,openWorkspaces:i,workspaceWindowState:vv(null==i?void 0:i[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,h1.Xb)(e).title)?t:e),!1)}function vf(e){vh.getState().context!=e&&vh.setState({context:e,openWorkspaces:[],prompt:null})}var vp={context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0},vh=(0,h0.createGlobalStore)("workspace",vp);function vm(){return vh}function vy(e){var t=vh.getState();vh.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=vh.getState().openWorkspaces.filter(t).every(function(e){return vt(e.name)}),n=function(){vS(),null==e||e()};r?n():vx("closing-all-workspaces",n)}function vb(){var e=(0,x.useStore)(vh),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=vh.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(){vh.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}vh.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 vS(){vh.setState(vp)}function vj(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&"default"!==e){var r=(0,h0.getGlobalStore)(e,{});return t&&r.setState(function(e){return y7({},e,t)}),r}}let vO="_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,i=e.handler,o=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===o}))?t:-1,p="hidden"!==d&&0===f,h=f>0||0===f&&"hidden"===d;return"tablet"===l||"phone"===l?(0,v.jsxs)(z.$n,{className:O()(vO,vP({},vE,p)),variant:"ghost",onClick:i,role:"button",tabIndex:0,children:[(0,v.jsx)("span",{className:vk,children:(0,v.jsx)(vA,{formOpenInTheBackground:h,getIcon:r,tagContent:s})}),(0,v.jsx)("span",{children:n})]}):(0,v.jsx)(z.K0,{"aria-label":a,className:O()(vO,vP({},vE,p)),tooltipSide:"left",label:n,onClick:i,icon:(0,v.jsx)("div",{className:vk,children:(0,v.jsx)(vA,{formOpenInTheBackground:h,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,i=e.actionMenuProps,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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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=o[0],l=o[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:O()("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===i?{}:i})})})}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,i=new RegExp("/".concat(vV(n),"(/|$)")),o=new URL(a),s=i.test(o.pathname),l=vh.getState().openWorkspaces.every(function(e){return vt(e.name)});s||(l?vS():(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 v$(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 vU(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v$(Object(r),!0).forEach(function(t){vG(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v$(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 vG(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vK(e){return(vK=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");o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),t&&vq(o,t);var r,n,a,i=(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=vK(o);e=r?Reflect.construct(t,arguments,vK(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 o(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,o),vG(vY(t=i.call(this,e)),"handleRef",function(e){t.el=e}),vG(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}))}),vG(vY(t),"getParcelProps",function(){var e=vU(vU({},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,vU({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(o.prototype,n),a&&vH(o,a),o}();vG(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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,i,o,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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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],h=(r=u.currentWorkspaceGroup,a=(n=vQ((0,g.useState)({}),2))[0],i=n[1],s=(o=vQ((0,g.useState)(r),2))[0],l=o[1],(0,g.useEffect)(function(){s!==r&&l(r)},[r]),(0,g.useEffect)(function(){var e,t=vj(s);return t&&(i(t.getState()),e=t.subscribe(i)),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 m=(0,g.useMemo)(function(){return u&&v0({closeWorkspace:u.closeWorkspace,closeWorkspaceWithSavedChanges:u.closeWorkspaceWithSavedChanges,promptBeforeClosing:u.promptBeforeClosing,setTitle:u.setTitle},c,h,u.additionalProps)},[u,c,h]);return f?(0,v.jsx)(vX,v0({config:f,mountParcel:hJ.mountRootParcel},m),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,i=e.overlay,o=e.showSiderailAndBottomNav,s=e.additionalWorkspaceProps,l=e.actionMenuProps,u=(0,x.useLayoutType)(),c=vb(),d=c.workspaces,f=c.workspaceWindowState,p=c.workspaceGroup,h=null==p?void 0:p.name,m=d[0],y="hidden"===f||null==m,b=null!=(t=null==m?void 0:m.width)?t:i?"wider":"narrow",w=(0,g.useMemo)(function(){return o||h&&!y},[h,y,o]);return(0,x.useBodyScrollLock)(!y&&!(0,x.isDesktop)(u)),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{className:o?"_7sGa-EsounXZYrjH1LvhxA==":"yEXhNSHd7gMVIhwzx4saBg==",children:[(0,v.jsx)("aside",{className:O()(i?"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:O()("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:O()("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:h,isWithinWorkspace:!o,actionMenuProps:l})]})}function v4(e){var t,r=e.workspaceInstance,n=e.additionalWorkspaceProps,a=(0,vR.useTranslation)().t,i=(0,x.useLayoutType)(),o=vb(),s=o.workspaceWindowState,l=o.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]),h=p.canHide,m=void 0!==h&&h,y=p.canMaximize,b=p.currentWorkspaceGroup,w=p.closeWorkspace,S=(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)(i)&&!m&&(0,v.jsx)(z.tD,{"aria-label":(0,V.V)("close","Close"),onClick:function(){return w()},children:(0,v.jsx)(oo,{})}),(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:S}),(0,v.jsx)(x.ExtensionSlot,{name:"workspace-header-type-".concat(r.type,"-slot"),state:S}),(0,v.jsx)(x.ExtensionSlot,{name:"workspace-header-".concat(d,"-slot"),state:S}),(0,x.isDesktop)(i)&&(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,{})}),m&&!u?(0,v.jsx)(z.tD,{"aria-label":(0,V.V)("hide","Hide"),onClick:function(){return vy("hidden")},children:(0,v.jsx)(os,{})}):(0,v.jsx)(z.tD,{"aria-label":(0,V.V)("close","Close"),onClick:function(){return null==w?void 0:w()},children:(0,v.jsx)(oj,{})})]}),"tablet"===i&&m&&(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:O()("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,i,o){try{var s=e[i](o),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 i=e.apply(t,r);function o(e){v9(i,n,a,o,s,"next",e)}function s(e){v9(i,n,a,o,s,"throw",e)}o(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,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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=h1.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 h1.J_.setState(function(r){return gt(ge({},r),{openedGroup:{groupName:e,props:t},openedWindows:[]})}),[2,!0]}})})()}function gi(e){return v7(function(){var t,r,n,a;return gn(this,function(i){switch(i.label){case 0:if(r=(t=h1.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=i.sent(),i.label=2;case 2:if(!a)return[2,!1];i.label=3;case 3:return h1.J_.setState(function(e){return gt(ge({},e),{openedGroup:null,openedWindows:[]})}),[2,!0];case 4:return[2,!0]}})})()}function go(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,i,o,s,l,u,c,d,f,p,h,m,y,v,g,b,x,w,S,j,O,k;return gn(this,function(E){switch(E.label){case 0:if(!(a=h1.J_.getState()).registeredWorkspacesByName[e])throw Error("Unable to launch workspace ".concat(e,". Workspace is not registered"));if(!(i=(0,h1.Ml)(e)))throw Error("Unable to launch workspace ".concat(e,". Workspace is not registered to a workspace window"));if(o=a.openedGroup,s=i.name,!(l=(0,h1.o1)(s)))throw Error("Unable to launch workspace ".concat(e,". Workspace window ").concat(i.name," is not registered to a workspace group"));if(c=(u=(0,h1.YX)(e))>=0,!(o&&(o.groupName!==l.name||!gs(o.props,n))))return[3,2];return[4,gl({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})];case 1:if(E.sent())return h1.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],h=null!=(d=null==(f=a.openedGroup)?void 0:f.props)?d:{},m=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(m||u!==a.openedWindows.length-1)&&h1.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 h1.J_.setState(gt(ge({},a),{openedGroup:{groupName:l.name,props:null!=(g=null==a||null==(x=a.openedGroup)?void 0:x.props)?g:h},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 h1.J_.setState(gt(ge({},a),{openedGroup:{groupName:l.name,props:null!=h?h: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:i.name})];case 10:if(E.sent())return h1.J_.setState(gt(ge({},a),{openedGroup:{groupName:l.name,props:null!=(S=null!=n?n:null==a||null==(j=a.openedGroup)?void 0:j.props)?S:null},openedWindows:[{windowName:s,openedWorkspaces:[gp(e,t)],props:r,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 11:return h1.J_.setState(gt(ge({},a),{openedGroup:{groupName:l.name,props:null!=(O=null!=n?n:null==a||null==(k=a.openedGroup)?void 0:k.props)?O: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=h1.J_.getState(),n=r.openedWindows,a=r.workspaceTitleByWorkspaceName,i=[];switch(e.reason){case"CLOSE_WORKSPACE_GROUP":i=n.flatMap(function(e){return t(e)});break;case"CLOSE_WINDOW":var o=n.find(function(t){return t.windowName===e.windowName});if(!o)throw Error("Window ".concat(e.windowName," not found in opened windows."));i=t(o);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."));i=t(s,e.workspaceName);break;case"CLOSE_OTHER_WINDOWS":i=n.filter(function(t){return t.windowName!==e.windowNameToSpare}).flatMap(function(e){return t(e)})}return 0===i.length?Promise.resolve(!0):new Promise(function(e){var t=mo("workspace2-close-prompt",{onConfirm:function(){t(),e(!0)},onCancel:function(){t(),e(!1)},affectedWorkspaceTitles:i.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),i=gt(ge({},a[n]),{maximized:r});return a[n]=i,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,h1.YX)(t);if(r<0)return e;var n=ge({},e.openedWindows[r]),a=n.openedWorkspaces.findIndex(function(e){return e.workspaceName===t}),i=gr(e.openedWindows);n.openedWorkspaces=n.openedWorkspaces.slice(0,a);var o=e.isMostRecentlyOpenedWindowHidden;if(0===n.openedWorkspaces.length){var s=r===e.openedWindows.length-1;i.splice(r,1),s&&i.length>0&&(o=!1)}else i[r]=n;return gt(ge({},e),{openedWindows:i,isMostRecentlyOpenedWindowHidden:o})},openChildWorkspace:function(e,t,r,n){var a=e.registeredWorkspacesByName[r];if(!a)throw Error('No workspace named "'.concat(r,'" registered'));var i=e.registeredWorkspacesByName[t];if(!i)throw Error('No workspace named "'.concat(t,'" registered'));if(i.window!==a.window)throw Error("Child workspace ".concat(r," does not belong to the same workspace window as parent workspace ").concat(t));var o=e.openedWindows.findIndex(function(e){return e.windowName===a.window});if(-1==o)throw Error("Cannot open child workspace ".concat(r," as window ").concat(a.window," is not opened"));var s=e.openedWindows[o].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==o?gt(ge({},e),{openedWorkspaces:gr(u).concat([gp(r,n)])}):e})}},setHasUnsavedChanges:function(e,t,r){var n=(0,h1.YX)(t);if(n<0)return e;var a=ge({},e.openedWindows[n]),i=a.openedWorkspaces.findIndex(function(e){return e.workspaceName===t});if(i<0)return e;a.openedWorkspaces[i]=gt(ge({},a.openedWorkspaces[i]),{hasUnsavedChanges:r});var o=gr(e.openedWindows);return o[n]=a,gt(ge({},e),{openedWindows:o})},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)(h1.J_,gu)}var gd=function(){return(0,g.useContext)(vW.i)},gf=function(){return Object.keys(h1.J_.getState().registeredWorkspacesByName)};function gp(e,t){return{workspaceName:e,props:null!=t?t:{},hasUnsavedChanges:!1,uuid:(0,v5.A)()}}let gh={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 gm(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,i=e.title,o=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,h=c.openedWindows,m=c.openedGroup,y=c.registeredGroupsByName,b=c.registeredWindowsByName,w=c.registeredWorkspacesByName,S=c.workspaceTitleByWorkspaceName,j=c.setWorkspaceTitle,k=c.isMostRecentlyOpenedWindowHidden,E=gd(),P=E.workspaceName,A=E.isRootWorkspace,D=E.closeWorkspace,C=E.showActionMenu,T=(0,h1.YX)(P),N=h[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(){S[P]!==i&&j(P,i)},[S,P,i,j]),T<0||null==m||null==R)return null;var M=y[m.groupName];if(!M)throw Error("Cannot find registered workspace group ".concat(m.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,$=!!F&&!W,U=N.maximized,H=null!=(t=null==L?void 0:L.width)?t:"narrow",G=Object.values(b).some(function(e){return e.group===m.groupName&&void 0!==e.icon}),K=T<h.length-1||k;return(0,v.jsxs)("div",{className:O()(gh.workspaceOuterContainer,(gm(r={},gh.narrowWorkspace,"narrow"===H),gm(r,gh.widerWorkspace,"wider"===H),gm(r,gh.extraWideWorkspace,"extra-wide"===H),gm(r,gh.isActionMenuOpened,G),r)),children:[(0,v.jsx)("div",{className:O()(gh.workspaceSpacer,gm({},gh.hidden,K))}),(0,v.jsx)("div",{className:O()(gh.workspaceMiddleContainer,(gm(n={},gh.maximized,U),gm(n,gh.hidden,K),gm(n,gh.isRootWorkspace,A),gm(n,gh.showActionMenu,C),n)),children:(0,v.jsxs)("div",{className:O()(gh.workspaceInnerContainer,(gm(a={},gh.maximized,U),gm(a,gh.hidden,K),gm(a,gh.isRootWorkspace,A),a)),children:[(0,v.jsxs)(z.jJ,{"aria-label":(0,V.V)("workspaceHeader"),className:gh.header,children:[(0,v.jsx)(z.ul,{children:i}),(0,v.jsx)("div",{className:gh.overlayHeaderSpacer}),(0,v.jsx)(z.ci,{className:gh.headerButtons,children:(0,x.isDesktop)(u)?(0,v.jsxs)(v.Fragment,{children:[(B||U)&&(0,v.jsx)(z.tD,{"aria-label":U?(0,V.V)("minimize"):(0,V.V)("maximize"),onClick:function(){return d(I,!U)},children:U?(0,v.jsx)(vM,{}):(0,v.jsx)(vI,{})}),$&&(0,v.jsx)(z.tD,{"aria-label":(0,V.V)("hide"),onClick:function(){return f()},children:(0,v.jsx)(os,{})}),!W&&(0,v.jsx)(z.tD,{"aria-label":(0,V.V)("close"),onClick:function(){return D({closeWindow:!0})},children:(0,v.jsx)(oj,{})})]}):(0,v.jsxs)(v.Fragment,{children:[$&&(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?gi():D({closeWindow:!0})},children:(0,v.jsx)(oj,{})})]})})]}),(0,v.jsx)("div",{className:O()(gh.workspaceContent),children:o})]})})]})};let gv="qqmzT31QIsSI+wV2XD8ZvQ==",gg="hNTbRRUHI63Xwi5s2L+Nwg==",gb="xQpVN+cyEtB1NEITUSyMjA==",gx="zgChpHyuVCB97kNP8OFlUQ==";function gw(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function gS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gj(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 gO=function(e){var t,r,n,a=e.icon,i=e.label,o=e.tagContent,s=e.workspaceToLaunch,l=e.onBeforeWorkspaceLaunch,u=(0,x.useLayoutType)(),c=gc(),d=c.openedWindows,f=c.restoreWindow,p=c.hideWindow,h=c.isMostRecentlyOpenedWindowHidden,m=(0,g.useContext)(x.ComponentContext).extension,y=d.findIndex(function(e){return e.windowName===(null==m?void 0:m.extensionId)}),b=d[y],w=null!=b,S=w&&(y<d.length-1||h),j=w&&!S,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,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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 S?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,go(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 i=e.apply(t,r);function o(e){gw(i,n,a,o,s,"next",e)}function s(e){gw(i,n,a,o,s,"throw",e)}o(void 0)})})()};return"tablet"===u||"phone"===u?(0,v.jsxs)(z.$n,{className:O()(gv,(gS(r={},gb,w&&!j),gS(r,gx,j),r)),variant:"ghost",onClick:E,role:"button",tabIndex:0,children:[(0,v.jsx)("span",{className:gg,children:(0,v.jsx)(gj,{hasUnsavedChanges:k,getIcon:a,tagContent:o})}),(0,v.jsx)("span",{children:i})]}):(0,v.jsx)(z.K0,{"aria-label":i,className:O()(gv,(gS(n={},gb,w&&!j),gS(n,gx,j),n)),tooltipSide:"left",label:i,onClick:E,icon:(0,v.jsx)("div",{className:gg,children:(0,v.jsx)(gj,{hasUnsavedChanges:k,getIcon:a,tagContent:o})})})},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 gi()},label:(0,V.V)("close"),icon:(0,v.jsx)(oj,{})}),(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,i,o){try{var s=e[i](o),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 i=e.apply(t,r);function o(e){gC(i,n,a,o,s,"next",e)}function s(e){gC(i,n,a,o,s,"throw",e)}o(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,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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,i=e.isLeafWorkspace,o=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,i,o,s,l;return gR(this,function(c){switch(c.label){case 0:if(a=void 0!==(t=e.closeWindow)&&t,o=void 0!==(i=e.discardUnsavedChanges)&&i,!a)return[3,3];if(s=o)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=o)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,i,o;return gR(this,function(s){switch(s.label){case 0:if(a=r.workspaceName,-1===(o=(i=n.openedWorkspaces).findIndex(function(e){return e.workspaceName===a})))return[2];if(o===i.length-1||!i.slice(o+1).some(function(e){return e.hasUnsavedChanges}))return[3,2];return[4,gl({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:n.windowName,workspaceName:i[o+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:i,windowName:n.windowName,showActionMenu:o}},[r,u,l,n]);if(!t){var f,p,h=h1.J_.getState().registeredWorkspacesByName[r.workspaceName],m=h&&h.window?h.window:void 0,y=h1.J_.getState().registeredWindowsByName,b=m?y[m]: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:O()(gh.workspaceOuterContainer,(gN(f={},gh.narrowWorkspace,"narrow"===x),gN(f,gh.widerWorkspace,"wider"===x),gN(f,gh.extraWideWorkspace,"extra-wide"===x),gN(f,gh.isActionMenuOpened,w),f)),children:[(0,v.jsx)("div",{className:gh.workspaceSpacer}),(0,v.jsx)("div",{className:O()(gh.workspaceMiddleContainer,(gN(p={},gh.isRootWorkspace,a),gN(p,gh.showActionMenu,o),p)),children:(0,v.jsx)("div",{className:O()(gh.workspaceInnerContainer,gN({},gh.isRootWorkspace,a)),children:(0,v.jsx)(z.Ou,{className:gh.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:hJ.mountRootParcel},d),r.workspaceName)};let gI=function(e){var t,r=e.openedWindow,n=e.showActionMenu,a=r.openedWorkspaces,i=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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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.")}(),o=i[0],s=i[1],l=h1.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:o&&o[t]?o[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,mP.createRoot)(e).render((0,v.jsx)(gF,{}))}function gF(){var e,t=gc(),r=t.openedGroup,n=t.openedWindows,a=t.registeredGroupsByName,i=t.registeredWindowsByName;if((0,g.useEffect)(function(){return(0,gk.mI)("before-page-changed",function(e){var t=e.newPage,n=e.cancelNavigation,i=e.oldUrl,o=e.newUrl;if(r){if(t)return void n(gi().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,i=new RegExp(e),o=n.match(i),s=a.match(i);if(!o||!s)return!0;if(o.length>1)return!o.slice(1).every(function(e,t){return e===s[t+1]});return!1}catch(e){return!0}}(l,i,o)&&n(gi().then(function(e){return!e}))}})},[r,a]),!r)return null;var o=a[r.groupName],s=n.some(function(e){return e.maximized}),l=o.name,u=Object.values(i).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:O()("NKC0QXgF9MasMTLQ5F8+4A==",(g_(e={},"L4kodgkz2RvEM7MarumhRA==",o.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:o,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,g$,gU,gH,gG,gK,gq,gY,gX,gZ,gQ,gJ,g0,g1,g2,g3,g4,g5,g6,g8,g9,g7,be,bt,br,bn,ba,bi,bo,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,bh=Math.cos,bm=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},bS=function(){return"u">typeof window},bj=function(e){return bv(e)||by(e)},bO="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},b$={suppressEvents:!0,kill:!1},bU={suppressEvents:!0},bH={},bG=[],bK={},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=bG.length,n=bG.slice(0);for(e=0,bK={},bG.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){bG.length&&!g9&&b8(),e.render(t,r,n||!!(g9&&t<0&&b9(e))),bG.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},xi=function(e,t){var r,n={};for(r in e)r in t||(n[r]=e[r]);return n},xo=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 i,o=e[n];if(a)for(i=t[a];o&&o[a]>i;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=o,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,i=t._next;a?a._next=i:e[r]===t&&(e[r]=i),i?i._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(b$):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},xh=function(e){return e._repeat?xm(e._tTime,e=e.duration()+e._rDelay)*e:0},xm=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),xO(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)},xS=function(e,t,r,n,a){return(wj(e,t,a),e._initted)?!r&&e._pt&&!g9&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&bi!==x6.frame?(bG.push(e),e._lazy=[a,n],1):void 0:1},xj=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(0>r.rawTime()||e(r))},xO=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},xk=function(e,t,r,n){var a,i,o,s=e.ratio,l=t<0||!t&&(!e._start&&xj(e)&&!(!e._initted&&xO(e))||(e._ts<0||e._dp._ts<0)&&!xO(e))?0:1,u=e._rDelay,c=0;if(u&&e._repeat&&(i=xm(c=xR(0,e._tDur,t),u),e._yoyo&&1&i&&(l=1-l),i!==xm(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&&xS(e,t,n,r,c))return;for(o=e._zTime,e._zTime=t||1e-8*!!r,r||(r=t&&!o),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,i=b4(t)||0,o=e._tTime/e._tDur;return o&&!n&&(e._time*=i/e._dur),e._dur=i,e._tDur=a?a<0?1e10:b4(i*(a+1)+e._rDelay*a):i,o>0&&!n&&xg(e,e._tTime=e._tDur*o),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,i,o,s=t.labels,l=t._recent||xD,u=t.duration()>=1e8?l.endTime(!1):t._dur;return by(r)&&(isNaN(r)||r in s)?(i=r.charAt(0),o="%"===r.substr(-1),a=r.indexOf("="),"<"===i||">"===i)?(a>=0&&(r=r.replace(/=/,"")),("<"===i?l._start:l.endTime(l._repeat>=0))+(parseFloat(r.substr(1))||0)*(o?(a<0?l:n).totalDuration()/100:1)):a<0?(r in s||(s[r]=u),s[r]):(i=parseFloat(r.charAt(a-1)+r.substr(a+1)),o&&n&&(i=i/100*(bk(n)?n[0]:n).totalDuration()),a>1?e(t,r.substr(0,a-1),n)+i:u+i):null==r?u:+r},xT=function(e,t,r){var n,a,i=bg(t[1]),o=(i?2:1)+(e<2?0:1),s=t[o];if(i&&(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[o-1]}return new wC(t[0],s,t[o+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=wi(t.ease),n=t.from||0,a=parseFloat(t.base)||0,i={},o=n>0&&n<1,s=isNaN(n)||o,l=t.axis,u=n,c=n;return by(n)?u=c=({center:.5,edges:.5,end:1})[n]||0:!o&&s&&(u=n[0],c=n[1]),function(e,o,d){var f,p,h,m,y,v,g,b,x,w=(d||t).length,S=i[w];if(!S){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,S=i[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++)h=v%x-f,m=p-(v/x|0),S[v]=y=l?Math.abs("y"===l?m:h):bp(h*h+m*m),y>g&&(g=y),y<b&&(b=y);"random"===n&&xB(S),S.max=g-b,S.min=b,S.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),S.b=w<0?a-w:a,S.u=xM(t.amount||t.each)||0,r=r&&w<0?wa(r):r}return w=(S[e]-S.min)/S.max||0,b4(S.b+(r?r(w):w)*S.v)+S.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,i,o=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-o)*a+(i=e[c].y-s)*i:Math.abs(e[c]-o))<l&&(l=a,u=c);return u=!r||l<=r?e[u]:t,n||u===t||bg(t)?u:u+xM(t)}:xz(e))},x$=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})},xU=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 x$(t?r:+r[0],t?0:+r[1],+r[2]||1e-5)})},xG=function(e,t,r,n,a){var i=t-e,o=n-r;return xN(a,function(t){return r+((t-e)/i*o||0)})},xK=function(e,t,r){var n,a,i,o=e.labels,s=1e8;for(n in o)(a=o[n]-t)<0==!!r&&a&&s>(a=Math.abs(a))&&(i=n,s=a);return i},xq=function(e,t,r){var n,a,i,o=e.vars,s=o[t],l=g7,u=e._ctx;if(s)return n=o[t+"Params"],a=o.callbackScope||e,r&&bG.length&&b8(),u&&(g7=u),i=n?s.apply(a,n):s.call(a),g7=l,i},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,bS()||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},i={targetTest:0,get:0,getSetter:wI,aliases:{},register:0};if(x8(),e!==n){if(bq[t])return;xr(n,xr(xi(e,a),i)),xn(n.prototype,xn(a,xi(e,i))),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,wU)}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,i,o,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+(i=e.charAt(3))+i+(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 o=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(o+1/3,n,a),p[1]=xJ(o,n,a),p[2]=xJ(o-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,i=p[2]/255))+(c=Math.min(n,a,i)))/2,u===c?o=s=0:(d=u-c,s=l>.5?d/(2-u-c):d/(u+c),o=(u===n?(a-i)/d+6*(a<i):u===a?(i-n)/d+2:(n-a)/d+4)*60),p[0]=~~(o+.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,i,o,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&&(i=x1(e),(n=r.c).join(s)!==i.c.join(s)))for(o=(a=e.replace(x3,"1").split(bC)).length-1;c<o;c++)s+=a[c]+(~n.indexOf(c)?l.shift()||u+"0,0,0,0)":(i.length?i:l.length?l:r).shift());if(!a)for(o=(a=e.split(x3)).length-1;c<o;c++)s+=a[c]+l[c];return s+a[o]},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,i,o=gX()-g0,s=!0===t;if((o>gZ||o<0)&&(gJ+=o-gQ),g0+=o,((r=(a=g0-gJ)-g2)>0||s)&&(i=++gK.frame,gq=a-1e3*gK.time,gK.time=a/=1e3,g2+=r+(r>=g1?4:g1-r),n=1),s||(gU=gH(e)),n)for(gY=0;gY<g3.length;gY++)g3[gY](a,gq,i,t)},gK={time:0,frame:0,tick:function(){g4(!0)},deltaRatio:function(e){return gq/(1e3/(e||60))},wake:function(){ba&&(!br&&bS()&&(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)),gG="u">typeof requestAnimationFrame&&requestAnimationFrame,gU&&gK.sleep(),gH=gG||function(e){return setTimeout(e,g2-1e3*gK.time+1|0)},bs=1,g4(2))},sleep:function(){(gG?cancelAnimationFrame:clearTimeout)(gU),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*gK.time+g1},add:function(e,t,r){var n=t?function(t,r,a,i){e(t,r,a,i),gK.remove(n)}:e;return gK.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={},i=e.substr(1,e.length-3).split(":"),o=i[0],s=1,l=i.length;s<l;s++)r=i[s],t=s!==l-1?r.lastIndexOf(","):r.length,n=r.substr(0,t),a[o]=isNaN(n)?n.replace(we,"").trim():+n,o=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)}},wi=function(e,t){return e&&(bv(e)?e:x9[e]||wn(e))||t},wo=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,i={easeIn:t,easeOut:r,easeInOut:n};return b2(e,function(e){for(var t in x9[e]=bI[e]=i,x9[a=e.toLowerCase()]=r,i)x9[a+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=x9[e+"."+t]=i[t]}),i},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,i=(n||(t?.3:.45))/(r<1?r:1),o=i/bc*(Math.asin(1/a)||0),s=function(e){return 1===e?1:a*Math.pow(2,-10*e)*bm((e-o)*i)+1},l="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:ws(s);return i=bc/i,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;wo(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,wo("Elastic",wl("in"),wl("out"),wl()),wh=2*(wp=1/2.75),wm=2.5*wp,wo("Bounce",function(e){return 1-wy(1-e)},wy=function(e){return e<wp?7.5625*e*e:e<wh?7.5625*Math.pow(e-1.5/2.75,2)+.75:e<wm?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*Math.pow(e-2.625/2.75,2)+.984375}),wo("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),wo("Circ",function(e){return-(bp(1-e*e)-1)}),wo("Sine",function(e){return 1===e?1:-bh(e*bd)+1}),wo("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,i=.99999999;return function(e){return((n*xR(0,i,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+xh(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)+xh(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?xm(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=bU);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,i=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?i():t._prom=i})},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,xo(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,i,o){return r.duration=t,r.stagger=r.stagger||n,r.onComplete=i,r.onCompleteParams=o,r.parent=this,new wC(e,r,xC(this,a)),this},r.staggerFrom=function(e,t,r,n,a,i,o){return r.runBackwards=1,xo(r).immediateRender=bw(r.immediateRender),this.staggerTo(e,t,r,n,a,i,o)},r.staggerFromTo=function(e,t,r,n,a,i,o,s){return n.startAt=r,xo(n).immediateRender=bw(n.immediateRender),this.staggerTo(e,t,n,a,i,o,s)},r.render=function(e,t,r){var n,a,i,o,s,l,u,c,d,f,p,h,m=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(m!==this._time&&v&&(g+=this._time-m,e+=this._time-m),n=g,d=this._start,l=!(c=this._ts),b&&(v||(m=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?(o=this._repeat,n=v):((o=~~(f=b4(g/s)))&&o===f&&(n=v,o--),n>v&&(n=v)),f=xm(this._tTime,s),!m&&this._tTime&&f!==o&&this._tTime-f*s-this._dur<=0&&(f=o),p&&1&o&&(n=v-n,h=1),o!==f&&!this._lock){var x=p&&1&f,w=x===(p&&1&o);if(o<f&&(x=!x),m=x?0:g%v?v:g,this._lock=1,this.render(m||(h?0:b4(o*s)),t,!v)._lock=0,this._tTime=g,!t&&this.parent&&xq(this,"onRepeat"),this.vars.repeatRefresh&&!h&&(this.invalidate()._lock=1,f=o),m&&m!==this._time||!this._ts!==l||this.vars.onRepeat&&!this.parent&&!this._act||(v=this._dur,y=this._tDur,w&&(this._lock=2,m=x?v:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!h&&this.invalidate()),this._lock=0,!this._ts&&!l))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=xE(this,b4(m),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,m=0),!m&&g&&v&&!t&&!f&&(xq(this,"onStart"),this._tTime!==g))return this;if(n>=m&&e>=0)for(a=this._first;a;){if(i=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,i&&(g+=this._zTime=-1e-8);break}}a=i}else{a=this._last;for(var S=e<0?e:n;a;){if(i=a._prev,(a._act||S<=a._end)&&a._ts&&u!==a){if(a.parent!==this)return this.render(e,t,r);if(a.render(a._ts>0?(S-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(S-a._start)*a._ts,t,r||g9&&b9(a)),n!==this._time||!this._ts&&!l){u=0,i&&(g+=this._zTime=S?-1e-8:1e-8);break}}a=i}}if(u&&!t&&(this.pause(),u.render(n>=m?0:-1e-8)._zTime=n>=m?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&&m)&&(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&&!m||!g&&!m&&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=[],i=this._first;i;)i._start>=n&&(gB(i,wC)?t&&a.push(i):(r&&a.push(i),e&&a.push.apply(a,i.getChildren(!0,t,r)))),i=i._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),i=this._first,o=bg(t);i;)gB(i,wC)?b6(i._targets,a)&&(o?(!wv||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(r=i.getTweensOf(a,t)).length&&n.push.apply(n,r),i=i._next;return n},r.tweenTo=function(e,t){t=t||{};var r,n=this,a=xC(n,e),i=t,o=i.startAt,s=i.onStart,l=i.onStartParams,u=i.immediateRender,c=wC.to(n,xr({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:t.duration||Math.abs((a-(o&&"time"in o?o.time:n._time))/n.timeScale())||1e-8,onStart:function(){if(n.pause(),!r){var e=t.duration||Math.abs((a-(o&&"time"in o?o.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),xK(this,xC(this,e))},r.previousLabel=function(e){return void 0===e&&(e=this._time),xK(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,i=this.labels;for(e=b4(e);a;)a._start>=r&&(a._start+=e,a._end+=e),a=a._next;if(t)for(n in i)i[n]>=r&&(i[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,i=this._last,o=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;i;)t=i._prev,i._dirty&&i.totalDuration(),(r=i._start)>o&&this._sort&&i._ts&&!this._lock?(this._lock=1,xx(this,i,r-i._delay,1)._lock=0):o=r,r<0&&i._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),o=0),i._end>a&&i._ts&&(a=i._end),i=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)),bi=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,wh,wm,wy,wv,wg,wb=function(e,t,r,n,a,i,o){var s,l,u,c,d,f,p,h,m=new wU(this._pt,e,t,0,1,wF,null,a),y=0,v=0;for(m.b=r,m.e=n,r+="",n+="",(p=~n.indexOf("random("))&&(n=xH(n)),i&&(i(h=[r,n],e,t),r=h[0],n=h[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,m._pt={_next:m._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 m.c=y<n.length?n.substring(y,n.length):"",m.fp=o,(bN.test(n)||p)&&(m.e=0),this._pt=m,m},wx=function(e,t,r,n,a,i,o,s,l,u){bv(n)&&(n=n(a||0,e,i));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 wU(this._pt,e,t,+f||0,n-(f||0),"boolean"==typeof d?wL:w_,0,p),l&&(c.fp=l),o&&c.modifier(o,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)||bO(e))return by(e)?wP(e,a,t,r,n):e;var i,o={};for(i in e)o[i]=wP(e[i],a,t,r,n);return o},wS=function(e,t,r,n,a,i){var o,s,l,u;if(bq[e]&&!1!==(o=new bq[e]).init(a,o.rawVars?t[e]:ww(t[e],n,a,i,r),r,n,i)&&(r._pt=s=new wU(r._pt,a,e,0,1,o.render,o,0,o.priority),r!==bo))for(l=r._ptLookup[r._targets.indexOf(a)],u=o._props.length;u--;)l[o._props[u]]=s;return o},wj=function e(t,r,n){var a,i,o,s,l,u,c,d,f,p,h,m,y,v=t.vars,g=v.ease,b=v.startAt,x=v.immediateRender,w=v.lazy,S=v.onUpdate,j=v.runBackwards,O=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||O;if(!R||k&&g||(g="none"),t._ease=wi(g,bu.ease),t._rEase=M&&(wi(M)||t._ease),t._from=!R&&!!v.runBackwards,t._from&&(t.ratio=1),!R||k&&!v.stagger){if(m=(d=D[0]?b0(D[0]).harness:0)&&v[d.prop],a=xi(v,bH),A&&(A._zTime<0&&A.progress(1),r<0&&j&&x&&!E?A.render(-1,!0):A.revert(j&&P?b$: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:S&&function(){return xq(t,"onUpdate")},stagger:0},b))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(g9||!x&&!E)&&t._startAt.revert(b$),x&&P&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(j&&P&&!A)if(r&&(x=!1),o=xr({overwrite:!1,data:"isFromStart",lazy:x&&!A&&bw(w),immediateRender:x,stagger:0,parent:C},a),m&&(o[d.prop]=m),xc(t._startAt=wC.set(D,o)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(g9?t._startAt.revert(b$):t._startAt.render(-1,!0)),t._zTime=r,x){if(!r)return}else e(t._startAt,1e-8,1e-8);for(i=0,t._pt=t._ptCache=0,w=P&&bw(w)||w&&!P;i<D.length;i++){if(c=(l=D[i])._gsap||bJ(D)[i]._gsap,t._ptLookup[i]=p={},bK[c.id]&&bG.length&&b8(),h=T===D?i:T.indexOf(l),d&&!1!==(f=new d).init(l,m||a,t,h,T)&&(t._pt=s=new wU(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||m)for(o in a)bq[o]&&(f=wS(o,a,t,h,l,T))?f.priority&&(u=1):p[o]=s=wx.call(t,l,o,"get",a[o],h,T,0,v.stringFilter);t._op&&t._op[i]&&t.kill(l,t._op[i]),N&&t._pt&&(wv=t,be.killTweensOf(l,p,t.globalTime(r)),y=!t.parent,wv=0),t._pt&&w&&(bK[c.id]=1)}u&&w$(t),t._onInit&&t._onInit(t)}t._onUpdate=S,t._initted=(!t._op||t._pt)&&!y,k&&r<=0&&R.render(1e8,!0,!0)},wO=function(e,t,r,n,a,i,o,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",wj(e,o),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)+i*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,i,o=e[0]?b0(e[0]).harness:0,s=o&&o.aliases;if(!s)return t;for(n in r=xn({},t),s)if(n in r)for(a=(i=s[n].split(",")).length;a--;)r[i[a]]=r[n];return r},wE=function(e,t,r,n){var a,i,o=t.ease||n||"power1.inOut";if(bk(t))i=r[e]||(r[e]=[]),t.forEach(function(e,r){return i.push({t:r/(t.length-1)*100,v:e,e:o})});else for(a in t)i=r[a]||(r[a]=[]),"ease"===a||i.push({t:parseFloat(e),v:t[a],e:o})},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 i,o,s,l,u,c,d,f,p=e.call(this,a?r:xo(r))||this,h=p.vars,m=h.duration,y=h.delay,v=h.immediateRender,g=h.stagger,b=h.overwrite,x=h.keyframes,w=h.defaults,S=h.scrollTrigger,j=r.parent||be,O=(bk(t)||bO(t)?bg(t[0]):"length"in r)?[t]:xL(t);if(p._targets=O.length?bJ(O):bB("GSAP target "+t+" not found. https://gsap.com",!bl.nullTargetWarn)||[],p._ptLookup=[],p._overwrite=b,x||g||bj(m)||bj(y)){var k=(r=p.vars).easeReverse||r.yoyoEase;if((i=p.timeline=new wf({data:"nested",defaults:w||{},targets:j&&"nested"===j.data?j.vars.targets:O})).kill(),i.parent=i._dp=gV(p),i._start=0,g||bj(m)||bj(y)){if(l=O.length,d=g&&xV(g),bx(g))for(u in g)~wA.indexOf(u)&&(f||(f={}),f[u]=g[u]);for(o=0;o<l;o++)(s=xi(r,wD)).stagger=0,k&&(s.easeReverse=k),f&&xn(s,f),c=O[o],s.duration=+wP(m,gV(p),o,c,O),s.delay=(+wP(y,gV(p),o,c,O)||0)-p._delay,!g&&1===l&&s.delay&&(p._delay=y=s.delay,p._start+=y,s.delay=0),i.to(c,s,d?d(o,c,O):0),i._ease=x9.none;i.duration()?m=y=0:p.timeline=0}else if(x){xo(xr(i.vars.defaults,{ease:"none"})),i._ease=wi(x.ease||r.ease||"none");var E,P,A,D=0;if(bk(x))x.forEach(function(e){return i.to(O,e,">")}),i.duration();else{for(u in s={},x)"ease"===u||"easeEach"===u||wE(u,x[u],s,x.easeEach);for(u in s)for(o=0,E=s[u].sort(function(e,t){return e.t-t.t}),D=0;o<E.length;o++)(A={ease:(P=E[o]).e,duration:(P.t-(o?E[o-1].t:0))/100*m})[u]=P.v,i.to(O,A,D),D+=A.duration;i.duration()<m&&i.to({},{duration:m-i.duration()})}}m||p.duration(m=i.duration())}else p.timeline=0;return!0!==b||g8||(wv=gV(p),be.killTweensOf(O),wv=0),xx(j,gV(p),n),r.reversed&&p.reverse(),r.paused&&p.paused(!0),(v||!m&&!x&&p._start===b4(j._time)&&bw(v)&&function e(t){return!t||t._ts&&e(t.parent)}(gV(p))&&"nested"!==j.data)&&(p._tTime=-1e-8,p.render(Math.max(0,-y)||0)),S&&xw(gV(p),S),p}gz(t,e);var r=t.prototype;return r.render=function(e,t,r){var n,a,i,o,s,l,u,c,d=this._time,f=this._tDur,p=this._dur,h=e<0,m=e>f-1e-8&&!h?f:e<1e-8?0:e;if(p){if(m!==this._tTime||!e||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==h||this._lazy){if(n=m,c=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&h)return this.totalTime(100*o+e,t,r);if(n=b4(m%o),m===f?(i=this._repeat,n=p):(i=~~(s=b4(m/o)))&&i===s?(n=p,i--):n>p&&(n=p),(l=this._yoyo&&1&i)&&(n=p-n),s=xm(this._tTime,o),n===d&&!r&&this._initted&&i===s)return this._tTime=m,this;i!==s&&this.vars.repeatRefresh&&!l&&!this._lock&&n!==o&&this._initted&&(this._lock=r=1,this.render(b4(o*i),!0).invalidate()._lock=0)}if(!this._initted){if(xS(this,h?e:n,r,t,m))return this._tTime=0,this;if(d!==this._time&&!(r&&this.vars.repeatRefresh&&i!==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=m,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!d&&m&&!t&&!s&&(xq(this,"onStart"),this._tTime!==m))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&&(h&&xp(this,e,t,r),xq(this,"onUpdate")),this._repeat&&i!==s&&this.vars.onRepeat&&!t&&this.parent&&xq(this,"onRepeat"),(m===this._tDur||!m)&&this._tTime===m&&(h&&!this._onUpdate&&xp(this,e,!0,!0),(e||!p)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&xc(this,1),!t&&!(h&&!d)&&(m||d||l)&&(xq(this,m===f?"onComplete":"onReverseComplete",!0),this._prom&&!(m<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 i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||wj(this,i),wO(this,e,t,r,n,this._ease(i/this._dur),i,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,i,o,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,o=a,i={}):(i=n[u]=n[u]||{},o=t),o)(l=a&&a[s])&&("kill"in l.d&&!0!==l.d.kill(s)||xu(this,l,"_pt"),delete a[s]),"all"!==i&&(i[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,i=this._pt;i;)a=i._next,i.p===n&&i.modifier(e,t,r),i=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)},w$=function(e){for(var t,r,n,a,i=e._pt;i;){for(t=i._next,r=n;r&&r.pr>i.pr;)r=r._next;(i._prev=r?r._prev:a)?i._prev._next=i:n=i,(i._next=r)?r._prev=i:a=i,i=t}e._pt=n},wU=function(){function e(e,t,r,n,a,i,o,s,l){this.t=t,this.s=n,this.c=a,this.p=r,this.r=i||w_,this.d=o||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=[],wG={},wK=[],wq=0,wY=0,wX=function(e){return(wG[e]||wK).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,i,o=e.queries,s=e.conditions;for(n in o)(r=bt.matchMedia(o[n]).matches)&&(a=1),r!==s[n]&&(s[n]=r,i=1);i&&(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,i=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=i,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(),i=r.data.length;i--;)"isFlip"===(n=r.data[i]).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)}),i=r.data.length;i--;)gB(n=r.data[i],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 o=wH.length;o--;)wH[o].id===this.id&&wH.splice(o,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,i,o=new wQ(0,r||this.scope),s=o.conditions={};for(a in g7&&!o.selector&&(o.selector=g7.selector),this.contexts.push(o),t=o.add("onMatch",t),o.queries=e,e)"all"===a?i=1:(n=bt.matchMedia(e[a]))&&(0>wH.indexOf(o)&&wH.push(o),(s[a]=n.matches)&&(i=1),n.addListener?n.addListener(wZ):n.addEventListener("change",wZ));return i&&t(o,function(e){return o.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,i=r?xt:xe;return"native"===r&&(r=""),e?t?i((bq[t]&&bq[t].get||a)(e,t,r,n)):function(t,r,n){return i((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 i=bq[t],o=b0(e),s=o.harness&&(o.harness.aliases||{})[t]||t,l=i?function(t){var n=new i;bo._pt=0,n.init(e,r?t+r:t,bo,0,[e]),n.render(1,n),bo._pt&&wB(1,bo)}:o.set(e,s);return i?l:function(t){return l(e,s,r?t+r:t,o,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||{})),i=function(e,r,n){return a.resetTo(t,e,r,n)};return i.tween=a,i},isTweening:function(e){return be.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=wi(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,i=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)},i&&(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]=wi(t)},parseEase:function(e,t){return arguments.length?wi(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=wG[e]||(wG[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=wG[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)?xU(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,i=2*a;return bk(t)?xU(t,e(0,t.length-1),r):xN(n,function(e){return e=(i+(e-t)%i)%i||0,t+(e>a?i-e:e)})},distribute:xV,random:x$,snap:xW,normalize:function(e,t,r){return xG(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:xG,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 i=isNaN(t+r)?0:function(e){return(1-e)*t+e*r};if(!i){var o,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--,i=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(o in r)wx.call(f,t,o,"get",r[o]);i=function(e){return wB(e,f)||(d?t.p:t)}}}return xN(n,i)},shuffle:xB},install:bL,effects:bY,ticker:x6,updateRoot:wf.updateRoot,plugins:bq,globalTimeline:be,core:{PropTween:wU,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),bo=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,i=e._targets;for(r in t)for(n=i.length;n--;)(a=e._ptLookup[n][r])&&(a=a.d)&&(a._pt&&(a=w1(a,r)),a&&a.modifier&&a.modifier(t[r],e,i[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 i,o,s;for(i in this.tween=r,t)s=e.getAttribute(i)||"",(o=this.add(e,"setAttribute",(s||0)+"",t[i],n,a,0,0,i)).op=i,o.b=s,this._props.push(i)},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,bS()&&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,Se,St,Sr,Sn={},Sa=180/Math.PI,Si=Math.PI/180,So=Math.atan2,Ss=/([A-Z])/g,Sl=/(left|right|width|margin|padding|x)/i,Su=/[\s,\(]\S/,Sc={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Sd=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Sf=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)},Sp=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)},Sh=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)},Sm=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},Sy=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Sv=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},Sg=function(e,t,r){return e.style[t]=r},Sb=function(e,t,r){return e.style.setProperty(t,r)},Sx=function(e,t,r){return e._gsap[t]=r},Sw=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},SS=function(e,t,r,n,a){var i=e._gsap;i.scaleX=i.scaleY=r,i.renderTransform(a,i)},Sj=function(e,t,r,n,a){var i=e._gsap;i[t]=r,i.renderTransform(a,i)},SO="transform",Sk=SO+"Origin",SE=function e(t,r){var n=this,a=this.target,i=a.style,o=a._gsap;if(t in Sn&&i){if(this.tfm=this.tfm||{},"transform"===t)return Sc.transform.split(",").forEach(function(t){return e.call(n,t,r)});if(~(t=Sc[t]||t).indexOf(",")?t.split(",").forEach(function(e){return n.tfm[e]=SU(a,e)}):this.tfm[t]=o.x?o[t]:SU(a,t),t===Sk&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(SO)>=0)return;o.svg&&(this.svgo=a.getAttribute("data-svg-origin"),this.props.push(Sk,r,"")),t=SO}(i||r)&&this.props.push(t,r,i[t])},SP=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},SA=function(){var e,t,r=this.props,n=this.target,a=n.style,i=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(Ss,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)i[t]=this.tfm[t];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(e=St())&&e.isStart||a[SO]||(SP(a),i.zOrigin&&a[Sk]&&(a[Sk]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},SD=function(e,t){var r={target:e,props:[],revert:SA,save:SE};return e._gsap||w4.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return r.save(e)}),r},SC=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)},ST=function e(t,r,n){var a=getComputedStyle(t);return a[r]||a.getPropertyValue(r.replace(Ss,"-$1").toLowerCase())||a.getPropertyValue(r)||!n&&e(t,SR(r)||r,1)||""},SN="O,Moz,ms,Ms,Webkit".split(","),SR=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--&&!(SN[a]+e in n););return a<0?null:(3===a?"ms":a>=0?SN[a]:"")+e},SM=function(){"u">typeof window&&window.document&&(w8=(w6=window.document).documentElement,w7=SC("div")||{style:{}},SC("div"),Sk=(SO=SR(SO))+"Origin",w7.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Sr=!!SR("perspective"),St=w4.core.reverting,w9=1)},SI=function(e){var t,r=e.ownerSVGElement,n=SC("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},S_=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},SL=function(e){var t,r;try{t=e.getBBox()}catch(n){t=SI(e),r=1}return t&&(t.width||t.height)||r||(t=SI(e)),!t||t.width||t.x||t.y?t:{x:+S_(e,["x","cx","x1"])||0,y:+S_(e,["y","cy","y1"])||0,width:0,height:0}},SF=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&SL(e))},SB=function(e,t){if(t){var r,n=e.style;t in Sn&&t!==Sk&&(t=SO),n.removeProperty?(("ms"===(r=t.substr(0,2))||"webkit"===t.substr(0,6))&&(t="-"+t),n.removeProperty("--"===r?t:t.replace(Ss,"-$1").toLowerCase())):n.removeAttribute(t)}},SV=function(e,t,r,n,a,i){var o=new wU(e._pt,t,r,0,1,i?Sv:Sy);return e._pt=o,o.b=n,o.e=a,e._props.push(r),o},Sz={deg:1,rad:1,turn:1},SW={grid:1,flex:1},S$=function e(t,r,n,a){var i,o,s,l,u=parseFloat(n)||0,c=(n+"").trim().substr((u+"").length)||"px",d=w7.style,f=Sl.test(r),p="svg"===t.tagName.toLowerCase(),h=(p?"client":"offset")+(f?"Width":"Height"),m="px"===a,y="%"===a;if(a===c||!u||Sz[a]||Sz[c])return u;if("px"===c||m||(u=e(t,r,n,"px")),l=t.getCTM&&SF(t),(y||"%"===c)&&(Sn[r]||~r.indexOf("adius")))return i=l?t.getBBox()[f?"width":"height"]:t[h],b3(y?u/i*100:u/100*i);if(d[f?"width":"height"]=100+(m?c:a),o="rem"!==a&&~r.indexOf("adius")||"em"===a&&t.appendChild&&!p?t:t.parentNode,l&&(o=(t.ownerSVGElement||{}).parentNode),o&&o!==w6&&o.appendChild||(o=w6.body),(s=o._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,i=t[h],v?t.style[r]=v:SB(t,r)}else(y||"%"===c)&&!SW[ST(o,"display")]&&(d.position=ST(t,"position")),o===t&&(d.position="static"),o.appendChild(w7),i=w7[h],o.removeChild(w7),d.position="absolute";return f&&y&&((s=b0(o)).time=x6.time,s.width=o[h]),b3(m?i*u/100:i&&u?100/i*u:0)},SU=function(e,t,r,n){var a;return w9||SM(),t in Sc&&"transform"!==t&&~(t=Sc[t]).indexOf(",")&&(t=t.split(",")[0]),Sn[t]&&"transform"!==t?(a=S2(e,n),a="transformOrigin"!==t?a[t]:a.svg?a.origin:S3(ST(e,Sk))+" "+a.zOrigin+"px"):(!(a=e.style[t])||"auto"===a||n||~(a+"").indexOf("calc("))&&(a=SY[t]&&SY[t](e,t,r)||ST(e,t)||b1(e,t)||+("opacity"===t)),r&&!~(a+"").trim().indexOf(" ")?S$(e,t,a,r)+r:a},SH=function(e,t,r,n){if(!r||"none"===r){var a=SR(t,e,1),i=a&&ST(e,a,1);i&&i!==r?(t=a,r=i):"borderColor"===t&&(r=ST(e,"borderTopColor"))}var o,s,l,u,c,d,f,p,h,m,y,v=new wU(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=ST(e,n.substring(4,n.indexOf(")")))),"auto"===n&&(d=e.style[t],e.style[t]=n,n=ST(e,t)||n,d?e.style[t]=d:SB(e,t)),x5(o=[r,n]),r=o[0],n=o[1],l=r.match(bC)||[],(n.match(bC)||[]).length){for(;s=bC.exec(n);)f=s[0],h=n.substring(g,s.index),c?c=(c+1)%5:("rgba("===h.substr(-5)||"hsla("===h.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),m=f.substr((p+"").length),g=bC.lastIndex-m.length,m||(m=m||bl.units[t]||y,g===n.length&&(n+=m,v.e+=m)),y!==m&&(u=S$(e,t,d,m)||0),v._pt={_next:v._pt,p:h||1===b?h:",",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?Sv:Sy;return bN.test(n)&&(v.e=0),this._pt=v,v},SG={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},SK=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]=SG[r]||r,t[1]=SG[n]||n,t.join(" ")},Sq=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r,n,a,i=t.t,o=i.style,s=t.u,l=i._gsap;if("all"===s||!0===s)o.cssText="",n=1;else for(a=(s=s.split(",")).length;--a>-1;)Sn[r=s[a]]&&(n=1,r="transformOrigin"===r?Sk:SO),SB(i,r);n&&(SB(i,SO),l&&(l.svg&&i.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",S2(i,1),l.uncache=1,SP(o)))}},SY={clearProps:function(e,t,r,n,a){if("isFromStart"!==a.data){var i=e._pt=new wU(e._pt,t,r,0,0,Sq);return i.u=n,i.pr=-10,i.tween=a,e._props.push(r),1}}},SX=[1,0,0,1,0,0],SZ={},SQ=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},SJ=function(e){var t=ST(e,SO);return SQ(t)?SX:t.substr(7).match(bD).map(b3)},S0=function(e,t){var r,n,a,i,o=e._gsap||b0(e),s=e.style,l=SJ(e);return o.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(",")?SX:l:(l!==SX||e.offsetParent||e===w8||o.svg||(a=s.display,s.display="block",(r=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(i=1,n=e.nextElementSibling,w8.appendChild(e)),l=SJ(e),a?s.display=a:SB(e,"display"),i&&(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)},S1=function(e,t,r,n,a,i){var o,s,l,u,c=e._gsap,d=a||S0(e,!0),f=c.xOrigin||0,p=c.yOrigin||0,h=c.xOffset||0,m=c.yOffset||0,y=d[0],v=d[1],g=d[2],b=d[3],x=d[4],w=d[5],S=t.split(" "),j=parseFloat(S[0])||0,O=parseFloat(S[1])||0;r?d!==SX&&(s=y*b-v*g)&&(l=b/s*j+-g/s*O+(g*w-b*x)/s,u=-v/s*j+y/s*O-(y*w-v*x)/s,j=l,O=u):(j=(o=SL(e)).x+(~S[0].indexOf("%")?j/100*o.width:j),O=o.y+(~(S[1]||S[0]).indexOf("%")?O/100*o.height:O)),n||!1!==n&&c.smooth?(c.xOffset=h+((x=j-f)*y+(w=O-p)*g)-x,c.yOffset=m+(x*v+w*b)-w):c.xOffset=c.yOffset=0,c.xOrigin=j,c.yOrigin=O,c.smooth=!!n,c.origin=t,c.originIsAbsolute=!!r,e.style[Sk]="0px 0px",i&&(SV(i,c,"xOrigin",f,j),SV(i,c,"yOrigin",p,O),SV(i,c,"xOffset",h,c.xOffset),SV(i,c,"yOffset",m,c.yOffset)),e.setAttribute("data-svg-origin",j+" "+O)},S2=function(e,t){var r=e._gsap||new wc(e);if("x"in r&&!t&&!r.uncache)return r;var n,a,i,o,s,l,u,c,d,f,p,h,m,y,v,g,b,x,w,S,j,O,k,E,P,A,D,C,T,N,R,M,I=e.style,L=r.scaleX<0,F=getComputedStyle(e),B=ST(e,Sk)||"0";return n=a=i=l=u=c=d=f=p=0,o=s=1,r.svg=!!(e.getCTM&&SF(e)),F.translate&&(("none"!==F.translate||"none"!==F.scale||"none"!==F.rotate)&&(I[SO]=("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[SO]?F[SO]:"")),I.scale=I.rotate=I.translate="none"),y=S0(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"),S1(e,E||B,!!E||r.originIsAbsolute,!1!==r.smooth,y)),h=r.xOrigin||0,m=r.yOrigin||0,y!==SX&&(x=y[0],w=y[1],S=y[2],j=y[3],n=O=y[4],a=k=y[5],6===y.length?(o=Math.sqrt(x*x+w*w),s=Math.sqrt(j*j+S*S),l=x||w?So(w,x)*Sa:0,(d=S||j?So(S,j)*Sa+l:0)&&(s*=Math.abs(Math.cos(d*Si))),r.svg&&(n-=h-(h*x+m*S),a-=m-(h*w+m*j))):(M=y[6],N=y[7],D=y[8],C=y[9],T=y[10],R=y[11],n=y[12],a=y[13],i=y[14],u=(v=So(M,T))*Sa,v&&(E=O*(g=Math.cos(-v))+D*(b=Math.sin(-v)),P=k*g+C*b,A=M*g+T*b,D=-(O*b)+D*g,C=-(k*b)+C*g,T=-(M*b)+T*g,R=-(N*b)+R*g,O=E,k=P,M=A),c=(v=So(-S,T))*Sa,v&&(E=x*(g=Math.cos(-v))-D*(b=Math.sin(-v)),P=w*g-C*b,A=S*g-T*b,R=j*b+R*g,x=E,w=P,S=A),l=(v=So(w,x))*Sa,v&&(E=x*(g=Math.cos(v))+w*(b=Math.sin(v)),P=O*g+k*b,w=w*g-x*b,k=k*g-O*b,x=E,O=P),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),o=b3(Math.sqrt(x*x+w*w+S*S)),s=b3(Math.sqrt(k*k+M*M)),d=Math.abs(v=So(O,k))>2e-4?v*Sa:0,p=R?1/(R<0?-R:R):0),r.svg&&(E=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!SQ(ST(e,SO)),E&&e.setAttribute("transform",E))),Math.abs(d)>90&&270>Math.abs(d)&&(L?(o*=-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=i+"px",r.scaleX=b3(o),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[Sk]=S3(B)),r.xOffset=r.yOffset=0,r.force3D=bl.force3D,r.renderTransform=r.svg?S9:Sr?S8:S5,r.uncache=0,r},S3=function(e){return(e=e.split(" "))[0]+" "+e[1]},S4=function(e,t,r){var n=xM(t);return b3(parseFloat(t)+parseFloat(S$(e,"x",r+"px",n)))+n},S5=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,S8(e,t)},S6="0deg",S8=function(e,t){var r=t||this,n=r.xPercent,a=r.yPercent,i=r.x,o=r.y,s=r.z,l=r.rotation,u=r.rotationY,c=r.rotationX,d=r.skewX,f=r.skewY,p=r.scaleX,h=r.scaleY,m=r.transformPerspective,y=r.force3D,v=r.target,g=r.zOrigin,b="",x="auto"===y&&e&&1!==e||!0===y;if(g&&(c!==S6||u!==S6)){var w,S=parseFloat(u)*Si,j=Math.sin(S),O=Math.cos(S);i=S4(v,i,-(j*(w=Math.cos(S=parseFloat(c)*Si))*g)),o=S4(v,o,-(-Math.sin(S)*g)),s=S4(v,s,-(O*w*g)+g)}"0px"!==m&&(b+="perspective("+m+") "),(n||a)&&(b+="translate("+n+"%, "+a+"%) "),(x||"0px"!==i||"0px"!==o||"0px"!==s)&&(b+="0px"!==s||x?"translate3d("+i+", "+o+", "+s+") ":"translate("+i+", "+o+") "),l!==S6&&(b+="rotate("+l+") "),u!==S6&&(b+="rotateY("+u+") "),c!==S6&&(b+="rotateX("+c+") "),(d!==S6||f!==S6)&&(b+="skew("+d+", "+f+") "),(1!==p||1!==h)&&(b+="scale("+p+", "+h+") "),v.style[SO]=b||"translate(0, 0)"},S9=function(e,t){var r,n,a,i,o,s=t||this,l=s.xPercent,u=s.yPercent,c=s.x,d=s.y,f=s.rotation,p=s.skewX,h=s.skewY,m=s.scaleX,y=s.scaleY,v=s.target,g=s.xOrigin,b=s.yOrigin,x=s.xOffset,w=s.yOffset,S=s.forceCSS,j=parseFloat(c),O=parseFloat(d);f=parseFloat(f),p=parseFloat(p),(h=parseFloat(h))&&(p+=h=parseFloat(h),f+=h),f||p?(f*=Si,p*=Si,r=Math.cos(f)*m,n=Math.sin(f)*m,a=-(Math.sin(f-p)*y),i=Math.cos(f-p)*y,p&&(h*=Si,a*=o=Math.sqrt(1+(o=Math.tan(p-h))*o),i*=o,h&&(r*=o=Math.sqrt(1+(o=Math.tan(h))*o),n*=o)),r=b3(r),n=b3(n),a=b3(a),i=b3(i)):(r=m,i=y,n=a=0),(j&&!~(c+"").indexOf("px")||O&&!~(d+"").indexOf("px"))&&(j=S$(v,"x",c,"px"),O=S$(v,"y",d,"px")),(g||b||x||w)&&(j=b3(j+g-(g*r+b*a)+x),O=b3(O+b-(g*n+b*i)+w)),(l||u)&&(j=b3(j+l/100*(o=v.getBBox()).width),O=b3(O+u/100*o.height)),o="matrix("+r+","+n+","+a+","+i+","+j+","+O+")",v.setAttribute("transform",o),S&&(v.style[SO]=o)},S7=function(e,t,r,n,a){var i,o,s=by(a),l=parseFloat(a)*(s&&~a.indexOf("rad")?Sa:1)-n,u=n+l+"deg";return s&&("short"===(i=a.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===i&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===i&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),e._pt=o=new wU(e._pt,t,r,n,l,Sf),o.e=u,o.u="deg",e._props.push(r),o},je=function(e,t){for(var r in t)e[r]=t[r];return e},jt=function(e,t,r){var n,a,i,o,s,l,u,c=je({},r._gsap),d=r.style;for(a in c.svg?(i=r.getAttribute("transform"),r.setAttribute("transform",""),d[SO]=t,n=S2(r,1),SB(r,SO),r.setAttribute("transform",i)):(i=getComputedStyle(r)[SO],d[SO]=t,n=S2(r,1),d[SO]=i),Sn)(i=c[a])!==(o=n[a])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(a)&&(s=xM(i)!==(u=xM(o))?S$(r,a,i,u):parseFloat(i),l=parseFloat(o),e._pt=new wU(e._pt,n,a,s,l-s,Sd),e._pt.u=u||0,e._props.push(a));je(n,c)};b2("padding,margin,Width,Radius",function(e,t){var r="Right",n="Bottom",a="Left",i=(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});SY[t>1?"border"+e:e]=function(e,t,r,n,a){var o,s;if(arguments.length<4)return 5===(s=(o=i.map(function(t){return SU(e,t,r)})).join(" ")).split(o[0]).length?o[0]:s;o=(n+"").split(" "),s={},i.forEach(function(e,t){return s[e]=o[t]=o[t]||o[(t-1)/2|0]}),e.init(t,s,a)}});var jr={name:"css",register:SM,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,a){var i,o,s,l,u,c,d,f,p,h,m,y,v,g,b,x,w,S=this._props,j=e.style,O=r.vars.startAt;for(d in w9||SM(),this.styles=this.styles||SD(e),x=this.styles.props,this.tween=r,t)if("autoRound"!==d&&(o=t[d],!(bq[d]&&wS(d,t,r,n,e,a)))){if(u=void 0===o?"undefined":w5(o),c=SY[d],"function"===u&&(u=void 0===(o=o.call(r,n,e,a))?"undefined":w5(o)),"string"===u&&~o.indexOf("random(")&&(o=xH(o)),c)c(this,e,d,o,r)&&(b=1);else if("--"===d.substr(0,2))i=(getComputedStyle(e).getPropertyValue(d)+"").trim(),o+="",x3.lastIndex=0,!x3.test(i)&&(f=xM(i),(p=xM(o))?f!==p&&(i=S$(e,d,i,p)+p):f&&(o+=f)),this.add(j,"setProperty",i,o,n,a,0,0,d),S.push(d),x.push(d,0,j[d]);else if("undefined"!==u){if(O&&d in O?(by(i="function"==typeof O[d]?O[d].call(r,n,e,a):O[d])&&~i.indexOf("random(")&&(i=xH(i)),xM(i+"")||"auto"===i||(i+=bl.units[d]||xM(SU(e,d))||""),"="===(i+"").charAt(1)&&(i=SU(e,d))):i=SU(e,d),l=parseFloat(i),(h="string"===u&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),d in Sc&&("autoAlpha"===d&&(1===l&&"hidden"===SU(e,"visibility")&&s&&(l=0),x.push("visibility",0,j.visibility),SV(this,j,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==d&&"transform"!==d&&~(d=Sc[d]).indexOf(",")&&(d=d.split(",")[0])),m=d in Sn){if(this.styles.save(d),w=o,"string"===u&&"var(--"===o.substring(0,6)){if("calc("===(o=ST(e,o.substring(4,o.indexOf(")")))).substring(0,5)){var k=e.style.perspective;e.style.perspective=o,o=ST(e,"perspective"),k?e.style.perspective=k:SB(e,"perspective")}s=parseFloat(o)}if(y||((v=e._gsap).renderTransform&&!t.parseTransform||S2(e,t.parseTransform),g=!1!==t.smoothOrigin&&v.smooth,(y=this._pt=new wU(this._pt,j,SO,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===d)this._pt=new wU(this._pt,v,"scaleY",v.scaleY,(h?b5(v.scaleY,h+s):s)-v.scaleY||0,Sd),this._pt.u=0,S.push("scaleY",d),d+="X";else if("transformOrigin"===d){x.push(Sk,0,j[Sk]),o=SK(o),v.svg?S1(e,o,0,g,0,this):((p=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&SV(this,v,"zOrigin",v.zOrigin,p),SV(this,j,d,S3(i),S3(o)));continue}else if("svgOrigin"===d){S1(e,o,1,g,0,this);continue}else if(d in SZ){S7(this,v,d,l,h?b5(l,h+o):o);continue}else if("smoothOrigin"===d){SV(this,v,"smooth",v.smooth,o);continue}else if("force3D"===d){v[d]=o;continue}else if("transform"===d){jt(this,o,e);continue}}else d in j||(d=SR(d)||d);if(m||(s||0===s)&&(l||0===l)&&!Su.test(o)&&d in j)f=(i+"").substr((l+"").length),s||(s=0),p=xM(o)||(d in bl.units?bl.units[d]:f),f!==p&&(l=S$(e,d,i,p)),this._pt=new wU(this._pt,m?v:j,d,l,(h?b5(l,h+s):s)-l,!m&&("px"===p||"zIndex"===d)&&!1!==t.autoRound?Sm:Sd),this._pt.u=p||0,m&&w!==o?(this._pt.b=i,this._pt.e=w,this._pt.r=Sh):f!==p&&"%"!==p&&(this._pt.b=i,this._pt.r=Sp);else if(d in j)SH.call(this,e,d,i,h?h+o:o);else if(d in e)this.add(e,d,i||e[d],h?h+o:o,n,a);else if("parseTransform"!==d){bF(d,o);continue}m||(d in j?x.push(d,0,j[d]):"function"==typeof e[d]?x.push(d,2,e[d]()):x.push(d,1,i||e[d])),S.push(d)}}b&&w$(this)},render:function(e,t){if(t.tween._time||!St())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:SU,aliases:Sc,getSetter:function(e,t,r){var n=Sc[t];return n&&0>n.indexOf(",")&&(t=n),t in Sn&&t!==Sk&&(e._gsap.x||SU(e,"x"))?r&&Se===r?"scale"===t?Sw:Sx:(Se=r||{},"scale"===t?SS:Sj):e.style&&!bb(e.style[t])?Sg:~t.indexOf("-")?Sb:wI(e,t)},core:{_removeProperty:SB,_getMatrix:S0}};w4.utils.checkPrefix=SR,w4.core.getStyleSaver=SD,Ad=b2("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(Ac="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){Sn[e]=1}),b2(Ac,function(e){bl.units[e]="deg",SZ[e]=1}),Sc[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(":");Sc[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(jr);var jn=w4.registerPlugin(jr)||w4;function ja(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 ji(e,t){if(e){if("string"==typeof e)return ja(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 ja(e,t)}}jn.core.Tween;var jo=/-page-\d+$/;function js(){return new Set((0,hJ.getMountedApps)().map(function(e){return e.replace(jo,"")}))}function jl(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,g.useState)(js))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(e)||ji(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=js();return e.size===t.size&&((function(e){if(Array.isArray(e))return ja(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ji(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 ju(e){var t=e.moduleName,r=e.meta;return r.titleKey?(0,V.t)(t,r.titleKey,r.title):r.title}function jc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h1.y$,t=arguments.length>1?arguments[1]:void 0,r=(0,x.useAssignedExtensions)(e),n=jl();return(0,g.useMemo)(function(){return(0,h1.wR)(r,n,{maxEntries:t})},[r,n,t])}var jd={moduleName:"@egen-civitas/esm-styleguide",featureName:"staggered-menu"};function jf(e){var t=e.entry,r=e.slotName,n=e.state,a=e.loadContent,i=ju(t),o=(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:i,"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:i}),a&&(0,v.jsx)(x.ExtensionSlot,{name:r,select:o,state:n,className:"sm-ext-slot"})]})}function jp(e){var t=e.area,r=e.entries,n=e.slotName,a=e.state,i=e.loadContent,o=(0,g.useContext)(x.ComponentContext),s=(null==o?void 0:o.moduleName)?o:jd,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)(jf,{entry:e,slotName:n,state:a,loadContent:i},e.id)})})})}function jh(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 jm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jy(e){return function(e){if(Array.isArray(e))return jh(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||jv(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 jv(e,t){if(e){if("string"==typeof e)return jh(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 jh(e,t)}}var jg=function(e){var t,r=e.isOpen,n=e.onClose,a=e.position,i=void 0===a?"right":a,o=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,h=e.extensionSlot,m=void 0===h?h1.y$:h,y=e.maxExtensions,x=e.showCloseButton,w=e.closeButtonLabel,S=(0,g.useRef)(null),j=(0,g.useRef)(null),O=(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=m||"",T=jc(C||h1.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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(t)||jv(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:i,isOpen:r}},[n,i,r]);(0,g.useLayoutEffect)(function(){var e=jn.context(function(){var e=S.current,t=j.current;if(e){var r=[];t&&(r=Array.from(t.querySelectorAll(".sm-prelayer"))),O.current=r;var n="left"===i?-100:100;jn.set([e].concat(jy(r)),{xPercent:n,opacity:1}),t&&jn.set(t,{xPercent:0,opacity:1})}});return function(){return e.revert()}},[i]);var F=(0,g.useCallback)(function(){var e=S.current,t=O.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"),o=Array.from(e.querySelectorAll(".sm-socials-link")),s=Array.from(e.querySelectorAll(".sm-ext")),l="left"===i?-100:100,u=t.map(function(e){return{el:e,start:l}});r.length&&jn.set(r,{yPercent:140,rotate:10}),n.length&&jn.set(n,jm({},"--sm-num-opacity",0)),a&&jn.set(a,{opacity:0}),o.length&&jn.set(o,{y:25,opacity:0}),s.length&&jn.set(s,{y:28,opacity:0});var c=jn.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,h,m=d+.0975;c.to(r,{yPercent:0,rotate:0,duration:1,ease:"power4.out",stagger:{each:.1,from:"start"}},m),n.length&&c.to(n,(jm(h={duration:.6,ease:"power2.out"},"--sm-num-opacity",1),jm(h,"stagger",{each:.08,from:"start"}),h),m+.1)}if(a||o.length){var y=d+.26;a&&c.to(a,{opacity:1,duration:.5,ease:"power2.out"},y),o.length&&c.to(o,{y:0,opacity:1,duration:.55,ease:"power3.out",stagger:{each:.08,from:"start"},onComplete:function(){jn.set(o,{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(){jn.set(s,{clearProps:"opacity,transform"})}},d+.22749999999999998),k.current=c,c},[i]),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=S.current,a=O.current;if(n){var o=jy(a).concat([n]);null==(r=E.current)||r.kill();var s="left"===i?-100:100;E.current=jn.to(o,{xPercent:s,duration:.32,ease:"power3.in",overwrite:"auto",onComplete:function(){var e=Array.from(n.querySelectorAll(".sm-panel-itemLabel"));e.length&&jn.set(e,{yPercent:140,rotate:10});var t=Array.from(n.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item"));t.length&&jn.set(t,jm({},"--sm-num-opacity",0));var r=n.querySelector(".sm-socials-title"),a=Array.from(n.querySelectorAll(".sm-socials-link"));r&&jn.set(r,{opacity:0}),a.length&&jn.set(a,{y:25,opacity:0});var i=Array.from(n.querySelectorAll(".sm-ext"));i.length&&jn.set(i,{y:28,opacity:0}),A.current=!1}})}},[i]);b().useEffect(function(){r!==D.current&&(D.current=r,r?B():V())},[r,B,V]),(0,g.useLayoutEffect)(function(){var e;null==(e=S.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"]')||S.current&&!S.current.contains(r)&&(null==n||n())};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[p,r,n]);var z=o&&o.length?o.slice(0,4):[];if(z.length>=3){var W=Math.floor(z.length/2);z.splice(W,1)}var $=null!=s?s:[],U=null!=l?l:[];return(0,v.jsxs)("div",{className:"sm-scope",style:d?jm({},"--sm-accent",d):void 0,"data-position":i,children:[(0,v.jsx)("div",{ref:j,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:S,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)(jp,{area:"top",entries:N,slotName:C,state:L,loadContent:M}),$.length>0&&(0,v.jsx)("ul",{className:"sm-panel-list",role:"list","data-numbering":void 0===c||c||void 0,children:$.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)(jp,{area:"content",entries:N,slotName:C,state:L,loadContent:M}),(void 0===u||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:U.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)(jp,{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"===i?"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"===i?"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"===i?"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"===i?"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 jb(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 jx=function(e){var t,r=e.isOpen,n=e.onToggle,a=e.menuButtonColor,i=e.openMenuButtonColor,o=e.changeMenuColorOnOpen,s=void 0===o||o,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),h=(0,g.useRef)(null),m=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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return jb(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 jb(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=m[0],x=m[1],w=(0,g.useRef)(null),S=(0,g.useRef)(null),j=(0,g.useRef)(null),O=(0,g.useRef)(!1);(0,g.useLayoutEffect)(function(){var e=jn.context(function(){var e=c.current,t=d.current,r=f.current,n=p.current;e&&t&&r&&n&&(jn.set(e,{transformOrigin:"50% 50%",rotate:0}),jn.set(t,{transformOrigin:"50% 50%",rotate:90}),jn.set(r,{rotate:0,transformOrigin:"50% 50%"}),jn.set(n,{yPercent:0}),u.current&&a&&jn.set(u.current,{color:a}))});return function(){return e.revert()}},[a]),b().useEffect(function(){if(u.current)if(s){var e=O.current?i:a;e&&jn.set(u.current,{color:e})}else a&&jn.set(u.current,{color:a})},[s,a,i]);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?(jn.set(r,{rotate:0,transformOrigin:"50% 50%"}),w.current=jn.timeline({defaults:{ease:"power4.out"}}).to(n,{rotate:45,duration:.5},0).to(a,{rotate:-45,duration:.5},0)):w.current=jn.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=j.current)||t.kill(),s){var n=e?i:a;n&&(j.current=jn.to(r,{color:n,delay:.18,duration:.3,ease:"power2.out"}))}else a&&jn.set(r,{color:a})},[i,a,s]),P=(0,g.useCallback)(function(e){var t,r=p.current;if(r){null==(t=S.current)||t.kill();for(var n=e?"Menu":"Close",a=e?"Close":"Menu",i=[n],o=n,s=0;s<3;s++)o="Menu"===o?"Close":"Menu",i.push(o);o!==a&&i.push(a),i.push(a),x(i),jn.set(r,{yPercent:0});var l=i.length;S.current=jn.to(r,{yPercent:-((l-1)/l*100),duration:.5+.07*l,ease:"power4.out"})}},[]);return b().useEffect(function(){r!==O.current&&(O.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:h,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 jw(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class jS extends g.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(hA(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=hA(e)&&e.offsetWidth||0,n=hA(e)&&e.offsetHeight||0,a=getComputedStyle(t),i=this.props.sizeRef.current;i.height=parseFloat(a.height),i.width=parseFloat(a.width),i.top=t.offsetTop,i.left=t.offsetLeft,i.right=r-i.width-i.left,i.bottom=n-i.height-i.top,i.direction=a.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function jj({children:e,isPresent:t,anchorX:r,anchorY:n,root:a,pop:i}){let o=(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=jw(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():jw(e[t],null)}}}}(...e),e)}(s,!1!==i?e.props?.ref??e?.ref:void 0);return(0,g.useInsertionEffect)(()=>{let{width:e,height:c,top:d,left:f,right:p,bottom:h,direction:m}=l.current;if(t||!1===i||!s.current||!e||!c)return;let y="rtl"===m,v="left"===r?y?`right: ${p}`:`left: ${f}`:y?`left: ${f}`:`right: ${p}`,g="bottom"===n?`bottom: ${h}`:`top: ${d}`;s.current.dataset.motionPopId=o;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="${o}"] {
|
|
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)(jS,{isPresent:t,childRef:s,sizeRef:l,pop:i,children:!1===i?e:g.cloneElement(e,{ref:c})})}let jO=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:a,presenceAffectsLayout:i,mode:o,anchorX:s,anchorY:l,root:u})=>{let c=dS(jk),d=(0,g.useId)(),f=(0,g.useRef)(r),p=(0,g.useRef)(n);dR(()=>{f.current=r,p.current=n});let h=!0,m=(0,g.useMemo)(()=>(h=!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 i&&h&&(m={...m}),(0,g.useMemo)(()=>{c.forEach((e,t)=>c.set(t,!1))},[r]),g.useEffect(()=>{r||c.size||!n||n()},[r]),e=(0,v.jsx)(jj,{pop:"popLayout"===o,isPresent:r,anchorX:s,anchorY:l,root:u,children:e}),(0,v.jsx)(dw.Provider,{value:m,children:e})};function jk(){return new Map}let jE=e=>e.key||"";function jP(e){let t=[];return g.Children.forEach(e,e=>{(0,g.isValidElement)(e)&&t.push(e)}),t}let jA=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:a=!0,mode:i="sync",propagate:o=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,d]=pC(o),f=(0,g.useMemo)(()=>jP(e),[e]),p=o&&!c?[]:f.map(jE),h=(0,g.useRef)(!0),m=(0,g.useRef)(f),y=dS(()=>new Map),b=(0,g.useRef)(new Set),[x,w]=(0,g.useState)(f),[S,j]=(0,g.useState)(f);dR(()=>{h.current=!1,m.current=f;for(let e=0;e<S.length;e++){let t=jE(S[e]);p.includes(t)?(y.delete(t),b.current.delete(t)):!0!==y.get(t)&&y.set(t,!1)}},[S,p.length,p.join("-")]);let O=[];if(f!==x){let e=[...f];for(let t=0;t<S.length;t++){let r=S[t],n=jE(r);p.includes(n)||(e.splice(t,0,r),O.push(r))}return"wait"===i&&O.length&&(e=O),j(jP(e)),w(f),null}let{forceRender:k}=(0,g.useContext)(du);return(0,v.jsx)(v.Fragment,{children:S.map(e=>{let g=jE(e),x=(!o||!!c)&&(f===S||p.includes(g));return(0,v.jsx)(jO,{isPresent:x,initial:(!h.current||!!r)&&void 0,custom:t,presenceAffectsLayout:a,mode:i,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?.(),j(m.current),o&&d?.(),n&&n())},anchorX:s,anchorY:l,children:e},g)})})},jD={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 jC(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 jT=function(e){var t,r=e.columnItems,n=e.columnIndex,a=e.activeItems,i=e.searchable,o=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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return jC(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 jC(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)(hz.div,{className:jD.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:[i&&(0,v.jsxs)("div",{className:jD.columnSearch,children:[(0,v.jsx)(o1,{className:jD.columnSearchIcon,size:14}),(0,v.jsx)("input",{type:"search",value:c,onChange:function(e){return d(e.target.value)},placeholder:o,className:jD.columnSearchInput,"aria-label":o})]}),(0,v.jsxs)("ul",{className:jD.columnList,role:"list",children:[f.map(function(e){var t,r=a[n]===e.id,i=!!(null==(t=e.children)?void 0:t.length),o=e.icon;return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",className:jD.columnItem,"data-active":r||void 0,onMouseEnter:function(){return s(e,n)},onFocus:function(){return s(e,n)},onClick:function(){!i&&e.path&&l(e.path)},children:[o&&(0,v.jsx)(o,{className:jD.columnItemIcon,size:16}),(0,v.jsx)("span",{className:jD.columnItemLabel,children:e.label}),i&&(0,v.jsx)(ow,{className:jD.columnItemChevron,size:14})]})},e.id)}),0===f.length&&(0,v.jsx)("li",{className:jD.columnEmpty,children:"—"})]})]})};function jN(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 jR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jM(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(e,t)||j_(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 jI(e){return function(e){if(Array.isArray(e))return jN(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||j_(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 j_(e,t){if(e){if("string"==typeof e)return jN(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 jN(e,t)}}var jL=function(e){var t,r,n=e.items,a=e.triggerLabel,i=e.triggerIcon,o=e.direction,s=void 0===o?"down":o,l=e.searchable,u=void 0!==l&&l,c=e.searchPlaceholder,d=void 0===c?"Rechercher…":c,f=e.onNavigate,p=e.className,h=jM((0,g.useState)(!1),2),m=h[0],y=h[1],b=jM((0,g.useState)([n]),2),x=b[0],w=b[1],S=jM((0,g.useState)([]),2),j=S[0],k=S[1],E=jM((0,g.useState)(null),2),P=E[0],A=E[1],D=(0,g.useRef)(null);(0,g.useLayoutEffect)(function(){m||(w([n]),k([]))},[n,m]),(0,g.useLayoutEffect)(function(){if(m&&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})}},[m,s]);var C=function(e,t){var r,n=jI(j);n[t]=e.id,(null==(r=e.children)?void 0:r.length)?w(jI(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:O()(jD.wrapper,p),children:[(0,v.jsxs)("button",{ref:D,type:"button",className:jD.trigger,onClick:function(){return y(function(e){return!e})},"aria-haspopup":"true","aria-expanded":m,children:[i&&(0,v.jsx)(i,{className:jD.triggerIcon,size:16}),(0,v.jsx)("span",{children:void 0===a?"Navigation":a}),(0,v.jsx)(ob,{className:O()(jD.triggerChevron,(jR(t={},jD["triggerChevron--open"],m),jR(t,jD["triggerChevron--up"],"up"===s),t)),size:14})]}),(0,v.jsx)(jA,{children:m&&P&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:jD.overlay,onClick:function(){return y(!1)},"aria-hidden":"true"}),(0,v.jsx)(hz.div,{className:O()(jD.panel,jD["panel--".concat(s)]),style:(jR(r={left:P.left,top:P.top,bottom:P.bottom},"--cnd-panel-width","".concat(16*x.length,"rem")),jR(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:jD.panelInner,children:(0,v.jsx)(jA,{mode:"sync",children:x.map(function(e,t){return(0,v.jsx)(jT,{columnItems:e,columnIndex:t,activeItems:j,searchable:u,searchPlaceholder:d,onHover:C,onNavigate:T},t)})})})})]})})]})},jF=(0,g.createContext)(null),jB=function(){var e=(0,g.useContext)(jF);if(!e)throw Error("Sheet compound components must be used within <Sheet>");return e};function jV(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 jz=function(e){var t,r=e.children,n=e.open,a=e.onOpenChange,i=e.defaultOpen,o=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!=i&&i))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return jV(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 jV(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,h=p?n:d,m=(0,g.useCallback)(function(e){null==a||a(e),p||f(e)},[a,p]);return(0,v.jsx)(jF.Provider,{value:{isOpen:h,onOpenChange:m,contentProps:{height:void 0===l?"55vh":l,className:void 0===o?"":o,closeThreshold:void 0===u?.3:u,side:void 0===s?"top":s}},children:r})};function jW(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 j$=function(e){var t,r=e.children,n=e.container,a=e.className,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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return jW(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 jW(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=i[0],s=i[1];if((0,g.useEffect)(function(){s(!0)},[]),!o||"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 jU={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 jH(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 jG(e){if(Array.isArray(e))return e}function jK(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jq(e,t){if(e){if("string"==typeof e)return jH(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 jH(e,t)}}var jY=(0,g.forwardRef)(function(e,t){var r,n=jG(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||jq(r)||jK(),a=n[0],i=n.slice(1),o=a.className,s=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(a,["className"]),l=(jG(i)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(i)||jq(i,1)||jK())[0],u=jB(),c=u.isOpen,d=u.onOpenChange,f=(0,g.useCallback)(function(e){e.target===e.currentTarget&&d(!1)},[d]);return(0,v.jsx)(hz.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:O()(jU.overlay,o),style:{pointerEvents:c?"auto":"none"}},s))});function jX(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 jZ(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}jY.displayName="SheetOverlay";var jQ=function(e){var t=e.asChild,r=e.children,n=e.className,a=jB().onOpenChange,i=function(){return a(!0)};return t&&b().isValidElement(r)?b().cloneElement(r,jZ(jX({},r.props),{className:O()(r.props.className,n),onClick:function(e){var t,n;null==(t=(n=r.props).onClick)||t.call(n,e),i()}})):(0,v.jsx)("button",{onClick:i,type:"button",className:O()(jU.triggerReset,n),children:r})},jJ=function(e){var t=e.asChild,r=e.children,n=e.className,a=jB().onOpenChange,i=function(){return a(!1)};return t&&b().isValidElement(r)?b().cloneElement(r,jZ(jX({},r.props),{className:O()(r.props.className,n),onClick:function(e){var t,n;null==(t=(n=r.props).onClick)||t.call(n,e),i()}})):(0,v.jsx)("button",{onClick:i,type:"button",className:O()(jU.triggerReset,n),children:r})};function j0(e,t){[...t].reverse().forEach(r=>{let n=e.getVariant(r);n&&dV(e,n),e.variantChildren&&e.variantChildren.forEach(e=>{j0(e,t)})})}function j1(){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(f$(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)?j0(t,n):"string"==typeof n?j0(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 j2=function(){let e=dS(j1);return dR(e.mount,[]),e};function j3(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 j4=function(e){var t,r=e.children,n=e.className,a=jB(),i=a.isOpen,o=a.onOpenChange,s=a.contentProps,l=s.height,u=s.closeThreshold,c=s.side,d=j2(),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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return j3(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 j3(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=p[0],m=p[1],y="top"===c?-1:1,b=(0,g.useCallback)(function(){return o(!1)},[o]),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 m(x())};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[x]),(0,g.useEffect)(function(){return i?(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*(h+50),transition:{type:"tween",ease:[.25,.46,.45,.94],duration:.3}})),function(){document.body.style.overflow=""}},[i,d,h,y]),(0,g.useEffect)(function(){var e=function(e){"Escape"===e.key&&i&&b()};return i&&document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[i,b]);var w=(0,g.useCallback)(function(e,t){var r=y*t.offset.y>h*u,n=y*t.velocity.y>800;r||n?b():d.start({y:0,transition:{type:"spring",stiffness:500,damping:40}})},[d,b,u,h,y]),S=(0,g.useCallback)(function(e){e.target===f.current&&b()},[b]);if(0===h)return null;var j="top"===c?{top:-h,bottom:0}:{top:0,bottom:h};return(0,v.jsx)(j$,{children:(0,v.jsxs)("div",{className:O()(jU.container,!i&&jU["container--closed"]),children:[(0,v.jsx)(hz.div,{ref:f,initial:{opacity:0},animate:{opacity:+!!i},transition:{duration:.2,ease:"easeOut"},onClick:S,className:jU.overlay,style:{pointerEvents:i?"auto":"none"}}),(0,v.jsxs)(hz.div,{drag:"y",dragConstraints:j,dragElastic:"top"===c?{top:.1,bottom:0}:{top:0,bottom:.1},dragMomentum:!1,onDragEnd:w,animate:d,initial:{y:y*(h+50)},className:O()(jU.panel,jU["panel--".concat(c)],void 0===n?"":n),style:{height:h},children:["bottom"===c&&(0,v.jsx)("div",{className:jU.handleRow,children:(0,v.jsx)("div",{className:jU.handle})}),(0,v.jsx)("div",{className:jU.body,children:(0,v.jsx)("div",{className:jU.scrollArea,children:r})}),"top"===c&&(0,v.jsx)("div",{className:jU.handleRow,children:(0,v.jsx)("div",{className:jU.handle})})]})]})})},j5=function(e){var t=e.children,r=e.className;return(0,v.jsx)("div",{className:O()(jU.header,r),children:t})},j6=function(e){var t=e.children,r=e.className;return(0,v.jsx)("h3",{className:O()(jU.title,r),children:t})},j8=function(e){var t=e.children,r=e.className;return(0,v.jsx)("p",{className:O()(jU.description,r),children:t})},j9=function(e){var t=e.children,r=e.className;return(0,v.jsx)("div",{className:O()(jU.footer,r),children:t})},j7=jz;function Oe(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 Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Or(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oe(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 Oe(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 On=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,i=e.open,o=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,h=e.accentColor,m=Or((0,g.useState)(void 0!==o&&o),2),y=m[0],b=m[1],x=Or((0,g.useState)(!1),2),w=x[0],S=x[1],j=void 0!==i,k=j?i:y,E=function(e){null==s||s(e),j||b(e)},P=function(e,t){t.offset.y>100&&k&&(E(!1),S(!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){Ot(e,t,r[t])})}return e}({},h?Ot({},"--fg-accent",h):void 0,u);return(0,v.jsx)("div",{className:O()("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)(hz.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)(hz.div,{drag:k,dragSnapToOrigin:!0,onDragEnd:P,className:O()("M84i--+bZPAx6uTscNbshA==",Ot({},"_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)(hz.div,{className:"KBOODSF6+mKrIZESAVYrHg==",animate:{opacity:+!k,rotateX:w?-25:0,y:10*!!w,pointerEvents:k?"none":"auto"},onMouseEnter:function(){return S(!0)},onMouseLeave:function(){return S(!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)(hz.div,{animate:{opacity:+!!k,y:50*!k},className:"MzfhFqg3a0YwUbs3yGfdSQ==",children:a})]})})};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 Oi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oo(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(e,t)||function(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)}}(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 Os(e){var t=e.items,r=e.className,n=e.style,a=Oo((0,g.useState)(null),2),i=a[0],o=a[1],s=Oo((0,g.useState)(null),2),l=s[0],u=s[1],c=function(e){u(i),o(e)},d=function(){u(i),o(null)};return(0,g.useEffect)(function(){if(i){var e=function(e){"Escape"===e.key&&d()};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}},[i]),(0,v.jsxs)("div",{className:O()("eA4BZJ4wlOaTHsiyz+antA==",r),style:n,children:[t.map(function(e){var t,r=(null==i?void 0:i.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)(hz.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:O()(e.className,"cGA76nZGe5CnhWCCmTVGgQ==",(Oi(t={},"kptslMbsy8+vxJd8WIJrcg==",r),Oi(t,"NX+iOobXbUb-lQbAFNkL9Q==",!r),Oi(t,"gvMWGRV+aGwP5KrSi0geAQ==",n),t)),layoutId:"layout-grid-card-".concat(e.id),children:[r&&(0,v.jsx)(Ou,{item:i}),(0,v.jsx)(Ol,{item:e})]})},e.id)}),(0,v.jsx)(hz.div,{onClick:d,className:O()("V6jx9Z+WVL9MDdGPvJkaYA==",Oi({},"LbohBri+vFNoSWrMQc-qGQ==",!!(null==i?void 0:i.id))),animate:{opacity:+(null!=i&&!!i.id)},"aria-hidden":"true"})]})}function Ol(e){var t=e.item;return(0,v.jsx)(hz.img,{layoutId:"layout-grid-image-".concat(t.id),src:t.thumbnail,height:500,width:500,className:"U5gcULxDx+o6CMn4mOO-KA==",alt:"thumbnail"})}function Ou(e){var t=e.item;return(0,v.jsxs)("div",{className:"_0xZoWQ+67f8d9Ibrj2XGsA==",children:[(0,v.jsx)(hz.div,{initial:{opacity:0},animate:{opacity:.6},className:"_2uAL2ek35ay46kkDXaGh0g=="}),(0,v.jsx)(hz.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 Oc="n6G8E1SbEEUsI3OWq+fUJw==",Od="A6XS7R+rH6Du2oTHAV9w1Q==",Of="QOgWcRICSDEnRCObIKMk1w==",Op="x1LP9u0NvE8GsXncVS6mxw==",Oh="Z2SR8P5h1ozswEBKF7Sb8Q==",Om="yTTHKbpGK3OMci1Nvf0BUQ==",Oy="p02avqg7uiwLf9Az9XbgGQ==",Ov="_9qLPpBBum4PfGB1uo7FCCQ==",Og="Zu4+XDmJUwKPLUmX+qsvAw==",Ob="i+x5CkYTvPGY-ug4QQFcdA==",Ox="AVPYYK3-6yQVldiVTCgQOQ==";var Ow=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 OS(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 Oj(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OO(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return OS(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 OS(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 Ok=function(e){var t=e.title,r=e.coverImageUrl,n=e.category,a=e.itemCountLabel,i=e.meta,o=e.items,s=e.relatedEntity,l=e.onItemOptionsClick,u=e.className,c=e.style,d=OO((0,g.useState)(!1),2),f=d[0],p=d[1],h=OO((0,g.useState)(null),2),m=h[0],y=h[1],b=OO((0,g.useState)(null),2),x=b[0],w=b[1],S=OO((0,g.useState)(0),2),j=S[0],k=S[1],E=OO((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!==m,N=f||T;(0,g.useEffect)(function(){if(null!==m){var e=function(){var e=C.current.get(m);e&&D.current&&k(e.getBoundingClientRect().top-D.current.offsetTop-2)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[m]);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:O()("xDbMR0gHWNpFj1Yoy68ZGA==",u),style:c,children:(0,v.jsx)("div",{className:"HavojgA3auWWriIv10hJ2w==",children:(0,v.jsxs)("div",{ref:D,className:O()("kmTNzVGOWEu5+aYeO+dJWg==",Oj({},"_8KuCFVRGG3hewrJk8eI8Ww==",N)),children:[(0,v.jsxs)("div",{className:"CJOSG6kKQMw-ivRwEJKw2g==",children:[(0,v.jsxs)("div",{className:Oc,children:[(0,v.jsx)("img",{className:Od,src:r,alt:""}),(0,v.jsx)("img",{className:O()(Od,Of),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:Op,children:t}),(0,v.jsxs)("div",{className:"RzWO2Tf5Wsgu3xcy+EZH6w==",children:[n&&(0,v.jsx)("p",{className:Oh,children:n}),n&&a&&(0,v.jsx)("div",{className:Oy}),a&&(0,v.jsx)("p",{className:Oh,children:a}),a&&i&&(0,v.jsx)("div",{className:Oy}),i&&(0,v.jsx)("p",{className:Oh,children:i})]})]}),(0,v.jsx)("div",{className:"gVkvp0xTMjRND78EK-fmTg==",children:o.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:Ov,onClick:function(){return R(e)},children:[(0,v.jsx)("p",{className:Om,children:e.title}),(0,v.jsxs)("div",{className:Og,children:[(0,v.jsx)("button",{type:"button",className:Ob,onClick:function(t){t.stopPropagation(),null==l||l(e)},"aria-label":"Options",children:(0,v.jsx)(oU,{size:20})}),e.meta&&(0,v.jsx)("p",{className:Oh,children:e.meta})]})]},e.id)})})]})]}),x&&(0,v.jsxs)("div",{className:O()("kR1yWXyQMcy-pc19Y1uCSg==",Oj({},"vGP3YGBeJwp273dxvca0mQ==",T)),style:{top:"".concat(j,"px"),transform:P},children:[(0,v.jsxs)("div",{className:Ov,children:[(0,v.jsx)("p",{className:Om,children:x.title}),(0,v.jsxs)("div",{className:Og,children:[(0,v.jsx)("button",{type:"button",className:Ob,onClick:function(){A("translateY(0px)"),y(null)},"aria-label":"Fermer",children:(0,v.jsx)(oa,{size:20,className:Ox})}),x.meta&&(0,v.jsx)("p",{className:Oh,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)(Ow,{})]}),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)(oa,{size:24,className:O()(Oj({},Ox,f))})}),(0,v.jsxs)("div",{className:"s8sEwmEJjuL2Pbcv4ehUYg==",children:[(0,v.jsxs)("div",{className:Oc,children:[(0,v.jsx)("h1",{className:Op,children:s.name}),(0,v.jsx)("img",{className:Od,src:s.photoUrl,alt:""}),(0,v.jsx)("img",{className:O()(Od,Of),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:O()(Oh,"DSINo9JINz-VX0HYc7rrNg=="),children:s.category}),s.category&&s.itemCountLabel&&(0,v.jsx)("div",{className:Oy}),s.itemCountLabel&&(0,v.jsx)("p",{className:Oh,children:s.itemCountLabel})]}),s.statLabel&&(0,v.jsx)("p",{className:Oh,children:s.statLabel})]}),s.description&&(0,v.jsx)("p",{className:Om,children:s.description})]})]}),(0,v.jsx)(Ow,{}),(0,v.jsx)("div",{className:"p4U4LPnGs8pTf99LZiEFEg=="})]})]})})})};function OE(e){var t=e.moduleName,r=e.meta;return r.titleKey?(0,V.t)(t,r.titleKey,r.title):r.title}function OP(e,t){var r=(0,x.useAssignedExtensions)(h1.As[e]),n=jl();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,h1.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,h1.lN)(r.meta)}})},[r,n,e,t])}var OA=(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"}]]),OD=(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"}]]),OC=(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"}]]),OT=(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"}]]),ON=(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"}]]),OR=(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"}]]),OM=(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"}]]),OI=(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"}]]),O_=(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"}]]),OL=r(8032),OF=(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"}]]),OB=(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"}]]),OV=(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"}]]),Oz=(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"}]]),OW=(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"}]]),O$=(0,ya.A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),OU=(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"}]]),OH=(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"}]]),OG=(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"}]]),OK=(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"}]]),Oq=(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"}]]),OY=(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"}]]),OX=(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"}]]),OZ=(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"}]]),OQ=(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"}]]),OJ=(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"}]]),O0=(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"}]]),O1=(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"}]]),O2=(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"}]]),O3=(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"}]]),O4={BookOpen:OA,Bell:OD,Bot:OC,Building2:OT,CalendarDays:ON,CircleHelp:OR,Folder:OM,FolderTree:OI,House:O_,Info:OL.A,LayoutGrid:OF,ListTree:OB,MapPin:OV,Megaphone:Oz,Newspaper:OW,Search:O$,Settings:OU,Terminal:OH,Users:OG,Calendar:OK,CalendarCheck:Oq,Compass:OY,Contact:OX,FileCheck:OZ,FileText:OQ,Globe:OJ,Layers:O0,Radio:O1,Star:O2,Zap:O3};function O5(e){return e?O4[e]:void 0}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){return function(e){if(Array.isArray(e))return O6(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 O6(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 O6(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 O9="__default__",O7={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,i=n.maxs,o=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+(o[r]?0:t.height)},0),l=e.reduce(function(e,t,n){return e+(o[n]?r[t.key]:0)},0),u=100-s;if(l>0&&u>0)t=e.map(function(e,t){return o[t]?r[e.key]*u/l:e.height});else{var c=e.map(function(e,t){return o[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 o=n.reduce(function(e,r){return e+t[r]},0),s=o>0?(100-r)/o:0,l=new Map(n.map(function(e){return[e,o>0?t[e]*s:(100-r)/n.length]})),u=0,c=!0,d=!1,p=void 0;try{for(var h,m=n[Symbol.iterator]();!(c=(h=m.next()).done);c=!0){var y=h.value,v=l.get(y);u+=Math.min(i[y],Math.max(a[y],v))-v}}catch(e){d=!0,p=e}finally{try{c||null==m.return||m.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)>i[e]+1e-6});if(0===g.length&&0===b.length){var x=!0,w=!1,S=void 0;try{for(var j,O=n[Symbol.iterator]();!(x=(j=O.next()).done);x=!0){var k=j.value;f[k]=l.get(k)}}catch(e){w=!0,S=e}finally{try{x||null==O.return||O.return()}finally{if(w)throw S}}return"break"}var E=u>1e-6?g:u<-1e-6?b:O8(g).concat(O8(b)),P=!0,A=!1,D=void 0;try{for(var C,T=(E.length>0?E:O8(g).concat(O8(b)))[Symbol.iterator]();!(P=(C=T.next()).done);P=!0){var N=C.value;f[N]=Math.min(i[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 h=e.map(function(e,r){var n;return null!=(n=f[r])?n:t[r]}).map(ke),m=ke(100-h.reduce(function(e,t){return e+t},0));if(0!==m){var y=0;h.forEach(function(e,t){e>h[y]&&(y=t)}),h[y]=ke(h[y]+m)}return h}function kn(e,t,r,n){var a=O8(e);if(r<0||r>=e.length-1||!Number.isFinite(n)||0===n)return a;var i=kt(t),o=i.mins,s=i.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]-o[t])},0));if(f<=0)return a;var p=f,h=!0,m=!1,y=void 0;try{for(var v,g=c[Symbol.iterator]();!(h=(v=g.next()).done);h=!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){m=!0,y=e}finally{try{h||null==g.return||g.return()}finally{if(m)throw y}}var w=f,S=!0,j=!1,O=void 0;try{for(var k,E=d[Symbol.iterator]();!(S=(k=E.next()).done);S=!0){var P=k.value,A=Math.min(w,Math.max(0,a[P]-o[P]));if(a[P]-=A,(w-=A)<=1e-6)break}}catch(e){j=!0,O=e}finally{try{S||null==E.return||E.return()}finally{if(j)throw O}}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 ki(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ko(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){ki(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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}},kh=["left","right"];function km(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O9;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,i=n.max,o=Math.floor(("bottom"===e?.7*r.height:.5*r.width)||i),s=Math.max(a,Math.min(i,o));return Number.isFinite(t)?Math.round(Math.min(s,Math.max(a,t))):kf[e]}var kv=(0,h0.getGlobalStore)("workbench",function(){var e={sizes:ko({},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,i=void 0;try{for(var o,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,i=e}finally{try{n||null==l.return||l.return()}finally{if(a)throw i}}var h=!0,m=!1,y=void 0;try{for(var v,g=kh[Symbol.iterator]();!(h=(v=g.next()).done);h=!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){m=!0,y=e}finally{try{h||null==g.return||g.return()}finally{if(m)throw y}}var b=!0,x=!1,w=void 0;try{for(var S,j=Object.entries(null!=(o=null==r?void 0:r.heights)?o:{})[Symbol.iterator]();!(b=(S=j.next()).done);b=!0){var O=kl(S.value,2),k=O[0],E=O[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==j.return||j.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,h1.zx)(h1.As[e]).find(function(e){return e.name===t});return!!((null==r?void 0:r.meta)&&(0,h1.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(ko({},kO(),r.compartments),ki({},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 kS(e,t){var r=kv.getState(),n=kb(e,r);n.includes(t)&&kv.setState({compartments:ks(ko({},kO(),r.compartments),ki({},e,n.filter(function(e){return e!==t})))})}function kj(e,t){kb(e).includes(t)?kS(e,t):kw(e,t)}function kO(){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],i=n[1];return Math.abs((null!=(t=r[a])?t:-1)-i)>.005})&&kv.setState({heights:ko({},r,e)})}function kE(e,t){if(kg(e)&&kx(e,t))return kj(e,t);var r=kv.getState().active;kv.setState({active:ks(ko({},r),ki({},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(ko({},r),ki({},e,t))})}function kA(e,t){var r=kv.getState();if(void 0!==t)return kg(e)&&kb(e,r).includes(t)?kS(e,t):void(r.active[e]===t&&kv.setState({active:ks(ko({},r.active),ki({},e,null))}));var n={};null!==r.active[e]&&(n.active=ks(ko({},r.active),ki({},e,null))),kg(e)&&kb(e,r).length>0&&(n.compartments=ks(ko({},kO(),r.compartments),ki({},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(ko({},r),ki({},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,h0.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 i=kN({},a);delete i[e],kR.setState(i,!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=OP(t,e.rail),a=(0,x.useStore)(kv),i=a.active[t],o=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?o.includes(e.id):e.id===i,onClick:function(){return e.compartment?kj(t,e.id):kE(t,e.id)}},e.id)})})}function kF(e){var t=e.tool,r=e.active,n=e.onClick,a=OE(t),i=O5(t.meta.icon),o=(0,h1.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:[o?(0,v.jsx)("span",{"aria-hidden":"true",className:k_.railIconMask,style:{"--egen-rail-icon":'url("'.concat(o.replace(/"/g,"%22"),'")')}}):i?(0,v.jsx)(i,{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 k$="data-workbench-resizing";function kU(e){var t=e.anchor,r=e.label,n=(0,x.useStore)(kv).sizes[t],a=(0,g.useRef)(null),i="bottom"!==t,o=function(e){var t,r;a.current&&(a.current=null,null==(t=(r=e.currentTarget).releasePointerCapture)||t.call(r,e.pointerId),document.documentElement.removeAttribute(k$))};return(0,v.jsx)("div",{role:"separator",tabIndex:0,"aria-label":r,"aria-orientation":i?"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,i,o,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==(i=(o=e.currentTarget).setPointerCapture)||i.call(o,e.pointerId),document.documentElement.setAttribute(k$,t),e.preventDefault()}}},onPointerMove:function(e){if(a.current){var r,n,i,o;kD(t,(r=e.clientX,n=e.clientY,i=a.current.edge,o=a.current.grab,"left"===t?r-o-i:"right"===t?i-(r-o):i-(n-o)))}},onPointerUp:o,onPointerCancel:o,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),i=function(e){var t,r;n.current&&(n.current=null,null==(t=(r=e.currentTarget).releasePointerCapture)||t.call(r,e.pointerId),document.documentElement.removeAttribute(k$))};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,i,o=kv.getState().sizes;n.current={x:e.clientX,y:e.clientY,side:o[t],bottom:o.bottom},null==(r=(i=e.currentTarget).setPointerCapture)||r.call(i,e.pointerId),document.documentElement.setAttribute(k$,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:i,onPointerCancel:i,onDoubleClick:function(){kC(t),kC("bottom")}})}var kG=function(e,t){return Object.fromEntries(e.map(function(e,r){return[e.key,t[r]]}))};function kK(e){var t=e.anchor,r=e.index,n=e.items,a=e.heights,i=e.label,o=(0,g.useRef)(null),s=function(e){var t,r;o.current&&(o.current=null,null==(t=(r=e.currentTarget).releasePointerCapture)||t.call(r,e.pointerId),document.documentElement.removeAttribute(k$))};return(0,v.jsx)("div",{role:"separator",tabIndex:0,"aria-label":i,"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,i,s=e.currentTarget.parentElement;if(s){var l=e.currentTarget.getBoundingClientRect().height,u=s.getBoundingClientRect().height-l*(n.length-1);u>0&&(o.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=(i=e.currentTarget).setPointerCapture)||r.call(i,e.pointerId),document.documentElement.setAttribute(k$,"compartment-".concat(t)),e.preventDefault())}}},onPointerMove:function(e){var t=o.current;if(t){var a=(e.clientY-t.y)*t.perPixel;kk(kG(n,kn(t.heights,n,r,a)))}},onPointerUp:s,onPointerCancel:s,onDoubleClick:function(){return kk(kG(n,kr(n,{})))},onKeyDown:function(e){("ArrowUp"===e.key||"ArrowDown"===e.key)&&(kk(kG(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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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.")}(),i=a[0],o=a[1];return(0,g.useLayoutEffect)(function(){var e,t,r=null==(t=n.current)?void 0:t.closest("[".concat(kY,"], aside[data-anchor]"));o(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===i?null:null===i?r:(0,tZ.createPortal)(r,i)]})}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=OP(r),a=(0,x.useStore)(kv),i=a.active,o=a.sizes,s=i[r],l=o[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:km(null!=u?u:"left")},O7)}),u){var f=!0,p=!1,h=void 0;try{for(var m,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:km(u,e)},t.compartment)})}()}catch(e){p=!0,h=e}finally{try{f||null==b.return||b.return()}finally{if(p)throw h}}}var w=c.length>0,S=(0,g.useRef)([]),j=(0,g.useRef)(!1),O=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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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=O[0],E=O[1];w&&(S.current=c);var P=w?c:"closing"===k?S.current:[],A=P.length>0;(0,g.useLayoutEffect)(function(){if(w!==j.current){j.current=w,E(w?"opening":"closing");var e=window.setTimeout(function(){w||(S.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!=(m=a.heights)?m:{}),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]?OE(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)(kK,{anchor:u,index:t-1,items:D,heights:C,label:"Redimensionner ".concat(OE(P[t-1].tool)," et ").concat(OE(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!==km(null!=u?u:"left"),single:1===P.length})]},a.key)}),"closing"!==k&&(0,v.jsx)(kU,{anchor:r,label:"Redimensionner ".concat(N)}),"bottom"===r&&"closing"!==k&&null!==i.left&&(0,v.jsx)(kH,{side:"left",label:"Redimensionner la zone gauche et la zone basse"}),"bottom"===r&&"closing"!==k&&null!==i.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,i=e.own,o=e.single,s=OE(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(i?n.id:O9),"data-compartment":i?"own":"default","data-height":Math.round(100*a)/100},kY,""),kJ(t,"style",o?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:h1.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,i=e.zoneBottom;t&&(0,mP.createRoot)(t).render((0,v.jsx)(k9,{})),r&&(0,mP.createRoot)(r).render((0,v.jsx)(k7,{})),n&&(0,mP.createRoot)(n).render((0,v.jsx)(Ee,{anchor:"left"})),a&&(0,mP.createRoot)(a).render((0,v.jsx)(Ee,{anchor:"right"})),i&&(0,mP.createRoot)(i).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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(e,t)||Ei(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)||Ei(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 Ei(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 Eo=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,i=(0,x.useAssignedExtensions)(h1.yS),o=(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 o,s=i[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){var l=o.value;if((0,h1.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,h=u.group?null!=(p=u.groupLabel)?p:u.group:void 0;d={key:c,label:h?Eo(l.moduleName,u.groupLabelKey,h):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())},[i,a]),d=(0,g.useMemo)(function(){var e,t,r=c.flatMap(function(e){return e.entries}).filter(function(e){var t;return o===(t=e.meta.route)||o.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,o,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=O5(e.meta.icon),r=Eo(e.moduleName,e.meta.labelKey,e.meta.label),n=e.meta.description?Eo(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]})},Eh=function(){var e=Ed();return(0,v.jsxs)("div",{className:Ef.warpGlow,"aria-hidden":"true",children:[(0,v.jsx)(hz.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)(hz.div,{className:"".concat(Ef.warpBlob," ").concat(Ef.warpBlobA),initial:{opacity:0},animate:Ep(e),exit:{opacity:0,transition:{duration:.25}}}),(0,v.jsx)(hz.div,{className:"".concat(Ef.warpBlob," ").concat(Ef.warpBlobB),initial:{opacity:0},animate:Ep(e),exit:{opacity:0,transition:{duration:.25}}})]})};function Em(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Em(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 Em(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,i,o,s,l,u,c=e.open,d=e.defaultOpen,f=e.onOpenChange,p=e.trigger,h=e.children,m=e.showCloseButton,y=e.renderCloseButton,b=e.cardVariant,x=e.cardProps,w=e.draggable,S=void 0!==w&&w,j=e.dockable,k=void 0!==j&&j,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,$=e.overlayAnimation,U=e.overlayEffect,H=e.warpColor,G=e.className,K=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),ei=(0,g.useId)(),eo=void 0!==c,es=eo?c:X,el=(0,g.useCallback)(function(e){null==f||f(e),eo||Z(e)},[f,eo]),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!=(i=ed.duration)?i:.25,ease:null!=(o=ed.ease)?o:[.16,1,.3,1]},eh=ed.variants?void 0:null!=(s=ed.preset)?s:"scale",em=eh?Ec[eh]:void 0,ey=null!=U?U:"warp"===eh?"warp":"none",ev={duration:null!=(l=null==$?void 0:$.duration)?l:.2,ease:null!=(u=null==$?void 0:$.ease)?u:"easeOut"},eg=(0,v.jsx)(jA,{children:es&&(0,v.jsxs)("div",{className:Ef.root,children:[(void 0===L||L)&&!er&&(0,v.jsx)(hz.div,{className:O()(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)(Eh,{})}),er?(0,v.jsx)(hz.div,{ref:ea,className:O()(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)(oV,{size:20})}):(0,v.jsx)("div",{className:Ef.centerLayer,children:(0,v.jsx)(hz.div,{ref:ea,role:"dialog","aria-modal":"true","aria-labelledby":(null==x?void 0:x.title)?ei:void 0,className:O()(Ef.panel,G),style:Ev({},em,K),variants:ef,initial:"initial",animate:"animate",exit:"exit",transition:ep,drag:S,dragMomentum:!1,dragElastic:.12,onDragEnd:k?ec:void 0,whileDrag:S?{cursor:"grabbing"}:void 0,children:(0,v.jsxs)(F,(t=Ev({variant:void 0===b?"default":b},x),r=r={children:[(void 0===m||m)&&(y?y(eu):(0,v.jsx)("button",{type:"button",className:Ef.closeButton,onClick:eu,"aria-label":"Fermer",children:(0,v.jsx)(oj,{size:18})})),h]},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)]})},ES=(0,g.createContext)(null);function Ej(){var e=(0,g.useContext)(ES);if(!e)throw Error("Select compound components must be used within <Select>");return e}function EO(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,i=e.onOptionChange,o=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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return EO(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 EO(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],h=f[1],m=(0,g.useRef)(null),y=void 0!==o,b=y?o:p,x=(0,g.useCallback)(function(e){null==s||s(e),y||h(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]),S=(0,g.useCallback)(function(e){null==i||i(e),x(!1)},[i,x]);return(0,v.jsx)(ES.Provider,{value:{open:b,setOpen:x,selectedOption:w,options:n,onOptionSelect:S,getOptionId:u,getOptionName:d,triggerRef:m},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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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.")}(),i=a[0],o=a[1];return r&&!i?(0,v.jsx)("img",{className:"SfeZipJ-EbaokHctW8FEUA==",src:r,alt:"",onError:function(){return o(!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,i=e.showAvatar,o=e.placeholder,s=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(e,["className","renderTrigger","showAvatar","placeholder"]),l=Ej(),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:O()("_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===i||i)&&(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===o?"S\xe9lectionner…":o})}),(0,v.jsx)(ob,{className:O()("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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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,i=void 0===a?"Options":a,o=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,h=Ej(),m=h.open,y=h.setOpen,b=h.options,x=h.selectedOption,w=h.onOptionSelect,S=h.getOptionId,j=h.getOptionName,k=h.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(m&&k.current){var e=k.current.getBoundingClientRect();T({top:e.bottom+8,left:e.left,width:e.width})}},[m,k]),(0,g.useLayoutEffect)(function(){if(m){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)}}},[m,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 j(t).toLowerCase().includes(e)})},[b,P,j]);return(0,v.jsx)(jA,{children:m&&C&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"_55fm5zZQNsrBHYAZbXmNvg==",onClick:function(){return y(!1)},"aria-hidden":"true"}),(0,v.jsxs)(hz.div,{ref:N,role:"listbox",className:O()("_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:[i&&(0,v.jsx)("div",{className:"hvqzvUcvwgWeDSSzp+zRfQ==",children:(0,v.jsx)("p",{className:"WuMZ5aFHDUDGitQ16DWxkQ==",children:i})}),void 0!==o&&o&&(0,v.jsxs)("div",{className:"El+2XqUZnMl2EdCFZiCqZg==",children:[(0,v.jsx)(o1,{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&&S(x)===S(e));return(0,v.jsx)("button",{type:"button",role:"option","aria-selected":t,className:O()("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:j(e)}),(0,v.jsxs)("span",{className:"tv64rRuAO4duYiHknZebcQ==",children:[(0,v.jsx)("span",{className:"_2a5Da3T58kUDerdneCN30g==",children:j(e)}),"string"==typeof e.plan&&(0,v.jsx)("span",{className:"lcrpGqGFBDjmEWV5DeMRCw==",children:e.plan})]}),t&&(0,v.jsx)(og,{className:"v2g0jDDAFYSc-NvgPQzIuw==",size:16})]})},S(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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,i=e.subtitle,o=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],h=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:O()("wlcxPFWjrVtumBSV-e-CDA==",o),style:s,children:[(a||i)&&(0,v.jsxs)("div",{className:"bj+Iqs7YlC4rnGPeWHvfDA==",children:[a&&(0,v.jsx)("h1",{className:O()("BxZYvA8NGXlbyIbv2WeY+g==",EM,"hlPOKNY1Iajw1xOcwAeSBA=="),children:a}),i&&(0,v.jsx)("p",{className:O()("feAT6ZKoC5a3dcOZdCuiXQ==",EM,"bhPpy9KSGVluihqPVuUiTw=="),children:i})]}),(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 h(t)},onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),h(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"})}))},E$=function(e){return(0,v.jsx)("svg",EV(EB({},Ez(e)),{children:(0,v.jsx)("path",{d:"M20 6 9 17l-5-5"})}))},EU=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"})]}))},EG=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"})]}))},EK=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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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,i=e.open,o=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,h=e.stagger,m=void 0===h?.035:h,y=e.staggerDelay,b=void 0===y?.08:y,x=e.className,S=e.children,j=null!=(t=Ed())&&t,O=(0,g.useId)(),k=(0,g.useRef)(null),E=EY((0,g.useState)(void 0!==o&&o),2),P=E[0],A=E[1],D=void 0!==i,C=D?i: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,$=W?r:R,U=(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,i=new Map(r);return i.set(e,{label:t,count:(null!=(n=null==(a=r.get(e))?void 0:a.count)?n:0)+1}),i})},[]),G=(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 K=(0,g.useMemo)(function(){return{value:$,open:C,setOpen:T,select:U,register:H,unregister:G,labelFor:function(e){var t;return void 0===e||null==(t=L.get(e))?void 0:t.label},placeholder:V,setPlaceholder:z,reduce:j,layoutId:"".concat(O,"-surface"),triggerId:"".concat(O,"-trigger"),listId:"".concat(O,"-list"),disabled:u,transition:d,radius:p,stagger:m,staggerDelay:b}},[$,C,T,U,H,G,L,V,j,O,u,d,p,m,b]);return(0,v.jsx)(EJ.Provider,{value:K,children:(0,v.jsx)("div",{ref:k,className:(0,w.cn)("relative",x),children:S})})}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 i=a.labelFor(a.value);return(0,v.jsx)("span",{className:(0,w.cn)(i?"text-foreground":"text-muted-foreground",n),children:null!=(t=null!=i?i:r)?t:"Select"})}function E3(e){var t,r,n=e.className,a=e.icon,i=e.children,o=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:[i,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)(jA,{initial:!1,mode:"popLayout",children:o.open?null:(0,v.jsxs)(hz.button,{layoutId:o.layoutId,type:"button",id:o.triggerId,disabled:o.disabled,"aria-haspopup":"listbox","aria-expanded":o.open,"aria-controls":o.listId,onClick:function(){return o.setOpen(!0)},transition:o.reduce?{duration:0}:o.transition,style:{borderRadius:o.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)(hz.span,{layout:"position",className:"min-w-0 truncate",children:i}),(0,v.jsx)(hz.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,i=e.children,o=E0("MorphSelectContent"),s=o.labelFor(o.value),l=(0,g.useMemo)(function(){return{hidden:{},show:{transition:{staggerChildren:o.stagger,delayChildren:o.staggerDelay}}}},[o.stagger,o.staggerDelay]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"hidden",children:i}),(0,v.jsx)(jA,{initial:!1,mode:"popLayout",children:o.open?(0,v.jsxs)(hz.div,{layoutId:o.layoutId,id:o.listId,role:"listbox","aria-labelledby":o.triggerId,transition:o.reduce?{duration:0}:o.transition,style:{borderRadius:o.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)(hz.button,{type:"button",layout:"position","aria-expanded":!0,onClick:function(){return o.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:o.placeholder}),(0,v.jsx)(hz.span,{animate:{rotate:180},transition:o.reduce?{duration:0}:o.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)(hz.ul,{initial:"hidden",animate:"show",variants:o.reduce?void 0:l,className:(0,w.cn)("p-1",n),children:i})]},"panel"):null})]})}function E5(e){var t=e.value,r=e.disabled,n=e.label,a=e.indicator,i=e.className,o=e.children,s=E0("MorphSelectItem"),l=s.value===t,u=null!=n?n:"string"==typeof o?o: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)(hz.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",i),children:[o,l?null!=a?a:(0,v.jsx)(E$,{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,i,o){try{var s=e[i](o),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,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(e,t)||Po(e,t)||Pe()}function Pi(e){return E8(e)||E7(e)||Po(e)||Pe()}function Po(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),i=g.useRef(null),o=g.useRef(null),s=function(t){if(!e&&a.current&&i.current){n(!0),null==(r=o.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},h=p;t&&"clientX"in t&&(h={x:t.clientX-s.left-c/2,y:t.clientY-s.top-c/2}),i.current.style.width="".concat(c,"px"),i.current.style.height="".concat(c,"px"),o.current=i.current.animate([{transform:"translate(".concat(h.x,"px, ").concat(h.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,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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=o.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 i=e.apply(t,r);function o(e){E9(i,n,a,o,s,"next",e)}function s(e){E9(i,n,a,o,s,"throw",e)}o(void 0)})})()};return{surfaceRef:a,rippleRef:i,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=Pi([e,t]),n=r[0],a=r.slice(1),i=n.children,o=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),h=Pa(g.useState(0),2),m=h[0],y=h[1],b=Pa(g.useState(0),2),x=b[0],S=b[1],j=Pa(g.useState(!1),2),O=j[0],k=j[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),S((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(O){var e=function(e){if(d.current){var t=e.clientY-E.current.startY,r=d.current,n=r.scrollHeight,a=r.clientHeight,i=Math.max(a/n*a,30);d.current.scrollTop=E.current.startScrollTop+(n-a)/(a-i)*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)}}},[O,d]),(0,v.jsxs)("div",Pr(Pt({ref:u,"data-dragging":O,className:(0,w.cn)("relative overflow-hidden group/scroll",o)},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:i}),(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"}),m>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:m,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 '}})},Ph=g.forwardRef(function(e,t){var r=Pi([e,t]),n=r[0],a=r.slice(1),i=n.className,o=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,h=f.rippleRef,m=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",i),onMouseDown:function(e){e.preventDefault()},onClick:function(){setTimeout(function(){return u()},150)}},y,c),{children:[(0,v.jsx)(Pd,{rippleRef:h,pressed:m}),(0,v.jsx)("span",{className:"relative z-10 flex w-full items-center pointer-events-none",children:o})]}))});function Pm(e){var t=e.items,r=e.placeholder,n=e.emptyMessage,a=e.value,i=e.onValueChange,o=e.disabled,s=e.isCreatable,l=e.onCreate,u=e.className,c=e.onInputChange,d=e.loading,f=e.filterFn,p=e.debounceInterval,h=void 0===p?0:p,m=e.name,y=e.id,b=e.required,x=e["aria-label"],S=e["aria-labelledby"],j=e.maxOptions,O=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)},$=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=$[1],G=Pa(g.useState(U),2),K=G[0],q=G[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"),ei=Pa(g.useState("bottom"),2),eo=ei[0],es=ei[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),eh=g.useRef(null),em=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],eS=ex[1],ej=Pa(g.useState(t),2),eO=ej[0],ek=ej[1];if(a!==ew||t!==eO)if(eS(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(o),eM=eR.surfaceRef,eI=eR.rippleRef,e_=eR.pressed,eL=eR.events,eF=Pc(o),eB=eF.surfaceRef,eV=eF.rippleRef,ez=eF.pressed,eW=eF.events,e$=g.useMemo(function(){return!1===f||null===f?t:f?t.filter(function(e){return f(e,K)}):K?t.filter(function(e){return e.label.toLowerCase().includes(K.toLowerCase())}):t},[t,K,f]),eU=Pa(g.useState(e$),2),eH=eU[0],eG=eU[1];g.useEffect(function(){"open"===J&&eG(e$)},[e$,J]);var eK=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(){eK()});return t.observe(e),e.parentElement&&t.observe(e.parentElement),window.addEventListener("resize",eK),function(){t.disconnect(),window.removeEventListener("resize",eK)}}},[eK]),g.useEffect(function(){if(X)return window.addEventListener("scroll",eK,{capture:!0,passive:!0}),function(){window.removeEventListener("scroll",eK,!0)}},[X,eK]);var eq=g.useCallback(function(e){H(e),eb.current&&clearTimeout(eb.current),h&&h>0?eb.current=setTimeout(function(){q(e),c&&c(e)},h):(q(e),c&&c(e))},[h,c]),eY=g.useCallback(function(e){if(Z(!0),ee("open"),eg.current&&clearTimeout(eg.current),"number"==typeof e)en(e);else{var t=e$.findIndex(function(e){return e.value===a});en(t>=0?t:-1)}},[e$,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=em.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=em.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=em.current;if(r){var n=!1,a=function(a){n=!0,e=a.pageX-r.offsetLeft,t=r.scrollLeft,document.body.style.userSelect="none"},i=function(){n&&(n=!1,document.body.style.userSelect="")},o=function(a){if(n){a.preventDefault();var i=(a.pageX-r.offsetLeft-e)*1.5;r.scrollLeft=t-i}},s=function(e){0!==e.deltaY&&(e.preventDefault(),r.scrollLeft+=e.deltaY)};r.addEventListener("mousedown",a),r.addEventListener("mouseleave",i),r.addEventListener("mouseup",i),r.addEventListener("mousemove",o),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",i),r.removeEventListener("mouseup",i),r.removeEventListener("mousemove",o),r.removeEventListener("wheel",s),r.removeEventListener("scroll",eZ),l.disconnect(),document.body.style.userSelect=""}}},[X,a,eZ]);var eJ=void 0!==s&&s&&U.length>0&&!t.some(function(e){return e.label.toLowerCase()===U.toLowerCase()}),e0=function(e){var r;if(R){var n,o,s=a||[];if(s.includes(e)){if("number"==typeof O&&s.length<=O){null==(n=ed.current)||n.focus();return}var l=s.filter(function(t){return t!==e});i&&i(l)}else{if("number"==typeof j&&s.length>=j){null==(o=ed.current)||o.focus();return}var u=((function(e){if(Array.isArray(e))return E6(e)})(s)||E7(s)||Po(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]);i&&i(u)}H(""),q(""),c&&c("")}else{if(a===e)H(""),q(""),i&&i("");else{var d,f=(null==(d=t.find(function(t){return t.value===e}))?void 0:d.label)||"";H(f),q(f),i&&i(e)}eX()}null==(r=ed.current)||r.focus()},e1=function(){var e;l&&U&&l(U),R||eX(),null==(e=ed.current)||e.focus()},e2=U.length>0?"x":X?"up":"down",e3="closing"===J?eH:e$,e4=R&&(a||[]).length>0,e5=g.useCallback(function(e){if(!R)return!1;var t=a||[];return!t.includes(e)&&"number"==typeof j&&!!(t.length>=j)},[R,a,j]),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,{}),m&&(R?(a||[]).length>0?(a||[]).map(function(e){return(0,v.jsx)("input",{type:"hidden",name:m,value:e},e)}):(0,v.jsx)("input",{type:"hidden",name:m,value:"",required:b}):(0,v.jsx)("input",{type:"hidden",name:m,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"===eo?"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":S,value:U,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=e$.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<e$.length){var r=e$[er],n=R&&a||[],i=n.includes(r.value);R&&!i&&"number"==typeof j&&n.length>=j||e0(r.value)}else eJ&&e1();break;case"Escape":eX()}},disabled:o,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(),U.length>0?(eq(""),!R&&i&&i(""),X||eY(-1)):X?eX():eY()},disabled:o,"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"===eo?"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:em,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 O||!(r.length<=O)){var n=r.filter(function(t){return t!==e});i&&i(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"}),(!O||0===O)&&(0,v.jsxs)("button",Pr(Pt({ref:eB,type:"button",onClick:function(){var e;i&&i([]),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:eh,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,i=er===t;return(0,v.jsxs)(Ph,{id:W(t),isActive:i,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:i,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)(Ph,{id:W(e$.length),isActive:er===e$.length,isSelected:!1,onSelectAction:e1,onMouseMove:function(e){(0!==e.movementX||0!==e.movementY)&&(ea.current="mouse",er!==e$.length&&en(e$.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(U)})]})]}):(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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)}}Ph.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,i=e.defaultValue,o=e.onValueChange,s=e.open,l=e.defaultOpen,u=e.onOpenChange,c=e.disabled,d=e.placeholder,f=e.searchPlaceholder,p=e.emptyMessage,h=e.searchable,m=e.allowDeselect,y=void 0===m||m,b=e.closeOnSelect,x=void 0===b||b,S=e.filterFn,j=e.onSearchChange,O=e.side,k=void 0===O?"auto":O,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"),$=function(e){return"".concat(z,"-option-").concat(e)},U=void 0!==a,H=Pv(g.useState(void 0===i?"":i),2),G=H[0],K=H[1],q=U?a:G,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),ei=ea[0],eo=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),eh=g.useRef(null),em=g.useMemo(function(){return n.find(function(e){return e.value===q})},[n,q]),ey=g.useMemo(function(){if(!1===S)return n;var e=null!=S?S:Px;return n.filter(function(t){return e(t,er)})},[n,er,S]),ev=g.useCallback(function(e){var t,r=y&&e===q?"":e;U||K(r),null==o||o(r),x&&(ee(!1),null==(t=ef.current)||t.focus())},[y,q,U,o,x,ee]);g.useEffect(function(){if(!J)return void en("");var e=ey.findIndex(function(e){return e.value===q&&!e.disabled});eo(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&&eo(Math.max(0,ey.findIndex(function(e){return!e.disabled})))},[er]),g.useEffect(function(){var e,t;J&&"keyboard"===ec.current&&(null==(t=eh.current)||null==(e=t.querySelector('[data-index="'.concat(ei,'"]')))||e.scrollIntoView({block:"nearest"}))},[ei,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 eS=function(e){var t=e.item,r=e.index,n=q===t.value,a=ei===r;return(0,v.jsxs)("div",{id:$(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",ei!==r&&eo(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)(E$,{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(em):em?em.label:void 0===d?"Select...":d}),null!=N?N:(0,v.jsx)(EU,{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",eo(function(e){return eg(1,e)});break;case"ArrowUp":e.preventDefault(),ec.current="keyboard",eo(function(e){return eg(-1,e)});break;case"Home":e.preventDefault(),ec.current="keyboard",eo(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});eo(r>=0?ey.length-1-r:0);break;case"Enter":e.preventDefault();var n=ey[ei];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===h||h?(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?$(ei):void 0,placeholder:void 0===f?"Search...":f,value:er,onChange:function(e){en(e.target.value),ec.current="keyboard",null==j||j(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?$(ei):void 0,className:"sr-only"}),(0,v.jsx)("div",{ref:eh,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(eS)]},"".concat(null!=(r=e.heading)?r:"_","-").concat(t))})})]})}):null]})}function PS(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 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,r,n,a,i,o){try{var s=e[i](o),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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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 Pj(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 Pj(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 Pj(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,i,o,s,l,u,c,d=e.fetcher,f=e.getOptionValue,p=e.getOptionLabel,h=e.renderOption,m=e.getDisplayValue,y=e.getOptionGroup,b=e.getOptionDisabled,x=e.preload,S=void 0!==x&&x,j=e.filterFn,O=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,$=e.placeholder,U=void 0===$?"Select...":$,H=e.searchPlaceholder,G=e.noResultsMessage,K=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,ei=e.showClearButton,eo=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,eh=e.sideOffset,em=void 0===eh?4:eh,ey=e.maxListHeight,ev=void 0===ey?300:ey,eg=e.loadingSkeleton,eb=e.loadingIndicator,ex=e.notFound,ew=e.renderError,eS=e.header,ej=e.footer,eO=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!=eo?eo:!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],e$=ez[1],eU=eV?PD(e.value):eW,eH=void 0!==R,eG=PE(g.useState(void 0!==M&&M),2),eK=eG[0],eq=eG[1],eY=eH?R:eK,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=eU.join("\0");g.useEffect(function(){var e=e0.current;if(e){var t=!1;return eU.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=S?"":e3,r=S?0:void 0===O?300:O,i=(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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(n)||function(e){if(e){if("string"==typeof e)return PS(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 PS(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],o=a[1],g.useEffect(function(){if(!(r<=0)){var e=setTimeout(function(){return o(t)},r);return function(){return clearTimeout(e)}}},[t,r]),r<=0?t:i),e6=e5.trim(),e8=!S&&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),ti=ta[0],to=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),th=tp[0],tm=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),tS=g.useRef(0),tj=g.useRef(0),tO=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),tm(!1),tj.current=t.page,to(null),tn("ready");return}null==(e=tO.current)||e.abort();var r=new AbortController,n=++tS.current;return tn("loading"),to(null),tm(!1),Promise.resolve().then(function(){return tb.current(""===e6?"":e5,{signal:r.signal,page:0})}).then(function(e){if(!r.signal.aborted&&n===tS.current){var t=PC(e);tP(t.items),D&&tw.current.set(tE,{items:t.items,hasMore:t.hasMore,page:0}),tj.current=0,te(t.items),tu(t.hasMore),tn("ready"),eJ()}}).catch(function(e){if(!r.signal.aborted&&n===tS.current){var t;to((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,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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(i){switch(i.label){case 0:if("ready"!==tr||!tl||td)return[2];e=tS.current,t=tj.current+1,tO.current=r=new AbortController,tf(!0),tm(!1),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,tb.current(""===e6?"":e5,{signal:r.signal,page:t})];case 2:if(n=i.sent(),r.signal.aborted||e!==tS.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}),tj.current=t,tu(a.hasMore),[3,5];case 3:return i.sent(),r.signal.aborted||e!==tS.current||tm(!0),[3,5];case 4:return tO.current===r&&(tO.current=null,tf(!1)),[7];case 5:return[2]}})},function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(e){PO(i,n,a,o,s,"next",e)}function s(e){PO(i,n,a,o,s,"throw",e)}o(void 0)})})()},[tr,tl,td,e6,e5,tP,D,tE]);g.useEffect(function(){return function(){var e;tS.current+=1,null==(e=tO.current)||e.abort()}},[]);var tC=g.useMemo(function(){return!1===j?null:j||(S?function(e,t){var r=t.trim().toLowerCase();return!r||eB(e).toLowerCase().includes(r)}:null)},[j,S,eB]),tT=g.useMemo(function(){return tC&&e3?e7.filter(function(e){return tC(e,e3)}):e7},[e7,tC,e3]),tN=eU.map(function(e){return eZ.current.get(e)}),tR=eT&&void 0!==eN&&eU.length>=eN,tM=function(e){return!!(null==b?void 0:b(e))||tR&&!eU.includes(f(e))},tI=function(t){var r,n,a;eV||e$(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=eU.includes(r);if(!n&&tR)return;tI(n?eU.filter(function(e){return e!==r}):PP(eU).concat([r]))}else tI(ea&&eU[0]===r?[]:[r]);eI&&(eX(!1),null==(t=t_.current)||t.focus())},tW=function(e){return tI(eU.filter(function(t){return t!==e}))},t$=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:t$,refresh:function(){tw.current.clear(),tg(function(e){return e+1})}}},[F,eX,eU,eV]);var tU=PE(g.useState(0),2),tH=tU[0],tG=tU[1],tK=PE(g.useState("bottom"),2),tq=tK[0],tY=tK[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===eU[0]?-1:tT.findIndex(function(e){return f(e)===eU[0]&&!tM(e)});tG(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||th||"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,th,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:em}:{marginBottom:em}),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=eU.includes(n),i=tH===r,o=tM(t);return(0,v.jsxs)("div",{id:eF(r),role:"option","data-index":r,"data-selected":i,"data-disabled":o?"true":void 0,"aria-selected":a,"aria-disabled":o||void 0,onMouseMove:function(){o||(tX.current="mouse",tH!==r&&tG(r))},onClick:function(){return!o&&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:[h?h(t,{isActive:i,isSelected:a,isDisabled:o}):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)(E$,{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=eU.length>0,t5=null!=H?H:"Search ".concat(W.toLowerCase(),"..."),t6=null!=G?G:"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?eU.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=eU[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(eU[eU.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:U});if(!eT){var e=tN[0];return(0,v.jsx)("span",{className:"min-w-0 truncate",children:void 0!==e?m?m(e):eB(e):eU[0]})}var t=eU.slice(0,Math.max(0,eR)),r=eU.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)(EG,{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!==ei&&ei&&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(),t$()},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)(EG,{className:"size-4"})}):null,null!=eO?eO:(0,v.jsx)(EU,{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&&eU.length>0)return void tW(eU[eU.length-1]);if(0!==tT.length)switch(e.key){case"ArrowDown":e.preventDefault(),tX.current="keyboard",tG(function(e){return tQ(1,e)});break;case"ArrowUp":e.preventDefault(),tX.current="keyboard",tG(function(e){return tQ(-1,e)});break;case"Home":e.preventDefault(),tX.current="keyboard",tG(tZ());break;case"End":e.preventDefault(),tX.current="keyboard";var r=PP(tT).reverse().findIndex(function(e){return!tM(e)});tG(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:[eS?(0,v.jsx)("div",{className:null==eP?void 0:eP.header,children:eS}):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)(EK,{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!=K?K:"Type at least ".concat(E," characters to search.")}):"error"===tr?ew?ew(null!=ti?ti: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!=ti?ti: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:th?(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)(EK,{className:"size-4 animate-spin"}):null}):null]}),ej?(0,v.jsx)("div",{className:null==eP?void 0:eP.footer,children:ej}):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,i=e.cardHeight,o=void 0===i?352:i,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),h=(0,g.useRef)(0),m=(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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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},[]),S=(0,g.useCallback)(function(){return d.current?Array.from(d.current.querySelectorAll("[data-image-swiper-card]")):[]},[]),j=(0,g.useCallback)(function(){return S()[0]||null},[S]),k=(0,g.useCallback)(function(){S().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"})},[S]),E=(0,g.useCallback)(function(e){var t=j();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())},[j]),P=(0,g.useCallback)(function(e){if(!f.current){f.current=!0,p.current=e,h.current=e;var t=j();t&&(t.style.transition="none")}},[j]),A=(0,g.useCallback)(function(){if(f.current){m.current&&(cancelAnimationFrame(m.current),m.current=null);var e=h.current-p.current,t=w("--card-swap-duration",d.current),r=j();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(){j()===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,h.current=0}},[w,j,E,c]),D=(0,g.useCallback)(function(e){f.current&&(m.current&&cancelAnimationFrame(m.current),m.current=requestAnimationFrame(function(){h.current=e;var t=h.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),m.current&&cancelAnimationFrame(m.current)}}},[P,D,A]),(0,g.useEffect)(function(){k()},[b,k]),(0,v.jsx)("section",{ref:d,className:O()("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:o+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:o},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,P$=Math.cos,PU=Math.abs,PH=Math.sqrt,PG=Math.atan2,PK=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],i=1===n?6:An(a,r,n);if((i||!n)&&i+r+2<a.length)return e.splice(t,0,a.slice(0,r+i+2)),a.splice(0,r+i),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=PK(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?PK(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),i=a.length;for(t=","+t+",";--i>-1;)r=a[i].nodeName.toLowerCase(),0>t.indexOf(","+r+",")&&n.setAttributeNS(null,r,a[i].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],i=e[t+2],o=e[t+4];return a+=(i-a)*r,i+=(o-i)*r,a+=(i-a)*r,n=i+(o+(e[t+6]-o)*r-i)*r-a,a=e[t+1],i=e[t+3],o=e[t+5],a+=(i-a)*r,i+=(o-i)*r,a+=(i-a)*r,PQ(PG(i+(o+(e[t+7]-o)*r-i)*r-a,n)*Pz)}function At(e,t,r){var n=Math.max(0,~~(PU((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 i=Math.abs(~~Math.min(t,r))+1;t+=i,r+=i}a.totalLength||Ar(a);var o,s,l,u,c,d,f,p,h=r>1,m=Aa(a,t,PY,!0),y=Aa(a,r,PX),v=y.segment,g=m.segment,b=y.segIndex,x=m.segIndex,w=y.i,S=m.i,j=x===b,O=w===S&&j;if(h||n){for(o=b<x||j&&w<S||O&&y.t<m.t,P1(a,x,S,m.t)&&(x++,!o&&(b++,O?(y.t=(y.t-m.t)/(1-m.t),w=0):j&&(w-=S))),1e-5>Math.abs(1-(r-t))?b=x-1:!y.t&&b?b--:P1(a,b,w,y.t)&&o&&x++,1===m.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,S,O?m.t/y.t:m.t),j&&(l+=s),v.splice(w+l+2),(s||S)&&g.splice(0,S+s),u=a.length;u--;)(u<x||u>b)&&a.splice(u,1);else v.angle=Ae(v,w+l,0),w+=l,m=v[w],y=v[w+1],v.length=v.totalLength=0,v.totalPoints=a.totalPoints=8,v.push(m,y,m,y,m,y,m,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,i,o,s,l,u,c,d,f,p,h,m,y,v,g,b=~~e.resolution||12,x=1/b,w=e.length,S=e[t],j=e[t+1],O=t?t/6*b:0,k=e.samples,E=e.lookup,P=(t?e.minLength:1e8)||1e8,A=k[O+(void 0)*b-1],D=t?k[O-1]:0;for(k.length=E.length=0,n=t+2;n<w;n+=6){if(a=e[n+4]-S,i=e[n+2]-S,o=e[n]-S,u=e[n+5]-j,c=e[n+3]-j,d=e[n+1]-j,s=l=f=p=0,.01>PU(a)&&.01>PU(u)&&PU(o)+PU(d)<.01)e.length>8&&(e.splice(n,6),n-=6,w-=6);else for(r=1;r<=b;r++)h=1-(m=x*r),s=l-(l=(m*m*a+3*h*(m*i+h*o))*m),(v=PH((f=p-(p=(m*m*u+3*h*(m*c+h*d))*m))*f+s*s))<P&&(P=v),D+=v,k[O++]=D;S+=a,j+=u}if(A)for(A-=D;O<k.length;O++)k[O]+=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],i=e[t+2],o=e[t+3],s=e[t+4],l=e[t+5],u=e[t+6],c=e[t+7],d=n+(i-n)*r,f=i+(s-i)*r,p=a+(o-a)*r,h=o+(l-o)*r,m=d+(f-d)*r,y=p+(h-p)*r,v=s+(u-s)*r,g=l+(c-l)*r;return f+=(v-f)*r,h+=(g-h)*r,e.splice(t+2,4,PQ(d),PQ(p),PQ(m),PQ(y),PQ(m+(f-m)*r),PQ(y+(h-y)*r),PQ(f),PQ(h),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,i,o,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(o=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<o;)d=u;t=(o-(s=l-(f=e[d]).totalLength))/(l-s)||0}a=f.samples,i=f.resolution,o=f.totalLength*t,s=(u=f.lookup.length?f.lookup[~~(o/f.minLength)]||0:P2(a,o,t))?a[u-1]:0,(l=a[u])<o&&(s=l,l=a[++u]),c=1/i*((o-s)/(l-s)+u%i),u=6*~~(u/i),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 Ai(e,t,r,n){var a,i,o,s,l,u,c,d,f,p=e[0],h=n||{};if((t<0||t>1)&&(t=PZ(t)),p.lookup||Ar(e),e.length>1){for(o=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<o;)p=e[u];t=(o-(s=l-p.totalLength))/(l-s)||0}return a=p.samples,i=p.resolution,o=p.totalLength*t,s=(u=p.lookup.length?p.lookup[t<1?~~(o/p.minLength):p.lookup.length-1]||0:P2(a,o,t))?a[u-1]:0,(l=a[u])<o&&(s=l,l=a[++u]),f=1-(c=1/i*((o-s)/(l-s)+u%i)||0),d=p[u=6*~~(u/i)],h.x=PQ((c*c*(p[u+6]-d)+3*f*(c*(p[u+4]-d)+f*(p[u+2]-d)))*c+d),h.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&&(h.angle=p.totalLength?Ae(p,u,c>=1?1-1e-9:c||1e-9):p.angle||0),h}function Ao(e,t,r,n,a,i,o){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+i,s[u+1]=c*r+d*a+o;return e._dirty=1,e}function As(e){var t,r,n,a,i,o,s,l,u,c,d,f,p,h,m,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,S=0,j="ERROR: malformed path: "+e,O=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(j),v;for(t=0;t<w;t++)if(p=i,isNaN(y[t])?o=(i=y[t].toUpperCase())!==y[t]:t--,n=+y[t+1],a=+y[t+2],o&&(n+=g,a+=b),t||(l=n,u=a),"M"===i)s&&(s.length<8?v.length-=1:S+=s.length,P0(s)),g=l=n,b=u=a,s=[n,a],v.push(s),t+=2,i="L";else if("C"===i)s||(s=[0,0]),o||(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"===i)c=g,d=b,("C"===p||"S"===p)&&(c+=g-s[s.length-4],d+=b-s[s.length-3]),o||(g=b=0),s.push(c,d,n,a,g+=+y[t+3],b+=+y[t+4]),t+=4;else if("Q"===i)c=g+(n-g)*x,d=b+(a-b)*x,o||(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"===i)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"===i)O(g,b,g=n,b),t+=1;else if("V"===i)O(g,b,g,b=n+(o?b-g:0)),t+=1;else if("L"===i||"Z"===i)"Z"===i&&(n=l,a=u,s.closed=!0),("L"===i||PU(g-n)>.5||PU(b-a)>.5)&&(O(g,b,n,a),"L"===i&&(t+=2)),g=n,b=a;else if("A"===i){if(h=y[t+4],m=y[t+5],c=y[t+6],d=y[t+7],r=7,h.length>1&&(h.length<3?(d=c,c=m,r--):(d=m,c=h.substr(2),r-=2),m=h.charAt(1),h=h.charAt(0)),f=function(e,t,r,n,a,i,o,s,l){if(e!==s||t!==l){r=PU(r),n=PU(n);var u=a%360*PV,c=P$(u),d=PW(u),f=Math.PI,p=2*f,h=(e-s)/2,m=(t-l)/2,y=c*h+d*m,v=-d*h+c*m,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,S=n*n,j=(w*S-w*b-S*g)/(w*b+S*g);j<0&&(j=0);var O=(i===o?-1:1)*PH(j),k=r*v/n*O,E=-(n*y/r*O),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),!o&&I>0?I-=p:o&&I<0&&(I+=p),M%=p;var L,F=Math.ceil(PU(I%=p)/(p/4)),B=[],V=I/F,z=4/3*PW(V/2)/(1+P$(V/2)),W=c*r,$=d*r,U=-(d*n),H=c*n;for(L=0;L<F;L++)y=P$(a=M+L*V),v=PW(a),D=P$(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*U+P,B[L+1]=y*$+v*H+A;return B[L-2]=s,B[L-1]=l,B}}(g,b,+y[t+1],+y[t+2],+y[t+3],+h,+m,(o?g:0)+ +c,(o?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(j);return(t=s.length)<6?(v.pop(),t=0):P0(s),v.totalPoints=S+t,v}function Al(e,t){1e-4>PU(e[0]-e[2])&&1e-4>PU(e[1]-e[3])&&(e=e.slice(2));var r,n,a,i,o,s,l,u,c,d,f,p,h,m,y,v=e.length-2,g=+e[0],b=+e[1],x=+e[2],w=+e[3],S=[g,b,g,b],j=x-g,O=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(i=j,o=O,j=x-g,O=w-b,k[a]){S.push(g-(g-r)/4,b-(b-n)/4,g,b,g+(x-g)/4,b+(w-b)/4);continue}s=PH(i*i+o*o),l=PH(j*j+O*O),u=PH(Math.pow(j/l+i/s,2)+Math.pow(O/l+o/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)),h=b-(b-n)*(s?c/s:0),m=b+(w-b)*(l?c/l:0),y=b-(h+((m-h)*(3*s/(s+l)+.5)/4||0)),S.push(PQ(d+p),PQ(h+y),PQ(g),PQ(b),PQ(f+p),PQ(m+y))}return g!==x||b!==w||S.length<4?S.push(PQ(x),PQ(w),PQ(x),PQ(w)):S.length-=2,2===S.length?S.push(g,b,g,b,g,b):E&&(S.splice(0,6),S.length-=6),S.closed=E,S}function Au(e){Pq(e[0])&&(e=[e]);var t,r,n,a,i="",o=e.length;for(r=0;r<o;r++){for(i+="M"+PQ((a=e[r])[0])+","+PQ(a[1])+" C",t=a.length,n=2;n<t;n++)i+=PQ(a[n++])+","+PQ(a[n++])+" "+PQ(a[n++])+","+PQ(a[n++])+" "+PQ(a[n++])+","+PQ(a[n])+" ";a.closed&&(i+="z")}return i}var Ac,Ad,Af,Ap,Ah,Am,Ay,Av,Ag,Ab,Ax,Aw="transform",AS=Aw+"Origin",Aj=function(e){var t=e.ownerDocument||e;for(!(Aw in e.style)&&("msTransform"in e.style)&&(AS=(Aw="msTransform")+"Origin");t.parentNode&&(t=t.parentNode););if(Ap=window,Ag=new AR,t){Af=t,Ah=t.documentElement,Am=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},AO=function(e){for(var t,r;e&&e!==Am;)(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||Aj(t))){var n=AP(t),a=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i=n?r?"rect":"g":"div",o=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"),i):Af.createElement(i);return r&&(n?(Av||(Av=e(t)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+o+","+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:o+"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,i,o,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?(i=-(a=AC(e)).e/a.a,o=-a.f/a.d,n=Ag):e.getBBox?(a=e.getBBox(),i=(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,o=n.b*a.x+n.d*a.y):(n=new AR,i=o=0),t&&"g"===e.tagName.toLowerCase()&&(i=o=0),(u||!e.getBoundingClientRect().width?l:d).appendChild(r),r.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+i)+","+(n.f+o)+")");else{if(i=o=0,Ax)for(n=e.offsetParent,a=e;a&&(a=a.parentNode)&&a!==n&&a.parentNode;)(Ap.getComputedStyle(a)[Aw]+"").length>4&&(i=a.offsetLeft,o=a.offsetTop,a=0);if("absolute"!==(s=Ap.getComputedStyle(e)).position&&"fixed"!==s.position)for(n=e.offsetParent;d&&d!==n;)i+=d.scrollLeft||0,o+=d.scrollTop||0,d=d.parentNode;(a=r.style).top=e.offsetTop-o+"px",a.left=e.offsetLeft-i+"px",a[Aw]=s[Aw],a[AS]=s[AS],a.position="fixed"===s.position?"fixed":"absolute",f.appendChild(r)}return r},AN=function(e,t,r,n,a,i,o){return e.a=t,e.b=r,e.c=n,e.d=a,e.e=i,e.f=o,e},AR=function(){function e(e,t,r,n,a,i){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===i&&(i=0),AN(this,e,t,r,n,a,i)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,r=this.c,n=this.d,a=this.e,i=this.f,o=e*n-t*r||1e-10;return AN(this,n/o,-t/o,-r/o,e/o,(r*i-n*a)/o,-(e*i-t*a)/o)},t.multiply=function(e){var t=this.a,r=this.b,n=this.c,a=this.d,i=this.e,o=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,i+d*t+f*n,o+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,i=this.e,o=this.f;return t===e.a&&r===e.b&&n===e.c&&a===e.d&&i===e.e&&o===e.f},t.apply=function(e,t){void 0===t&&(t={});var r=e.x,n=e.y,a=this.a,i=this.b,o=this.c,s=this.d,l=this.e,u=this.f;return t.x=r*a+n*o+l||0,t.y=r*i+n*s+u||0,t},e}();function AM(e,t,r,n){if(!e||!e.parentNode||(Af||Aj(e)).documentElement===e)return new AR;var a=AO(e),i=AP(e)?Ak:AE,o=AT(e,r),s=i[0].getBoundingClientRect(),l=i[1].getBoundingClientRect(),u=i[2].getBoundingClientRect(),c=o.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||Ah.scrollLeft||Am.scrollLeft||0),s.top+(d?0:Ap.pageYOffset||Af.scrollTop||Ah.scrollTop||Am.scrollTop||0));if(c.removeChild(o),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(","),A$=Math.PI/180,AU=function(e,t,r,n){for(var a=t.length,i=2===n?0:n,o=0;o<a;o++)e[i]=parseFloat(t[o][r]),2===n&&(e[i+1]=0),i+=2;return e},AH=function(e,t,r){return parseFloat(e._gsap.get(e,t,r||"px"))||0},AG=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},AK=function(e,t,r,n,a,i,o,s,l){return"cubic"===o.type?t=[t]:(!1!==o.fromCurrent&&t.unshift(AH(r,n,s),a?AH(r,a,l):0),o.relative&&AG(t),t=[(a?Al:function(e,t){void 0===t&&(t=1);for(var r=e[0],n=0,a=[r,0],i=2;i<e.length;i+=2)a.push(r,n,e[i],n=(e[i]-r)*t/2,r=e[i],-n);return a})(t,o.curviness)]),t=i(AQ(t,r,o)),AJ(e,r,n,t,"x",s),a&&AJ(e,r,a,t,"y",l),Ar(t,o.resolution||(0===o.curviness?20:12))},Aq=function(e){return e},AY=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,AX=function(e,t,r){var n,a=AM(e),i=0,o=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&&(i=t.push?t[0]*(n?n.width:e.offsetWidth||0):t.x,o=t.push?t[1]*(n?n.height:e.offsetHeight||0):t.y),r.apply(i||o?a.apply({x:i,y:o}):{x:a.e,y:a.f})},AZ=function(e,t,r,n){var a,i=AM(e.parentNode,!0,!0),o=i.clone().multiply(AM(t)),s=AX(e,r,i),l=AX(t,n,i),u=l.x,c=l.y;return o.e=o.f=0,"auto"===n&&t.getTotalLength&&"path"===t.tagName.toLowerCase()&&(a=t.getAttribute("d").match(AY)||[],u+=(a=o.apply({x:+a[0],y:+a[1]})).x,c+=a.y),a&&(u-=(a=o.apply(t.getBBox())).x,c-=a.y),o.e=u-s.x,o.f=c-s.y,o},AQ=function(e,t,r){var n,a,i,o=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"),h=AH(t,"y");return e&&e.length?(o&&("self"===o||(n=AF(o)[0]||t)===t?Ao(e,1,0,0,1,p-d,h-f):(c&&!1!==c[2]?AI.set(t,{transformOrigin:100*c[0]+"% "+100*c[1]+"%"}):c=[-(AH(t,"xPercent")/100),-(AH(t,"yPercent")/100)],i=(a=AZ(t,n,c,"auto")).apply({x:d,y:f}),Ao(e,a.a,a.b,a.c,a.d,p+a.e-(i.x-a.e),h+a.f-(i.y-a.f)))),s?Ao(e,s.a,s.b,s.c,s.d,s.e,s.f):(l||u)&&Ao(e,1,0,0,1,l||0,u||0),e):P6("M0,0L0,0")},AJ=function(e,t,r,n,a,i){var o=t._gsap,s=o.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,o.set(t,u,e));c.u=AL(o.get(t,u,i))||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,i,o,s,l=[],u=t,c=u.path,d=u.autoRotate,f=u.unitX,p=u.unitY,h=u.x,m=u.y,y=c[0],v=(a=t.start,i="end"in t?t.end:1,function(e){return a||1!==i?At(e,a,i):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(o=v(AQ(P6(t.path),e,t)),t.resolution),l.push(o),AJ(this,e,t.x||"x",o,"x",t.unitX||"px"),AJ(this,e,t.y||"y",o,"y",t.unitY||"px");else{for(s in y)!h&&~Az.indexOf(s)?h=s:!m&&~AW.indexOf(s)&&(m=s);for(s in h&&m?l.push(AK(this,AU(AU([],c,h,0),c,m,1),e,h,m,v,t,f||AL(c[0][h]),p||AL(c[0][m]))):h=m=0,y)s!==h&&s!==m&&l.push(AK(this,AU([],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--;)Ai(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?A$: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:Ao,getGlobalMatrix:AM,getPositionOnPath:Ai,cacheRawPathMeasurements:Ar,convertToPath:function(e,t){return AF(e).map(function(e){var r,n,a,i,o,s,l,u,c,d,f,p,h,m,y,v,g,b,x,w,S,j,O,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"),O=P7(e,P9[k]),"rect"===k?(o=O.rx,s=O.ry||o,a=O.x,i=O.y,f=O.width-2*o,p=O.height-2*s,o||s?(h=a+.44771525016900005*o,v=(y=(m=a+o)+f)+.552284749831*o,g=y+o,b=i+.44771525016900005*s,S=(w=(x=i+s)+p)+.552284749831*s,j=w+s,n="M"+g+","+x+" V"+w+" C"+[g,S,v,j,y,j,y-(y-m)/3,j,m+(y-m)/3,j,m,j,h,j,a,S,a,w,a,w-(w-x)/3,a,x+(w-x)/3,a,x,a,b,h,i,m,i,m+(y-m)/3,i,y-(y-m)/3,i,y,i,v,i,g,b,g,x].join(",")+"z"):n="M"+(a+f)+","+i+" v"+p+" h"+-f+" v"+-p+" h"+f+"z"):"circle"===k||"ellipse"===k?("circle"===k?c=.552284749831*(o=s=O.r):(o=O.rx,c=.552284749831*(s=O.ry)),a=O.cx,i=O.cy,u=.552284749831*o,n="M"+(a+o)+","+i+" C"+[a+o,i+c,a+u,i+s,a,i+s,a-u,i+s,a-o,i+c,a-o,i,a-o,i-c,a-u,i-s,a,i-s,a+u,i-s,a+o,i-c,a+o,i].join(",")+"z"):"line"===k?n="M"+O.x1+","+O.y1+" L"+O.x2+","+O.y2:("polyline"===k||"polygon"===k)&&(n="M"+(a=(d=(e.getAttribute("points")+"").match(PL)||[]).shift())+","+(i=d.shift())+" L"+d.join(","),"polygon"===k&&(n+=","+a+","+i+"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=AU(AU([],e,(t=t||{}).x||"x",0),e,t.y||"y",1);return t.relative&&AG(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}jn.registerPlugin(A0);var A8=function(e){var t,r=e.url,n=e.title,a=e.open,i=e.inPlace,o=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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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"},h=function(){return{cx:200-(24*l-10)/2+24*o,cy:370,r:7}},m=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?jn.timeline().set(f.current,A5({},p,h())).to(f.current,A6(A5({},p,m()),{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(o)}})):jn.timeline({overwrite:!0}).set(f.current,A5({},p,{cx:5100,cy:200,r:4900})).to(f.current,A6(A5({},p,m()),{delay:r,duration:e,ease:"power4.out"})).to(f.current,A6(A5({},p),{motionPath:{path:[{cx:200-(24*l-10)/2+24*o,cy:200,r:14},h()],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(o,"_circleClip"),children:(0,v.jsx)("circle",{cx:0,cy:0,r:7,ref:f})}),(0,v.jsx)("clipPath",{id:"".concat(o,"_squareClip"),children:(0,v.jsx)("rect",{width:400,height:400})})]}),(0,v.jsx)("g",{clipPath:"url(#".concat(o).concat(i?"_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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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,i=void 0===a?4500:a,o=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],h=De((0,g.useState)(!1),2),m=h[0],y=h[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]),S=(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,i),function(){b.current&&clearInterval(b.current)}},[u,n,i,w]),(0,v.jsxs)("div",{className:O()("U-tXxoLDDyr5OI9DOeLkzg==",o),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){m||c(e)}})})]}),(0,v.jsx)("button",{type:"button",className:O()(A3,"PAulbSkkA9jxQi1R6BQ75A=="),onClick:S,disabled:m,"aria-label":"Image pr\xe9c\xe9dente",children:(0,v.jsx)(ox,{size:28})}),(0,v.jsx)("button",{type:"button",className:O()(A3,"aIKGaIx0zEpUN2opqQJjfg=="),onClick:w,disabled:m,"aria-label":"Image suivante",children:(0,v.jsx)(ow,{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,i=e.author,o=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)(hz.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:O()("MY7YZNf47I5RSHhV26w6Ag==",Dr({},"_2Eid4z+wvtEzluRmyU9KfQ==",f),u),children:[(0,v.jsx)("img",{src:null!=o?o:"https://i.pravatar.cc/128?img=".concat(a),alt:"Avatar of ".concat(i),className:"N7o2pWg-TdybJuikJXI0AQ==",draggable:!1}),(0,v.jsxs)("span",{className:"-+76DfLbDI0klJgz4+oBig==",children:['"',r,'"']}),(0,v.jsx)("span",{className:"h8hsmFiRL4Cc37zAjzK3jQ==",children:i})]})}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 Di(e){if(Array.isArray(e))return e}function Do(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,i=e.cardHeight,o=void 0===i?450:i,s=e.className,l=e.style,u=e.onShuffle,c=Di(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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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=Di(e)||Do(e)||Dl(e)||Ds(),a=n[0],i=n.slice(1);return null==u||u(null==(t=r[a])?void 0:t.id),((function(e){if(Array.isArray(e))return Da(e)})(i)||Do(i)||Dl(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([a])})},[u,r]);return(0,v.jsx)("div",{className:O()("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:o},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:o},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 Dh(e){return e.concat().sort(function(e,t){return e.name>t.name?1:-1}).map(function(e){return e.options})}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 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 DS(e){return DE(e).map(Number)}function Dj(e){return e[DO(e)]}function DO(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 i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return"addEventListener"in r?(r.addEventListener(n,a,o),i=function(){return r.removeEventListener(n,a,o)}):(r.addListener(a),i=function(){return r.removeListener(a)}),e.push(i),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,i=!1;return{clear:function(){!i&&(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(!i){var o=Math.round(100*e.direction(t))/100;o!==a&&(n.transform=r(o),a=o)}},toggleActive:function(e){i=!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,i,o,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],i=r[n],o=Db(a)&&Db(i);t[n]=o?e(a,i):i}),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),h=(o=[],{init:function(e,t){return(o=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(){o=o.filter(function(e){return e.destroy()})}}),m=DA(),y=(a={},i={init:function(e){n=e},emit:function(e){return(a[e]||[]).forEach(function(t){return t(n,e)}),i},off:function(e,t){return a[e]=(a[e]||[]).filter(function(e){return e!==t}),i},on:function(e,t){return a[e]=(a[e]||[]).concat([t]),i},clear:function(){a={}}}),v=p.mergeOptions,g=p.optionsAtMedia,b=p.optionsMediaQueries,x=y.on,w=y.off,S=y.emit,j=!1,O=v(DN,DR.globalOptions),k=v(O),E=[];function P(t,r){var n,a,i,o;!j&&(k=g(O=v(O,t)),E=r||E,n=k.container,a=k.slides,u=(Dv(n)?e.querySelector(n):n)||e.children[0],i=Dv(a)?u.querySelectorAll(a):a,c=[].slice.call(i||u.children),s=function t(r){var n=function(e,t,r,n,a,i,o){var s,l,u,c,d,f,p,h,m,y,v,g,b,x,w,S,j,O,k,E,P,A,D,C,T,N,R,M,I,L,F,B,V,z,W,$,U,H,G,K,q,Y,X,Z,Q=i.align,J=i.axis,ee=i.direction,et=i.startIndex,er=i.loop,en=i.duration,ea=i.dragFree,ei=i.dragThreshold,eo=i.inViewThreshold,es=i.slidesToScroll,el=i.skipSnaps,eu=i.containScroll,ec=i.watchResize,ed=i.watchSlides,ef=i.watchDrag,ep=i.watchFocus,eh={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}}},em=eh.measure(t),ey=r.map(eh.measure),ev=(d="rtl"===ee,p=(f="y"===J)||!d?1:-1,h=f?"top":d?"right":"left",m=f?"bottom":d?"left":"right",{scroll:f?"y":"x",cross:f?"x":"y",startEdge:h,endEdge:m,measureSize:function(e){var t=e.height,r=e.width;return f?t:r},direction:function(e){return e*p}}),eg=ev.measureSize(em),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,eS=er||!!eu,ej=(y=ev.measureSize,v=ev.startEdge,g=ev.endEdge,b=ey[0]&&eS,x=function(){if(!b)return 0;var e=ey[0];return Dx(em[v]-e[v])}(),w=b?parseFloat(a.getComputedStyle(Dj(r)).getPropertyValue("margin-".concat(g))):0,S=ey.map(y),j=ey.map(function(e,t,r){var n=t===DO(r);return t?n?S[t]+w:r[t+1][v]-e[v]:S[t]+x}).map(Dx),{slideSizes:S,slideSizesWithGaps:j,startGap:x,endGap:w}),eO=ej.slideSizes,ek=ej.slideSizesWithGaps,eE=ej.startGap,eP=ej.endGap,eA=(O=ev.startEdge,k=ev.endEdge,E=ev.direction,P=Dy(es),{groupSlides:function(e){return P?DS(e).filter(function(e){return e%es==0}).map(function(t){return e.slice(t,t+es)}):e.length?DS(e).reduce(function(t,r,n){var a=Dj(t)||0,i=r===DO(e),o=em[O]-ey[a][O],s=em[O]-ey[r][k],l=er||0!==a?0:E(eE),u=Dx(s-(!er&&i?E(eP):0)-(o+l));return n&&u>eg+2&&t.push(r),i&&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 Dj(e)[D]-e[0][A]}).map(Dx).map(ex.measure),R=C(N=ey.map(function(e){return em[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=-Dj(eC)+Dj(ek),eR=function(e,t,r,n){var a,i,o=DD(-t+e,0),s=r.map(function(e,t){var n=o.min,a=o.max,i=o.constrain(e),s=t===DO(r);return t?s||function(e,t){return 1>=Dx(e-t)}(n,i)?n:function(e,t){return 1>=Dx(e-t)}(a,i)?a:i:a}).map(function(e){return parseFloat(e.toFixed(3))}),l=(a=s[0],i=Dj(s),DD(s.lastIndexOf(a),s.indexOf(i)+1));return{snapsContained:function(){if(t<=e+2)return[o.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:Dj(e_),M)}).limit,eF=function e(t,r,n){var a=DD(0,t).constrain,i=t+1,o=s(r);function s(e){return n?Dx((i+e)%i):a(e)}function l(){return e(t,o,n)}var u={get:function(){return o},set:function(e){return o=s(e),u},add:function(e){return l().set(o+e)},clone:l};return u}(DO(e_),et,er),eB=eF.clone(),eV=DS(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,i=e.offsetLocation,o=e.previousLocation,s=e.scrollLooper,l=e.slideLooper,u=e.dragHandler,c=e.animation,d=e.eventHandler,f=e.scrollBounds,p=e.options.loop,h=r.settled(),m=!f.shouldConstrain(),y=p?h:h&&m,v=y&&!u.pointerDown();v&&c.stop();var g=a.get()*t+o.get()*(1-t);i.set(g),p&&(s.loop(r.direction()),l.loop()),n.to(i.get()),v&&d.emit("settle"),y||d.emit("scroll")},e$=function(e,t,r,n){var a=DA(),i=1e3/60,o=null,s=0,l=0;function u(e){if(l){o||(o=e,r(),r());var a=e-o;for(o=e,s+=a;s>=i;)r(),s-=i;n(s/i),l&&(l=t.requestAnimationFrame(u))}}function c(){t.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){a.add(e,"visibilitychange",function(){e.hidden&&(o=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)}),eU=e_[eF.get()],eH=DC(eU),eG=DC(eU),eK=DC(eU),eq=DC(eU),eY=function(e,t,r,n,a){var i=0,o=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 o},duration:function(){return s},velocity:function(){return i},seek:function(){var t=n.get()-e.get(),a=0;return s?(r.set(e),i+=t/s,i*=l,u+=i,e.add(i),a=u-c):(i=0,r.set(n),e.set(n),a=t),o=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,eK,eG,eq,en),eX=function(e,t,r,n,a){var i=n.reachedAny,o=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 i=a.filter(function(e){return Dw(e)===n});return i.length?l(i):Dj(a)-r}return{byDistance:function(r,n){var l,c=a.get()+r,d=(l=e?o(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,h=!e&&i(c);if(!n||h)return{index:f,distance:r};var m=r+u(t[f]-p,0);return{index:f,distance:m}},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,i,o){function s(a){var s=a.distance,l=a.index!==t.get();i.add(s),s&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(r.set(t.get()),t.set(a.index),o.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))}}}(e$,eF,eB,eY,eX,eq,o),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,o.emit("slidesInView"))},{root:t.parentElement,threshold:eo}),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=($=eA.groupSlides,U=eI.min,H=eI.max,{slideRegistry:(c=$(eV),1===e_.length?[eV]:ew&&"keepSnaps"!==eu?c.slice(U,H).map(function(e,t,r){var n=t===DO(r);return t?n?Dk(DO(eV)-Dj(r)[0]+1,Dj(r)[0]):e:Dk(Dj(r[0])+1)}):c)}).slideRegistry,e2=function(e,t,r,n,a,i,o,s){var l={passive:!0,capture:!0},u=0;function c(e){"Tab"===e.code&&(u=new Date().getTime())}return{init:function(d){s&&(i.add(document,"keydown",c,!1),t.forEach(function(t,c){i.add(t,"focus",function(t){(Dg(s)||s(d,t))&&function(t){if(!(new Date().getTime()-u>10)){o.emit("slideFocusStart"),e.scrollLeft=0;var i=r.findIndex(function(e){return e.includes(t)});Dy(i)&&(a.useDuration(0),n.index(i,0),o.emit("slideFocus"))}}(c)},l)}))}}}(e,r,e1,eZ,eY,eJ,o,ep),e3={ownerDocument:n,ownerWindow:a,eventHandler:o,containerRect:em,slideRects:ey,animation:e$,axis:ev,dragHandler:function(e,t,r,n,a,i,o,s,l,u,c,d,f,p,h,m,y,v){var g=e.cross,b=e.direction,x=["INPUT","SELECT","TEXTAREA"],w={passive:!1},S=DA(),j=DA(),O=DD(50,225).constrain(p.measure(20)),k={mouse:300,touch:400},E={mouse:500,touch:600},P=h?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=i.readPoint(e),r=i.readPoint(e,g),o=Dx(t-D),l=Dx(r-C);if(!N&&!M&&(!e.cancelable||!(N=o>l)))return L(e);var c=i.pointerMove(e);o>m&&(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(),o=i.pointerUp(e)*(h?E:k)[M?"mouse":"touch"],s=(t=b(o),r=d.add(-1*Dw(t)),n=c.byDistance(t,!h).distance,h||Dx(t)<O?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)}(o,s);N=!1,T=!1,j.clear(),u.useDuration(P-10*p).useFriction(.68+p/50),l.distance(s,!h),M=!1,f.emit("pointerUp")}function F(e){R&&(e.stopPropagation(),e.preventDefault(),R=!1)}return{init:function(e){v&&S.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=h&&p&&!l.buttons&&A,A=Dx(a.get()-o.get())>=2,(!p||0===l.button)&&(c=l.target.nodeName||"",x.includes(c)||(T=!0,i.pointerDown(l),u.useFriction(0).useDuration(0),a.set(o),d=M?r:t,j.add(d,"touchmove",I,w).add(d,"touchend",L).add(d,"mousemove",I,w).add(d,"mouseup",L),D=i.readPoint(l),C=i.readPoint(l,g),f.emit("pointerDown"))))}},destroy:function(){S.clear(),j.clear()},pointerDown:function(){return T}}}(ev,e,n,a,eq,function(e,t){var r,n;function a(e){return e.timeStamp}function i(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,i(e)},pointerMove:function(e){var t=i(e)-i(n),o=a(e)-a(r)>170;return n=e,o&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;var t=i(n)-i(r),o=a(e)-a(r),s=a(e)-a(n)>170,l=t/o;return o&&!s&&Dx(l)>.1?l:0},readPoint:i}}(ev,a),eH,e$,eZ,eY,eX,eF,o,eb,ea,ei,el,ef),eventStore:eJ,percentOfView:eb,index:eF,indexPrevious:eB,limit:eL,location:eH,offsetLocation:eK,previousLocation:eG,options:i,resizeHandler:function(e,t,r,n,a,i,o){var s,l,u=[e].concat(n),c=[],d=!1;function f(e){return a.measureSize(o.measure(e))}return{init:function(a){i&&(l=f(e),c=n.map(f),s=new ResizeObserver(function(r){(Dg(i)||i(a,r))&&function(r){var i=!0,o=!1,s=void 0;try{for(var u,p=r[Symbol.iterator]();!(i=(u=p.next()).done);i=!0){var h=u.value;if(d)return;var m=h.target===e,y=n.indexOf(h.target),v=m?l:c[y],g=f(m?e:n[y]);if(Dx(g-v)>=.5){a.reInit(),t.emit("resize");break}}}catch(e){o=!0,s=e}finally{try{i||null==p.return||p.return()}finally{if(o)throw s}}}(r)}),r.requestAnimationFrame(function(){u.forEach(function(e){return s.observe(e)})}))},destroy:function(){d=!0,s&&s.disconnect()}}}(t,o,a,r,ev,ec,eh),scrollBody:eY,scrollBounds:function(e,t,r,n,a){var i=a.measure(10),o=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/o);r.subtract(d*f),!a&&Dx(d)<i&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())}},toggleActive:function(e){l=!e}}}(eL,eK,eq,eY,eb),scrollLooper:(G=[eH,eK,eG,eq],q=(K=DD(eL.min+.1,eL.max+.1)).reachedMin,Y=K.reachedMax,{loop:function(e){if(1===e?Y(eK.get()):-1===e&&q(eK.get())){var t=-1*e*eN;G.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,i,o,s,l){var u=DS(a),c=DS(a).reverse(),d=h(p(c,o[0]),r,!1).concat(h(p(u,t-o[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 h(a,o,u){var c=i.map(function(e,r){return{start:e-n[r]+.5+o,end:e+t-.5+o}});return a.map(function(t){var n=u?0:-r,a=u?r:0,i=c[t][u?"end":"start"];return{index:t,loopPoint:i,slideLocation:DC(-1),translate:DT(e,l[t]),target:function(){return s.get()>i?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,eO,ek,eC,e_,eK,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 i,s=t[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var l=i.value;if("childList"===l.type){e.reInit(),o.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([O].concat(function(e){if(Array.isArray(e))return Dm(e)}(o=E.map(function(e){return e.options}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e){if(e){if("string"==typeof e)return Dm(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 Dm(e,void 0)}}(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.")}())).forEach(function(e){return m.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=h.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(),h.destroy(),m.clear()}function C(e,t,r){k.active&&!j&&(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(){j||(j=!0,m.clear(),D(),y.emit("destroy"),y.clear())},off:w,on:x,emit:S,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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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),i=a[0],o=a[1],s=DI((0,g.useState)(),2),l=s[0],u=s[1],c=(0,g.useCallback)(function(){i&&i.reInit(r.current,n.current)},[i]);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=Dh(e),n=Dh(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 o(e),function(){return e.destroy()}}o(void 0)},[l,o]),[u,i]}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,i=n.mainViewportRef;return(0,v.jsx)("div",{ref:i,className:O()(DL.viewport,DL["viewport--".concat(a)],r),children:(0,v.jsx)("div",{className:O()(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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,i=e.options,o=e.plugins,s=e.dir,l=void 0===s?"ltr":s,u=e.className,c=e.style,d=null!=(n=null==i?void 0:i.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}({},i),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),o),2),p=f[0],h=f[1],m=DV(D_({axis:d,direction:l,containScroll:"keepSnaps",dragFree:!0}),2),y=m[0],x=m[1],w=DV((0,g.useState)(0),2),S=w[0],j=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 i,o=t[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.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==o.return||o.return()}finally{if(n)throw a}}return[]}(a)},[a]),E=(0,g.useCallback)(function(e){null==h||h.scrollTo(e)},[h]),P=(0,g.useCallback)(function(){if(h){var e=h.selectedScrollSnap();j(e),null==x||x.scrollTo(e)}},[h,x]);return(0,g.useEffect)(function(){if(h)return P(),h.on("select",P).on("reInit",P),function(){h.off("select",P).off("reInit",P)}},[h,P]),(0,v.jsx)(Dc.Provider,{value:{axis:d,mainViewportRef:p,mainApi:h,thumbsViewportRef:y,thumbsApi:x,selectedIndex:S,scrollTo:E,thumbnails:k},children:(0,v.jsx)("div",{className:O()(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:O()(DL.slide,DL["slide--".concat(n)],r),children:t})}function D$(e){var t=e.className,r=e.thumbsSliderClassName,n=Dd(),a=n.axis,i=n.thumbsViewportRef,o=n.thumbnails,s=n.selectedIndex,l=n.scrollTo;return 0===o.length?null:(0,v.jsx)("div",{ref:i,className:O()(DL.thumbsViewport,t),children:(0,v.jsx)("div",{className:O()(DL.thumbsContainer,DL["thumbsContainer--".concat(a)]),children:o.map(function(e,t){var n,a,i=t===s;return(0,v.jsx)("button",{type:"button",onClick:function(){return l(t)},className:O()(DL.thumb,(n={},a=DL["thumb--active"],a in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i,n),i&&r),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":i,children:e&&(0,v.jsx)("img",{src:e,alt:"",className:DL.thumbImage})},t)})})})}function DU(e){var t=e.className,r=e.dotClassName,n=Dd(),a=n.thumbnails,i=n.selectedIndex,o=n.scrollTo;return 0===a.length?null:(0,v.jsx)("div",{className:O()(DL.dots,t),children:a.map(function(e,t){var n,a,s;return(0,v.jsx)("button",{type:"button",onClick:function(){return o(t)},className:O()(DL.dot,(n={},a=DL["dot--active"],s=t===i,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===i},t)})})}function DH(e){var t=e.id,r=e.as,n=e.variant,a=void 0===n?"transparent":n,i=e.title,o=e.titleAs,s=e.description,l=e.actions,u=e.ariaLabel,c=e.bare,d=e.className,f=e.children,p=!!(i||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:[i&&(0,v.jsx)(void 0===o?"h2":o,{className:"_4RbpFTdRUk7YImbA17B5sA==",children:i}),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 DG={collapse:"Replier la section",expand:"D\xe9plier la section"},DK=(0,g.createContext)({tone:"onDark",density:"comfortable",classNames:{},labels:DG,headerLayout:"split",footerLayout:"between",divider:!0,footerDivider:!0,collapsible:!1,collapsed:!1,toggle:function(){}});function Dq(){return(0,g.useContext)(DK)}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,i=void 0!==a&&a,o=e.variant,s=void 0===o?"ghost":o,l=e.size,u=void 0===l?"md":l,c=e.href,d=e.target,f=e.rel,p=e.disabled,h=e.type,m=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))",i?"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",i?"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":i||void 0,"aria-disabled":p||void 0,onClick:m,className:b,children:x}):(0,v.jsx)("button",{type:void 0===h?"button":h,title:n,"aria-label":g?n:void 0,"aria-pressed":i||void 0,disabled:p,onClick:m,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,i=e.gap,o=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,h=DJ[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var m=p.value,y=u[m];"number"==typeof y&&y>0&&(l["--sg-".concat(m)]=String(Math.floor(y)))}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.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===i?"md":i],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))]"),o),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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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"},Ci={split:"ml-auto justify-end",stacked:"justify-start",centered:"justify-center"},Co={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,i=t?n.expand:n.collapse;return(0,v.jsx)("button",{type:"button",onClick:r,title:i,"aria-label":i,"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,i,o,s,l,u=e.title,c=e.titleAs,d=e.titleSize,f=e.icon,p=e.description,h=e.count,m=e.actions,y=e.children,b=e.layout,x=e.divider,S=e.className,j=Dq(),O=j.classNames,k=j.density,E=j.collapsible,P=null!=b?b:j.headerLayout,A=null!=x?x:j.divider,D=(0,g.useRef)(null),C=(t=j.stickyKey,r=(0,g.useRef)(null),a=(n=D2((0,g.useState)(!1),2))[0],i=n[1],s=(o=D2((0,g.useState)(!1),2))[0],l=o[1],(0,g.useEffect)(function(){var e=D.current;i(!!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,i=new IntersectionObserver(function(e){return l(!D2(e,1)[0].isIntersecting)},{rootMargin:"-".concat(n,"px 0px 0px 0px"),threshold:0});return i.observe(t),function(){return i.disconnect()}},[D,a]),{isSticky:a,stuck:s,sentinelRef:r}),T=C.isSticky,N=C.stuck,R=C.sentinelRef,M=null!=h&&""!==h,I=null!=m&&!1!==m;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)]",O.header,S),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",O.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)",O.leading),children:f}):null,u?(0,v.jsx)(void 0===c?"h2":c,{id:j.headingId,className:(0,w.cn)("m-0 min-w-0 text-balance tracking-tight text-(--section-fg,#fff)",Cn[void 0===d?"md":d],O.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))",O.count),children:h}):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))",O.description),children:p}):null]}),I||E?(0,v.jsxs)("div",{className:(0,w.cn)("flex flex-wrap items-center gap-1.5",Ci[P],null!=y&&"split"===P&&"shrink-0",O.actions),children:[m,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,i=e.className,o=Dq(),s=o.classNames,l=o.density,u=o.collapsible,c=o.collapsed,d=o.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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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],h=f[1],m=(0,g.useRef)(!0);(0,g.useEffect)(function(){if(m.current){m.current=!1;return}h(!0);var e=setTimeout(function(){return h(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,i),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,i=e.className,o=Dq(),s=o.classNames,l=o.density,u=o.collapsible,c=o.collapsed,d=null!=n?n:o.footerLayout,f=null!=a?a:o.footerDivider,p=null!=t&&!1!==t,h=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,i),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],Co[d]),children:[p?(0,v.jsx)("div",{className:(0,w.cn)("min-w-0",s.footerStart),children:t}):null,h?(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))"},Ch={onDark:"bg-black/40",onLight:"bg-white/70"},Cm=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,i=e.variant,o=void 0===i?"plain":i,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,h=e.icon,m=e.description,y=e.count,b=e.actions,x=e.header,S=e.headerLayout,j=void 0===S?"split":S,O=e.divider,k=void 0===O||O,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,$=e.labels,U=e.className,H=e.classNames,G=void 0===H?{}:H,K=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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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}({},DG,$)},[$]),ea=(0,g.useMemo)(function(){return{tone:l,density:c,classNames:G,labels:en,headerLayout:j,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,G,en,j,N,k,M,B,ee,et,er,Y,X,E,P,A]),ei=er||Cy(m)||Cy(b)||Cy(h)||Cy(x)||null!=y&&""!==y||B,eo=Cy(D)||Cy(C),es=Cy(K),el=g.Children.toArray(K).some(function(e){return(0,g.isValidElement)(e)&&Cm.has(e.type)});return(0,v.jsx)(DK.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":o,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[o],"glass"===o&&Ch[l],U,G.root),children:[ei?(0,v.jsx)(Cu,{title:d,titleAs:f,titleSize:p,icon:h,description:m,count:y,actions:b,children:x}):null,es?el?K:(0,v.jsx)(Cc,{flush:L,maxHeight:I,children:K}):null,eo?(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,i=e.stickyOffset,o=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===i?"0px":i,zIndex:void 0===o?10:o}),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 CS(e){var t,r,n=e.as,a=e.className,i=e.children,o=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(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)},o),r=r={children:i},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 Cj(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 CO(e){var t,r=e.tile,n=e.size,a=e.onSelect,i=e.className;return(0,v.jsxs)(hz.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!=i?i:""].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)(CO,{tile:t,size:"large",onSelect:n}),r.slice(0,4).map(function(e){return(0,v.jsx)(CO,{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,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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,i=e.secondary,o=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}),o]}),i?(0,v.jsx)("div",{className:"w-full",children:i}):null]})}),C_=(0,g.forwardRef)(function(e,t){var r=CR([e,t]),n=r[0],a=r.slice(1),i=n.icon,o=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],h=null!=s&&""!==s&&0!==s;return(0,v.jsxs)("button",CC(CD({ref:p,type:void 0===d?"button":d,title:o,"aria-label":o,"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:[i,h?(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),i=n.src,o=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=o.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:o,"aria-label":o,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:i?(0,v.jsx)("img",{src:i,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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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,i=(0,g.useRef)(0),o=function(e){return e.map(function(e){return{site:e,key:i.current++}})},s=CV((0,g.useState)(function(){return o(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),h=(0,g.useRef)(0),m=(0,g.useRef)(0);(0,g.useEffect)(function(){return u(o(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 o=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:i.current++});e>0?r.push(o):r.unshift(o)}return r})},b=function(){var e=m.current-h.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){h.current=m.current=e.clientX,p.current=!1},onPointerMove:function(e){m.current=e.clientX,Math.abs(m.current-h.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,i=l.length%2?t-(l.length+1)/2:t-l.length/2,o=0===i;return(0,v.jsxs)("div",{role:"button",tabIndex:o?0:-1,"aria-label":n.name,onKeyDown:function(e){return"Enter"===e.key&&o&&(null==r?void 0:r(n))},onClick:function(){p.current||(o?null==r||r(n):y(i))},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",o?"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*i,"px) translateY(").concat(o?-30:i%2?20:-10,"px) rotate(").concat(o?0:i%2?2.5:-2.5,"deg)"),boxShadow:o?"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",o?"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)(yi,{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)(yo,{className:"w-6 h-6"})})]})]})}var C$=(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"}]]),CU=(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,i=e.activeFilterCount,o=void 0===i?0:i,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),h=!!s&&(u||o>0),m="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)(O$,{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)(m,"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":h,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",h?"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)(C$,{className:"w-3.5 h-3.5"}),(0,v.jsx)("span",{className:"hidden sm:inline",children:"Filtres"}),o>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:o})]}),d&&(t||o>0)&&(0,v.jsx)("button",{type:"button",title:"R\xe9initialiser",onClick:d,className:(0,w.cn)(m,"hover:bg-rose-500/20 hover:text-rose-300"),children:(0,v.jsx)(CU,{className:"w-3.5 h-3.5"})})]})]}),h&&(0,v.jsx)("div",{className:"dark w-full px-4 pb-3 pt-2 border-t border-white/10",children:s})]})}function CG(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 CK(e){var t,r=e.activeTab,n=e.onTabChange,a=e.tabs,i=e.sidebarHeader,o=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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return CG(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 CG(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:[i,(0,v.jsx)("div",{ref:p,role:"tablist","aria-orientation":d?"vertical":"horizontal",onKeyDown:function(e){var t,i,o,s=a.filter(function(e){return!e.disabled}),l=s.findIndex(function(e){return e.id===r});e.key===(d?"ArrowDown":"ArrowRight")?o=s[(l+1)%s.length]:e.key===(d?"ArrowUp":"ArrowLeft")?o=s[(l-1+s.length)%s.length]:"Home"===e.key?o=s[0]:"End"===e.key&&(o=s[s.length-1]),o&&(e.preventDefault(),n(o.id),null==(i=p.current)||null==(t=i.querySelector('[data-tab="'.concat(o.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)})}),o]}),(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,i=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",i),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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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,i=e.allLabel,o=void 0===i?"Tous":i,s=e.className,l=CZ((0,g.useState)(""),2),u=l[0],c=l[1],d=CZ((0,g.useState)(o),2),f=d[0],p=d[1],h=(0,g.useMemo)(function(){var e;return[o].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,o]),m=(0,g.useMemo)(function(){var e=u.trim().toLowerCase();return t.filter(function(t){return(f===o||t.category===f)&&(!e||t.name.toLowerCase().includes(e)||t.description.toLowerCase().includes(e))})},[t,u,f,o]);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)(O$,{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:h.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:m.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,i=e.onDownload,o=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})]}),o]}),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)(OQ,{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]})]})]})]}),i&&(0,v.jsx)("button",{type:"button",title:"T\xe9l\xe9charger","aria-label":"T\xe9l\xe9charger ".concat(e.title),onClick:function(){return i(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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,i=e.onSelect,o=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),h=p[0],m=p[1],y=C5((0,g.useState)("grid"),2),b=y[0],x=y[1],S=(0,g.useMemo)(function(){return new Set(r.map(function(e){return e.name.slice(0,1).toUpperCase()}))},[r]),j=(0,g.useMemo)(function(){var e=l.trim().toLowerCase();return r.filter(function(t){return("all"===d||t.teamId===d)&&(!h||t.name.toUpperCase().startsWith(h))&&(!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,h]),O=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",o),children:[(0,v.jsx)(Cq,{icon:(0,v.jsx)(OG,{className:"w-4 h-4 text-teal-400"}),title:"Membres & \xc9quipes — ".concat(t),description:"".concat(j.length," membre").concat(j.length>1?"s":""," affich\xe9").concat(j.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)(OF,{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)(O$,{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:O("all"===d),onClick:function(){return f("all")},children:"Toutes les \xe9quipes"}),a.map(function(e){return(0,v.jsx)("button",{type:"button",className:O(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:O(!h),onClick:function(){return m("")},children:"Tous"}),C6.map(function(e){return(0,v.jsx)("button",{type:"button",disabled:!S.has(e),onClick:function(){return m(h===e?"":e)},className:(0,w.cn)(O(h===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===j.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:j.map(function(e){return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",onClick:function(){return null==i?void 0:i(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:j.map(function(e){return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",onClick:function(){return null==i?void 0:i(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=(0,ya.A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),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 Ti(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 To(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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,i=e.className,o=Ts((0,g.useState)("all"),2),s=o[0],l=o[1],u=Ts((0,g.useState)(""),2),c=u[0],d=u[1],f=Ts((0,g.useState)(!1),2),p=f[0],h=f[1],m=Ts((0,g.useState)({title:"",description:"",priority:"moyenne",dueDate:""}),2),y=m[0],b=m[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]),S=(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",i),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 h(!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)(O$,{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===S.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."]}):S.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,{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)(OK,{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&&h(!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 h(!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(To(Ti({},y),{title:y.title.trim(),description:y.description.trim()})),b({title:"",description:"",priority:"moyenne",dueDate:""}),h(!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(To(Ti({},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(To(Ti({},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(To(Ti({},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(To(Ti({},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 h(!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 Th(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 Tm(e,t,r,n,a,i,o){try{var s=e[i](o),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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Th(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 Th(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,i=Ty((0,g.useState)("all"),2),o=i[0],s=i[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"===o||e.action===o})},[r,o]);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,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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 i=e.apply(t,r);function o(e){Tm(i,n,a,o,s,"next",e)}function s(e){Tm(i,n,a,o,s,"throw",e)}o(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",o===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)(OQ,{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"}]]),TS=(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"}]]),Tj=(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"}]]),TO=(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,i,o){try{var s=e[i](o),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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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:OJ},{id:"MODERATED",label:"Mod\xe9r\xe9",hint:"Adh\xe9sion soumise \xe0 l'approbation du gestionnaire du site.",icon:OG},{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,i=e.onSave,o=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",o),children:[(0,v.jsx)(Cq,{icon:(0,v.jsx)(OU,{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,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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,i(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 i=t.apply(e,r);function o(e){TE(i,n,a,o,s,"next",e)}function s(e){TE(i,n,a,o,s,"throw",e)}o(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)(TS,{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)(Tj,{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)(TO,{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,i=e.onToggleFollow,o=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:[i&&(0,v.jsxs)("button",{type:"button","aria-pressed":a,onClick:i,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)(O2,{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"})]}),o]})]})})}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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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 T$=["#7C6AF7","#7DD3C7","#E8B4D4"],TU=["#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 TG(){return"u">typeof process&&(null==process.env?void 0:"production")!=="production"}function TK(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:(TG()&&console.warn("LiveOrb: shader failed to compile\n",e.getShaderInfoLog(n)),e.deleteShader(n),null):null}function TY(e,t,r,n,a){var i,o,s,l,u="#F4F4F5",c="#09090B",d=0,f=T$,p=TU;return"black"===e?(u="#18181B",c="#F4F4F5"):"webgl"===e?(u=null!=(i=(f=n&&n.length>0?n:T$)[1])?i:T$[1],c="#0C0C10",d=1,p=[null!=(o=f[0])?o:T$[0],null!=(s=f[2])?s:T$[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},i={x:0,y:.06},o=!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 TG()&&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)},h=p("u_resolution"),m=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"),S=p("u_eye"),j=p("u_c1"),O=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(){o=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 o=3*Math.max(a.width,a.height)+120,s=t.clientX-(a.left+a.width/2),l=a.top+a.height/2-t.clientY;i.x=Math.tanh(s/o*2.2),i.y=Math.tanh(l/o*2.2)}}}},W=function(e){null===e.relatedTarget&&(i.x=0,i.y=.06)};window.addEventListener("pointermove",z,{passive:!0}),document.addEventListener("mouseout",W);var $=function(e){var t;e.preventDefault(),D=!1,cancelAnimationFrame(A),null==(t=n.onHasGl)||t.call(n,!1)};e.addEventListener("webglcontextlost",$);var U=function(t){if(D){A=requestAnimationFrame(U);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,$=n.interactive?i.x:0,H=n.interactive?i.y:.06;a.vx+=(($-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 G=+!o,K=Math.max(-1,Math.min(1,a.x))+.03*Math.sin(.9*W)*G,q=Math.max(-1,Math.min(1,a.y))+.022*Math.sin(.67*W+1.3)*G;!o&&n.blink&&t>=R&&(M=t,R=t+2200+3800*Math.random());var Y=(t-M)/1e3,X=0;!o&&n.blink&&(Y<.055?X=Y/.055:Y<.1?X=1:Y<.18&&(X=1-(Y-.1)/.08));var Z=TK(z.body),Q=TK(z.eye),J=[0,1,2].map(function(e){var t;return TK(null!=(t=z.palette[e%z.palette.length])?t:T$[e])}),ee=TK(null!=(r=z.ear[0])?r:TU[0]),et=TK(null!=(l=z.ear[1])?l:TU[1]);s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.uniform2f(h,e.width,e.height),s.uniform1f(m,o?0:W),s.uniform1f(y,.55*!o),s.uniformMatrix3fv(v,!1,(c=.62*K,d=-(.4*q),f=-(.09*K),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(S,Q[0],Q[1],Q[2]),s.uniform3f(j,J[0][0],J[0][1],J[0][2]),s.uniform3f(O,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(U),{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",$),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),i=(0,g.useRef)(null);(0,g.useEffect)(function(){if(n){var e=a.current,t=i.current,r=null==e?void 0:e.parentElement;if(e&&r){var o=function(n){var a=r.getBoundingClientRect();if(!(a.width<=0)&&!(a.height<=0)){var i=3*Math.max(a.width,a.height)+120,o=Math.tanh((n.clientX-(a.left+a.width/2))/i*2.2),s=Math.tanh((a.top+a.height/2-n.clientY)/i*2.2);e.style.transform="translate(".concat((5.5*o).toFixed(2),"%, ").concat((-(3.4*s)).toFixed(2),"%)"),t&&(t.style.transform="translate(".concat((-(1.8*o)).toFixed(2),"%, ").concat((-(1.2*s)).toFixed(2),"%)"))}};return window.addEventListener("pointermove",o,{passive:!0}),function(){return window.removeEventListener("pointermove",o)}}}},[n]);var o=TW(t.ear,2),s=o[0],l=o[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:i,"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:T$[0],i=null!=(r=e.palette[1])?r:T$[1],o=null!=(n=e.palette[2])?n:T$[2];return{backgroundImage:"linear-gradient(135deg, ".concat(a,", ").concat(i,", ").concat(o,")")}}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,i=e.variant,o=void 0===i?"white":i,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,h=e.ears,m=void 0===h||h,y=e.earColors,b=(0,g.useRef)(null),x=(0,g.useRef)(null),S=TW((0,g.useState)(!1),2),j=S[0],O=S[1];(0,g.useEffect)(function(){var e=b.current;if(e)return x.current=TX(e,{variant:o,color:s,eyeColor:l,colors:u,interactive:d,blink:p,ears:m,earColors:y,onHasGl:O}),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:o,color:s,eyeColor:l,colors:u,interactive:d,blink:p,ears:m,earColors:y,onHasGl:O})},[o,s,l,u,d,p,m,y]);var k=TY(o,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:[j?null:(0,v.jsx)(TZ,{resolved:k,ears:m,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,i,o){try{var s=e[i](o),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 i=e.apply(t,r);function o(e){T0(i,n,a,o,s,"next",e)}function s(e){T0(i,n,a,o,s,"throw",e)}o(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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],i=(0,g.useRef)(null);return(0,g.useEffect)(function(){i.current&&a(i.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:i,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,i=e.registerRef,o=T2((0,g.useState)(!1),2),s=o[0],l=o[1],u=(0,g.useRef)(null);return(0,v.jsxs)("button",{ref:function(e){u.current=e,i(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),i=a[0],o=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,i=Math.min(e/n,r/a,1.6),s=n*i,l=a*i;u({top:(window.innerHeight-l)/2,left:(window.innerWidth-s)/2,width:s,height:l,radius:20});var c=requestAnimationFrame(function(){return o("open")});return function(){return cancelAnimationFrame(c)}},[t]);var d=(0,g.useCallback)(function(){return o("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"===i,p="closing"===i,h=f&&l?l:{top:r.top,left:r.left,width:r.width,height:r.height,radius:12},m=p?"ease-out":"cubic-bezier(0.175, 0.885, 0.32, 1.275)",y=p?"0.3s":"0.45s",b="top ".concat(y," ").concat(m,", left ").concat(y," ").concat(m,", width ").concat(y," ").concat(m,", height ").concat(y," ").concat(m,", border-radius ").concat(y," ").concat(m);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:h.top,left:h.left,width:h.width,height:h.height,borderRadius:h.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"===i&&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 Ni=g.forwardRef(function(e,t){var r=e.onSubmit,n=e.placeholder,a=void 0===n?"Ask anything":n,i=e.className,o=e.models,s=void 0===o?["GPT 5.5","Opus 4.8","Gemini 3.5 Flash","Composer 2.5","GLM 5.2"]:o,l=e.efforts,u=void 0===l?["Low","Medium","Max Effort"]:l,c=e.defaultValue,d=e.value,f=e.onChange,p=e.maxAttachments,h=void 0===p?6:p,m=T2((0,g.useState)(!1),2),y=m[0],b=m[1],x=T2((0,g.useState)(!1),2),S=x[0],j=x[1],O=T2((0,g.useState)(void 0===c?"":c),2),k=O[0],E=O[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],$=T2((0,g.useState)(!1),2),U=$[0],H=$[1],G=T2((0,g.useState)([,,,,,].fill(0)),2),K=G[0],q=G[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],ei=T2((0,g.useState)(116),2),eo=ei[0],es=ei[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],eh=void 0!==d,em=eh?d:k,ey=""!==em.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),eS=(0,g.useRef)(null),ej=(0,g.useRef)(new Map);(0,g.useEffect)(function(){Y.current=em},[em]);var eO=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){j(!0),eh||E(e),null==f||f(e)},[eh,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,i,o,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:j(!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),i=0;i<5;i++){for(var o=0,s=0;s<t;s++)o+=n[i*t+s];e[i]=o/t/255}q(e),Q.current=requestAnimationFrame(a)})(),(i=window.SpeechRecognition||window.webkitSpeechRecognition)?((o=new i).continuous=!0,o.interimResults=!0,s=Y.current,o.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())},o.onerror=function(e){console.error("Speech recognition error",e),eE()},o.onend=function(){eE()},J.current=o,o.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(){U&&eg.current&&(eg.current.scrollTop=eg.current.scrollHeight)},[em,U]),(0,g.useEffect)(function(){return function(){eE(),F.forEach(function(e){return URL.revokeObjectURL(e.url)})}},[eE,F]),(0,g.useEffect)(function(){(""!==em.trim()||ev)&&!y&&(j(!1),b(!0))},[em,y,ev]),(0,g.useEffect)(function(){if(y&&!U){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,U]),(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(eO,0)}},[em,y]),(0,g.useEffect)(function(){es(Math.max(116,eu+48)),setTimeout(eO,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(){(""!==em.trim()||ev)&&(j(!1),null==r||r(em,{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(i){return((function(e){if(Array.isArray(e))return TJ(e)})(i)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||T3(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([{id:a,file:e,url:t,name:e.name,width:r,height:n}])})},eC=function(e){j(!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})}),ej.current.delete(e)},eT=ey&&!U,eN=!ey&&!U;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))&&(""!==em.trim()||ev||U||(j(!1),b(!1),I(!1)))},className:(0,w.cn)("relative flex flex-col w-full",i),style:{maxWidth:"100%",transition:S?"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:eS,type:"file",accept:"image/*",multiple:!0,onChange:function(e){return T1(function(){var t,r,n,a,i,o,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,h-F.length),a=r.slice(0,n),y?j(!0):(j(!1),b(!0)),i=!0,o=!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]();!(i=(c=u.next()).done);i=!0)l()}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)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:S?"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:S?"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 ej.current.set(e,t)}},e.id)})})}),(0,v.jsxs)("div",{onMouseDown:function(e){var t,r=e.target===eg.current;!y||r||U||(e.preventDefault(),null==(t=eg.current)||t.focus())},style:{borderRadius:24,height:y?eo:48,transition:S?"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:em,onChange:function(e){return ek(e.target.value)},onScroll:eO,onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),eA()),"Escape"!==e.key||""!==em.trim()||ev||(j(!1),b(!1),I(!1))},placeholder:a,"aria-label":"Prompt",disabled:U,style:{transition:S?"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",U&&"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:S?"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(){j(!1),b(!0)},style:{transition:S?"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&&!U?"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=eS.current)||t.click()},disabled:F.length>=h,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)]",U?"w-16 opacity-100 translate-x-0":"w-0 opacity-0 translate-x-4 pointer-events-none"),children:K.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(),U?eE():ey?eA():eP()},"aria-label":eT?"Send prompt":U?"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)]",U?"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)}})]})});Ni.displayName="PromptInput";var No=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,No.$)()||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,i=e.onLoad,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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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=o[0],l=o[1];return(0,No.$)()?(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),i&&i(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 Nh(e,t,r){return Math.min(r,Math.max(t,e))}function Nm(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,i=e.saturation,o=void 0===i?Nf.saturation:i,s=e.brightness,l=void 0===s?Nf.brightness:s,u=e.className,c=e.style,d="light"===r?"light":"dark",f=Nm(Np,d),p=(0,g.useMemo)(function(){var e,t,r,n,a,i,o,s;return t=Nm(Np,d),r=Np.source,n=JSON.stringify(Np.targets).replace(/</g,"\\u003c"),a=JSON.stringify(null!=(e=Np.hiddenTargets)?e:[]).replace(/</g,"\\u003c"),i=JSON.stringify(d),o="<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(i,";\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(o,"</head>")).replace(/<\/body>/i,"".concat(s,"</body>"))},[d]),h=Nh(a,-180,180),m=Nh(o,0,2),y=Nh(l,.35,1.65),b=0===h&&1===m&&1===y?void 0:"hue-rotate(".concat(h,"deg) saturate(").concat(m,") 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,i=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(),o=i[0],s=i.slice(1),l=o.children,u=o.optionsComponent,c=o.header,d=o.footer,f=o.align,p=o.width,h=o.className,m=void 0===h?"":h,y=o.contentClassName,g=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(o,["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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(s)||Nx(s,1)||Nb())[0],x=m.includes("fixed")||m.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(m,"\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 NS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Nj=new(function(){var e;function t(){var e=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");NS(this,"ctx",null),NS(this,"isMuted",!1),NS(this,"volume",.5),NS(this,"lastPlayTimes",{}),NS(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 i=.12*this.volume;n.gain.setValueAtTime(0,t),n.gain.linearRampToValueAtTime(i,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 i=e.createOscillator(),o=e.createGain();i.type="triangle",i.frequency.setValueAtTime(460,t),i.frequency.exponentialRampToValueAtTime(320,t+.05);var s=.15*this.volume;o.gain.setValueAtTime(0,t),o.gain.linearRampToValueAtTime(s,t+.004),o.gain.exponentialRampToValueAtTime(.001,t+.05),i.connect(o),o.connect(e.destination),r.start(t),i.start(t),r.stop(t+.08),i.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 i=e.createOscillator(),o=e.createGain(),s=e.createBiquadFilter();i.type="sine",i.frequency.setValueAtTime(540,t),i.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;o.gain.setValueAtTime(0,t),o.gain.linearRampToValueAtTime(l,t+.004),o.gain.exponentialRampToValueAtTime(1e-4,t+.095),i.connect(s),s.connect(o),o.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),i.start(t),u.start(t),i.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 i=e.createBiquadFilter();i.type="bandpass",i.frequency.setValueAtTime(450,r),i.frequency.exponentialRampToValueAtTime(700,r+.1),i.Q.setValueAtTime(1.2,r);var o=e.createGain(),s=.045*this.volume;o.gain.setValueAtTime(0,r),o.gain.linearRampToValueAtTime(s,r+.03),o.gain.exponentialRampToValueAtTime(1e-4,r+.18),a.connect(i),i.connect(o),o.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 i=e.createOscillator(),o=e.createGain();i.type="sine";var s=r+a.startOffset;i.frequency.setValueAtTime(a.freqStart,s),i.frequency.exponentialRampToValueAtTime(a.freqEnd,s+.06);var l=t.volume*a.vol;o.gain.setValueAtTime(0,s),o.gain.linearRampToValueAtTime(l,s+.022),o.gain.exponentialRampToValueAtTime(1e-4,s+a.dur),i.connect(o),o.connect(n),i.start(s),i.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 i=e.createGain(),o=.2*this.volume;i.gain.setValueAtTime(0,r),i.gain.linearRampToValueAtTime(o,r+.08),i.gain.exponentialRampToValueAtTime(1e-4,r+.28),n.connect(a),a.connect(i),i.connect(e.destination),n.start(r),n.stop(r+.3)}[659.25,987.77,1318.5].forEach(function(n,a){var i=e.createOscillator(),o=e.createGain();i.type="sine",i.frequency.setValueAtTime(.85*n,r),i.frequency.exponentialRampToValueAtTime(n,r+.09);var s=.12*t.volume/(a+1);o.gain.setValueAtTime(0,r),o.gain.linearRampToValueAtTime(s,r+.04),o.gain.exponentialRampToValueAtTime(1e-4,r+.35),i.connect(o),o.connect(e.destination),i.start(r),i.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 i=.16*this.volume;n.gain.setValueAtTime(0,t),n.gain.linearRampToValueAtTime(i,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 i=.17*this.volume;a.gain.setValueAtTime(0,t),a.gain.linearRampToValueAtTime(i,t+.003),a.gain.exponentialRampToValueAtTime(1e-4,t+.065),n.connect(a),a.connect(r),n.start(t),n.stop(t+.07);var o=e.createOscillator(),s=e.createGain();o.type="triangle",o.frequency.setValueAtTime(110,t),o.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),o.connect(s),s.connect(r),o.start(t),o.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(),i=e.createGain();a.type="sine",a.frequency.setValueAtTime(n.f,r+n.start);var o=t.volume*n.vol;i.gain.setValueAtTime(0,r+n.start),i.gain.linearRampToValueAtTime(o,r+n.start+.01),i.gain.exponentialRampToValueAtTime(1e-4,r+n.start+n.dur),a.connect(i),i.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(),i=e.createGain();a.type="sine",a.frequency.setValueAtTime(n.freq,r+n.time);var o=.3*t.volume;i.gain.setValueAtTime(0,r+n.time),i.gain.linearRampToValueAtTime(o,r+n.time+.01),i.gain.exponentialRampToValueAtTime(1e-4,r+n.time+n.dur),a.connect(i),i.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 i=e.createOscillator(),o=e.createGain();i.type="sine",i.frequency.setValueAtTime(n,r+.12);var s=.22*t.volume/(a+1);o.gain.setValueAtTime(0,r+.12),o.gain.linearRampToValueAtTime(s,r+.14),o.gain.exponentialRampToValueAtTime(1e-4,r+.85),i.connect(o),o.connect(e.destination),i.start(r+.12),i.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(),i=e.createGain();a.type="sine";var o=r+n.delay;a.frequency.setValueAtTime(n.f,o);var s=t.volume*n.vol;i.gain.setValueAtTime(0,o),i.gain.linearRampToValueAtTime(s,o+.008),i.gain.exponentialRampToValueAtTime(1e-4,o+n.dur),a.connect(i),i.connect(e.destination),a.start(o),a.stop(o+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(),i=e.createGain();a.type="sine";var o=r+n.delay;a.frequency.setValueAtTime(n.f,o);var s=t.volume*n.vol;i.gain.setValueAtTime(0,o),i.gain.linearRampToValueAtTime(s,o+.006),i.gain.exponentialRampToValueAtTime(1e-4,o+n.dur),a.connect(i),i.connect(e.destination),a.start(o),a.stop(o+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(),i=e.createGain(),o=e.createBiquadFilter();a.type="triangle",o.type="bandpass",o.frequency.setValueAtTime(900,r+n.delay),o.Q.setValueAtTime(2.2,r+n.delay);var s=r+n.delay;a.frequency.setValueAtTime(n.f,s);var l=t.volume*n.vol;i.gain.setValueAtTime(0,s),i.gain.linearRampToValueAtTime(l,s+.005),i.gain.exponentialRampToValueAtTime(1e-4,s+n.dur),a.connect(o),o.connect(i),i.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 i=.24*this.volume;n.gain.setValueAtTime(0,t),n.gain.linearRampToValueAtTime(i,t+.005),n.gain.exponentialRampToValueAtTime(1e-4,t+.13),r.connect(a),a.connect(n),n.connect(e.destination);var o=e.createOscillator(),s=e.createGain();o.type="sine",o.frequency.setValueAtTime(140,t),o.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),o.connect(s),s.connect(e.destination),r.start(t),o.start(t),r.stop(t+.14),o.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 NO(e){Nj.play(e)}function Nk(){return Nj.getIsMuted()}function NE(){return Nj.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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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,i=e.onClose,o=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],h=f[1],m=N_(g.useState(null),2),y=m[0],b=m[1];g.useLayoutEffect(function(){var e=document.querySelector('[data-fb-anchor="'.concat(n,'"]'));d(e),h(!!(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,i=t.bottom+6;a=Math.max(8,a=Math.min(a,window.innerWidth-r-8)),i+n>window.innerHeight-8&&(i=t.top-6-n),b({top:i,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)||i()},t=function(e){"Escape"===e.key&&(e.stopPropagation(),i())};return document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",t,!0),function(){document.removeEventListener("pointerdown",e,!0),document.removeEventListener("keydown",t,!0)}},[c,i]),(0,tZ.createPortal)((0,v.jsx)("div",{className:p?"dark":"",style:{display:"contents"},children:(0,v.jsx)(hz.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:o})}),document.body)}function N$(e){var t=e.items,r=e.multi,n=e.loading,a=e.error,i=e.searchable,o=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],h=N_(g.useState(0),2),m=h[0],y=h[1],b=g.useId(),x=g.useRef(null),w=g.useRef(null),S=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,S.length-1))})},[S.length]),g.useEffect(function(){var e,t=null==(e=w.current)?void 0:e.querySelector('[data-idx="'.concat(m,'"]'));null==t||t.scrollIntoView({block:"nearest"})},[m]);var j=function(e){var t=S[e];t&&l(t.value)},O=function(e){"ArrowDown"===e.key?(e.preventDefault(),y(function(e){return Math.min(e+1,S.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(S.length-1)):"Enter"===e.key&&(e.preventDefault(),j(m))};return(0,v.jsxs)("div",{children:[(void 0===i||i)&&(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":S[m]?"".concat(b,"-").concat(m):void 0,"aria-label":c,value:f,onChange:function(e){p(e.target.value),null==s||s(e.target.value)},onKeyDown:O,placeholder:void 0===o?"Rechercher…":o,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:O,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===S.length&&(0,v.jsx)("li",{className:"px-2 py-3 text-[13px] text-[var(--fb-fg-muted)]",children:"Aucun r\xe9sultat"}),!n&&!a&&S.map(function(e,t){var n=t===m;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 NU(e){var t=e.inputType,r=e.arity,n=e.values,a=e.onCommit,i=e.ariaLabel,o=e.rangeLabels,s=void 0===o?["Min","Max"]:o,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,h=d[1],m=void 0===h?"":h;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(i," — ").concat(s[0]),onChange:function(e){return a([e.target.value,m])},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:m,"aria-label":"".concat(i," — ").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":i,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,i=e.tabIndex,o=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:i,"aria-label":o,"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 NG(e){var t,r,n=e.fields,a=e.value,i=e.onChange,o=e.addLabel,s=void 0===o?"Filtre":o,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,h=e.className,m=e["aria-label"],y=Ed(),b=N_(g.useState(null),2),x=b[0],w=b[1],S=N_(g.useState(null),2),j=S[0],O=S[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,o=NV(n,e);if(o){var s=o.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:[]};i(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,o=NV(n,t),s=null==o?void 0:o.operators[0];i(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,o,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!=(o=null==l?void 0:l.arity)?o:1;i(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){i(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])})})),O(e),window.setTimeout(function(){return O(function(t){return t===e?null:t})},640),r||w(null)},B=function(e,t){i(a.map(function(r){return r.id===e?NI(NM({},r),{values:t}):r}))},V=function(e,t){i(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}),i=NV(n,null!=(e=null==r?void 0:r.field)?e:"");(null==i?void 0:i.loadOptions)&&!(null==(t=C[i.id])?void 0:t.options.length)&&z(i)}},[x]);var W=0,$=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)}}},U=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"}(),G=a.length>1;return(0,v.jsxs)("div",{role:"toolbar","aria-label":void 0===m?"Filtres":m,"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!=h?h:""].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)(jA,{initial:!1,mode:"popLayout",children:a.map(function(e){var t,r,a,i,o,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,h=null!=(r=null==d?void 0:d.type)?r:"select",m=0===p?{text:"—",empty:!1,glyphs:[]}:"select"===h?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,i,o=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(o(null!=(a=r[0])?a:"")," – ").concat(o(null!=(i=r[1])?i:"")),empty:!1,glyphs:[]}:{text:o(null!=(n=r[0])?n:""),empty:!1,glyphs:[]}}(h,p,e.values),g=$(),b=$(),S=$(),O=$(),k=j===e.id;return(0,v.jsxs)(hz.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!=(i=null==d?void 0:d.label)?i: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!=(o=null==f?void 0:f.label)?o: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:S.register,tabIndex:S.tabIndex,onFocus:S.onFocus,anchorKey:"".concat(e.id,":value"),muted:m.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(m.empty?"aucune s\xe9lectionn\xe9e":m.text,". Modifier la valeur."),onOpen:function(){0!==p&&w({kind:"value",filterId:e.id})},children:[!m.empty&&m.glyphs.length>0&&(0,v.jsx)("span",{className:"flex shrink-0 items-center gap-0.5","aria-hidden":!0,children:m.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:m.empty?(0,v.jsx)("span",{className:"font-normal text-[var(--fb-fg-subtle)]",children:m.text}):m.text})]}),(0,v.jsx)("button",{type:"button",ref:O.register,tabIndex:O.tabIndex,onFocus:O.onFocus,onClick:function(){return V(e.id,O.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=$(),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)(NK,{}),r?u:s]})),G&&(0,v.jsx)("button",{type:"button",onClick:function(){i([]),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&&U&&(0,v.jsx)(NW,{anchorKey:U,label:H,onClose:function(){return w(null)},children:function(){if(!x)return null;if("add"===x.kind||"field"===x.kind){var e,t,r,i,o,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)(N$,{ariaLabel:H,items:u,multi:!1,onPick:function(e){return"add"===x.kind?M(e):I(x.filterId,e)}},null!=U?U: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)(N$,{ariaLabel:H,items:p,multi:!1,searchable:p.length>6,onPick:function(e){return L(c.id,e)}},null!=U?U:void 0)}var h=Nz(d,c.operator),m=null!=(t=null==h?void 0:h.arity)?t:1;if(0===m)return null;var y=null!=(r=d.type)?r:"select";if("text"===y||"number"===y||"date"===y)return(0,v.jsx)(NU,{inputType:y,arity:m,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!=U?U:void 0);var g=!!(null==h?void 0:h.multi),b=d.loadOptions?C[d.id]:void 0,w=(d.loadOptions?null!=(i=null==b?void 0:b.options)?i:[]:null!=(o=d.options)?o:[]).map(function(e){return{value:e.value,label:e.label,glyph:e.glyph,selected:c.values.includes(e.value)}});return(0,v.jsx)(N$,{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!=U?U:void 0)}()})]})}function NK(){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=NG;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!=(i=e.options)?i:NJ};var t,n,a,i,o=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:o};var s=e.dependsOn?r(e.dependsOn):[];return e.optionsByParent?{id:e.id,label:e.label,icon:e.icon,type:"select",operators:o,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:o,loadOptions:function(t){return e.loadOptions(t,{parentValues:s})}}:{id:e.id,label:e.label,icon:e.icon,type:"select",operators:o,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 i=r.find(function(e){return e.field===a.dependsOn}),o=!!i&&i.values.length>0;return o||(t=!0),o});if(r=n.map(function(r){var a,i=e.fields.find(function(e){return e.id===r.field});if(!(null==i?void 0:i.dependsOn)||!i.optionsByParent)return r;var o=n.find(function(e){return e.field===i.dependsOn}),s=new Set((null!=(a=null==o?void 0:o.values)?a:[]).flatMap(function(e){var t,r,n;return null!=(t=null==(n=i.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 i=N_(n,2),o=i[0],s=i[1];if("date"===e){var l=new Date(a(r)).getTime(),u=!o||l>=new Date(o).getTime(),c=!s||l<=new Date(s).getTime();return u&&c}var d=Number(r),f=void 0===o||""===o||d>=Number(o),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}),i=null==a?void 0:a.type;return N4("boolean"===i||void 0===i?"select":i,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,i=g.useMemo(function(){return N7.filter(function(e){return N6(e,t,N9,Re)})},[t]),o=g.useMemo(function(){return function(e){var t=new URLSearchParams,r=!0,n=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s,l,u=i.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",h="is_any_of"===u.operator?u.values.join(","):null!=(l=u.values[0])?l:"";t.append("".concat(u.field,"__").concat(p),h)}}}catch(e){n=!0,a=e}finally{try{r||null==o.return||o.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)(NG,{fields:n,value:t,onChange:a,"aria-label":"Filtrer les articles"}),(0,v.jsxs)("ul",{className:"flex flex-col gap-2",children:[i.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===i.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:["?",o||"(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"}]]),Ri=(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"}]]),Ro=(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=(0,ya.A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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,i=e.onSelectSort,o=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),h=p[0],m=p[1],y=[{id:"all",label:"Tout",icon:(0,v.jsx)(OF,{className:"w-3.5 h-3.5"})},{id:"documents",label:"Documents",icon:(0,v.jsx)(OQ,{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)(Ri,{className:"w-3.5 h-3.5"})},{id:"archives",label:"Archives",icon:(0,v.jsx)(Ro,{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),m(!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,{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(){i(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(){m(!h),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,{className:"w-3 h-3 text-white/50 shrink-0"})]}),h&&(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),m(!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"===o?"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"===o?"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}),i=[],o=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let n=e[t],a=r.nextPart.get(n);if(a){let r=o(e,t+1,a);if(r)return r}let i=r.validators;if(null===i)return;let s=0===t?e.join("-"):e.slice(t).join("-"),l=i.length;for(let e=0;e<l;e++){let t=i[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 i=0;i<a;i++)u(e[i],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)=>{h(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),i=a.length;for(let e=0;e<i;e++){let[i,o]=a[e];l(o,p(t,i),r,n)}},p=(e,t)=>{let r=e,n=t.split("-"),i=n.length;for(let e=0;e<i;e++){let t=n[e],i=r.nextPart.get(t);i||(i=a(),r.nextPart.set(t,i)),r=i}return r},h=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,m=[],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,S=/^\((?:(\w[\w-]*):)?(.+)\)$/i,j=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,O=/^(\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=>j.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=>O.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=>!$(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=>ei(e,eu,L),$=e=>w.test(e),U=e=>ei(e,ec,I),H=e=>ei(e,ed,C),G=e=>ei(e,ep,M),K=e=>ei(e,ef,L),q=e=>ei(e,es,L),Y=e=>ei(e,el,B),X=e=>ei(e,eh,F),Z=e=>S.test(e),Q=e=>eo(e,ec),J=e=>eo(e,ef),ee=e=>eo(e,es),et=e=>eo(e,eu),er=e=>eo(e,el),en=e=>eo(e,eh,!0),ea=e=>eo(e,ep,!0),ei=(e,t,r)=>{let n=w.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},eo=(e,t,r=!1)=>{let n=S.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,eh=e=>"shadow"===e,em=((e,...t)=>{let r,n,a,l,u=e=>{let t=n(e);if(t)return t;let i=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:i,postfixLookupClassGroupIds:o}=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:h,maybePostfixModifierPosition:m}=r(c);if(d){u=c+(u.length>0?" "+u:u);continue}let y=!!m;if(y){let e=(t=n(h.substring(0,m)))&&o[t]?n(h):void 0;e&&e!==t&&(t=e,y=!1)}else t=n(h);if(!t){if(!y||!(t=n(h))){u=c+(u.length>0?" "+u:u);continue}y=!1}let v=0===f.length?"":1===f.length?f[0]:i(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,i),i};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,i)=>{r[a]=i,++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,i=0,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(0===n&&0===a){if(":"===o){r.push(e.slice(i,s)),i=s+1;continue}if("/"===o){t=s;continue}}"["===o?n++:"]"===o?n--:"("===o?a++:")"===o&&a--}let s=0===r.length?e:e.slice(i),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>i?t-i:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):y(m,!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],i="["===a[0],o=f.has(a);i||o?(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 o(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||i}return r[e]||i}}})(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"),i=x("leading"),o=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"),h=x("blur"),m=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"],S=()=>[...w(),Z,$],j=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],k=()=>[Z,$,l],E=()=>[D,"full","auto",...k()],P=()=>[T,"none","subgrid",Z,$],A=()=>["auto",{span:["full",T,Z,$]},T,Z,$],I=()=>[T,"auto",Z,$],L=()=>["auto","min","max","fr",Z,$],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],ei=()=>["auto",...k()],eo=()=>[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,$],ec=()=>[...w(),ee,q,{position:[Z,$]}],ed=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ef=()=>["auto","cover","contain",et,W,{size:[Z,$]}],ep=()=>[N,Q,U],eh=()=>["","none","full",u,Z,$],em=()=>["",C,Q,U],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",h,Z,$],ex=()=>["none",C,Z,$],ew=()=>["none",C,Z,$],eS=()=>[C,Z,$],ej=()=>[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,$,Z,y]}],container:["container"],"container-type":[{"@container":["","normal","size",Z,$]}],"container-named":[z],columns:[{columns:[C,"auto",$,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:S()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],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,$]}],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",$]}],grow:[{grow:["",C,Z,$]}],shrink:[{shrink:["",C,Z,$]}],order:[{order:[T,"first","last","none",Z,$]}],"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:ei()}],mx:[{mx:ei()}],my:[{my:ei()}],ms:[{ms:ei()}],me:[{me:ei()}],mbs:[{mbs:ei()}],mbe:[{mbe:ei()}],mt:[{mt:ei()}],mr:[{mr:ei()}],mb:[{mb:ei()}],ml:[{ml:ei()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:eo()}],"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",...eo()]}],"min-w":[{"min-w":[s,"screen","none",...eo()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...eo()]}],h:[{h:["screen","lh",...eo()]}],"min-h":[{"min-h":["screen","lh","none",...eo()]}],"max-h":[{"max-h":["screen","lh","none",...eo()]}],"font-size":[{text:["base",r,Q,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ea,G]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",N,$]}],"font-family":[{font:[J,K,t]}],"font-features":[{"font-features":[$]}],"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,$]}],"line-clamp":[{"line-clamp":[C,"none",Z,H]}],leading:[{leading:["none",i,...k()]}],"list-image":[{"list-image":["none",Z,$]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,$]}],"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,U]}],"text-decoration-color":[{decoration:eu()}],"underline-offset":[{"underline-offset":[C,"auto",Z,$]}],"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,$]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,$]}],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,$]}],"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,$],radial:["",Z,$],conic:["",T,Z,$]},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:eh()}],"rounded-s":[{"rounded-s":eh()}],"rounded-e":[{"rounded-e":eh()}],"rounded-t":[{"rounded-t":eh()}],"rounded-r":[{"rounded-r":eh()}],"rounded-b":[{"rounded-b":eh()}],"rounded-l":[{"rounded-l":eh()}],"rounded-ss":[{"rounded-ss":eh()}],"rounded-se":[{"rounded-se":eh()}],"rounded-ee":[{"rounded-ee":eh()}],"rounded-es":[{"rounded-es":eh()}],"rounded-tl":[{"rounded-tl":eh()}],"rounded-tr":[{"rounded-tr":eh()}],"rounded-br":[{"rounded-br":eh()}],"rounded-bl":[{"rounded-bl":eh()}],"border-w":[{border:em()}],"border-w-x":[{"border-x":em()}],"border-w-y":[{"border-y":em()}],"border-w-s":[{"border-s":em()}],"border-w-e":[{"border-e":em()}],"border-w-bs":[{"border-bs":em()}],"border-w-be":[{"border-be":em()}],"border-w-t":[{"border-t":em()}],"border-w-r":[{"border-r":em()}],"border-w-b":[{"border-b":em()}],"border-w-l":[{"border-l":em()}],"divide-x":[{"divide-x":em()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":em()}],"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,$]}],"outline-w":[{outline:["",C,Q,U]}],"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:em()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:eu()}],"ring-offset-w":[{"ring-offset":[C,U]}],"ring-offset-color":[{"ring-offset":eu()}],"inset-ring-w":[{"inset-ring":em()}],"inset-ring-color":[{"inset-ring":eu()}],"text-shadow":[{"text-shadow":["none",f,en,X]}],"text-shadow-color":[{"text-shadow":eu()}],opacity:[{opacity:[C,Z,$]}],"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,$]}],"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,$]}],filter:[{filter:["","none",Z,$]}],blur:[{blur:eb()}],brightness:[{brightness:[C,Z,$]}],contrast:[{contrast:[C,Z,$]}],"drop-shadow":[{"drop-shadow":["","none",p,en,X]}],"drop-shadow-color":[{"drop-shadow":eu()}],grayscale:[{grayscale:["",C,Z,$]}],"hue-rotate":[{"hue-rotate":[C,Z,$]}],invert:[{invert:["",C,Z,$]}],saturate:[{saturate:[C,Z,$]}],sepia:[{sepia:["",C,Z,$]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,$]}],"backdrop-blur":[{"backdrop-blur":eb()}],"backdrop-brightness":[{"backdrop-brightness":[C,Z,$]}],"backdrop-contrast":[{"backdrop-contrast":[C,Z,$]}],"backdrop-grayscale":[{"backdrop-grayscale":["",C,Z,$]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C,Z,$]}],"backdrop-invert":[{"backdrop-invert":["",C,Z,$]}],"backdrop-opacity":[{"backdrop-opacity":[C,Z,$]}],"backdrop-saturate":[{"backdrop-saturate":[C,Z,$]}],"backdrop-sepia":[{"backdrop-sepia":["",C,Z,$]}],"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,$]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[C,"initial",Z,$]}],ease:[{ease:["linear","initial",v,Z,$]}],delay:[{delay:[C,Z,$]}],animate:[{animate:["none",g,Z,$]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Z,$]}],"perspective-origin":[{"perspective-origin":S()}],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:eS()}],"skew-x":[{"skew-x":eS()}],"skew-y":[{"skew-y":eS()}],transform:[{transform:[Z,$,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ej()}],"translate-x":[{"translate-x":ej()}],"translate-y":[{"translate-y":ej()}],"translate-z":[{"translate-z":ej()}],"translate-none":["translate-none"],zoom:[{zoom:[T,Z,$]}],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,$]}],"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,$]}],fill:[{fill:["none",...eu()]}],"stroke-w":[{stroke:[C,Q,U,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 em((0,n.$)(t))}},5572(e,t,r){"use strict";let n;r.d(t,{jJ:()=>iv,cw:()=>is,FA:()=>nN,rr:()=>ir,lG:()=>a5,ul:()=>ig,jl:()=>il,L3:()=>it,Wd:()=>nT,Ad:()=>ih,Ex:()=>nO,$n:()=>q,Es:()=>ie,Cf:()=>a9,rQ:()=>io,K0:()=>ng,ci:()=>ib,tD:()=>ix,Ou:()=>nC,c7:()=>a7});var a,i,o,s,l,u,c,d,f=r(2883),p=r(8783),h=r(7064);let m=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,y=h.$,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:i}=t,o=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;let o=m(t)||m(n);return a[e][o]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return y(e,o,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({...i,...s}[t]):({...i,...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 S(...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 j(...e){return p.useCallback(S(...e),e)}x(w,"setRef"),x(S,"composeRefs"),x(j,"useComposedRefs");var O=Object.defineProperty,k=(e,t)=>O(e,"name",{value:t,configurable:!0});function E(e){let t=p.forwardRef((t,r)=>{let{children:n,...a}=t,i=null,o=!1,s=[];n=F(n),p.Children.forEach(n,e=>{if(R(e)){o=!0;let t="child"in e.props?e.props.child:e.props.children;for(;I(t)&&"function"==typeof W;)t=W(t._payload);i=C(e,t),s.push(i?.props?.children)}else s.push(e)}),i?i=p.cloneElement(i,void 0,s):!o&&1===p.Children.count(n)&&p.isValidElement(n)&&(i=n);let l=i?N(i):void 0,u=j(r,l);if(!i){if(n||0===n)throw Error(o?z(e):V(e));return n}let c=T(a,i.props??{});return i.type!==p.Fragment&&(c.ref=r?u:l),p.cloneElement(i,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],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...i}:"className"===n?r[n]=[a,i].filter(Boolean).join(" "):"aria-describedby"===n&&(r[n]=B(i,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 $(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){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 G(e,t){if(e){if("string"==typeof e)return $(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 $(e,t)}}var K=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=U(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||G(r)||H(),a=n[0],i=n.slice(1),o=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,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(a,["className","variant","size","asChild"]),h=(U(i)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(i)||G(i,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:h,"data-slot":"button","data-variant":l,"data-size":c,className:(0,g.cn)(K({variant:l,size:c,className:o}))},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 i=r.length;r=[...r,n];let o=er(t=>{let{scope:r,children:n,...o}=t,s=r?.[e]?.[i]||a,l=p.useMemo(()=>o,Object.values(o));return(0,f.jsx)(s.Provider,{value:l,children:n})},"Provider");function s(r,o,l={}){let{optional:u=!1}=l,c=o?.[e]?.[i]||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 o.displayName=t+"Provider",er(s,"useContext"),[o,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,i={}){let{optional:o=!1}=i,s=p.useContext(r);if(s)return s;if(void 0!==t)return t;if(!o)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 ei=r(803),eo=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,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(a?r:t,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function el(e,t){e&&ei.flushSync(()=>e.dispatchEvent(t))}eo(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,eh=(e,t)=>ep(e,"name",{value:t,configurable:!0}),em="dismissableLayer.update",ey=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ev=p.forwardRef(eh(function(e,t){let{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:n=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...u}=e,d=p.useContext(ey),[h,m]=p.useState(null),y=h?.ownerDocument??globalThis?.document,[,v]=p.useState({}),g=j(t,m),b=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=x?b.indexOf(x):-1,S=h?b.indexOf(h):-1,O=d.layersWithOutsidePointerEventsDisabled.size>0,k=S>=w,E=p.useRef(!1),P=ex(e=>{i?.(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))&&(o?.(e),s?.(e),e.defaultPrevented||l?.())},y),D=!!h&&S===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(h)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(c=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(h)),d.layers.add(h),eS(),()=>{r&&(d.layersWithOutsidePointerEventsDisabled.delete(h),0===d.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=c))}},[h,y,r,d]),p.useEffect(()=>()=>{h&&(d.layers.delete(h),d.layersWithOutsidePointerEventsDisabled.delete(h),eS())},[h,d]),p.useEffect(()=>{let e=eh(()=>v({}),"handleUpdate");return document.addEventListener(em,e),()=>document.removeEventListener(em,e)},[]),(0,f.jsx)(es.div,{...u,ref:g,style:{pointerEvents:O?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}eh(eg,"useDismissableLayerSurface");var eb=eh(()=>!0,"IS_TRUE");function ex(e,t){let{ownerDocument:r=globalThis?.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:i,shouldHandlePointerDownOutside:o=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&&[...i].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)}eh(e,"resetOutsideInteraction"),eh(t,"isOutsideInteractionIntercepted"),eh(f,"handleInteractionCapture"),eh(p,"handleInteractionBubble");let h=eh(i=>{if(i.target&&!l.current){let f=function(){r.removeEventListener("click",d.current);let n=t();e(),n||ej("dismissableLayer.pointerDownOutside",s,p,{discrete:!0})};if(eh(f,"handleAndDispatchPointerDownOutsideEvent"),!o(i.target)){r.removeEventListener("click",d.current),e(),l.current=!1;return}let p={originalEvent:i};u.current=!0,a.current=n&&0===i.button,c.current.clear(),n&&0===i.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"),m=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of m)r.addEventListener(e,f,!0),r.addEventListener(e,p);let y=window.setTimeout(()=>{r.addEventListener("pointerdown",h)},0);return()=>{for(let e of(window.clearTimeout(y),r.removeEventListener("pointerdown",h),r.removeEventListener("click",d.current),m))r.removeEventListener(e,f,!0),r.removeEventListener(e,p)}},[r,s,n,a,i,o]),{onPointerDownCapture:eh(()=>l.current=!0,"onPointerDownCapture")}}function ew(e,t=globalThis?.document){let r=ef(e),n=p.useRef(!1);return p.useEffect(()=>{let e=eh(e=>{e.target&&!n.current&&ej("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:eh(()=>n.current=!0,"onFocusCapture"),onBlurCapture:eh(()=>n.current=!1,"onBlurCapture")}}function eS(){let e=new CustomEvent(em);document.dispatchEvent(e)}function ej(e,t,r,{discrete:n}){let a=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?el(a,i):a.dispatchEvent(i)}eh(ex,"usePointerDownOutside"),eh(ew,"useFocusOutside"),eh(eS,"dispatchUpdate"),eh(ej,"handleAndDispatchCustomEvent");var eO=Object.defineProperty,ek=(e,t)=>eO(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:i,onUnmountAutoFocus:o,...s}=e,[l,u]=p.useState(null),c=ef(i),d=ef(o),h=p.useRef(null),m=j(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)?h.current=t:eV(h.current,{select:!0})},t=function(e){if(g.paused||!l)return;let t=e.relatedTarget;null!==t&&(v(t)||eV(h.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(eU(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,i]=eI(t);n&&i?e.shiftKey||a!==i?e.shiftKey&&a===n&&(e.preventDefault(),r&&eV(i,{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:m,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=e$(e,t)).unshift(t)},remove(t){e=e$(e,t),e[0]?.resume()}}}function e$(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}function eU(e){return e.filter(e=>"A"!==e.tagName)}ek(eW,"createFocusScopesStack"),ek(e$,"arrayRemove"),ek(eU,"removeLinks");var eH=Object.defineProperty,eG=p[" useId ".trim().toString()]||(()=>void 0),eK=0;function eq(e){let[t,r]=p.useState(eG());return eu(()=>{e||r(e=>e??String(eK++))},[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 ti(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 to(e,t,r){let n,{reference:a,floating:i}=e,o=e8(t),s=e5(e8(t)),l=e6(s),u=e3(t),c=a.x+a.width/2-i.width/2,d=a.y+a.height/2-i.height/2,f=a[l]/2-i[l]/2;switch(u){case"top":n={x:c,y:a.y-i.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-i.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"===o?-1:1)),n}async function ts(e,t){var r;void 0===t&&(t={});let{x:n,y:a,platform:i,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=e2(t,e),h=ta(p),m=s[f?"floating"===d?"reference":"floating":d],y=ti(await i.getClippingRect({element:null==(r=await (null==i.isElement?void 0:i.isElement(m)))||r?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:n,y:a,width:o.floating.width,height:o.floating.height}:o.reference,g=await (null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await (null==i.isElement?void 0:i.isElement(g))&&await (null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},x=ti(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:g,strategy:l}):v);return{top:(y.top-x.top+h.top)/b.y,bottom:(x.bottom-y.bottom+h.bottom)/b.y,left:(y.left-x.left+h.left)/b.x,right:(x.right-y.right+h.right)/b.x}}let tl=async(e,t,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=r,s=o.detectOverflow?o:{...o,detectOverflow:ts},l=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:d}=to(u,n,l),f=n,p=0,h={};for(let r=0;r<i.length;r++){let m=i[r];if(!m)continue;let{name:y,fn:v}=m,{x:g,y:b,data:x,reset:w}=await v({x:c,y:d,initialPlacement:n,placement:f,strategy:a,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=b?b:d,h[y]={...h[y],...x},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await o.getElementRects({reference:e,floating:t,strategy:a}):w.rects),{x:c,y:d}=to(u,f,l)),r=-1)}return{x:c,y:d,placement:f,strategy:a,middlewareData:h}};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,i=await (null==n.isRTL?void 0:n.isRTL(a.floating)),o=e3(r),s=e4(r),l="y"===e8(r),u=td.has(o)?-1:1,c=i&&l?-1:1,d=e2(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function tp(){return"u">typeof window}function th(e){return tv(e)?(e.nodeName||"").toLowerCase():"#document"}function tm(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 tm(e).Node)}function tg(e){return!!tp()&&(e instanceof Element||e instanceof tm(e).Element)}function tb(e){return!!tp()&&(e instanceof HTMLElement||e instanceof tm(e).HTMLElement)}function tx(e){return!(!tp()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof tm(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 tS(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let tj=/transform|translate|scale|rotate|perspective|filter/,tO=/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))||tj.test(t.willChange||"")||tO.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(th(e))}function tD(e){return tm(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"===th(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),i=a===(null==(n=e.ownerDocument)?void 0:n.body),o=tm(a);if(!i)return t.concat(a,tN(a,[],r));{let e=tR(o);return t.concat(o,o.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),i=a?e.offsetWidth:r,o=a?e.offsetHeight:n,s=eQ(r)!==i||eQ(n)!==o;return s&&(r=i,n=o),{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,$:i}=tM(t),o=(i?eQ(r.width):r.width)/n,s=(i?eQ(r.height):r.height)/a;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}let tL=e0(0);function tF(e){let t=tm(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 i=e.getBoundingClientRect(),o=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===tm(o))?tF(o):e0(0),u=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(o&&n){let e=tm(o),t=tg(n)?tm(n):n,r=e,a=tR(r);for(;a&&t!==r;){let e=t_(a),t=a.getBoundingClientRect(),n=tD(a),i=t.left+(a.clientLeft+parseFloat(n.paddingLeft))*e.x,o=t.top+(a.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=i,c+=o,a=tR(r=tm(a))}}return ti({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=tm(e),i=ty(e),o=a.visualViewport,s=i.clientWidth,l=i.clientHeight,u=0,c=0;if(o){let e=!tP()||"fixed"===t;n?e||(u=-o.offsetLeft,c=-o.offsetTop):(s=o.width,l=o.height,e&&(u=o.offsetLeft,c=o.offsetTop))}if(0>=tV(i)){let e=i.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(i.clientWidth-t.clientWidth-n),o="stable both-edges"===getComputedStyle(i).scrollbarGutter?a/2:a;o<=25&&(s-=o)}return{width:s,height:l,x:u,y:c}}(e,r,t);else if("document"===t){let t,r,i,o,s,l;t=tC(n=ty(e)),r=n.ownerDocument.body,i=eZ(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),o=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)-i),a={width:i,height:o,x:s,y:l}}else if(tg(t)){let e,n,i,o,s,l;n=(e=tB(t,!0,"fixed"===r)).top+t.clientTop,i=e.left+t.clientLeft,o=t_(t),s=t.clientWidth*o.x,l=t.clientHeight*o.y,a={width:s,height:l,x:i*o.x,y:n*o.y}}else{let r=tF(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ti(a)}function t$(e){return"static"===tD(e).position}function tU(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=tm(e);if(tS(e))return n;if(!tb(e)){let t=tT(e);for(;t&&!tA(t);){if(tg(t)&&!t$(t))return t;t=tT(t)}return n}let a=tU(e,t);for(;a&&(r=a,/^(table|td|th)$/.test(th(r)))&&t$(a);)a=tU(a,t);return a&&tA(a)&&t$(a)&&!tE(a)?n:a||function(e){let t=tT(e);for(;tb(t)&&!tA(t);){if(tE(t))return t;if(tS(t))break;t=tT(t)}return null}(e)||n}let tG=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),i="fixed"===r,o=tB(e,!0,i,t),s={scrollLeft:0,scrollTop:0},l=e0(0);if((n||!i)&&(("body"!==th(t)||tw(a))&&(s=tC(t)),n)){let e=tB(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!n&&a&&(l.x=tV(a));let u=!a||n||i?e0(0):tz(a,s);return{x:o.left+s.scrollLeft-l.x-u.x,y:o.top+s.scrollTop-l.y-u.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},tK={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e,i="fixed"===a,o=ty(n),s=!!t&&tS(t.floating);if(n===o||s&&i)return r;let l={scrollLeft:0,scrollTop:0},u=e0(1),c=e0(0),d=tb(n);if((d||!i)&&(("body"!==th(n)||tw(o))&&(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=!o||d||i?e0(0):tz(o,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,i=[..."clippingAncestors"===r?tS(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=tN(e,[],!1).filter(e=>tg(e)&&"body"!==th(e)),a=null,i="fixed"===tD(e).position,o=i?tT(e):e;for(;tg(o)&&!tA(o);){let e=tD(o),t=tE(o),r=a?a.position:i?"fixed":"";t||"fixed"!==r&&("absolute"!==r||"static"!==e.position)?a=e:n=n.filter(e=>e!==o),o=tT(o)}return t.set(e,n),n}(t,this._c):[].concat(r),n],o=tW(t,i[0],a),s=o.top,l=o.right,u=o.bottom,c=o.left;for(let e=1;e<i.length;e++){let r=tW(t,i[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:tG,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:i,platform:o,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)),h=e6(p),m=await o.getDimensions(u),y="y"===p,v=y?"clientHeight":"clientWidth",g=i.reference[h]+i.reference[p]-f[p]-i.floating[h],b=f[p]-i.reference[p],x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(u)),w=x?x[v]:0;w&&await (null==o.isElement?void 0:o.isElement(x))||(w=s.floating[v]||i.floating[h]);let S=w/2-m[h]/2-1,j=eX(d[y?"top":"left"],S),O=eX(d[y?"bottom":"right"],S),k=w-m[h]-O,E=w/2-m[h]/2+(g/2-b/2),P=eZ(j,eX(E,k)),A=!l.arrow&&null!=e4(a)&&E!==P&&i.reference[h]/2-(E<j?j:O)-m[h]/2<0,D=A?E<j?E-j: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,...i}=e;return(0,f.jsx)(es.svg,{...i,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),[i,o]=p.useState(void 0);return(0,f.jsx)(re,{scope:t,anchor:n,onAnchorChange:a,placementState:i,setPlacementState:o,children:r})},"Popper"),rn=p.forwardRef(t5(function(e,t){let{__scopePopper:r,virtualRef:n,...a}=e,i=rt("PopperAnchor",r),o=p.useRef(null),s=i.onAnchorChange,l=j(t,p.useCallback(e=>{o.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=i.placementState&&rf(i.placementState),d=c?.[0],h=c?.[1];return n?null:(0,f.jsx)(es.div,{"data-radix-popper-side":d,"data-radix-popper-align":h,...a,ref:l})},"PopperAnchor")),ra="PopperContent",[ri,ro]=t9(ra),rs=p.forwardRef(t5(function(e,t){var r,n,a,i,o,s,l,u,c,d,h,m,y,v,g,b,x,w,S,O,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:$=!1,updatePositionStrategy:U="optimized",onPlaced:H,...G}=e,K=rt(ra,N),[q,Y]=p.useState(null),X=j(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,eo={padding:er,boundary:en.filter(rc),altBoundary:ea},{refs:el,floatingStyles:ec,placement:ed,isPositioned:ep,middlewareData:eh}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=p.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=p.useState(n);tZ(f,n)||h(n);let[m,y]=p.useState(null),[v,g]=p.useState(null),b=p.useCallback(e=>{e!==j.current&&(j.current=e,y(e))},[]),x=p.useCallback(e=>{e!==O.current&&(O.current=e,g(e))},[]),w=i||m,S=o||v,j=p.useRef(null),O=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,i,o;if(!j.current||!O.current)return;let s={placement:t,strategy:r,middleware:f};A.current&&(s.platform=A.current),(e=j.current,n=O.current,a=new Map,i=null!=s?s:{},o={...tK,...i.platform,_c:a},tl(e,n,{...i,platform:o})).then(e=>{let t={...e,isPositioned:!1!==D.current};T.current&&!tZ(k.current,t)&&(k.current=t,ei.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&&(j.current=w),S&&(O.current=S),w&&S){if(P.current)return P.current(w,S,C);C()}},[w,S,C,P,E]);let N=p.useMemo(()=>({reference:j,floating:O,setReference:b,setFloating:x}),[b,x]),R=p.useMemo(()=>({reference:w,floating:S}),[w,S]),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:i=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=tI(e),d=i||o?[...c?tN(c):[],...t?tN(t):[]]:[];d.forEach(e=>{i&&e.addEventListener("scroll",r),o&&e.addEventListener("resize",r)});let f=c&&l?function(e,t,r){let n,a=null,i=ty(e);function o(){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),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(r||t(),!f||!p)return;let h={rootMargin:-eJ(d)+"px "+-eJ(i.clientWidth-(c+f))+"px "+-eJ(i.clientHeight-(d+p))+"px "+-eJ(c)+"px",threshold:eZ(0,eX(1,l))||1},m=!0;function y(t){let r=t[0].intersectionRatio;if(!tq(u,e.getBoundingClientRect()))return s();if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}m=!1}try{a=new IntersectionObserver(y,{...h,root:i.ownerDocument})}catch(e){a=new IntersectionObserver(y,h)}a.observe(e)}let l=tm(e),u=()=>s(r);return l.addEventListener("resize",u),s(!0),()=>{l.removeEventListener("resize",u),o()}}(c,r,o):null,p=-1,h=null;s&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),c&&!u&&h.observe(c),t&&h.observe(t));let m=u?tB(e):null;return u&&function t(){let n=tB(e);m&&!tq(m,n)&&r(),m=n,a=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",r),o&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(a)}})(...e,{animationFrame:"always"===U}),"whileElementsMounted"),elements:{reference:K.anchor},middleware:[{name:(E={name:"offset",options:a=r={mainAxis:M+et,alignmentAxis:L},async fn(e){var t,r;let{x:n,y:i,placement:o,middlewareData:s}=e,l=await tf(e,a);return o===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:o}}}}).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=i)&&(s={}),{options:s,fn(e){var t,r,n,a;let{x:i,y:o,placement:l,rects:u,middlewareData:c}=e,{offset:d=0,mainAxis:f=!0,crossAxis:p=!0}=e2(s,e),h={x:i,y:o},m=e8(l),y=e5(m),v=h[y],g=h[m],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[m]-u.floating[e]+(t&&(null==(n=c.offset)?void 0:n[m])||0)+(t?0:x.crossAxis),i=u.reference[m]+u.reference[e]+(t?0:(null==(a=c.offset)?void 0:a[m])||0)-(t?x.crossAxis:0);g<r?g=r:g>i&&(g=i)}return{[y]:v,[m]:g}}}).fn,options:[i,o]}}:{},...eo},async fn(e){let{x:t,y:r,placement:n,platform:a}=e,{mainAxis:i=!0,crossAxis:o=!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),h=u[p],m=u[f],y=(e,t)=>eZ(t+d["y"===e?"top":"left"],eX(t,t-d["y"===e?"bottom":"right"]));i&&(h=y(p,h)),o&&(m=y(f,m));let v=s.fn({...e,[p]:h,[f]:m});return{...v,data:{x:v.x-t,y:v.y-r,enabled:{[p]:i,[f]:o}}}}}).name,fn:P.fn,options:[l,u]},B&&{name:(A={name:"flip",options:m=d={...eo},async fn(e){var t,r,n,a,i,o,s,l;let u,c,d,{placement:f,middlewareData:p,rects:h,initialPlacement:y,platform:v,elements:g}=e,{mainAxis:b=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:O=!0,...k}=e2(m,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||!O?[tn(y)]:(u=tn(y),[e9(y),u,e9(u)])),T="none"!==j;!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"===j,D),c&&(d=d.map(e=>e+"-"+c),O&&(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=(o=f,s=h,void 0===(l=D)&&(l=!1),e=e4(o),r=e6(t=e5(e8(o))),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(S){case"bestFit":{let e=null==(i=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:i[0];e&&(r=e);break}case"initialPlacement":r=y}if(f!==r)return{reset:{placement:r}}}return{}}}).name,fn:A.fn,options:[d,h]},{name:(D={name:"size",options:g=y={...eo,apply:t5(({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:a,height:i}=t.reference,o=e.floating.style;o.setProperty("--radix-popper-available-width",`${r}px`),o.setProperty("--radix-popper-available-height",`${n}px`),o.setProperty("--radix-popper-anchor-width",`${a}px`),o.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")},async fn(e){let t,r,{placement:n,rects:a,platform:i,elements:o}=e,{apply:s=()=>{},...l}=e2(g,e),u=await i.detectOverflow(e,l),c=e3(n),d=e4(n),f="y"===e8(n),{width:p,height:h}=a.floating;"top"===c||"bottom"===c?(t=c,r=d===(await (null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(r=c,t="end"===d?"top":"bottom");let m=h-u.top-u.bottom,y=p-u.left-u.right,v=eX(h-u[t],m),b=eX(p-u[r],y),x=e.middlewareData.shift,w=!x,S=v,j=b;null!=x&&x.enabled.x&&(j=y),null!=x&&x.enabled.y&&(S=m),w&&!d&&(f?j=p-2*eZ(u.left,u.right):S=h-2*eZ(u.top,u.bottom)),await s({...e,availableWidth:j,availableHeight:S});let O=await i.getDimensions(o.floating);return p!==O.width||h!==O.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}),$&&{name:(T={name:"hide",options:k=S=ea?{strategy:"referenceHidden",...eo}:{strategy:"referenceHidden",padding:eo.padding,altBoundary:eo.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:[S,O]}]}),em=K.setPlacementState;eu(()=>(em(ed),()=>{em(void 0)}),[ed,em]);let[ey,ev]=rf(ed),eg=ef(H);eu(()=>{ep&&eg?.()},[ep,eg]);let eb=eh.arrow?.x,ex=eh.arrow?.y,ew=eh.arrow?.centerOffset!==0,[eS,ej]=p.useState();return eu(()=>{q&&ej(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:eS,"--radix-popper-transform-origin":[eh.transformOrigin?.x,eh.transformOrigin?.y].join(" "),...eh.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(ri,{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,...G,ref:X,style:{...G.style,animation:ep?G.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=ro("PopperArrow",r),i=rl[a.placedSide];return(0,f.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]: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,i=a.arrow?.centerOffset!==0,o=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,u]=rf(r),c={start:"0%",center:"50%",end:"100%"}[u],d=(a.arrow?.x??0)+o/2,f=(a.arrow?.y??0)+s/2,p="",h="";return"bottom"===l?(p=i?c:`${d}px`,h=`${-s}px`):"top"===l?(p=i?c:`${d}px`,h=`${n.floating.height+s}px`):"right"===l?(p=`${-s}px`,h=i?c:`${f}px`):"left"===l&&(p=`${n.floating.width+s}px`,h=i?c:`${f}px`),{data:{x:p,y:h}}}}),"transformOrigin");function rf(e){let[t,r="center"]=e.split("-");return[t,r]}t5(rf,"getSideAndAlignFromPlacement");var rp=Object.defineProperty,rh=p.forwardRef(rp(function(e,t){let{container:r,...n}=e,[a,i]=p.useState(!1);eu(()=>i(!0),[]);let o=r||a&&globalThis?.document?.body;return o?ei.createPortal((0,f.jsx)(es.div,{...n,ref:t}),o):null},"name",{value:"Portal",configurable:!0})),rm=Object.defineProperty,ry=(e,t)=>rm(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),i=rw(n.ref,rj(a));return"function"==typeof r||n.isPresent?p.cloneElement(a,{ref:i}):null},"Presence");function rb(e){let[t,r]=p.useState(),n=p.useRef(null),a=p.useRef(e),i=p.useRef("none"),o=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?(i.current=o.current??rS(n.current),o.current=void 0):i.current="none"},[s]),eu(()=>{let t=n.current,r=a.current;if(r!==e){let n=i.current,s=rS(t);e?(o.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,o=ry(i=>{let o=rS(n.current).includes(CSS.escape(i.animationName));if(i.target===t&&o&&(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&&(i.current=rS(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",o),t.addEventListener("animationend",o),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",o),t.removeEventListener("animationend",o)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:p.useCallback(e=>{if(e){let t=getComputedStyle(e);n.current=t,o.current=rS(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 rS(e){return e?.animationName||"none"}function rj(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(rS,"getAnimationName"),ry(rj,"getElementRef");var rO=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),[])}rO(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,i,o]=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&&o.current?.(r)}else i(t)},[s,e,i,o])]}function rN({defaultProp:e,onChange:t}){let[r,n]=p.useState(e),a=p.useRef(r),i=p.useRef(t);return rC(()=>{i.current=t},[t]),p.useEffect(()=>{a.current!==r&&(i.current?.(r),a.current=r)},[r,a]),[r,n,i]}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:i,onChange:o,caller:s}=t,l=void 0!==a,u=rP(o),c=[{...r,state:i}];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),h=d.state,m=p.useRef(h);p.useEffect(()=>{m.current!==h&&(m.current=h,l||u(h))},[h,m,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(),r$="tooltip.open",[rU,rH]=rV("TooltipProvider"),rG=rB(e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:i}=e,o=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)(rU,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:p.useCallback(()=>{n<=0||(window.clearTimeout(l.current),o.current=!1)},[n]),onClose:p.useCallback(()=>{n<=0||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,n))},[n]),isPointerInTransitRef:s,onPointerInTransitChange:p.useCallback(e=>{s.current=e},[]),disableHoverableContent:a,children:i})},"TooltipProvider"),rK="Tooltip",[rq,rY]=rV(rK),rX=rB(e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:a,onOpenChange:i,disableHoverableContent:o,delayDuration:s}=e,l=rH(rK,e.__scopeTooltip),u=rW(t),[c,d]=p.useState(null),[h,m]=p.useState(void 0),y=eq(),v=p.useRef(0),g=o??l.disableHoverableContent,b=s??l.delayDuration,x=p.useRef(!1),[w,S]=rT({prop:n,defaultProp:a??!1,onChange:rB(e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(r$))):l.onClose(),i?.(e)},"onChange"),caller:rK}),j=p.useMemo(()=>w?x.current?"delayed-open":"instant-open":"closed",[w]),O=p.useCallback(()=>{window.clearTimeout(v.current),v.current=0,x.current=!1,S(!0)},[S]),k=p.useCallback(()=>{window.clearTimeout(v.current),v.current=0,S(!1)},[S]),E=p.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{x.current=!0,S(!0),v.current=0},b)},[b,S]);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:h??y,setContentId:m,open:w,stateAttribute:j,trigger:c,onTriggerChange:d,onTriggerEnter:p.useCallback(()=>{l.isOpenDelayedRef.current?E():O()},[l.isOpenDelayedRef,E,O]),onTriggerLeave:p.useCallback(()=>{g?k():(window.clearTimeout(v.current),v.current=0)},[k,g]),onOpen:O,onClose:k,disableHoverableContent:g,children:r})})},"Tooltip"),rZ="TooltipTrigger",rQ=p.forwardRef(rB(function(e,t){let{__scopeTooltip:r,"aria-describedby":n,...a}=e,i=rY(rZ,r),o=rH(rZ,r),s=rW(r),l=j(t,p.useRef(null),i.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":i.open?ni(n,i.contentId):n,"data-state":i.stateAttribute,...a,ref:l,onPointerMove:Q(e.onPointerMove,e=>{"touch"!==e.pointerType&&(c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0))}),onPointerLeave:Q(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:Q(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Q(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:Q(e.onBlur,i.onClose),onClick:Q(e.onClick,i.onClose)})})},"TooltipTrigger")),rJ="TooltipPortal",[r0,r1]=rV(rJ,{forceMount:void 0}),r2=rB(e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:a}=e,i=rY(rJ,t);return(0,f.jsx)(r0,{scope:t,forceMount:r,children:(0,f.jsx)(rg,{present:r||i.open,children:(0,f.jsx)(rh,{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",...i}=e,o=rY(r3,e.__scopeTooltip);return(0,f.jsx)(rg,{present:n||o.open,children:o.disableHoverableContent?(0,f.jsx)(r8,{side:a,...i,ref:t}):(0,f.jsx)(r5,{side:a,...i,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),i=j(t,a),[o,s]=p.useState(null),{trigger:l,onClose:u}=r,c=a.current,{onPointerInTransitChange:d}=n,h=p.useCallback(()=>{s(null),d(!1)},[d]),m=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(()=>()=>h(),[h]),p.useEffect(()=>{if(l&&c){let e=rB(e=>m(e,c),"handleTriggerLeave"),t=rB(e=>m(e,l),"handleContentLeave");return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,m,h]),p.useEffect(()=>{if(o){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,o);n?h():a&&(h(),u())},"handleTrackPointerGrace");return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,o,u,h]),(0,f.jsx)(r8,{...e,ref:i})},"TooltipContentHoverable")),r6=D("TooltipContent"),r8=p.forwardRef(rB(function(e,t){let{__scopeTooltip:r,children:n,"aria-label":a,id:i,onEscapeKeyDown:o,onPointerDownOutside:s,...l}=e,u=rY(r3,r),c=rW(r),{onClose:d}=u,[h,m]=p.useState(null),y=j(t,m);eR(h),p.useEffect(()=>(document.addEventListener(r$,d),()=>document.removeEventListener(r$,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(i),()=>{v(void 0)}),[i,v]),(0,f.jsx)(ev,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,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),i=Math.abs(t.left-e.x);switch(Math.min(r,n,a,i)){case i: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,i=t.length-1;e<t.length;i=e++){let o=t[e],s=t[i],l=o.x,u=o.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 ni(...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 no(){return(no=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,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}function nc(e){var t=e.delayDuration,r=nu(e,["delayDuration"]);return(0,f.jsx)(rG,nl({"data-slot":"tooltip-provider",delayDuration:void 0===t?0:t},r))}function nd(e){ns(e);var t=no({},e);return(0,f.jsx)(rX,nl({"data-slot":"tooltip"},t))}function nf(e){ns(e);var t=no({},e);return(0,f.jsx)(rQ,nl({"data-slot":"tooltip-trigger"},t))}function np(e){var t,r,n=e.className,a=e.sideOffset,i=e.children,o=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)},o),r=r={children:[i,(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 nh(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 nm(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 nh(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 nh(e,t)}}rB(r7,"getExitSideFromRect"),rB(ne,"getPaddedExitPoints"),rB(nt,"getPointsFromRect"),rB(nr,"isPointInPolygon"),rB(nn,"getHull"),rB(na,"getHullPresorted"),rB(ni,"concatAriaDescribedby");var ng=p.forwardRef(function(e,t){var r,n,a,i=nm(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||nv(r)||ny(),o=i[0],s=i.slice(1),l=o.icon,u=o.label,c=o.size,d=o.variant,p=o.tooltipSide,h=o.noTooltip,m=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(o,["icon","label","size","variant","tooltipSide","noTooltip"]),y=(nm(s)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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},m),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!==h&&h?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 nS(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 nj=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"}}),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)||nS(r)||nw(),a=n[0],i=n.slice(1),o=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,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(a,["className","variant","asChild"]),d=(nx(i)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}}(i)||nS(i,1)||nw())[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)(nj({variant:l}),o)},c))}),nk=r(4347),nE=(0,nk.A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function nP(e){var t=e.className,r=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(e,["className"]);return(0,f.jsx)(nE,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 nA=r(3601),nD=(0,nk.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 nC(e){var t,r,n=e.status,a=void 0===n?"active":n,i=e.description,o=e.className,s=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(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",o)},s),r=r={children:["active"===a&&(0,f.jsx)(nP,{"aria-label":void 0,role:"presentation"}),"finished"===a&&(0,f.jsx)(nA.A,{className:"size-4 text-emerald-500","aria-hidden":"true"}),"error"===a&&(0,f.jsx)(nD,{className:"size-4 text-destructive","aria-hidden":"true"}),i?(0,f.jsx)("span",{children:i}):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 nT(e){var t=e.className,r=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(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 nN(e){var t=e.className,r=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(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":"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 nR(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 nM(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}var nI=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 n_(e){var t=e.className,r=e.variant,n=nM(e,["className","variant"]);return(0,f.jsx)("div",nR({"data-slot":"alert",role:"alert",className:(0,g.cn)(nI({variant:r}),t)},n))}function nL(e){var t=e.className,r=nM(e,["className"]);return(0,f.jsx)("div",nR({"data-slot":"alert-title",className:(0,g.cn)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",t)},r))}function nF(e){var t=e.className,r=nM(e,["className"]);return(0,f.jsx)("div",nR({"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 nB=r(822),nV=Object.defineProperty,nz=(e,t)=>nV(e,"name",{value:t,configurable:!0}),nW=0,n$=null;function nU(){p.useEffect(()=>{n$||(n$={start:nH(),end:nH()});let{start:e,end:t}=n$;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),nW++,()=>{1===nW&&(n$?.start.remove(),n$?.end.remove(),n$=null),nW=Math.max(0,nW-1)}},[])}function nH(){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}nz(function(e){return nU(),e.children},"FocusGuards"),nz(nU,"useFocusGuards"),nz(nH,"createFocusGuard");var nG=r(5823),nK="right-scroll-bar-position",nq="width-before-scroll-bar";function nY(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var nX="u">typeof window?p.useLayoutEffect:p.useEffect,nZ=new WeakMap,nQ=(void 0===a&&(a={}),(void 0===i&&(i=function(e){return e}),o=[],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 o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,s);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){s=!0;var t=[];if(o.length){var r=o;o=[],r.forEach(e),t=o}var n=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(n)};a(),o={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,nG.Cl)({async:!0,ssr:!1},a),l),nJ=function(){},n0=p.forwardRef(function(e,t){var r,n,a,i,o=p.useRef(null),s=p.useState({onScrollCapture:nJ,onWheelCapture:nJ,onTouchMoveCapture:nJ}),l=s[0],u=s[1],c=e.forwardProps,d=e.children,f=e.className,h=e.removeScrollBar,m=e.enabled,y=e.shards,v=e.sideCar,g=e.noRelative,b=e.noIsolation,x=e.inert,w=e.allowPinchZoom,S=e.as,j=e.gapMode,O=(0,nG.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(r=[o,t],n=function(e){return r.forEach(function(t){return nY(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,i=a.facade,nX(function(){var e=nZ.get(i);if(e){var t=new Set(e),n=new Set(r),a=i.current;t.forEach(function(e){n.has(e)||nY(e,null)}),n.forEach(function(e){t.has(e)||nY(e,a)})}nZ.set(i,r)},[r]),i),E=(0,nG.Cl)((0,nG.Cl)({},O),l);return p.createElement(p.Fragment,null,m&&p.createElement(v,{sideCar:nQ,removeScrollBar:h,shards:y,noRelative:g,noIsolation:b,inert:x,setCallbacks:u,allowPinchZoom:!!w,lockRef:o,gapMode:j}),c?p.cloneElement(p.Children.only(d),(0,nG.Cl)((0,nG.Cl)({},E),{ref:k})):p.createElement(void 0===S?"div":S,(0,nG.Cl)({},E,{className:f,ref:k}),d))});n0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},n0.classNames={fullWidth:nq,zeroRight:nK};var n1=function(e){var t=e.sideCar,r=(0,nG.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,nG.Cl)({},r))};n1.isSideCarExport=!0;var n2=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,i;(a=t).styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},n3=function(){var e=n2();return function(t,r){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},n4=function(){var e=n3();return function(t){return e(t.styles,t.dynamic),null}},n5={left:0,top:0,right:0,gap:0},n6=function(e){return parseInt(e||"",10)||0},n8=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[n6(r),n6(n),n6(a)]},n9=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return n5;var t=n8(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])}},n7=n4(),ae="data-scroll-locked",at=function(e,t,r,n){var a=e.left,i=e.top,o=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(ae,"] {\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(i,"px;\n padding-right: ").concat(o,"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(nK," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(nq," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(nK," .").concat(nK," {\n right: 0 ").concat(n,";\n }\n \n .").concat(nq," .").concat(nq," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(ae,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},ar=function(){var e=parseInt(document.body.getAttribute(ae)||"0",10);return isFinite(e)?e:0},an=function(){p.useEffect(function(){return document.body.setAttribute(ae,(ar()+1).toString()),function(){var e=ar()-1;e<=0?document.body.removeAttribute(ae):document.body.setAttribute(ae,e.toString())}},[])},aa=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;an();var i=p.useMemo(function(){return n9(a)},[a]);return p.createElement(n7,{styles:at(i,!t,a,r?"":"!important")})},ai=!1;if("u">typeof window)try{var ao=Object.defineProperty({},"passive",{get:function(){return ai=!0,!0}});window.addEventListener("test",ao,ao),window.removeEventListener("test",ao,ao)}catch(e){ai=!1}var as=!!ai&&{passive:!1};function al(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var au=function(e,t){if(!al(e,Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},ac=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&al(n,ShadowRoot)&&(n=n.host),ad(e,n)){var a=af(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ad=function(e,t){return"v"===e?au(t,"overflowY"):au(t,"overflowX")},af=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ap=function(e,t,r,n,a){var i,o=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),s=o*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,p=0;do{if(!l)break;var h=af(e,l),m=h[0],y=h[1]-h[2]-o*m;(m||y)&&ad(e,l)&&(f+=y,p+=m);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},ah=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},am=function(e){return[e.deltaX,e.deltaY]},ay=function(e){return e&&"current"in e?e.current:e},av=0,ag=[];let ab=(u=function(e){var t=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),a=p.useState(av++)[0],i=p.useState(n4)[0],o=p.useRef(e);p.useEffect(function(){o.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,nG.fX)([e.lockRef.current],(e.shards||[]).map(ay),!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!o.current.allowPinchZoom;var a,i=ah(e),s=r.current,l="deltaX"in e?e.deltaX:s[0]-i[0],u="deltaY"in e?e.deltaY:s[1]-i[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 h=ac(d,c);if(!h)return!0;if(h?a=d:(a="v"===d?"h":"v",h=ac(d,c)),!h)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=a),!a)return!0;var m=n.current||a;return ap(m,t,e,"h"===m?l:u,!0)},[]),l=p.useCallback(function(e){if(ag.length&&ag[ag.length-1]===i){var r="deltaY"in e?am(e):ah(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=(o.current.shards||[]).map(ay).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?s(e,a[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=p.useCallback(function(e,r,n,a){var i={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(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),c=p.useCallback(function(e){r.current=ah(e),n.current=void 0},[]),d=p.useCallback(function(t){u(t.type,am(t),t.target,s(t,e.lockRef.current))},[]),f=p.useCallback(function(t){u(t.type,ah(t),t.target,s(t,e.lockRef.current))},[]);p.useEffect(function(){return ag.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,as),document.addEventListener("touchmove",l,as),document.addEventListener("touchstart",c,as),function(){ag=ag.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,as),document.removeEventListener("touchmove",l,as),document.removeEventListener("touchstart",c,as)}},[]);var h=e.removeScrollBar,m=e.inert;return p.createElement(p.Fragment,null,m?p.createElement(i,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,h?p.createElement(aa,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},nQ.useMedium(u),n1);var ax=p.forwardRef(function(e,t){return p.createElement(n0,(0,nG.Cl)({},e,{ref:t,sideCar:ab}))});ax.classNames=n0.classNames;var aw=new WeakMap,aS=new WeakMap,aj={},aO=0,ak=function(e){return e&&(e.host||ak(e.parentNode))},aE=function(e,t,r,n){var a=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=ak(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});aj[r]||(aj[r]=new WeakMap);var i=aj[r],o=[],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=(aw.get(e)||0)+1,u=(i.get(e)||0)+1;aw.set(e,l),i.set(e,u),o.push(e),1===l&&a&&aS.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(),aO++,function(){o.forEach(function(e){var t=aw.get(e)-1,a=i.get(e)-1;aw.set(e,t),i.set(e,a),t||(aS.has(e)||e.removeAttribute(n),aS.delete(e)),a||e.removeAttribute(r)}),--aO||(aw=new WeakMap,aw=new WeakMap,aS=new WeakMap,aj={})}},aP=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"))),aE(n,a,r,"aria-hidden")):function(){return null}},aA=Object.defineProperty,aD=(e,t)=>aA(e,"name",{value:t,configurable:!0}),aC="Dialog",[aT,aN]=en(aC),[aR,aM]=aT(aC),aI=aD(e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:i,modal:o=!0}=e,s=p.useRef(null),l=p.useRef(null),{nodes:u,registry:c}=eN(),[d,h]=rT({prop:n,defaultProp:a??!1,onChange:i,caller:aC}),[m,y]=p.useState(0),[v,g]=p.useState(0);return(0,f.jsx)(aR,{scope:t,triggerRef:s,contentRef:l,contentId:eq(),titleId:eq(),descriptionId:eq(),titlePresent:m>0,descriptionPresent:v>0,setTitleCount:y,setDescriptionCount:g,open:d,onOpenChange:h,onOpenToggle:p.useCallback(()=>h(e=>!e),[h]),modal:o,branchNodes:u,branchRegistry:c,children:r})},"Dialog"),a_="DialogPortal",[aL,aF]=aT(a_,{forceMount:void 0}),aB=aD(e=>{let{__scopeDialog:t,forceMount:r,children:n,container:a}=e,i=aM(a_,t);return(0,f.jsx)(aL,{scope:t,forceMount:r,children:p.Children.map(n,e=>(0,f.jsx)(rg,{present:r||i.open,children:(0,f.jsx)(rh,{asChild:!0,container:a,children:e})}))})},"DialogPortal"),aV="DialogOverlay",az=p.forwardRef(aD(function(e,t){let r=aF(aV,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=aM(aV,e.__scopeDialog);return i.modal?(0,f.jsx)(rg,{present:n||i.open,children:(0,f.jsx)(a$,{...a,ref:t})}):null},"DialogOverlay")),aW=E("DialogOverlay.RemoveScroll"),a$=p.forwardRef(aD(function(e,t){let{__scopeDialog:r,...n}=e,a=aM(aV,r),i=j(t,eg());return(0,f.jsx)(ax,{as:aW,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":aJ(a.open),...n,ref:i,style:{pointerEvents:"auto",...n.style}})})},"DialogOverlayImpl")),aU="DialogContent",aH=p.forwardRef(aD(function(e,t){let r=aF(aU,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=aM(aU,e.__scopeDialog);return(0,f.jsx)(rg,{present:n||i.open,children:i.modal?(0,f.jsx)(aG,{...a,ref:t}):(0,f.jsx)(aK,{...a,ref:t})})},"DialogContent")),aG=p.forwardRef(aD(function(e,t){let r=aM(aU,e.__scopeDialog),n=p.useRef(null),a=j(t,r.contentRef,n);return p.useEffect(()=>{let e=n.current;if(e)return aP(e)},[]),(0,f.jsx)(aq,{...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")),aK=p.forwardRef(aD(function(e,t){let r=aM(aU,e.__scopeDialog),n=p.useRef(!1),a=p.useRef(!1);return(0,f.jsx)(aq,{...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 i=t.target;r.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})},"DialogContentNonModal")),aq=p.forwardRef(aD(function(e,t){let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:i,"aria-describedby":o,children:s,...l}=e,u=aM(aU,r);return nU(),(0,f.jsx)(eT,{registry:u.branchRegistry,children:(0,f.jsx)(eD,{asChild:!0,loop:!0,trapped:n,branches:u.branchNodes,onMountAutoFocus:a,onUnmountAutoFocus:i,children:(0,f.jsx)(ev,{role:"dialog",id:u.contentId,"aria-labelledby":u.titlePresent?u.titleId:void 0,"aria-describedby":u.descriptionPresent?aQ(o,u.descriptionId):o,"data-state":aJ(u.open),...l,ref:t,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1),children:s})})})},"DialogContentImpl")),aY=p.forwardRef(aD(function(e,t){let{__scopeDialog:r,...n}=e,a=aM("DialogTitle",r),{setTitleCount:i}=a;return eu(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,f.jsx)(es.h2,{id:a.titleId,...n,ref:t})},"DialogTitle")),aX=p.forwardRef(aD(function(e,t){let{__scopeDialog:r,...n}=e,a=aM("DialogDescription",r),{setDescriptionCount:i}=a;return eu(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,f.jsx)(es.p,{id:a.descriptionId,...n,ref:t})},"DialogDescription")),aZ=p.forwardRef(aD(function(e,t){let{__scopeDialog:r,...n}=e,a=aM("DialogClose",r);return(0,f.jsx)(es.button,{type:"button",...n,ref:t,onClick:Q(e.onClick,()=>a.onOpenChange(!1))})},"DialogClose"));function aQ(...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 aJ(e){return e?"open":"closed"}function a0(){return(a0=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 a1(e){if(null==e)throw TypeError("Cannot destructure "+e);return e}function a2(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 a3(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 a4(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}function a5(e){a1(e);var t=a0({},e);return(0,f.jsx)(aI,a2({"data-slot":"dialog"},t))}function a6(e){a1(e);var t=a0({},e);return(0,f.jsx)(aB,a2({"data-slot":"dialog-portal"},t))}function a8(e){var t=e.className,r=a4(e,["className"]);return(0,f.jsx)(az,a2({"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 a9(e){var t=e.className,r=e.children,n=e.showCloseButton,a=a4(e,["className","children","showCloseButton"]);return(0,f.jsxs)(a6,{"data-slot":"dialog-portal",children:[(0,f.jsx)(a8,{}),(0,f.jsxs)(aH,a3(a2({"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)(aZ,{"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)(nB.A,{}),(0,f.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]})}function a7(e){var t=e.className,r=a4(e,["className"]);return(0,f.jsx)("div",a2({"data-slot":"dialog-header",className:(0,g.cn)("flex flex-col gap-2 text-center sm:text-left",t)},r))}function ie(e){var t=e.className,r=e.showCloseButton,n=e.children,a=a4(e,["className","showCloseButton","children"]);return(0,f.jsxs)("div",a3(a2({"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)(aZ,{asChild:!0,children:(0,f.jsx)(q,{variant:"outline",children:"Close"})})]}))}function it(e){var t=e.className,r=a4(e,["className"]);return(0,f.jsx)(aY,a2({"data-slot":"dialog-title",className:(0,g.cn)("text-lg leading-none font-semibold",t)},r))}function ir(e){var t=e.className,r=a4(e,["className"]);return(0,f.jsx)(aX,a2({"data-slot":"dialog-description",className:(0,g.cn)("text-sm text-muted-foreground",t)},r))}function ia(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 ii(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}function io(e){var t,r,n=e.title,a=e.label,i=e.onClose,o=e.closeLabel,s=void 0===o?"Close":o,l=e.className,u=e.children,c=ii(e,["title","label","onClose","closeLabel","className","children"]);return(0,f.jsxs)("div",(t=ia({"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,i?(0,f.jsx)("button",{type:"button",onClick:i,"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)(nB.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 is(e){var t=e.className,r=ii(e,["className"]);return(0,f.jsx)("div",ia({"data-slot":"modal-body",className:(0,g.cn)("min-h-0 flex-1 overflow-y-auto px-6 py-4",t)},r))}function il(e){var t=e.className,r=ii(e,["className"]);return(0,f.jsx)("div",ia({"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))}aD(aQ,"concatAriaDescribedby"),aD(aJ,"getState"),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"}});var iu=r(8032),ic=(0,nk.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"}]]),id=(0,nk.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"}]]),ip={info:iu.A,success:nA.A,warning:ic,error:id};function ih(e){var t,r,n=e.kind,a=e.title,i=e.subtitle,o=e.actionLabel,s=e.onAction,l=e.onClose,u=e.closeLabel,c=void 0===u?"Close":u,d=e.statusLabel,h=e.className,m=function(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}(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=!!(o||l),x=ip[y];return(0,f.jsxs)(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}({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",h)},m),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)(nL,{id:v,children:a}):null,i?(0,f.jsx)(nF,{children:i}):null]}),(0,f.jsxs)("div",{className:"col-start-3 flex items-center gap-1",children:[o?(0,f.jsx)(q,{type:"button",variant:"ghost",size:"sm",onClick:s,children:o}):null,l?(0,f.jsx)(q,{type:"button",variant:"ghost",size:"icon-sm",onClick:l,"aria-label":c,title:c,children:(0,f.jsx)(nB.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 im(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 iy(e,t){if(null==e)return{};var r,n,a,i={};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)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[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)&&(i[n]=e[n]);return i}function iv(e){var t=e.className,r=iy(e,["className"]);return(0,f.jsx)("header",im({"data-slot":"app-header",className:(0,g.cn)("relative flex h-12 items-center bg-card text-foreground",t)},r))}function ig(e){var t=e.className,r=iy(e,["className"]);return(0,f.jsx)("span",im({"data-slot":"app-header-name",className:(0,g.cn)("flex h-12 items-center truncate px-4 text-sm font-semibold",t)},r))}function ib(e){var t=e.className,r=iy(e,["className"]);return(0,f.jsx)("div",im({"data-slot":"app-header-bar",className:(0,g.cn)("flex h-full items-center",t)},r))}function ix(e){var t=e.className,r=e.type,n=e["aria-label"],a=e.title,i=iy(e,["className","type","aria-label","title"]);return(0,f.jsx)("button",im({"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)},i))}},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="",i=0;i<arguments.length;i++){var o=arguments[i];o&&(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 i="";for(var o in e)r.call(e,o)&&e[o]&&(i=a(i,o));return i}(o)))}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),i=r(2298),o=r(345),s=r(9405);function l(e){let t,r="object"==typeof e[0]?e.shift():new(0,o.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{#t;constructor(...e){let[t,r,a,i,o]=l(e);this.calendar=t,this.era=r,this.year=a,this.month=i,this.day=o,(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,i.$T)(this)}compare(e){return(0,a.SE)(this,e)}}class c{#t;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,i.ot)(this)}compare(e){return(0,a.Nu)(this,e)}}class d{#t;constructor(...e){let[t,r,a,i,o]=l(e);this.calendar=t,this.era=r,this.year=a,this.month=i,this.day=o,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,i.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{#t;constructor(...e){let[t,r,a,i,o]=l(e),s=e.shift(),u=e.shift();this.calendar=t,this.era=r,this.year=a,this.month=i,this.day=o,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,i.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_:()=>o,f5:()=>l,rG:()=>i});var n=r(5923),a=r(5504);function i(e,t,r,n){let a=(t=s(e,t))-1,i=-2;return r<=2?i=0:o(t)&&(i=-1),1721425+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*r-362)/12+i+n)}function o(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,h]=l(400*r+100*u+4*d+f+ +(4!==u&&4!==f)),m=e-i(p,h,1,1),y=2;e<i(p,h,3,1)?y=0:o(h)&&(y=1);let v=Math.floor(((m+y)*12+373)/367),g=e-i(p,h,v,1)+1;return new(0,n.ng)(p,h,v,g)}toJulianDay(e){return i(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return u[o(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return o(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:()=>h,ay:()=>p,cd:()=>b,gw:()=>m,oU:()=>s,tR:()=>y,uB:()=>g,yP:()=>v});var n=r(5923),a=r(2974),i=r(345),o=r(240);function s(e){return e=v(e,new(0,i.FG)),l((0,i.LA)(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function l(e,t,r,n,a,i,o){let s=new Date;return s.setUTCHours(n,a,i,o),s.setUTCFullYear(e,t-1,r),s.getTime()}function u(e,t){if("UTC"===t)return 0;if(e>0&&t===(0,o.Xj)()&&!(0,o.rS)())return -6e4*new Date(e).getTimezoneOffset();let{year:r,month:n,day:a,hour:i,minute:s,second:u}=d(e,t);return l(r,n,a,i,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,o.Xj)()&&"compatible"===r&&!(0,o.rS)()){c=v(c,new(0,i.FG));let e=new Date,t=(0,i.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),h=u(p-864e5,t),m=u(p+864e5,t),g=(n=c,((a=p-h)==(l=p-m)?[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-h,p-m);case"compatible":case"later":return Math.max(p-h,p-m);case"reject":throw RangeError("No such absolute time found")}}function p(e,t,r="compatible"){return new Date(f(e,t,r))}function h(e,t){let r=u(e,t),a=new Date(e+r),i=a.getUTCFullYear(),o=a.getUTCMonth()+1,s=a.getUTCDate(),l=a.getUTCHours(),c=a.getUTCMinutes(),d=a.getUTCSeconds(),f=a.getUTCMilliseconds();return new(0,n.Ip)(i<1?"BC":"AD",i<1?-i+1:i,o,s,t,r,l,c,d,f)}function m(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,i=0,o=0;if("timeZone"in e)({hour:r,minute:a,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:a,second:i,millisecond:o}=t),new(0,n._l)(e.calendar,e.era,e.year,e.month,e.day,r,a,i,o)}function v(e,t){if((0,o.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):h(f(e,t,r),t)}function b(e){return new Date(s(e)-e.offset)}function x(e,t){return v(h(s(e)-e.offset,t),e.calendar)}function w(e){return x(e,(0,o.Xj)())}},227(e,t,r){"use strict";let n,a;r.d(t,{d:()=>X});var i=r(5923),o=r(345);class s extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),r=(0,o.LA)(t.era,t.year);return new(0,i.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,o.f5)(e.year+-543);return new(0,i.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,i.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 h extends p{fromJulianDay(e){let[t,r,n]=c(1723856,e);return t+=5500,new(0,i.ng)(this,"AA",t,r,n)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class m extends p{fromJulianDay(e){let[t,r,n]=c(1824665,e),a="CE";return t<=0&&(a="BCE",t=1-t),new(0,i.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 S(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 j{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 o=1,s=0;for(;s<a;)s+=S(r,o),o++;let l=a-(s-=S(r,--o));return new(0,i.ng)(this,r,o,l)}toJulianDay(e){let t=x(e.year);for(let r=1;r<e.month;r++)t+=S(e.year,r);return t+e.day+347997}getDaysInMonth(e){return S(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 O extends o.FG{fromJulianDay(e){let t,r,n,a=super.fromJulianDay(e),s=a.year-78,l=e-(0,o.rG)(a.era,a.year,1,1);if(l<80?(s--,l+=(t=(0,o.U_)(a.year-1)?31:30)+155+90+10):(t=(0,o.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,i.ng)(this,s,r,n)}toJulianDay(e){let t,r,n=e.year+78,[a,i]=(0,o.f5)(n);return((0,o.U_)(i)?(t=31,r=(0,o.rG)(a,i,3,21)):(t=30,r=(0,o.rG)(a,i,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,o.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),o=r-k(t,n,a,1)+1;return new(0,i.ng)(e,n,a,o)}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,i.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,i.ng)(e.year+t,e.month,e.day)}class W extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),r=V(t);return new(0,i.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,i]=r,o=n-F[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(a,e.month),e.month===a&&(e.day=Math.min(i,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=$(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=$(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function $(e){if(1===e.year)return I[B.indexOf(e.era)]}let U=[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),o=n-U[a]+1;return new(0,i.ng)(this,r,a+1,o)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=U[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 G(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function K(e){let t=e-1911;return t>0?["minguo",t]:["before_minguo",1-t]}class q extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),[r,n]=K((0,o.LA)(t.era,t.year));return new(0,i.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]=K(G(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,o.f5)(G(e));return new(0,i.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 h;case"coptic":return new m;case"hebrew":return new j;case"indian":return new O;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,o.FG)}}},2974(e,t,r){"use strict";r.d(t,{AU:()=>u,D8:()=>k,E0:()=>S,Rb:()=>h,Re:()=>d,WQ:()=>i,XH:()=>O,YP:()=>g,d_:()=>j,gt:()=>x,hZ:()=>f,ib:()=>p,tY:()=>v,xy:()=>b});var n=r(9405),a=r(345);function i(e,t){let r=e.copy(),n="hour"in r?y(r,t):0;o(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 i=r.calendar.getMonthsInYear(r);return r.month>i&&(r.month=i,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function o(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function s(e){for(;e.month<1;)o(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,o(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 i(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),h(r),r}function h(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 m(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=m(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=m(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=m(e.minute,60),r=Math.floor(e.hour/24),e.hour=m(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(),i=t.indexOf(e.era);if(i<0)throw Error("Invalid era: "+e.era);i=w(i,r,0,t.length-1,n?.round),a.era=t[i],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,i=0,o=23;if(n?.hourCycle===12){let e=t>=12;i=12*!!e,o=e?23:11}a.hour=w(t,r,i,o,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 S(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=i((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 j(e,t){return S(e,c(t))}function O(e,t,r,i){switch(t){case"hour":{let t=0,o=23;if(i?.hourCycle===12){let r=e.hour>=12;t=12*!!r,o=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:o}),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,h=Math.floor(f/36e5),m=f%36e5;return f=36e5*w(h,r,Math.floor(u/36e5),Math.floor(d/36e5),i?.round)+m,(0,n.yP)((0,n.Yd)(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return x(e,t,r,i);case"era":case"year":case"month":case"day":{let a=b((0,n.tR)(e),t,r,i),o=(0,n.Tr)(a,e.timeZone);return(0,n.yP)((0,n.Yd)(o,e.timeZone),e.calendar)}default:throw Error("Unsupported field "+t)}}function k(e,t,r){let a=(0,n.tR)(e),i=p(f(a,t),t);if(0===i.compare(a))return e;let o=(0,n.Tr)(i,e.timeZone,r);return(0,n.yP)((0,n.Yd)(o,e.timeZone),e.calendar)}},240(e,t,r){"use strict";r.d(t,{p9:()=>w,$I:()=>O,RZ:()=>P,tB:()=>f,rS:()=>b,kq:()=>j,Jg:()=>l,Py:()=>A,tF:()=>o,Xj:()=>g,Nu:()=>m,SJ:()=>d,SE:()=>h,ro:()=>i,D:()=>S,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 i(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 o(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)&&i(e,t)}function l(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function u(e,t){return i(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 h(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function m(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 S(e){return x(e.subtract({months:e.month-1}))}function j(e,t,r){let n=d(e,t,r);return e.subtract({days:n})}function O(e,t,r){return j(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:()=>m,ot:()=>f,qk:()=>h});var n=r(5923),a=r(9405),i=r(345);let o=/^([+-]\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(o);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,i.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 h(e){return`${p(e)}T${f(e)}`}function m(e){var t;let r,n,a,i,o;return`${h(e)}${r=0>Math.sign(t=e.offset)?"-":"+",n=Math.floor((t=Math.abs(t))/36e5),a=Math.floor(t%36e5/6e4),i=Math.floor(t%36e5%6e4/1e3),o=`${r}${String(n).padStart(2,"0")}:${String(a).padStart(2,"0")}`,0!==i&&(o+=`:${String(i).padStart(2,"0")}`),o}[${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 i=t.length;for(r=0;r<i;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:()=>o});for(var n=new Uint8Array(16),a=[],i=0;i<256;++i)a.push((i+256).toString(16).slice(1));let o=function(e,t,r){return t||e||!crypto.randomUUID?function(e,t,r){var i,o,s,l=null!=(i=null!=(o=(e=e||{}).random)?o:null==(s=e.rng)?void 0:s.call(e))?i: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),i=r(8048);function o(e,t,r,n,a,i,o){try{var s=e[i](o),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 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 l(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function u(e,t){var r,n,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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,i,o,s,d,p,h;return u(this,function(u){switch(u.label){case 0:return a=(null==n?void 0:n.maxLoadingTime)&&!(n.maxLoadingTime<=0)?n.maxLoadingTime:6e5,i=void 0,[4,Promise.race([f(e,null==n?void 0:n.importMap),new Promise(function(t,r){i=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 m;if(u.sent(),i&&clearTimeout(i),o=c(e),!((void 0===(m=s=window[o])?"undefined":l(m))==="object"&&null!==m&&"init"in m&&"function"==typeof m.init&&"get"in m&&"function"==typeof m.get))throw console.error(d="The global variable ".concat(o," 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(h="Container for ".concat(e," did not return an ESM module as expected")),Error(h);return[2,p]}})})()}function f(e,t){return s(function(){var r,o,s,l,d,f,m;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(!(o=s).imports.hasOwnProperty(e))throw console.error(l="Could not find the package ".concat(e," defined in the current importmap")),Error(l);(d=o.imports[e]).startsWith("./")&&(d=window.spaBase+d.substring(1)),f=e in(0,i.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,i,o=document.head.querySelector('script[src="'.concat(e,'"]')),s=window[h];if(s||(s=window[h]=new Set([])),o)s.has(e)?(i=function(){n&&o.removeEventListener("load",n),a&&o.removeEventListener("error",a)},n=function(){i(),t(null)},a=function(e){i(),r(e.message)},o.addEventListener("load",n),o.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 m=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,i.w_)(),window.location.reload()}}),[2,Promise.reject(m)];case 7:return[2,Promise.resolve()]}})})()}function p(){return s(function(){return u(this,function(e){return[2,(0,i.F$)()]})})()}var h=Symbol("__egen_script_loading")},8048(e,t,r){"use strict";r.d(t,{BX:()=>O,E:()=>S,F$:()=>m,SM:()=>E,fd:()=>w,o5:()=>v,q1:()=>x,tK:()=>y,uT:()=>g,w_:()=>j,xI:()=>b});var n=r(3766);function a(e,t,r,n,a,i,o){try{var s=e[i](o),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,i){var o=e.apply(t,r);function s(e){a(o,n,i,s,l,"next",e)}function l(e){a(o,n,i,s,l,"throw",e)}s(void 0)})}}function o(e,t){var r,n,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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 i(function(){var e,t,r,n,a,i,s;return o(this,function(o){switch(o.label){case 0:e=document.querySelectorAll('script[type="systemjs-importmap"]'),t=[],r=0,o.label=1;case 1:if(!(r<e.length))return[3,9];n=e[r],o.label=2;case 2:if(o.trys.push([2,7,,8]),!n.src)return[3,5];return[4,fetch(n.src)];case 3:return a=o.sent(),i=t.push,[4,a.json()];case 4:return i.apply(t,[o.sent()]),[3,6];case 5:n.textContent&&t.push(JSON.parse(n.textContent)),o.label=6;case 6:return[3,8];case 7:return s=o.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 i,o=e[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;(null==s?void 0:s.imports)&&Object.assign(t.imports,s.imports)}}catch(e){n=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw a}}return t}function h(){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 i=localStorage.getItem(n);i&&(e[a]=i)}}}}catch(e){console.warn("[import-maps] Failed to read import-map overrides from localStorage",e)}return{imports:e}}function m(){return i(function(){var e;return o(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:h()])]}})})()}function y(){return i(function(){return o(this,function(e){return[2,f()]})})()}function v(){return i(function(){return o(this,function(e){switch(e.label){case 0:if(!c)return[2,f()];return[4,f()];case 1:return[2,p([e.sent(),h()])]}})})()}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 h()}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 S(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 j(){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 O(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=h()))}},101(e,t,r){"use strict";r.d(t,{xI:()=>a.xI,E:()=>a.E,eH:()=>j,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:()=>S,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),i=r(2235),o=r(3766);function s(e,t,r,n,a,i,o){try{var s=e[i](o),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 i=e.apply(t,r);function o(e){s(i,n,a,o,l,"next",e)}function l(e){s(i,n,a,o,l,"throw",e)}o(void 0)})}}function u(e,t){var r,n,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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 h(){return l(function(){var e,t,r,n,a,o;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,i.S)(a)&&t.push(a),[3,8];case 7:return o=s.sent(),console.warn("[route-maps] Failed to parse routes from script tag at index ".concat(r),o),[3,8];case 8:return r++,[3,1];case 9:return[2,m(t)]}})})()}function m(e){var t={},r=!0,n=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.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==o.return||o.return()}finally{if(n)throw a}}return t}function y(){return l(function(){var e,t,r,n,a,o,s,d,f,p,h,m;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,i.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,i.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:o=y.sent(),s=!0,d=!1,f=void 0;try{for(p=o[Symbol.iterator]();!(s=(h=p.next()).done);s=!0)m=h.value,"fulfilled"===m.status?e[m.value.moduleName]=m.value.routes:console.warn("[route-maps] Failed to load route override",m.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,h()];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,m([e,t])]}})})()}function g(){return l(function(){return u(this,function(e){return[2,h()]})})()}function b(){return l(function(){var e;return u(this,function(t){switch(t.label){case 0:if(!f)return[2,h()];return[4,h()];case 1:return e=[t.sent()],[4,y()];case 2:return[2,m.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,i.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,i.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 S(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 j(){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 O=null;function k(){return O||(O=(f="development"===window.spaEnv&&!(0,o.$)())?y().then(function(e){p=e}):Promise.resolve())}},8507(e,t,r){"use strict";r.d(t,{J:()=>i,N:()=>a});var n=r(9726);function a(e){var t=o(e);setTimeout(function(){throw t})}function i(){var e=Error();return function(t){var r=o(t);r.stack+="\nAsync stacktrace:\n".concat(e.stack),a(t)}}function o(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),i=r(4693);function o(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({},i.f),isLocalExpression:!1,variables:new Set};return u("string"==typeof e?(0,a.A)(e):e,r),function(e){if(Array.isArray(e))return o(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 o(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 o(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,i=t,[u(a.left,i),u(a.right,i)].filter(Boolean);case"ConditionalExpression":return o=e,l=t,[u(o.consequent,l),u(o.test,l),u(o.alternate,l)].filter(Boolean);case"CallExpression":return d=e,f=t,h=u(d.callee,f),null==(p=d.arguments)||p.map(c(f)),h;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 i=!0,o=!1,l=void 0;try{for(var d,f,p,h,m=a[Symbol.iterator]();!(i=(h=m.next()).done);i=!0){var y=h.value;n.includes(y)||t.variables.add(y)}}catch(e){o=!0,l=e}finally{try{i||null==m.return||m.return()}finally{if(o)throw l}}}}(e,t);case"MemberExpression":return m=e,y=t,u(m.object,y),void((v=s({},y)).isLocalExpression=!0,u(m.property,v));case"ArrayExpression":return g=e,b=t,void(null==(x=g.elements)||x.map(c(b)));case"SequenceExpression":return w=e,S=t,void(null==(j=w.expressions)||j.map(c(S)));case"NewExpression":return O=e,k=t,void(null==(E=O.arguments)||E.map(c(k)));case"Literal":case"TemplateElement":return;case"Identifier":var r,n,a,i,o,l,d,f,p,h,m,y,v,g,b,x,w,S,j,O,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,ActionMenu:()=>b.WyE,ActionMenuButton:()=>b.EDM,ActionMenuButton2:()=>b.Wjo,ActionableNotificationComponent:()=>b.drd,ActivityIcon:()=>b.npY,AddIcon:()=>b.REV,AnimatedHomeBackground:()=>b.BpM,ArrowDownIcon:()=>b.ZLN,ArrowLeftIcon:()=>b.A60,ArrowRightIcon:()=>b.flY,ArrowUpIcon:()=>b.Kpk,AssistantRobotScene:()=>b.JvV,AsyncSelect:()=>b.DWK,AttachmentIcon:()=>b.PtA,Autocomplete:()=>b.jT8,Breakpoint:()=>b.EA,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,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,DocumentAttachmentIcon:()=>b.Ce6,DocumentIcon:()=>b.pyG,DocumentToolbar:()=>b.PAB,DownloadIcon:()=>b.s3U,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,ImageSwiper:()=>b.QeH,InformationFilledIcon:()=>b._e_,InformationIcon:()=>b.uQc,InformationSquareIcon:()=>b.ZrL,InteractiveSelector:()=>b.wmT,InventoryManagementIcon:()=>b.vFG,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,MenuToggleButton:()=>b.qLc,MessageQueueIcon:()=>b.uFu,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,OverflowMenuHorizontalIcon:()=>b.rv3,OverflowMenuVerticalIcon:()=>b.Rnm,PageBackground:()=>b.Kz$,PageBackgroundProvider:()=>b.z0Y,PageHeader:()=>b.zYs,PageHeaderContent:()=>b.gpz,Pagination:()=>b.dKS,PasswordIcon:()=>b.BGy,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,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,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,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,Slider:()=>b.Apm,SliderContainer:()=>b.Jbi,SliderDotButton:()=>b.vY7,Snackbar:()=>b.qb_,SplineScene:()=>b.C44,Splitter:()=>b.O3W,StaggeredMenuPanel:()=>b._kB,StickyNoteAddIcon:()=>b.OC$,StockManagementPictogram:()=>b.q__,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,TableBatchActions:()=>b.GGC,TableIcon:()=>b.KbA,TableOfContentsIcon:()=>b.pYV,TestimonialCard:()=>b._f_,TestimonialCardStack:()=>b.uDL,ThumbsSlider:()=>b.BM2,TimeIcon:()=>b.b1c,Toast:()=>b.y8,ToolWindowHeader:()=>b.ICb,ToolWindowZone:()=>b.p4K,ToolsIcon:()=>b.dwU,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:()=>h.nr,addImportMapOverride:()=>o.fd,addRouteMapOverride:()=>o.Tx,attach:()=>c.K0,attachmentUrl:()=>s.Zu,beginEditSynchronizationItem:()=>h.FO,buildFilterFields:()=>b.mOW,canAccessStorage:()=>w._g,canBeginEditSynchronizationItemsOfType:()=>h.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:()=>h.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:()=>h.T$,egenOfflineResponseBodyHttpHeaderName:()=>h.Q1,egenOfflineResponseStatusHttpHeaderName:()=>h.Gt,enableImportMapOverride:()=>o.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:()=>h.sA,getActiveModuleNames:()=>b.pJo,getAssignedExtensions:()=>c.zx,getAttachmentByUuid:()=>s.KU,getAttachments:()=>s.Bv,getBreadcrumbs:()=>p.lz,getBreadcrumbsFor:()=>p.qh,getCoreTranslation:()=>x.V,getCurrentImportMap:()=>o.Ln,getCurrentOfflineMode:()=>h.wJ,getCurrentPageMap:()=>o.F$,getCurrentRouteMap:()=>o.FM,getDefaultCalendar:()=>w.a7,getDefaultsFromConfigSchema:()=>w.kd,getDynamicOfflineDataEntries:()=>h.FE,getDynamicOfflineDataEntriesFor:()=>h.WA,getDynamicOfflineDataHandlers:()=>h.qb,getEgenServiceWorker:()=>h.b1,getEgenTarget:()=>f.tM,getExtensionInternalStore:()=>c.a9,getExtensionNameFromId:()=>c.ES,getExtensionRegistration:()=>c.Tj,getExtensionRegistrationFrom:()=>c.xg,getExtensionStore:()=>c.zF,getFeatureFlag:()=>d.jj,getFullSynchronizationItems:()=>h.C$,getFullSynchronizationItemsFor:()=>h.xc,getGroupByWindowName:()=>c.o1,getHistory:()=>p.JK,getImportMapDefaultMap:()=>o.tK,getImportMapDisabledOverrides:()=>o.xI,getImportMapNextPageMap:()=>o.o5,getImportMapOverrideMap:()=>o.uT,getLocale:()=>w.JK,getLocations:()=>s.Vs,getModalRegistration:()=>c.Fg,getNavBehavior:()=>c.Yw,getOfflineDb:()=>h.e,getOfflineEntityDataStore:()=>h.sm,getOfflineSynchronizationStore:()=>h.LM,getOpenCompartments:()=>b.u7L,getOpenedWindowIndexByWorkspace:()=>c.YX,getPromptBeforeClosingFcn:()=>b.OeE,getRegisteredWorkspace2Names:()=>b.uBm,getRouteMapDefaultMap:()=>o.zU,getRouteMapNextPageMap:()=>o.Y6,getRouteMapOverrideMap:()=>o.WY,getSavedAssistantMode:()=>b.T7$,getStaggeredMenuEntryProblems:()=>c.uu,getStartedWorkSession:()=>s.rm,getSynchronizationItem:()=>h.Gp,getSynchronizationItems:()=>h.pb,getSynchronizationItemsFor:()=>h.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:()=>o.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:()=>o.q1,isNativeTarget:()=>f.$6,isNavEntryInWorkspace:()=>c.oE,isNavEntryMeta:()=>c.DK,isOfflineUuid:()=>h.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:()=>h.Oc,navBehaviorStore:()=>c.rf,navigate:()=>p.oo,navigateAndLaunchWorkspace:()=>b.Fmw,offlineUuidPrefix:()=>h.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:()=>o.zC,preloadSplineScene:()=>b.Pfj,promptBeforeClosing:()=>b.F3N,promptForClosingWorkspaces:()=>b.hLN,putDynamicOfflineData:()=>h.yD,putDynamicOfflineDataFor:()=>h.ff,queueSynchronizationItem:()=>h.Zr,queueSynchronizationItemFor:()=>h.Iq,registerApp:()=>v.FZ,registerBreadcrumb:()=>p.vf,registerBreadcrumbs:()=>p.MY,registerDefaultCalendar:()=>w.XE,registerEgenServiceWorker:()=>h.QP,registerExtension:()=>c.VK,registerExtensionSlot:()=>c.FY,registerFeatureFlag:()=>d.uA,registerModal:()=>c.Ju,registerNavBehavior:()=>c.ZJ,registerOfflineEntityHandler:()=>h.Wo,registerStaggeredMenuEntry:()=>c.BR,registerToolWindow:()=>c.QS,registerWorkspace:()=>c.pm,registerWorkspaceGroup:()=>c.io,registerWorkspaceGroups2:()=>c.rD,registerWorkspaceWindows2:()=>c.Qb,registerWorkspaces2:()=>c.Uh,removeDynamicOfflineData:()=>h.NU,removeDynamicOfflineDataFor:()=>h.wn,removeImportMapOverride:()=>o.E,removeRouteMapOverride:()=>o.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:()=>o.w_,resetRouteMapOverrides:()=>o.eH,resetWorkspaceStore:()=>b._1W,resetZoneSize:()=>b.zkr,resizeCompartmentBoundary:()=>b.No8,resolveStaggeredMenuEntries:()=>c.wR,resolveWorkbenchIcon:()=>b.zLd,retry:()=>w.L5,runSynchronization:()=>h.AO,saveAssistantMode:()=>b.Pe5,saveWorkSession:()=>s.XM,setCapabilityResolver:()=>f.Zv,setCompartmentHeights:()=>b.lbO,setCurrentOfflineMode:()=>h.Og,setCurrentWorkSession:()=>s.R5,setFeatureFlag:()=>d.B4,setToolWindowBadge:()=>b.a8E,setZoneSize:()=>b.uge,setupDynamicOfflineDataHandler:()=>h.iD,setupHistory:()=>p.Wh,setupImportMapOverrides:()=>o.SM,setupModals:()=>b.EPe,setupOfflineSync:()=>h.cy,setupPageTransitions:()=>b.d1P,setupRouteMapOverrides:()=>o._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:()=>o.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:()=>h.Td,syncDynamicOfflineData:()=>h.u1,syncOfflineEntityData:()=>h.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 i=r(3645),a={};for(let e in i)"default"!==e&&(a[e]=()=>i[e]);r.d(t,a);var o=r(101),s=r(3400),l=r(8507),u=r(9360),c=r(7267),d=r(5794),f=r(8840),p=r(7774),h=r(6563),m=r(4592),a={};for(let e in m)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]=()=>m[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(597),x=r(5565),w=r(4834)},1221(e,t,r){"use strict";r.d(t,{Z:()=>a,p:()=>i});var n=null;function a(e){n=e}function i(e){return!!n&&n(e)}},8840(e,t,r){"use strict";r.d(t,{Vt:()=>n.Vt,tM:()=>i.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:()=>o.Z,bJ:()=>n.bJ,p0:()=>o.p,Yt:()=>n.Yt,$6:()=>i.$});var n=r(9726),a=r(2235),i=r(3766),o=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,i=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 o=[];if(Array.isArray(i)){var c=new Set;i.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,i=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 i&&s.test(i)||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 i&&"string"==typeof d&&o.push({name:a,version:i,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:o}}}},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 i(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 o(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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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&&i(a)})}r.d(t,{S:()=>o,j:()=>i})},6563(e,t,r){"use strict";let n;r.d(t,{nr:()=>C,xN:()=>np,u1:()=>nI,FO:()=>nh,Q1:()=>g,FE:()=>nA,sA:()=>nb,LM:()=>nn,ff:()=>nT,wn:()=>nR,Oj:()=>nz,lY:()=>nm,Zr:()=>ns,cy:()=>ny,WA:()=>nD,T$:()=>x,Gp:()=>nf,jU:()=>ng,Og:()=>D,iD:()=>nP,C$:()=>nd,qb:()=>nE,Iq:()=>no,NU:()=>nN,yD:()=>nC,Wo:()=>nV,sm:()=>nB,Io:()=>nl,wJ:()=>A,Oc:()=>S,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 i(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 o(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 h=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,i=r===n.vn,o={sw:r,isExternal:i,originalEvent:e};!i&&n.mn&&(o.isUpdate=!0),n.dispatchEvent(new u(a,o)),"installed"===a?n.wn=self.setTimeout(function(){"installed"===a&&t.waiting===r&&n.dispatchEvent(new u("waiting",o))},200):"activating"===a&&(clearTimeout(n.wn),i||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,o=t.prototype;return o.register=function(e){var t=(void 0===e?{}:e).immediate,r=void 0!==t&&t;try{var n,a,i,o=this;return n=function(){if(!r&&"complete"!==document.readyState)return p(new Promise(function(e){return window.addEventListener("load",e)}))},a=function(){return o.mn=!!navigator.serviceWorker.controller,o.yn=o.pn(),c(o.bn(),function(e){o.fn=e,o.yn&&(o.hn=o.yn,o.en.resolve(o.yn),o.on.resolve(o.yn),o.yn.addEventListener("statechange",o.ln,{once:!0}));var t=o.fn.waiting;return t&&l(t.scriptURL,o.sn.toString())&&(o.hn=t,Promise.resolve().then(function(){o.dispatchEvent(new u("waiting",{sw:t,wasWaitingBeforeRegister:!0}))}).then(function(){})),o.hn&&(o.rn.resolve(o.hn),o.an.add(o.hn)),o.fn.addEventListener("updatefound",o.cn),navigator.serviceWorker.addEventListener("controllerchange",o.dn),o.fn})},(i=n())&&i.then?i.then(a):a(i)}catch(e){return Promise.reject(e)}},o.update=function(){try{return this.fn?p(this.fn.update()):void 0}catch(e){return Promise.reject(e)}},o.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},o.messageSW=function(e){try{return c(this.getSW(),function(t){return a(t,e)})}catch(e){return Promise.reject(e)}},o.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&a(this.fn.waiting,f)},o.pn=function(){var e=navigator.serviceWorker.controller;return e&&l(e.scriptURL,this.sn.toString())?e:void 0},o.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}}],i(t.prototype,r),n&&i(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 o(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)?o(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}()),m=void 0;function y(e,t){if(void 0!==m)return console.warn("The application's Service Worker has already been registered. The new service worker at ".concat(e," will not be registered.")),m;if(!("serviceWorker"in navigator))throw Error("Registering the Service Worker is not possible due to missing browser capabilities.");var r=new h(e,t);return m=r.register().then(function(){return r.controlling.then(function(){return r})})}function v(){return null!=m?m: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,i,o){try{var s=e[i](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function S(e){var t;return(t=function(){var t,r;return function(e,t){var r,n,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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 i=t.apply(e,r);function o(e){w(i,n,a,o,s,"next",e)}function s(e){w(i,n,a,o,s,"throw",e)}o(void 0)})})()}function j(e,t,r,n,a,i,o){try{var s=e[i](o),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,a){var i=e.apply(t,r);function o(e){j(i,n,a,o,s,"next",e)}function s(e){j(i,n,a,o,s,"throw",e)}o(void 0)})}}function k(e,t){var r,n,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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 O(function(){return k(this,function(e){switch(e.label){case 0:return[4,O(function(){var e,t;return k(this,function(r){switch(r.label){case 0:return[4,O(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,O(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,O(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 $=Object.getOwnPropertyDescriptor;function U(e,t){let r;return $(e,t)||(r=I(e))&&U(r,t)}let H=[].slice;function G(e,t,r){return H.call(e,t,r)}function K(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 i=Z(e,t[n]);r.push(i)}return r}var o=t.indexOf(".");if(-1!==o){var s=e[t.substr(0,o)];return null==s?void 0:Z(s,t.substr(o+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 i=t.indexOf(".");if(-1!==i){var o=t.substr(0,i),s=t.substr(i+1);if(""===s)void 0===r?R(e)&&!isNaN(parseInt(o))?e.splice(o,1):delete e[o]:e[o]=r;else{var l=e[o];l&&F(e,o)||(l=e[o]={}),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 ei(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 i in r=n===Object.prototype?{}:Object.create(n),ea&&ea.set(t,r),t)F(t,i)&&(r[i]=e(t[i]))}return r}(e);return ea=null,t}let{toString:eo}={};function es(e){return eo.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),eh=()=>!0;let em=!Error("").stack;function ey(){if(em)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(eh).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 eS(e,t){return e+". Errors: "+Object.keys(t).map(e=>t[e].toString()).filter((e,t,r)=>r.indexOf(e)===t).join("\n")}function ej(e,t,r,n){this._e=ey(),this.failures=t,this.failedKeys=n,this.successCount=r,this.message=eS(e,t)}function eO(e,t){this._e=ey(),this.name="BulkError",this.failures=Object.keys(t).map(e=>t[e]),this.failuresByPos=t,this.message=eS(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(ej).from(ew),W(eO).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 i=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!==i?i: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,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return a&&(this.onsuccess=this.onsuccess?eN(a,this.onsuccess):a),i&&(this.onerror=this.onerror?eN(i,this.onerror):i),void 0===n?void 0===o?void 0:o:M(n,o)}}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,i=Array(a);a--;)i[a]=arguments[a];return r.then(function(){return t.apply(n,i)})}return t.apply(this,arguments)}}eA.ModifyError=ej,eA.DexieError=ew,eA.BulkError=eO;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,e$=eB&&eB.constructor,eU=!!ez;var eH=!1,eG=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)},eK=function(e,t){e2.push([e,t]),eY&&(eG(),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&&ti()}},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 i=a&&!tv();var o=new e5((t,o)=>{te(this,new e8(tO(r,e,a,i),tO(n,e,a,i),t,o,e))});return ep&&tr(o,this),o}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=U(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&&ti()}}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,eK(()=>{0==--e3&&to()},[]))}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,eK(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&&to(),--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()&&ti()}function ta(){var e=eq;return eq=!1,eY=!1,e}function ti(){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 to(){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&&ti()}}}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 i,o,s=t._value;null!=s?(i=s.name||"Error",o=s.message||s,a=ev(s,0)):(i=s,o=""),r.push(i+(o?": "+o:"")+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=tS(),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,i)=>e5.resolve(a).then(r=>{e[i]=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:tm,usePSD:tj,scheduler:{get:()=>eK,set:e=>{eK=e}},rejectionMapper:{get:()=>eJ,set:e=>{eJ=e}},follow:(e,t)=>new e5((r,n)=>tm((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,eK(()=>{0==--e3&&to()},[])},n.finalize),e()},t,r,n))}),e$&&(e$.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)))})}),e$.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,i)=>e5.resolve(e).then(e=>t(e),e=>{a[i]=e,--n||r(AggregateError(a))}))})}));let tu={awaits:0,echoes:0,id:0};var tc=0,td=[],tf=0,tp=0,th=0;function tm(e,t,r,n){var a=e1,i=Object.create(a);i.parent=a,i.ref=0,i.global=!1,i.id=++th;var o=e0.env;i.env=eU?{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(o.nthen,i),gthen:tk(o.gthen,i)}:{},t&&M(i,t),++a.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=tj(i,e,r,n);return 0===i.ref&&i.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===e$?(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=tS()),eU)){var a=e0.env.Promise,i=e.env;eV.then=i.nthen,a.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty(T,"Promise",i.PromiseProp),a.all=i.all,a.race=i.race,a.resolve=i.resolve,a.reject=i.reject,i.allSettled&&(a.allSettled=i.allSettled),i.any&&(a.any=i.any))}}function tS(){var e=T.Promise;return eU?{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 tj(e,t,r,n,a){var i=e1;try{return tw(e,!0),t(r,n,a)}finally{tw(i,!1)}}function tO(e,t,r,n){return"function"!=typeof e?e:function(){var a,i=e1;r&&ty(),tw(t,!0);try{return e.apply(this,arguments)}finally{tw(i,!1),n&&(a=tv,eW.call(eB,a))}}}function tk(e,t){return function(r,n){return e.call(this,tO(r,t),tO(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=ei(t))[e],t)}class t${_trans(e,t,r){let n=this._tx||e1.trans,a=this.name;function i(e,r,n){if(!n.schema[a])throw new eE.NotFound("Table "+a+" not part of transaction");return t(n.idbtrans,n)}let o=ta();try{return n&&n.db===this.db?n===e1.trans?n._promise(e,i,r):tm(()=>n._promise(e,i,r),{trans:n,transless:e1.transless||e1}):function e(t,r,n,a){if(t.idbdb&&(t._state.openComplete||e1.letThrough||t._vip)){var i=t._createTransaction(r,n,t._dbSchema);try{i.create(),t._state.PR1398_maxLoop=3}catch(i){return i.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(i)}return i._promise(r,(e,t)=>tm(()=>(e1.trans=i,a(e,t,i)))).then(e=>i._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],i)}finally{o&&ti()}}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 i(e,t){try{return 0===a.cmp(e,t)}catch(e){return!1}}let[o,s]=t.reduce(([t,r],a)=>{let o=n[a],s=e[a];return[t||o,t||!o?tV(r,o&&o.multi?e=>{let t=Z(e,a);return R(t)&&t.some(e=>i(s,e))}:e=>i(s,Z(e,a))):r]},[null,null]);return o?this.where(o.name).equals(e[o.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:i}=this.schema.primKey;if(i&&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 o=e.length,s=i&&r?e.map(tW(i)):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 eO(`${this.name}.bulkAdd(): ${e} of ${o} 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:i}=this.schema.primKey;if(i&&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 o=e.length,s=i&&r?e.map(tW(i)):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 eO(`${this.name}.bulkPut(): ${e} of ${o} 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 eO(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,n)})}}function tU(e){var t={},r=function(r,n){if(n){for(var a=arguments.length,i=Array(a-1);--a;)i[a-1]=arguments[a];return t[r].subscribe.apply(null,i),e}if("string"==typeof r)return t[r]};r.addEventType=i;for(var n=1,a=arguments.length;n<a;++n)i(arguments[n]);return r;function i(e,n,a){if("object"!=typeof e){n||(n=e_),a||(a=eD);var o={subscribers:[],fire:a,subscribe:function(e){-1===o.subscribers.indexOf(e)&&(o.subscribers.push(e),o.fire=n(o.fire,e))},unsubscribe:function(e){o.subscribers=o.subscribers.filter(function(t){return t!==e}),o.fire=o.subscribers.reduce(n,a)}};return t[e]=r[e]=o,o}N(e).forEach(function(t){var r=e[t];if(R(r))i(t,e[t][0],e[t][1]);else{if("asap"!==r)throw new eE.InvalidArgument("Invalid event config");var n=i(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 tG(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function tK(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 i={},o=(e,r,n)=>{if(!a||a(r,n,e=>r.stop(e),e=>r.fail(e))){var o=r.primaryKey,s=""+o;"[object ArrayBuffer]"===s&&(s=""+new Uint8Array(o)),F(i,s)||(i[s]=!0,t(e,r,n))}};return Promise.all([e.or._iterate(o,r),tQ(tX(e,n,r),e.algorithm,o,!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(tG(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 i(e,t){return t?i(e[r[t]],t-1):e[n]}var o="next"===this._ctx.dir?1:-1;function s(e,t){var r=i(e,a),n=i(t,a);return r<n?-o:r>n?o: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&&tG(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,tG(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 tK(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 tK(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&&tG(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 tK(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),i=a.length;n=function(t){for(var r=!1,n=0;n<i;++n){var o=a[n],s=e[o];Z(t,o)!==s&&(Q(t,o,s),r=!0)}return r}}let o=t.table.core,{outbound:s,extractKey:l}=o.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 i=c=>{let d=Math.min(u,a.length-c);return o.getMany({trans:r,keys:a.slice(c,c+d),cache:"immutable"}).then(f=>{let h=[],m=[],y=s?[]:null,v=[];for(let e=0;e<d;++e){let t=f[e],r={value:ei(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))?(m.push(r.value),s&&y.push(a[c+e])):(v.push(a[c+e]),h.push(r.value)))}let g=tG(t)&&t.limit===1/0&&("function"!=typeof e||e===t3)&&{index:t.index,range:t.range};return Promise.resolve(h.length>0&&o.mutate({trans:r,type:"add",values:h}).then(e=>{for(let t in e.failures)v.splice(parseInt(t),1);p(h.length,e)})).then(()=>(m.length>0||g&&"object"==typeof e)&&o.mutate({trans:r,type:"put",keys:y,values:m,criteria:g,changeSpec:"function"!=typeof e&&e}).then(e=>p(m.length,e))).then(()=>(v.length>0||g&&e===t3)&&o.mutate({trans:r,type:"delete",keys:v,criteria:g}).then(e=>p(v.length,e))).then(()=>a.length>c+d&&i(c+u))})};return i(0).then(()=>{if(c.length>0)throw new ej("Error modifying one or more objects",c,d,f);return a.length})})})}delete(){var e=this._ctx,t=e.range;return tG(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 ej("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,i,o,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(),i="next"===e?e=>e.toLowerCase():e=>e.toUpperCase(),o="next"===e?t4:t5;var t=r.map(function(e){return{lower:i(e),upper:a(e)}}).sort(function(e,t){return o(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 h=0;return p._addAlgorithm(function(e,r,n){var a=e.key;if("string"!=typeof a)return!1;var f=i(a);if(t(f,l,h))return!0;for(var p=null,m=h;m<d;++m){var y=function(e,t,r,n,a,i){for(var o=Math.min(e.length,n.length),s=-1,l=0;l<o;++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 o<n.length&&"next"===i?e+r.substr(e.length):o<e.length&&"prev"===i?e.substr(0,r.length):s<0?null:e.substr(0,s)+n[s]+r.substr(s+1)}(a,f,s[m],l[m],o,u);null===y&&null===p?h=m+1:(null===p||o(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,i)=>{let o=r.key;for(;t(o,e[n])>0;)if(++n===e.length)return a(i),!1;return 0===t(o,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,i=this._min,o=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]=i(a[0],t[0]),a[1]=o(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,h=s?e=>a(e,u[f][0])>0:e=>a(e,u[f][0])>=0,m=p,y=new this.Collection(this,()=>t7(u[0][0],u[u.length-1][1],!s,!l));return y._ondirectionchange=e=>{"next"===e?(m=p,c=n):(m=h,c=a),u.sort(d)},y._addAlgorithm((e,t,r)=>{for(var a=e.key;m(a);)if(++f===u.length)return t(r),!1;return!!(!p(a)&&!h(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",ri="x-storagemutated-1",ro=tU(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{tj(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&&ro.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 tm(()=>{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,i,o){return{name:e,keyPath:t,unique:r,multi:n,auto:a,compound:i,src:(r&&!o?"&":"")+(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 rh=0;function rm(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 i;return{dbcore:(i=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:i}=e;return void 0===r?void 0===n?null:t.upperBound(n,!!i):void 0===n?t.lowerBound(r,!!a):t.bound(r,n,!!a,!!i)}let{schema:i,hasGetAll:o}=(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,i={},o={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,o={name:t,compound:R(a),keyPath:a,unique:r,multiEntry:n,extractKey:rf(a)};return i[rm(a)]=o,o}),getIndexByKeyPath:e=>i[rm(e)]};return i[":id"]=o.primaryKey,null!=t&&(i[rm(t)]=o.primaryKey),o})},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=i.tables.map(e=>{let t;return{name:t=e.name,schema:e,mutate:function({trans:e,type:r,keys:n,values:i,range:o}){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||i||{length:1};if(n&&i&&n.length!==i.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 h=[],m=[],y=0,v=e=>{++y,rn(e)};if("deleteRange"===r){if(4===o.type)return s({numFailures:y,failures:m,results:[],lastResult:void 0});3===o.type?h.push(u=c.clear()):h.push(u=c.delete(a(o)))}else{let[e,t]=f?d?[i,n]:[i,null]:[n,null];if(f)for(let n=0;n<p;++n)h.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)h.push(u=c[r](e[t])),u.onerror=v}let g=e=>{let t=e.target.result;h.forEach((e,t)=>null!=e.error&&(m[t]=e.error)),s({numFailures:y,failures:m,results:"delete"===r?n:h.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 i=e.objectStore(t),o=r.length,s=Array(o),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<o;++e)null!=r[e]&&((l=i.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 i=e.objectStore(t).get(r);i.onsuccess=e=>n(e.target.result),i.onerror=rr(a)}),query:e=>new Promise((r,n)=>{r=tl(r);let{trans:i,values:s,limit:l,query:u}=e,c=l===1/0?void 0:l,{index:d,range:f}=u,p=i.objectStore(t),h=d.isPrimaryKey?p:p.index(d.name),m=a(f);if(0===l)return r({result:[]});if(o){let e=s?h.getAll(m,c):h.getAllKeys(m,c);e.onsuccess=e=>r({result:e.target.result}),e.onerror=rr(n)}else{let e=0,t=!s&&"openKeyCursor"in h?h.openKeyCursor(m):h.openCursor(m),a=[];t.onsuccess=n=>{let i=t.result;return i?(a.push(s?i.value:i.primaryKey),++e===l?r({result:a}):void i.continue()):r({result:a})},t.onerror=rr(n)}}),openCursor:function({trans:e,values:r,query:n,reverse:i,unique:o}){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=i?o?"prevunique":"prev":o?"nextunique":"next",h=!r&&"openKeyCursor"in f?f.openKeyCursor(a(c),p):f.openCursor(a(c),p);h.onerror=rr(l),h.onsuccess=tl(t=>{let r=h.result;if(!r)return void s(null);r.___id=++rh,r.done=!1;let n=r.continue.bind(r),a=r.continuePrimaryKey;a&&(a=a.bind(r));let i=r.advance.bind(r),o=()=>{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),h.onerror=rr(t),r.fail=t,r.stop=t=>{r.stop=r.continue=r.continuePrimaryKey=r.advance=o,e(t)}}),s=()=>{if(h.result)try{e()}catch(e){r.fail(e)}else r.done=!0,r.start=()=>{throw Error("Cursor behind last entry")},r.stop()};return h.onsuccess=tl(e=>{h.onsuccess=s,s()}),r.continue=n,r.continuePrimaryKey=a,r.advance=i,s(),t},s(r)},l)})},count({query:e,trans:r}){let{index:n,range:i}=e;return new Promise((e,o)=>{let s=r.objectStore(t),l=n.isPrimaryKey?s:s.index(n.name),u=a(i),c=u?l.count(u):l.count();c.onsuccess=tl(t=>e(t.target.result)),c.onerror=rr(o)})}}}),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:i}}(t,r,a),e.dbcore.reduce((e,{create:t})=>({...e,...t(e)}),i))}}(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=U(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],i=t[r];if(a){let e={name:r,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(a.primKey.keyPath||"")==""+(i.primKey.keyPath||"")&&(a.primKey.auto===i.primKey.auto||tI)){let t,r=a.idxByName,o=i.idxByName;for(t in r)o[t]||e.del.push(t);for(t in o){let n=r[t],a=o[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,i])}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=>rS(a,e)),a}function rS(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function rj(e,t,r){let n={};return G(t.objectStoreNames,0).forEach(e=>{let t=r.objectStore(e),a=t.keyPath,i=rl(ru(a),a||"",!1,!1,!!t.autoIncrement,a&&"string"!=typeof a,!0),o=[];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);o.push(s)}n[e]=rc(e,i,o)}),n}function rO({_novip:e},t,r){let n=r.db.objectStoreNames;for(let a=0;a<n.length;++a){let i=n[a],o=r.objectStore(i);e._hasGetAll="getAll"in o;for(let e=0;e<o.indexNames.length;++e){let r=o.indexNames[e],n=o.index(r).keyPath,a="string"==typeof n?n:"["+G(n).join("+")+"]";if(t[i]){let e=t[i].idxByName[a];e&&(e.name=r,delete t[i].idxByName[a],t[i].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 tm(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),i=a.value;return a.done?i:i&&"function"==typeof i.then?i.then(r,n):R(i)?Promise.all(i).then(r,n):r(i)}}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={},i=[];function o(e,t,r){let n=rm(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||i.push(c),l>1&&o(2===l?e[0]:e.slice(0,l-1),t+1,r),s.sort((e,t)=>e.keyTail-t.keyTail),c}let s=o(n.primaryKey.keyPath,0,n.primaryKey);for(let e of(a[":id"]=[s],n.indexes))o(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:i,getIndexByKeyPath:function(e){let t=a[rm(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:i}=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,i).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===i?e[0]:e.slice(0,i)}},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 i=e[a],o=t[a];if("object"==typeof i&&"object"==typeof o&&i&&o){let e=es(i);e!==es(o)?r[n+a]=t[a]:"Object"===e?rR(i,o,r,n+a+"."):i!==o&&(r[n+a]=t[a])}else i!==o&&(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:i,creating:o,updating:s}=a.table(t).hook;switch(e.type){case"add":if(o.fire===eD)break;return a._promise("readwrite",()=>l(e),!0);case"put":if(o.fire===eD&&s.fire===eD)break;return a._promise("readwrite",()=>l(e),!0);case"delete":if(i.fire===eD)break;return a._promise("readwrite",()=>l(e),!0);case"deleteRange":if(i.fire===eD)break;return a._promise("readwrite",()=>(function e(t,a,i){return r.query({trans:t,values:!1,query:{index:n,range:a},limit:i}).then(({result:r})=>l({type:"delete",keys:r,trans:t}).then(n=>n.numFailures>0?Promise.reject(n.failures[0]):r.length<i?{failures:[],numFailures:0,lastResult:void 0}:e(t,{...a,lower:r[r.length-1],lowerOpen:!0},i)))})(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)i.fire.call(c,r,u,l);else if("add"===e.type||void 0===u){let t=o.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:i,lastResult:o})=>{for(let i=0;i<u.length;++i){let o=n?n[i]:u[i],s=a[i];null==o?s.onerror&&s.onerror(r[i]):s.onsuccess&&s.onsuccess("put"===e.type&&t[i]?e.values[i]:o)}return{failures:r,results:n,numFailures:i,lastResult:o}}).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,i=0;a<t.keys.length&&i<e.length;++a)0===tJ(t.keys[a],e[i])&&(n.push(r?ei(t.values[a]):t.values[a]),++i);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?ei(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,i=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 i?rB(i,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=i?i.d+1:1),tJ(r,e.to)>0&&(e.to=r,e.r=null,e.d=e.l?e.l.d+1:1);let o=!e.r;a&&!e.l&&rV(e,a),i&&o&&rV(e,i)}function rV(e,t){rL(t)||function e(t,{from:r,to:n,l:a,r:i}){rB(t,r,n),a&&e(t,a),i&&e(t,i)}(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=r$(r)}e.d=r$(e)}function r$({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 rU={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:i}=a,{primaryKey:o}=i,{extractKey:s,outbound:l}=o,u={...a,mutate:e=>{let o=e.trans,s=o.mutatedParts||(o.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]:[],h=e.trans._cache;return a.mutate(e).then(e=>{if(R(f)){"delete"!==d&&(f=e.results),u.addKeys(f);let t=rI(f,h);t||"add"===d||c.addKeys(f),(t||p)&&i.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 i=t&&n(t[r]),o=p&&n(p[r]);0!==tJ(i,o)&&(null!=i&&a(i),null!=o&&a(o))})})}else if(f){let e={from:f.lower,to:f.upper};c.add(e),u.add(e)}else u.add(r),c.add(r),i.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=>[o,new rF(e.key)],getMany:e=>[o,(new rF).addKeys(e.keys)],count:c,query:c,openCursor:c};return N(d).forEach(e=>{u[e]=function(i){let{subscr:o}=e1;if(o){let u=e=>{let r=`idb://${t}/${n}/${e}`;return o[r]||(o[r]=new rF)},c=u(""),f=u(":dels"),[p,h]=d[e](i);if(u(p.name||"").add(h),!p.isPrimaryKey){if("count"!==e){let t="query"===e&&l&&i.values&&a.query({...i,values:!1});return a[e].apply(this,arguments).then(r=>{if("query"===e){if(l&&i.values)return t.then(({result:e})=>(c.addKeys(e),r));let e=i.values?r.result.map(s):r.result;i.values?c.addKeys(e):f.addKeys(e)}else if("openCursor"===e){let e=i.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 i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:eD,dbReadyPromise:null,cancelOpen:eD,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};i.dbReadyPromise=new e5(e=>{i.dbReadyResolve=e}),i.openCanceller=new e5((e,t)=>{i.cancelOpen=t}),this._state=i,this.name=e,this.on=tU(this,"populate","blocked","versionchange","close",{ready:[eL,eD]}),this.on.ready.subscribe=K(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 i=e._ctx,o=i.table,s=o.hook.reading.fire;this._ctx={table:o,index:i.index,isPrimKey:!i.index||o.schema.primKey.keyPath&&i.index===o.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:i.or,valueMapper:s!==eC?s:null}})),this.Table=function(e){return tH(t$.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:tU(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,i){this.db=e,this.mode=t,this.storeNames=r,this.schema=n,this.chromeTransactionDurability=a,this.idbtrans=null,this.on=tU(this,"complete","error","abort"),this.parent=i||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(rU),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 i(){if(r.openCanceller!==a)throw new eE.DatabaseClosed("db.open() was cancelled")}let o=r.dbReadyResolve,s=null,l=!1,u=()=>new e5((t,a)=>{if(i(),!n)throw new eE.MissingAPI;let o=e.name,u=r.autoSchema?n.open(o):n.open(o,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(o);e.onsuccess=e.onerror=tl(()=>{a(new eE.NoSuchDatabase(`Database ${o} doesnt exist`))})}else{let r,n,o,f;s.onerror=rr(a);var i,c,d=t.oldVersion>0x4000000000000000?0:t.oldVersion;l=d<1,e._novip.idbdb=u.result,i=d/10,c=s,r=e._dbSchema,(n=e._createTransaction("readwrite",e._storeNames,r)).create(c),n._completion.catch(a),o=n._reject.bind(n),f=e1.transless||e1,tm(()=>{e1.trans=n,e1.transless=f,0===i?(N(r).forEach(e=>{rw(c,e,r[e].primKey,r[e].indexes)}),ry(e,c),e5.follow(()=>e.on.populate.fire(n)).catch(o)):(function({_novip:e},t,r,n){let a=[],i=e._versions,o=e._dbSchema=rj(e,e.idbdb,n),s=!1;return i.filter(e=>e._cfg.version>=t).forEach(i=>{a.push(()=>{let a=o,l=i._cfg.dbschema;rO(e,a,n),rO(e,l,n),o=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=>rS(t,e)),e.change.forEach(e=>{t.deleteIndex(e.name),rS(t,e)}),e.del.forEach(e=>t.deleteIndex(e))}});let c=i._cfg.contentUpgrade;if(c&&i._cfg.version>t){let t;ry(e,n),r._memoizedTables={},s=!0;let i=J(l);u.del.forEach(e=>{i[e]=a[e]}),rg(e,[e.Transaction.prototype]),rv(e,[e.Transaction.prototype],N(i),i),r.schema=i;let o=ef(c);o&&ty();let d=e5.follow(()=>{if((t=c(r))&&o){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=i._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=o).forEach(t=>{n.db.objectStoreNames.contains(t)||rw(n,t,e[t].primKey,e[t].indexes)})})})(e,i,n,c).catch(o)})}},a),u.onsuccess=tl(()=>{s=null;let n=e._novip.idbdb=u.result,a=G(n.objectStoreNames);if(a.length>0)try{let t,i=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=rj(0,t,r);e._storeNames=G(t.objectStoreNames,0),rv(e,[e._allTables],N(n),n)}(e,n,i):(rO(e,e._dbSchema,i),((t=rx(rj(0,e.idbdb,i),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,i)}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,o),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(()=>(i(),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,o()})}(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,i=e1.trans;i&&i.db===this&&-1===e.indexOf("!")||(i=null);let o=-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(i){if(i.mode===tF&&n===tB){if(!o)throw new eE.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");i=null}i&&a.forEach(e=>{if(i&&-1===i.storeNames.indexOf(e)){if(!o)throw new eE.SubTransaction("Table "+e+" not included in parent transaction.");i=null}}),o&&i&&!i.active&&(i=null)}}catch(e){return i?i._promise(null,(t,r)=>{r(e)}):tA(e)}let s=(function e(t,r,n,a,i){return e5.resolve().then(()=>{let o,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,i))):tA(a)}let u=ef(i);u&&ty();let c=e5.follow(()=>{if(o=i.call(l,l))if(u){var e=tv.bind(null,null);o.then(e,e)}else"function"==typeof o.next&&"function"==typeof o.throw&&(o=rD(o))},{trans:l,transless:s});return(o&&"function"==typeof o.then?e5.resolve(o).then(e=>l.active?e:tA(new eE.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):c.then(()=>o)).then(e=>(a&&l._resolve(),l._completion.then(()=>e))).catch(e=>(l._reject(e),tA(e)))})}).bind(null,this,n,a,i,r);return i?i._promise(n,s,"lock"):e1.trans?tj(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 rG="u">typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class rK{constructor(e){this._subscribe=e}subscribe(e,t,r){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:r})}[rG](){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,ro.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?tj(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,eh="dexie"===e?()=>!0:t_}},derive:W,extend:M,props:B,override:K,Events:tU,on:ro,liveQuery:function(e){let t,r=!1,n=new rK(n=>{let a=ef(e),i=!1,o={},s={},l={get closed(){return i},unsubscribe:()=>{i=!0,ro.storagemutated.unsubscribe(f)}};n.start&&n.start(l);let u=!1,c=!1;function d(){return N(s).some(e=>o[e]&&function(e,t){let r=rz(t),n=r.next();if(n.done)return!1;let a=n.value,i=rz(e),o=i.next(a.from),s=o.value;for(;!n.done&&!o.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=(o=i.next(a.from)).value}return!1}(o[e],s[e]))}let f=e=>{rq(o,e),d()&&p()},p=()=>{let h,m;if(u||i)return;o={};let y={},v=(a&&ty(),h=()=>tm(e,{subscr:y,trans:null}),m=e1.trans?tj(e1.transless,h):h(),a&&m.then(tv,tv),m);c||(ro(ra,f),c=!0),u=!0,Promise.resolve(v).then(e=>{r=!0,t=e,u=!1,i||(d()?p():(o={},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:ei,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&&(ro(ra,e=>{if(!rX){let t;tI?(t=document.createEvent("CustomEvent")).initCustomEvent(ri,!0,!0,e):t=new CustomEvent(ri,{detail:e}),rX=!0,dispatchEvent(t),rX=!1}}),addEventListener(ri,({detail:e})=>{rX||rY(e)}));let rX=!1;if("u">typeof BroadcastChannel){let e=new BroadcastChannel(ri);"function"==typeof e.unref&&e.unref(),ro(ra,t=>{rX||e.postMessage(t)}),e.onmessage=e=>{e.data&&rY(e.data)}}else if("u">typeof self&&"u">typeof navigator){ro(ra,e=>{try{rX||("u">typeof localStorage&&localStorage.setItem(ri,JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(t=>t.postMessage({type:ri,changedParts:e})))}catch(e){}}),"u">typeof addEventListener&&addEventListener("storage",e=>{if(e.key===ri){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===ri&&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},eh=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,i,o){try{var s=e[i](o),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 i=e.apply(t,r);function o(e){r6(i,n,a,o,s,"next",e)}function s(e){r6(i,n,a,o,s,"throw",e)}o(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 i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}(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,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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,i,o,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={},i=new AbortController,o=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:i}}),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,i,o,s,l,u,c,d,f,p,h,m,y,v,g,b,x;return r7(this,function(w){switch(w.label){case 0:return a=e.type,i=e.dependsOn,o=e.process,s=[],l=[],[4,ni()];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],m=(h=d[2]).id,v=void 0===(y=h.dependencies)?[]:y,w.label=4;case 4:return w.trys.push([4,7,9,10]),[4,o(p,{abort:r,index:c,items:l,userId:u,dependencies:v.map(function(e){var r=e.id,n=e.type;return i.includes(n)?t[n][r]:void 0})})];case 5:return g=w.sent(),void 0!==m&&(t[a][m]=g),[4,ne.syncQueue.delete(f)];case 6:case 8:return w.sent(),[3,10];case 7:var S,j;return S=b=w.sent(),x=(null!=(j=Error)&&"u">typeof Symbol&&j[Symbol.hasInstance]?!!j[Symbol.hasInstance](S):S instanceof j)?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,i,o),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 ni(){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 no(e,t,r,n){return r8(function(){var a;return r7(this,function(i){switch(i.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:i.sent(),i.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,i.sent()]}})})()}function ns(e,t,r){return r8(function(){return r7(this,function(n){switch(n.label){case 0:return[4,ni()];case 1:return[4,no(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,ni()];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,ni()];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 nh(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 nm(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 nS(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function nj(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(e){nS(i,n,a,o,s,"next",e)}function s(e){nS(i,n,a,o,s,"throw",e)}o(void 0)})}}function nO(e,t){var r,n,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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 nj(function(){return nO(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 nj(function(){var r;return nO(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 nj(function(){return nO(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 nj(function(){var n,a;return nO(this,function(i){switch(i.label){case 0:return[4,(n=new r3).dynamicOfflineData.get({type:t,identifier:r}).catch(rH.errnames.DatabaseClosed,function(){})];case 1:if(a=i.sent())return[3,3];return[4,n.dynamicOfflineData.add({users:[e],type:t,identifier:r}).catch(rH.errnames.DatabaseClosed)];case 2:return i.sent(),[3,5];case 3:var o;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)})(o=a.users)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||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)}}(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([e])}).catch(rH.errnames.DatabaseClosed)];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function nN(e,t){return nj(function(){return nO(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 nj(function(){var n,a;return nO(this,function(i){switch(i.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=i.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 i.sent(),[3,5];case 3:return[4,n.dynamicOfflineData.delete(a.id).catch(rH.errnames.DatabaseClosed)];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function nM(e,t){return nj(function(){return nO(this,function(r){switch(r.label){case 0:return[4,nA(e)];case 1:return[4,Promise.all(r.sent().map(function(e){return nj(function(){return nO(this,function(r){return[2,nI(e.type,e.identifier,t)]})})()}))];case 2:return r.sent(),[2]}})})()}function nI(e,t,r){return nj(function(){var n,a,i,o,s,l,u,c,d;return nO(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(i=f.sent(),o=nE().filter(function(t){return t.type===e}),!i)return[2];return[4,Promise.all(o.map(function(e){return nj(function(){var n,a,i;return nO(this,function(o){try{return e.sync(t,r),[2,{id:e.id,error:void 0}]}catch(t){return i=null!=(n=null==(a=t.message)?void 0:a.toString())?n:t.toString(),[2,{id:e.id,error:i}]}})})()}))];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},!i.id)return[3,6];return[4,n.dynamicOfflineData.update(i.id,{syncState:d}).catch(rH.errnames.DatabaseClosed)];case 5:f.sent(),f.label=6;case 6:return[2]}})})()}function n_(){return nj(function(){var e;return nO(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,i,o){try{var s=e[i](o),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,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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 i=t.apply(e,r);function o(e){nL(i,n,a,o,s,"next",e)}function s(e){nL(i,n,a,o,s,"throw",e)}o(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),i=r(5794),o=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 i=!0,o=!1,s=void 0;try{for(var l,u,f,p=n[Symbol.iterator]();!(i=(f=p.next()).done);i=!0){var h=f.value;(0,c.K0)(h,r)}}catch(e){o=!0,s=e}finally{try{i||null==p.return||p.return()}finally{if(o)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 h(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var m=[];function y(e,t){if(e&&t&&(void 0===t?"undefined":h(t))==="object"){var r,n,y,v,g,b,x,w,S,j=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 i=(0,o.t)();if(!r.includes(i))return{reason:"platform",target:i,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(j)return void console.warn("[egen] L'application ".concat(e," n'est pas enregistr\xe9e dans cet environnement."),p({app:e},j));(0,a.registerModuleWithConfigSystem)(e);var O=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==(S=t.pages)||S.forEach(function(t){if(t&&(void 0===t?"undefined":h(t))==="object"&&Object.hasOwn(t,"component")&&(Object.hasOwn(t,"route")||Object.hasOwn(t,"routeRegex")||Object.hasOwn(t,"routes"))){var r,n;m.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)}),O.forEach(function(t){t&&(void 0===t?"undefined":h(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":h(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":h(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,i=!1,o=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){i=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}}(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":h(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 i,o=t[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.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==o.return||o.return()}finally{if(n)throw a}}}(e,C),(0,c.Uh)(e,T),A.forEach(function(t){if(t&&(void 0===t?"undefined":h(t))==="object"&&Object.hasOwn(t,"flagName"))t.flagName?t.label?t.description?(0,i.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(){m.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 o,s=m[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){var l,u=o.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",h=document.getElementById(p),y="single-spa-application:".concat(f);if(h){var v=document.createElement("div");v.id=y,null==h||h.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,o,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,o=t.offline,s=t.featureFlag,window.offlineEnabled?function(e){return!!(navigator.onLine&&(null==a||a)||!navigator.onLine&&null!=o&&o)&&(!s||!!(0,i.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 i(e,t,r,n,a,i,o){try{var s=e[i](o),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,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 s(e,t){var r,n,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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 o(function(){var r,i,u,d,f;return s(this,function(p){switch(p.label){case 0:return u=(i=(r=t.indexOf("#"))>=0)?t.substring(0,r):e,d=i?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 h,m;return[2,(h=u,m=f,o(function(){var e,t;return s(this,function(r){switch(r.label){case 0:if(h in l)return[3,5];if(null==m)return[3,1];return t=m,[3,3];case 1:return[4,(0,n.rL)(h)];case 2:t=r.sent(),r.label=3;case 3:return e=t,[4,l[h]=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)(h),t(null)}).catch(r)}(0,a.registerModuleLoad)(h),t(null)})];case 4:return r.sent(),[3,7];case 5:return[4,l[h]];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:()=>eo,_U:()=>Z,d4:()=>el,p0:()=>em,kQ:()=>Y,qE:()=>ec,pf:()=>K});var n,a=r(9405),i=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 o=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},h={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:{}},m={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={...m,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=o){let r=t.toLowerCase(),n=v[r];if(n)return n;let a=new e(t);return v[r]=a,a}constructor(e=o){this.locale=e,this.lookups={...h},this.vars={...m};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),i={};for(let e=0;e<10;e++)i[String.fromCharCode(r+e)]=e;return f[e]={group:`[${n}-${a}]`,lookup:i},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,i)=>{e[r+a+(i<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 i=Intl.DateTimeFormat(this.locale,{dateStyle:a});for(let o=0;o<12;o++){let s=i.formatToParts(r[o]).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]=o+1)}}let a=Intl.DateTimeFormat(this.locale,{month:"short"});for(let i=0;i<12;i++){let o=a.formatToParts(r[i]).find(n);if(!o)continue;let s=o.value.toLocaleLowerCase(this.locale);s=s.replace(/\.$/,""),e[`${s}\\.?`]=!0,t[s]=i+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 i=Intl.DateTimeFormat(this.locale,{weekday:a});for(let o=0;o<7;o++){let s=i.formatToParts(e[o]).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]=o}}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 i=0;i<2;i++){let o=a.formatToParts(e[i]).find(t);if(!o)return;let s=o.value.toLocaleLowerCase(this.locale);r.push(s),n[s]=12*i}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 S(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 j=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 i=e.handler(a);if(i){for(let[e,t]of Object.entries(i))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)}},O=["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=o){let r=function(e){var t,r;let n,a,i=k[e];if(i)return i;let o=g.factory(e),s=new j({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:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? ?(_OFFSET_|Z)?$"),handler:S(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"timestampWithZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))?\\s*(_ZONE_)$"),handler:S(["","year","month","day","hour","minute","second","millisecond","zone"])},{name:"timestampWithOffsetAndZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? (_OFFSET_|Z)\\s*(_ZONE_)$"),handler:S(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"chinese",regex:o.compile(`^(${c}{2,4})\\s*\u5E74\\s*(${c}{1,2})\\s*\u6708\\s*(${c}{1,2})\\s*\u65E5$`),handler:S(["","year","month","day"])},{name:"korean",regex:o.compile("^(_YEAR_)년\\s*(_MONTH_)월\\s*(_DAY_)일$"),handler:S(["","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:S(["","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,i=parseFloat(t);"week"===(a=r.length<=2?x[r]:(a=r.replace(/s$/,"")).toLowerCase())&&(a="day",i*=7),("-"===e||n)&&(i*=-1);let o=w();return"millisecond"===a?o.setUTCMilliseconds(o.getUTCMilliseconds()+i):"second"===a?o.setUTCSeconds(o.getUTCSeconds()+i):"minute"===a?o.setUTCMinutes(o.getUTCMinutes()+i):"hour"===a?o.setUTCHours(o.getUTCHours()+i):"day"===a?o.setUTCDate(o.getUTCDate()+i):"month"===a?o.setUTCMonth(o.getUTCMonth()+i):"year"===a&&o.setUTCFullYear(o.getUTCFullYear()+i),{year:o.getUTCFullYear(),month:o.getUTCMonth()+1,day:o.getUTCDate(),hour:o.getUTCHours(),minute:o.getUTCMinutes(),second:o.getUTCSeconds(),millisecond:o.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:o.compile("(?:^|[\\sT])(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?(Z)?$"),handler:S(["","hour","minute","second","millisecond","zone"])},{name:"zone24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?[\\s\\[(]*(_ZONE_)?[\\s\\])]*$"),handler:S(["","hour","minute","second","millisecond","zone"])},{name:"hms12WithOffset",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)\\s*(_OFFSET_)"),handler:S(["","hour","minute","second","meridiem","offset"])},{name:"hms12",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)"),handler:S(["","hour","minute","second","meridiem"])},{name:"hms24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?"),handler:S(["","hour","minute","second","millisecond"])},{name:"hm12",regex:o.compile("(_H12_):(_MIN_)\\s*(_MERIDIEM_)"),handler:S(["","hour","minute","meridiem"])},{name:"hm24",regex:o.compile("(_H24_):(_MIN_)"),handler:S(["","hour","minute"])},{name:"h12",regex:o.compile("(_H12_)\\s*(_MERIDIEM_)"),handler:S(["","hour","meridiem"])},{name:"8digit",regex:/^((?:19|20)\d{2})(\d{2})(\d{2})$/,handler:S(["","year","month","day"])},{name:"yearMonthnameDay",regex:o.compile("(_YEAR4_)[\\s.-]+(_MONTHNAME_)[\\s,.-]+(_DAY_)(_ORDINAL_)?"),handler:S(["","year","monthname","day"])},{name:"dayMonthnameYear",regex:o.compile("(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)[\\s,.-]+(_YEAR_)"),handler:S(["","day","","monthname","year"])},{name:"monthnameDayYear",regex:o.compile("(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?[\\s,.-]+(_YEAR_)"),handler:S(["","monthname","day","","year"])},{name:"dayMonthname",regex:o.compile("\\b(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)\\b"),handler:S(["","day","","monthname"])},{name:"monthnameDay",regex:o.compile("\\b(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?\\b"),handler:S(["","monthname","day"])},{name:"hmsNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_):(_SEC_)\\b"),handler:S(["","hour","minute","second"])},{name:"hmNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_)\\b"),handler:S(["","hour","minute"])},{name:"ymd",regex:o.compile("(_YEAR4_)([./-])(_MONTH_)\\2+(_DAY_)"),handler:S(["","year","","month","day"])},{name:"mdy",regex:o.compile("(_MONTH_)([/-])(_DAY_)\\2(_YEAR_)"),handler:S(["","month","","day","year"])},{name:"dmy",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)[./\\s-]+(_YEAR_)"),handler:S(["","day","month","year"])},{name:"yearLoose",regex:o.compile("_YEAR4_"),handler:S(["year"])},{name:"dayMonthnameLoose",regex:o.compile("(_DAY_)[\\s.]*(_MONTHNAME_)"),handler:S(["","day","monthname"])},{name:"monthnameDayLoose",regex:o.compile("(_MONTHNAME_)[\\s.]*(_DAY_)"),handler:S(["","monthname","day"])},{name:"monthname",regex:o.compile("_MONTHNAME_"),handler:S(["monthname"])},{name:"year4",regex:o.compile("_YEAR4_"),handler:S(["year"])},{name:"md",regex:o.compile("(_MONTH_)[/-](_DAY_)"),handler:S(["","month","day"])},{name:"dm",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)"),handler:S(["","day","month"])},{name:"day",regex:o.compile("_DAY_"),handler:S(["day"])},{name:"year2",regex:o.compile("_YEAR2_"),handler:S(["year"])},{name:"onlyZone",regex:o.compile("_ZONE_"),handler:S(["zone"])},{name:"onlyOffset",regex:o.compile("_OFFSET_"),handler:S(["offset"])}],a=o.baseName.slice(0,5),b.includes(a)?n:n.filter(e=>!["mdy","md"].includes(e.name))),formatter:(r=o,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(O.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=o){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=o){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 $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U(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}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 G="YYYY-MM-DDTHH:mm:ss.SSSZZ";function K(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,G).isValid()}function q(e){return M()(e).isToday()}function Y(e){return K(e)?M()(e,G).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(G)}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)(),i=new Intl.Locale(a),o=U({},er,{noToday:"am"===i.language},t),s=o.calendar,l=o.mode,u=o.time,c=o.day,d=o.month,f=o.year,p=o.noToday,h=o.numberingSystem,m={calendar:null!=s?s:et(i),year:f?"numeric":void 0,month:d?"short":void 0,day:c?"2-digit":void 0,numberingSystem:h},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"===i.language&&(a="en-GB");var v=new Intl.DateTimeFormat(a,m).formatToParts(e);("en"===i.language||"am"===i.language)&&"standard"==l&&f&&c&&(v=v.map(ei("-"))),"wide"==l&&(v=v.map(ei(" — "))),"ethiopic"===m.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(eo(e))),n}var ei=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 eo(e){return e.toLocaleTimeString((0,z.J)(),{hour:"2-digit",minute:"2-digit"})}function es(e,t){var r,n;return ea(e,(r=U({},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,i.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=U({},(0,V.A)(r,"day"),{month:r.day})),r.month&&(r.month-=1),r.day&&(r=U({},(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 eh={seconds:45,minutes:45,hours:22,days:26,months:11,years:1/0};function em(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),i=ec(e,a);if(null==i)return null;if("string"==typeof n){var o=ep(n);return $({},o,a.diff(i,o))}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 i=ed[a];if(t.diff(e,i)>0)return a<=n?i:r}return r}(i,a,null!=f?f:"seconds"):ep(u),function(e,t,r,n){var a=ed.indexOf(r),i=ed.indexOf(n),o=ed.slice(a,i+1),s={},l=e,u=!0,c=!1,d=void 0;try{for(var f,p=o[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var h=f.value,m=t.diff(l,h);s[h]=m,l=l.add(m,h)}}catch(e){c=!0,d=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}return s}(i,a,d,null!=f?f:d)}var p=(t=function(e){var t=U({},eh);if(e){var r=!0,n=!1,a=void 0;try{for(var i,o=Object.entries(e)[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s,l=(s=i.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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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==o.return||o.return()}finally{if(n)throw a}}}return t}(l),a.diff(i,"seconds")<t.seconds?"seconds":a.diff(i,"minutes")<t.minutes?"minutes":a.diff(i,"hours")<t.hours?"hours":a.diff(i,"days")<t.days?"days":a.diff(i,"months")<t.months?"months":"years");return $({},p,a.diff(i,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=em(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?U({},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,i=void 0;try{for(var o,s=Object.keys(t)[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var l=o.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,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return r},JK:()=>a.J,Rt:()=>n.Rt,_g:()=>u,a3:()=>n.a3,LW:()=>n.LW,XE:()=>n.XE,L5:()=>m,bN:()=>l.b,a7:()=>n.a7,sc:()=>i.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),i=r(2316);function o(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=o(e);if(!n)return console.warn("matchLocale: invalid requested locale tag: ".concat(JSON.stringify(e))),r;var a=[],i=!0,s=!1,l=void 0;try{for(var u,c=t[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var d=u.value,f=o(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{i||null==c.return||c.return()}finally{if(s)throw l}}for(var p=n;p;){var h=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 i=(p=p.slice(0,n)).lastIndexOf("-");-1!==i&&p.length-i==2&&(p=p.slice(0,i))}();if("object"==(h&&"u">typeof Symbol&&h.constructor===Symbol?"symbol":typeof h))return h.v;if("break"===h)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,i,o){try{var s=e[i](o),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 i=e.apply(t,r);function o(e){f(i,n,a,o,s,"next",e)}function s(e){f(i,n,a,o,s,"throw",e)}o(void 0)})}}function h(e,t){var r,n,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}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 m(e){return p(function(e){var t,r,n,a,i,o,s,l=arguments;return h(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)},i=0,o=void 0,u.label=1;case 1:var c;return u.trys.push([1,4,,5]),[4,(c=n(i),p(function(){return h(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,i),o=s,[3,5];case 5:if(r(i++))return[3,1];u.label=6;case 6:throw o}})}).apply(this,arguments)}},9120(e,t,r){"use strict";r.d(t,{r:()=>o});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 i(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=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(a.push(t.value),3!==a.length);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)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],i=r[1],o=r[2];return"".concat(n,".").concat(i,".").concat(o)}function o(e,t){var r=function(e){var t=e.indexOf("-");if(t>=0){var r=i(e.slice(0,t)),n=e.slice(t+1);return"".concat(r,"-").concat(n)}return i(e)}(t);return n.satisfies(r,e,{includePrerelease:!0})}}}]);
|